@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,1666 @@
1
+ /**
2
+ * Short Weierstrass curve methods. The formula is: y² = x³ + ax + b.
3
+ *
4
+ * ### Design rationale for types
5
+ *
6
+ * * Interaction between classes from different curves should fail:
7
+ * `k256.Point.BASE.add(p256.Point.BASE)`
8
+ * * For this purpose we want to use `instanceof` operator, which is fast and works during runtime
9
+ * * Different calls of `curve()` would return different classes -
10
+ * `curve(params) !== curve(params)`: if somebody decided to monkey-patch their curve,
11
+ * it won't affect others
12
+ *
13
+ * TypeScript can't infer types for classes created inside a function. Classes is one instance
14
+ * of nominative types in TypeScript and interfaces only check for shape, so it's hard to create
15
+ * unique type for every function call.
16
+ *
17
+ * We can use generic types via some param, like curve opts, but that would:
18
+ * 1. Enable interaction between `curve(params)` and `curve(params)` (curves of same params)
19
+ * which is hard to debug.
20
+ * 2. Params can be generic and we can't enforce them to be constant value:
21
+ * if somebody creates curve from non-constant params,
22
+ * it would be allowed to interact with other curves with non-constant params
23
+ *
24
+ * @todo https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#unique-symbol
25
+ * @module
26
+ */
27
+ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
28
+ import { hmac as nobleHmac } from '@noble/hashes/hmac.js';
29
+ import { ahash } from '@noble/hashes/utils.js';
30
+ import {
31
+ abool,
32
+ abytes,
33
+ aInRange,
34
+ bitLen,
35
+ bitMask,
36
+ bytesToHex,
37
+ bytesToNumberBE,
38
+ concatBytes,
39
+ createHmacDrbg,
40
+ hexToBytes,
41
+ isBytes,
42
+ validateObject,
43
+ randomBytes as wcRandomBytes,
44
+ type CHash,
45
+ type HmacFn,
46
+ type Signer,
47
+ type TArg,
48
+ type TRet,
49
+ } from '../utils.ts';
50
+ import {
51
+ createCurveFields,
52
+ createKeygen,
53
+ mulAddUnsafe,
54
+ normalizeZ,
55
+ probeRandomBytes,
56
+ ScalarMultiplier,
57
+ validatePointCons,
58
+ type AffinePoint,
59
+ type CurveLengths,
60
+ type CurvePoint,
61
+ type CurvePointCons,
62
+ } from './curve.ts';
63
+ import { DER } from './der.ts';
64
+ import { getMinHashLength, invertCt, mapHashToField, type IField } from './modular.ts';
65
+
66
+ /** Shared affine point shape used by Weierstrass helpers. */
67
+ export type { AffinePoint };
68
+
69
+ // DER codec lives in der.ts; re-exported here because ECDSA signatures are its main consumer.
70
+ export { DER, DERErr, type IDER } from './der.ts';
71
+
72
+ type EndoBasis = [[bigint, bigint], [bigint, bigint]];
73
+ /**
74
+ * When Weierstrass curve has `a=0`, it becomes Koblitz curve.
75
+ * Koblitz curves allow using **efficiently-computable GLV endomorphism ψ**.
76
+ * Endomorphism speeds up un-precomputed public-scalar multiplication (verification / key
77
+ * recovery) by splitting a scalar into two half-width halves that share doublings.
78
+ *
79
+ * Endomorphism consists of beta, lambda and basises:
80
+ *
81
+ * 1. GLV endomorphism ψ transforms a point: `P = (x, y) ↦ ψ(P) = (β·x mod p, y)`
82
+ * 2. GLV scalar decomposition transforms a scalar: `k ≡ k₁ + k₂·λ (mod n)`
83
+ * 3. Then these are combined: `k·P = k₁·P + k₂·ψ(P)`
84
+ * 4. Two 128-bit point-by-scalar multiplications + one point addition is faster than
85
+ * one 256-bit multiplication.
86
+ *
87
+ * where
88
+ * * beta: β ∈ Fₚ with β³ = 1, β ≠ 1
89
+ * * lambda: λ ∈ Fₙ with λ³ = 1, λ ≠ 1
90
+ * * `_splitEndoScalar` decomposes k ↦ k₁, k₂, by using reduced basis vectors.
91
+ * Gauss lattice reduction calculates them from initial basis vectors `(n, 0), (-λ, 0)`
92
+ *
93
+ * Check out `test/misc/endomorphism.js` and
94
+ * {@link https://gist.github.com/paulmillr/eb670806793e84df628a7c434a873066 | this endomorphism gist}.
95
+ */
96
+ export type EndomorphismOpts = {
97
+ /** Cube root of unity used by the GLV endomorphism. */
98
+ beta: bigint;
99
+ /** Reduced lattice basis used for scalar splitting. */
100
+ basises?: EndoBasis;
101
+ };
102
+ // We construct the basis so `den` is always positive and equals `n`,
103
+ // but the `num` sign depends on the basis, not on the secret value.
104
+ // Exact half-way cases round away from zero, which keeps the split symmetric
105
+ // around the reduced-basis boundaries used by endomorphism decomposition.
106
+ const divNearest = (num: bigint, den: bigint) => (num + (num >= 0 ? den : -den) / _2n) / den;
107
+
108
+ /** Two half-sized scalar components returned by endomorphism splitting. */
109
+ export type ScalarEndoParts = {
110
+ /** Whether the first split scalar should be negated. */
111
+ k1neg: boolean;
112
+ /** Absolute value of the first split scalar. */
113
+ k1: bigint;
114
+ /** Whether the second split scalar should be negated. */
115
+ k2neg: boolean;
116
+ /** Absolute value of the second split scalar. */
117
+ k2: bigint;
118
+ };
119
+
120
+ /** Splits scalar for GLV endomorphism. */
121
+ export function _splitEndoScalar(k: bigint, basis: EndoBasis, n: bigint): ScalarEndoParts {
122
+ // Split scalar into two such that part is ~half bits: `abs(part) < sqrt(N)`
123
+ // Since part can be negative, we need to do this on point.
124
+ // Callers must provide a reduced GLV basis whose vectors satisfy
125
+ // `a + b * lambda ≡ 0 (mod n)`; this helper only sees the basis and `n`.
126
+ // Reject unreduced scalars instead of silently treating them mod n.
127
+ aInRange('scalar', k, _0n, n);
128
+ // TODO: verifyScalar function which consumes lambda
129
+ const [[a1, b1], [a2, b2]] = basis;
130
+ const c1 = divNearest(b2 * k, n);
131
+ const c2 = divNearest(-b1 * k, n);
132
+ // |k1|/|k2| is < sqrt(N), but can be negative.
133
+ // If we do `k1 mod N`, we'll get big scalar (`> sqrt(N)`): so, we do cheaper negation instead.
134
+ let k1 = k - c1 * a1 - c2 * a2;
135
+ let k2 = -c1 * b1 - c2 * b2;
136
+ const k1neg = k1 < _0n;
137
+ const k2neg = k2 < _0n;
138
+ if (k1neg) k1 = -k1;
139
+ if (k2neg) k2 = -k2;
140
+ // Double check that resulting scalar is less than half bits of N: the wNAF pair walk
141
+ // relies on the halves being short. This should only happen on wrong bases.
142
+ // Also, the math inside is complex enough that this guard is worth keeping.
143
+ const MAX_NUM = bitMask(Math.ceil(bitLen(n) / 2)) + _1n; // Half bits of N
144
+ if (k1 < _0n || k1 >= MAX_NUM || k2 < _0n || k2 >= MAX_NUM) {
145
+ throw new Error('splitScalar (endomorphism): failed for k');
146
+ }
147
+ return { k1neg, k1, k2neg, k2 };
148
+ }
149
+
150
+ /**
151
+ * Option to enable hedged signatures with improved security.
152
+ *
153
+ * * Randomly generated k is bad, because broken CSPRNG would leak private keys.
154
+ * * Deterministic k (RFC6979) is better; but is suspectible to fault attacks.
155
+ *
156
+ * We allow using technique described in RFC6979 3.6: additional k', a.k.a. adding randomness
157
+ * to deterministic sig. If CSPRNG is broken & randomness is weak, it would STILL be as secure
158
+ * as ordinary sig without ExtraEntropy.
159
+ *
160
+ * * `true` means "fetch data, from CSPRNG, incorporate it into k generation"
161
+ * * `false` means "disable extra entropy, use purely deterministic k"
162
+ * * `Uint8Array` passed means "incorporate following data into k generation"
163
+ *
164
+ * See {@link https://paulmillr.com/posts/deterministic-signatures/ | deterministic signatures}.
165
+ */
166
+ export type ECDSAExtraEntropy = boolean | Uint8Array;
167
+ /**
168
+ * - `compact` is the default format
169
+ * - `recovered` is the same as compact, but with an extra byte indicating recovery byte
170
+ * - `der` is ASN.1 DER encoding
171
+ */
172
+ export type ECDSASignatureFormat = 'compact' | 'recovered' | 'der';
173
+ /**
174
+ * - `prehash`: (default: true) indicates whether to do sha256(message).
175
+ * When a custom hash is used, it must be set to `false`.
176
+ */
177
+ export type ECDSARecoverOpts = {
178
+ /** Whether to hash the message before signature recovery. */
179
+ prehash?: boolean;
180
+ };
181
+ /**
182
+ * - `prehash`: (default: true) indicates whether to do sha256(message).
183
+ * When a custom hash is used, it must be set to `false`.
184
+ * - `lowS`: (default: true) prohibits signatures with `sig.s >= CURVE.n/2n`.
185
+ * Compatible with BTC/ETH. Setting `lowS: false` allows to create malleable signatures,
186
+ * which is default openssl behavior.
187
+ * Non-malleable signatures can still be successfully verified in openssl.
188
+ * - `format`: (default: 'compact') 'compact' or 'recovered' with recovery byte
189
+ */
190
+ export type ECDSAVerifyOpts = {
191
+ /** Whether to hash the message before verification. */
192
+ prehash?: boolean;
193
+ /** Whether to reject high-S signatures. */
194
+ lowS?: boolean;
195
+ /** Signature encoding to accept. */
196
+ format?: ECDSASignatureFormat;
197
+ };
198
+ /**
199
+ * - `prehash`: (default: true) indicates whether to do sha256(message).
200
+ * When a custom hash is used, it must be set to `false`.
201
+ * - `lowS`: (default: true) prohibits signatures with `sig.s >= CURVE.n/2n`.
202
+ * Compatible with BTC/ETH. Setting `lowS: false` allows to create malleable signatures,
203
+ * which is default openssl behavior.
204
+ * Non-malleable signatures can still be successfully verified in openssl.
205
+ * - `format`: (default: 'compact') 'compact' or 'recovered' with recovery byte
206
+ * - `extraEntropy`: (default: false) creates signatures with increased
207
+ * security, see {@link ECDSAExtraEntropy}
208
+ */
209
+ export type ECDSASignOpts = {
210
+ /** Whether to hash the message before signing. */
211
+ prehash?: boolean;
212
+ /** Whether to normalize signatures into the low-S half-order. */
213
+ lowS?: boolean;
214
+ /** Signature encoding to produce. */
215
+ format?: ECDSASignatureFormat;
216
+ /** Optional hedging input for deterministic k generation. */
217
+ extraEntropy?: ECDSAExtraEntropy;
218
+ };
219
+
220
+ function validateSigFormat(format: string): ECDSASignatureFormat {
221
+ if (!['compact', 'recovered', 'der'].includes(format))
222
+ throw new Error('Signature format must be "compact", "recovered", or "der"');
223
+ return format as ECDSASignatureFormat;
224
+ }
225
+
226
+ function validateSigOpts<T extends ECDSASignOpts, D extends Required<ECDSASignOpts>>(
227
+ opts: T,
228
+ def: D
229
+ ): D {
230
+ validateObject(opts);
231
+ const optsn = {} as D;
232
+ // Normalize only the declared option subset from `def`; unknown keys are
233
+ // intentionally ignored so shared / superset option bags stay valid here too.
234
+ // `extraEntropy` stays an opaque payload until the signing path consumes it.
235
+ for (let optName of Object.keys(def) as (keyof D)[]) {
236
+ // @ts-ignore
237
+ optsn[optName] = opts[optName] === undefined ? def[optName] : opts[optName];
238
+ }
239
+ abool(optsn.lowS!, 'lowS');
240
+ abool(optsn.prehash!, 'prehash');
241
+ if (optsn.format !== undefined) validateSigFormat(optsn.format);
242
+ return optsn;
243
+ }
244
+
245
+ /** Projective XYZ point used by short Weierstrass curves. */
246
+ export interface WeierstrassPoint<T> extends CurvePoint<T, WeierstrassPoint<T>> {
247
+ /** projective X coordinate. Different from affine x. */
248
+ readonly X: T;
249
+ /** projective Y coordinate. Different from affine y. */
250
+ readonly Y: T;
251
+ /** projective z coordinate */
252
+ readonly Z: T;
253
+ /** affine x coordinate. Different from projective X. */
254
+ get x(): T;
255
+ /** affine y coordinate. Different from projective Y. */
256
+ get y(): T;
257
+ /**
258
+ * Encode the point into compressed or uncompressed SEC1 bytes.
259
+ * @param isCompressed - Whether to use the compressed form.
260
+ * @returns Encoded point bytes.
261
+ */
262
+ toBytes(isCompressed?: boolean): TRet<Uint8Array>;
263
+ /**
264
+ * Encode the point into compressed or uncompressed SEC1 hex.
265
+ * @param isCompressed - Whether to use the compressed form.
266
+ * @returns Encoded point hex.
267
+ */
268
+ toHex(isCompressed?: boolean): string;
269
+ /**
270
+ * Double-scalar multiplication `a⋅this + b⋅other` via Strauss–Shamir: both scalar walks
271
+ * share one doubling chain, and GLV endomorphism (when the curve has one) halves the chain
272
+ * again by splitting each scalar. 1.3-1.7x faster than two `multiplyUnsafe()` calls.
273
+ * Not constant-time: only for public scalars, e.g. ECDSA verification's `u1⋅G + u2⋅P`.
274
+ * @param a - Scalar for this point.
275
+ * @param other - Second point.
276
+ * @param b - Scalar for the second point.
277
+ * @returns Combined product point.
278
+ */
279
+ mulAddUnsafe(a: bigint, other: WeierstrassPoint<T>, b: bigint): WeierstrassPoint<T>;
280
+ }
281
+
282
+ /** Constructor and metadata helpers for Weierstrass points. */
283
+ export interface WeierstrassPointCons<T> extends CurvePointCons<WeierstrassPoint<T>> {
284
+ /** Does NOT validate if the point is valid. Use `.assertValidity()`. */
285
+ new (X: T, Y: T, Z: T): WeierstrassPoint<T>;
286
+ /**
287
+ * Return the curve parameters captured by this point constructor.
288
+ * @returns Curve parameters.
289
+ */
290
+ CURVE(): WeierstrassOpts<T>;
291
+ }
292
+
293
+ /**
294
+ * Weierstrass curve options.
295
+ *
296
+ * * p: prime characteristic (order) of finite field, in which arithmetics is done
297
+ * * n: order of prime subgroup a.k.a total amount of valid curve points
298
+ * * h: cofactor, usually 1. h*n is group order; n is subgroup order
299
+ * * a: formula param, must be in field of p
300
+ * * b: formula param, must be in field of p
301
+ * * Gx: x coordinate of generator point a.k.a. base point
302
+ * * Gy: y coordinate of generator point
303
+ */
304
+ export type WeierstrassOpts<T> = Readonly<{
305
+ /** Base-field modulus. */
306
+ p: bigint;
307
+ /** Prime subgroup order. */
308
+ n: bigint;
309
+ /** Curve cofactor. */
310
+ h: bigint;
311
+ /** Weierstrass curve parameter `a`. */
312
+ a: T;
313
+ /** Weierstrass curve parameter `b`. */
314
+ b: T;
315
+ /** Generator x coordinate. */
316
+ Gx: T;
317
+ /** Generator y coordinate. */
318
+ Gy: T;
319
+ }>;
320
+
321
+ /**
322
+ * Optional helpers and overrides for a Weierstrass point constructor.
323
+ *
324
+ * When a cofactor != 1, there can be effective methods to:
325
+ * 1. Determine whether a point is torsion-free
326
+ * 2. Clear torsion component
327
+ */
328
+ export type WeierstrassExtraOpts<T> = Partial<{
329
+ /** Optional base-field override. */
330
+ Fp: IField<T>;
331
+ /** Optional scalar-field override. */
332
+ Fn: IField<bigint>;
333
+ /**
334
+ * Whether the point at infinity is a public value of this point type. When unset, infinity
335
+ * fails `assertValidity()` and has no byte encoding at all: encoding throws and `0x00` does
336
+ * not decode, which keeps `Point.fromBytes()` usable as a strict key boundary because
337
+ * infinity cannot be expressed in bytes. When set, infinity validates and uses the SEC 1
338
+ * v2.0 §2.3.3 / §2.3.4 single-octet `0x00` form, unless `fromBytes` / `toBytes` override it.
339
+ */
340
+ allowInfinityPoint: boolean;
341
+ /** Optional GLV endomorphism data. */
342
+ endo: EndomorphismOpts;
343
+ /** RNG override used for scalar blinding. */
344
+ randomBytes: (bytesLength?: number) => TRet<Uint8Array>;
345
+ /** Optional torsion-check override. */
346
+ isTorsionFree: (c: WeierstrassPointCons<T>, point: WeierstrassPoint<T>) => boolean;
347
+ /** Optional cofactor-clearing override. */
348
+ clearCofactor: (c: WeierstrassPointCons<T>, point: WeierstrassPoint<T>) => WeierstrassPoint<T>;
349
+ /** Optional custom point decoder. */
350
+ fromBytes: (bytes: TArg<Uint8Array>) => AffinePoint<T>;
351
+ /** Optional custom point encoder. */
352
+ toBytes: (
353
+ c: WeierstrassPointCons<T>,
354
+ point: WeierstrassPoint<T>,
355
+ isCompressed: boolean
356
+ ) => TRet<Uint8Array>;
357
+ }>;
358
+
359
+ /**
360
+ * Options for ECDSA signatures over a Weierstrass curve.
361
+ *
362
+ * * lowS: (default: true) whether produced or verified signatures occupy the
363
+ * low half of `ecdsaOpts.n`. Prevents malleability.
364
+ * * hmac: (default: noble-hashes hmac) function, would be used to init hmac-drbg for k generation.
365
+ * * randomBytes: (default: webcrypto os-level CSPRNG) custom method for fetching secure randomness.
366
+ * * bits2int, bits2int_modN: used in sigs, sometimes overridden by curves. Custom hooks are
367
+ * treated as pure functions over validated bytes and MUST NOT mutate caller-owned buffers or
368
+ * closure-captured option bags. `bits2int_modN` must also return a canonical scalar in
369
+ * `[0..Point.Fn.ORDER-1]`.
370
+ */
371
+ export type ECDSAOpts = Partial<{
372
+ /** Default low-S policy for this ECDSA instance. */
373
+ lowS: boolean;
374
+ /** HMAC implementation used by RFC6979 DRBG. */
375
+ hmac: HmacFn;
376
+ /** RNG override used by helper constructors. */
377
+ randomBytes: (bytesLength?: number) => TRet<Uint8Array>;
378
+ /** Hash-to-integer conversion override. */
379
+ bits2int: (bytes: TArg<Uint8Array>) => bigint;
380
+ /** Hash-to-integer-mod-n conversion override. Returns a canonical scalar in `[0..Fn.ORDER-1]`. */
381
+ bits2int_modN: (bytes: TArg<Uint8Array>) => bigint;
382
+ }>;
383
+
384
+ /** Elliptic Curve Diffie-Hellman helper namespace. */
385
+ export interface ECDH {
386
+ /**
387
+ * Generate a secret/public key pair.
388
+ * @param seed - Optional seed material.
389
+ * @returns Secret/public key pair.
390
+ */
391
+ keygen: (seed?: TArg<Uint8Array>) => { secretKey: TRet<Uint8Array>; publicKey: TRet<Uint8Array> };
392
+ /**
393
+ * Derive the public key from a secret key.
394
+ * @param secretKey - Secret key bytes.
395
+ * @param isCompressed - Whether to emit compressed SEC1 bytes.
396
+ * @returns Encoded public key.
397
+ */
398
+ getPublicKey: (secretKey: TArg<Uint8Array>, isCompressed?: boolean) => TRet<Uint8Array>;
399
+ /**
400
+ * Compute the shared secret point from a secret key and peer public key.
401
+ * @param secretKeyA - Local secret key bytes.
402
+ * @param publicKeyB - Peer public key bytes.
403
+ * @param isCompressed - Whether to emit compressed SEC1 bytes.
404
+ * @returns Encoded shared point.
405
+ */
406
+ getSharedSecret: (
407
+ secretKeyA: TArg<Uint8Array>,
408
+ publicKeyB: TArg<Uint8Array>,
409
+ isCompressed?: boolean
410
+ ) => TRet<Uint8Array>;
411
+ /** Point constructor used by this ECDH instance. */
412
+ Point: WeierstrassPointCons<bigint>;
413
+ /** Validation and random-key helpers. */
414
+ utils: {
415
+ /** Check whether a secret key has the expected encoding. */
416
+ isValidSecretKey: (secretKey: TArg<Uint8Array>) => boolean;
417
+ /** Check whether a public key decodes to a valid point. */
418
+ isValidPublicKey: (publicKey: TArg<Uint8Array>, isCompressed?: boolean) => boolean;
419
+ /** Generate a valid random secret key. */
420
+ randomSecretKey: (seed?: TArg<Uint8Array>) => TRet<Uint8Array>;
421
+ };
422
+ /** Byte lengths for keys and signatures exposed by this curve. */
423
+ lengths: CurveLengths;
424
+ }
425
+
426
+ /**
427
+ * ECDSA interface.
428
+ * Only supported for prime fields, not Fp2 (extension fields).
429
+ */
430
+ export interface ECDSA extends ECDH {
431
+ /**
432
+ * Sign a message with the given secret key.
433
+ * @param message - Message bytes.
434
+ * @param secretKey - Secret key bytes.
435
+ * @param opts - Optional signing tweaks. See {@link ECDSASignOpts}.
436
+ * @returns Encoded signature bytes.
437
+ */
438
+ sign: (
439
+ message: TArg<Uint8Array>,
440
+ secretKey: TArg<Uint8Array>,
441
+ opts?: TArg<ECDSASignOpts>
442
+ ) => TRet<Uint8Array>;
443
+ /**
444
+ * Verify a signature against a message and public key.
445
+ * @param signature - Encoded signature bytes.
446
+ * @param message - Message bytes.
447
+ * @param publicKey - Encoded public key.
448
+ * @param opts - Optional verification tweaks. See {@link ECDSAVerifyOpts}.
449
+ * @returns Whether the signature is valid.
450
+ */
451
+ verify: (
452
+ signature: TArg<Uint8Array>,
453
+ message: TArg<Uint8Array>,
454
+ publicKey: TArg<Uint8Array>,
455
+ opts?: TArg<ECDSAVerifyOpts>
456
+ ) => boolean;
457
+ /**
458
+ * Recover the public key encoded into a recoverable signature.
459
+ * @param signature - Recoverable signature bytes.
460
+ * @param message - Message bytes.
461
+ * @param opts - Optional recovery tweaks. See {@link ECDSARecoverOpts}.
462
+ * @returns Encoded recovered public key.
463
+ */
464
+ recoverPublicKey(
465
+ signature: TArg<Uint8Array>,
466
+ message: TArg<Uint8Array>,
467
+ opts?: TArg<ECDSARecoverOpts>
468
+ ): TRet<Uint8Array>;
469
+ /** Signature constructor and parser helpers. */
470
+ Signature: ECDSASignatureCons;
471
+ }
472
+ // Be friendly to bad ECMAScript parsers by not using bigint literals
473
+ // prettier-ignore
474
+ const _0n = /* @__PURE__ */ BigInt(0), _1n = /* @__PURE__ */ BigInt(1), _2n = /* @__PURE__ */ BigInt(2), _3n = /* @__PURE__ */ BigInt(3), _4n = /* @__PURE__ */ BigInt(4);
475
+
476
+ /**
477
+ * Creates weierstrass Point constructor, based on specified curve options.
478
+ *
479
+ * See {@link WeierstrassOpts}.
480
+ * @param params - Curve parameters. See {@link WeierstrassOpts}.
481
+ * @param extraOpts - Optional helpers and overrides. See {@link WeierstrassExtraOpts}.
482
+ * @returns Weierstrass point constructor.
483
+ * @throws If the curve parameters, overrides, or point codecs are invalid. {@link Error}
484
+ *
485
+ * @example
486
+ * Construct a point type from explicit Weierstrass curve parameters.
487
+ *
488
+ * ```js
489
+ * const opts = {
490
+ * p: 0xfffffffffffffffffffffffffffffffeffffac73n,
491
+ * n: 0x100000000000000000001b8fa16dfab9aca16b6b3n,
492
+ * h: 1n,
493
+ * a: 0n,
494
+ * b: 7n,
495
+ * Gx: 0x3b4c382ce37aa192a4019e763036f4f5dd4d7ebbn,
496
+ * Gy: 0x938cf935318fdced6bc28286531733c3f03c4feen,
497
+ * };
498
+ * const secp160k1_Point = weierstrass(opts);
499
+ * ```
500
+ */
501
+ export function weierstrass<T>(
502
+ params: WeierstrassOpts<T>,
503
+ extraOpts: WeierstrassExtraOpts<T> = {}
504
+ ): WeierstrassPointCons<T> {
505
+ const validated = createCurveFields('weierstrass', params, extraOpts);
506
+ const Fp = validated.Fp as IField<T>;
507
+ const Fn = validated.Fn as IField<bigint>;
508
+ let CURVE = validated.CURVE as WeierstrassOpts<T>;
509
+ const { h: cofactor, n: CURVE_ORDER } = CURVE;
510
+ validateObject(
511
+ extraOpts,
512
+ {},
513
+ {
514
+ allowInfinityPoint: 'boolean',
515
+ clearCofactor: 'function',
516
+ isTorsionFree: 'function',
517
+ fromBytes: 'function',
518
+ toBytes: 'function',
519
+ endo: 'object',
520
+ randomBytes: 'function',
521
+ }
522
+ );
523
+
524
+ // Snapshot every hook and take an owned copy of nested GLV configuration. Later mutations of
525
+ // the caller's options must not change arithmetic, subgroup, or codec policy.
526
+ const {
527
+ endo: endoOpts,
528
+ allowInfinityPoint,
529
+ clearCofactor,
530
+ isTorsionFree,
531
+ fromBytes,
532
+ toBytes,
533
+ } = extraOpts;
534
+ const randomBytes = extraOpts.randomBytes === undefined ? wcRandomBytes : extraOpts.randomBytes;
535
+ if (endoOpts) {
536
+ if (!Fp.is0(CURVE.a) || typeof endoOpts.beta !== 'bigint' || !Array.isArray(endoOpts.basises)) {
537
+ throw new Error('invalid endo: expected "beta": bigint and "basises": array');
538
+ }
539
+ }
540
+ const endo = endoOpts
541
+ ? {
542
+ beta: endoOpts.beta,
543
+ basises: endoOpts.basises!.map((basis) => [...basis]) as EndoBasis,
544
+ }
545
+ : undefined;
546
+
547
+ const lengths = getWLengths(Fp as TArg<IField<T>>, Fn);
548
+
549
+ function assertCompressionIsSupported() {
550
+ if (!Fp.isOdd) throw new Error('compression is not supported: Field does not have .isOdd()');
551
+ }
552
+
553
+ // Implements IEEE P1363 point encoding
554
+ function pointToBytes(
555
+ _c: WeierstrassPointCons<T>,
556
+ point: WeierstrassPoint<T>,
557
+ isCompressed: boolean
558
+ ): TRet<Uint8Array> {
559
+ // Handle infinity before toAffine(), which maps ZERO to (0, 0) silently: without this the
560
+ // encoder would emit an all-zero byte string that decodes back as a different point. Only
561
+ // curves that opt into infinity as a public point value get the SEC 1 byte form.
562
+ if (point.is0()) {
563
+ if (!allowInfinityPoint) throw new Error('bad point: ZERO');
564
+ return Uint8Array.of(0) as TRet<Uint8Array>; // SEC 1 v2.0 §2.3.3
565
+ }
566
+ const { x, y } = point.toAffine();
567
+ const bx = Fp.toBytes(x);
568
+ abool(isCompressed, 'isCompressed');
569
+ if (isCompressed) {
570
+ assertCompressionIsSupported();
571
+ const hasEvenY = !Fp.isOdd!(y);
572
+ return concatBytes(pprefix(hasEvenY), bx) as TRet<Uint8Array>;
573
+ } else {
574
+ return concatBytes(Uint8Array.of(0x04), bx, Fp.toBytes(y)) as TRet<Uint8Array>;
575
+ }
576
+ }
577
+ function pointFromBytes(bytes: TArg<Uint8Array>) {
578
+ abytes(bytes, undefined, 'Point');
579
+ const { publicKey: comp, publicKeyUncompressed: uncomp } = lengths; // e.g. for 32-byte: 33, 65
580
+ const length = bytes.length;
581
+ const head = bytes[0];
582
+ const tail = bytes.subarray(1);
583
+ // SEC 1 v2.0 §2.3.4 decodes 0x00 as infinity, but §3.2.2 rejects infinity as a public key.
584
+ // Leaving 0x00 undecodable by default makes that rejection structural rather than a check:
585
+ // callers reuse this parser as the strict key boundary, and infinity is simply not
586
+ // expressible. Curves where infinity is a real wire value opt into the codec instead.
587
+ // secp256k1 crosstests show OpenSSL raw point codecs accept 0x00 too.
588
+ if (allowInfinityPoint && length === 1 && head === 0x00) return { x: Fp.ZERO, y: Fp.ZERO };
589
+ // No actual validation is done here: use .assertValidity()
590
+ if (length === comp && (head === 0x02 || head === 0x03)) {
591
+ const x = Fp.fromBytes(tail);
592
+ if (!Fp.isValid(x)) throw new Error('bad point: is not on curve, wrong x');
593
+ const y2 = weierstrassEquation(x); // y² = x³ + ax + b
594
+ let y: T;
595
+ try {
596
+ y = Fp.sqrt(y2); // y = y² ^ (p+1)/4
597
+ } catch (sqrtError) {
598
+ const err = sqrtError instanceof Error ? ': ' + sqrtError.message : '';
599
+ throw new Error('bad point: is not on curve, sqrt error' + err);
600
+ }
601
+ assertCompressionIsSupported();
602
+ const evenY = Fp.isOdd!(y);
603
+ const evenH = (head & 1) === 1; // ECDSA-specific
604
+ if (evenH !== evenY) y = Fp.neg(y);
605
+ return { x, y };
606
+ } else if (length === uncomp && head === 0x04) {
607
+ // TODO: more checks
608
+ const L = Fp.BYTES;
609
+ const x = Fp.fromBytes(tail.subarray(0, L));
610
+ const y = Fp.fromBytes(tail.subarray(L, L * 2));
611
+ if (!isValidXY(x, y)) throw new Error('bad point: is not on curve');
612
+ return { x, y };
613
+ } else {
614
+ throw new Error(
615
+ `bad point: got length ${length}, expected compressed=${comp} or uncompressed=${uncomp}`
616
+ );
617
+ }
618
+ }
619
+
620
+ const encodePoint = toBytes === undefined ? pointToBytes : toBytes;
621
+ const decodePoint = fromBytes === undefined ? pointFromBytes : fromBytes;
622
+ // Hoisted from double() / add(): curve params never change after construction.
623
+ // Koblitz curves (a=0, e.g. secp256k1) skip the three a-multiplications per operation;
624
+ // the selection depends only on public curve constants.
625
+ const b3 = Fp.mul(CURVE.b, _3n);
626
+ const mulA = Fp.is0(CURVE.a) ? (_: T): T => Fp.ZERO : (x: T): T => Fp.mul(CURVE.a, x);
627
+ function weierstrassEquation(x: T): T {
628
+ const x2 = Fp.sqr(x);
629
+ const x3 = Fp.mul(x2, x);
630
+ return Fp.add(Fp.add(x3, Fp.mul(x, CURVE.a)), CURVE.b); // x³ + a * x + b
631
+ }
632
+
633
+ // TODO: move top-level
634
+ /** Checks whether equation holds for given x, y: y² == x³ + ax + b */
635
+ function isValidXY(x: T, y: T): boolean {
636
+ const left = Fp.sqr(y);
637
+ const right = weierstrassEquation(x); // x³ + ax + b
638
+ return Fp.eql(left, right);
639
+ }
640
+
641
+ // Keep constructor-time generator validation cheap: callers are responsible for supplying the
642
+ // correct prime-order base point, while eager subgroup checks here would slow heavy module imports.
643
+ // Test 1: equation y² = x³ + ax + b should work for generator point.
644
+ if (!isValidXY(CURVE.Gx, CURVE.Gy)) throw new Error('bad curve params: generator point');
645
+
646
+ // Test 2: discriminant Δ part should be non-zero: 4a³ + 27b² != 0.
647
+ // Guarantees curve is genus-1, smooth (non-singular).
648
+ const _4a3 = Fp.mul(Fp.pow(CURVE.a, _3n), _4n);
649
+ const _27b2 = Fp.mul(Fp.sqr(CURVE.b), BigInt(27));
650
+ if (Fp.is0(Fp.add(_4a3, _27b2))) throw new Error('bad curve params: a or b');
651
+
652
+ /** Asserts coordinate is valid: 0 <= n < Fp.ORDER. */
653
+ function acoord(title: string, n: T, banZero = false) {
654
+ if (!Fp.isValid(n) || (banZero && Fp.is0(n))) throw new Error(`bad point coordinate ${title}`);
655
+ // Extension-field elements are objects. Keep point coordinates detached from caller-owned
656
+ // objects so their mutation cannot invalidate cached on-curve / subgroup checks. Primitive
657
+ // field elements (bigints in shipped prime fields) are already immutable values.
658
+ return typeof n === 'object' && n !== null ? Fp.create(n) : n;
659
+ }
660
+
661
+ function aprjpoint(other: unknown): asserts other is Point {
662
+ if (!(other instanceof Point)) throw new Error('Weierstrass Point expected');
663
+ }
664
+
665
+ function splitEndoScalarN(k: bigint) {
666
+ if (!endo || !endo.basises) throw new Error('no endo');
667
+ return _splitEndoScalar(k, endo.basises, Fn.ORDER);
668
+ }
669
+
670
+ /**
671
+ * Appends a (point, scalar) pair to the inputs of a vartime wNAF walk
672
+ * ({@link mulAddUnsafe}). With GLV endomorphism the scalar is split into two half-width
673
+ * pairs against P and ψ(P) = (β⋅x, y), halving the walk's shared doubling chain;
674
+ * split signs fold into the points.
675
+ */
676
+ function pushWnafPair(points: Point[], scalars: bigint[], p: Point, k: bigint): void {
677
+ if (!Fn.isValid(k)) throw new RangeError('invalid scalar: out of range'); // 0 is valid
678
+ if (endo) {
679
+ const { k1neg, k1, k2neg, k2 } = splitEndoScalarN(k);
680
+ const psi = new Point(Fp.mul(p.X, endo.beta), p.Y, p.Z);
681
+ points.push(k1neg ? p.negate() : p, k2neg ? psi.negate() : psi);
682
+ scalars.push(k1, k2);
683
+ } else {
684
+ points.push(p);
685
+ scalars.push(k);
686
+ }
687
+ }
688
+
689
+ // Successful assertValidity() results are cached: Point instances are frozen at construction,
690
+ // so on-curve + subgroup facts cannot change afterwards. Only success is cached — invalid
691
+ // points re-throw on every call. This matters most for pairing curves, where subgroup checks
692
+ // cost a scalar multiplication and the same instance is re-validated across layers
693
+ // (signature fromBytes, pairingBatch) or across repeated verifies with a cached public key.
694
+ const validityCache = new WeakSet<object>();
695
+
696
+ /**
697
+ * Projective Point works in 3d / projective (homogeneous) coordinates:(X, Y, Z) ∋ (x=X/Z, y=Y/Z).
698
+ * Default Point works in 2d / affine coordinates: (x, y).
699
+ * We're doing calculations in projective, because its operations don't require costly inversion.
700
+ */
701
+ class Point implements WeierstrassPoint<T> {
702
+ static readonly BASE = new Point(CURVE.Gx, CURVE.Gy, Fp.ONE);
703
+ static readonly ZERO = new Point(Fp.ZERO, Fp.ONE, Fp.ZERO);
704
+ static readonly Fp = Fp;
705
+ static readonly Fn = Fn;
706
+
707
+ readonly X: T;
708
+ readonly Y: T;
709
+ readonly Z: T;
710
+
711
+ /** Does NOT validate if the point is valid. Use `.assertValidity()`. */
712
+ constructor(X: T, Y: T, Z: T) {
713
+ this.X = acoord('x', X);
714
+ // This is not just about ZERO / infinity: ambient curves can have real
715
+ // finite points with y=0. Those points are 2-torsion, so they cannot lie
716
+ // in the odd prime-order subgroups this point type is meant to represent.
717
+ this.Y = acoord('y', Y, true);
718
+ this.Z = acoord('z', Z);
719
+ Object.freeze(this);
720
+ }
721
+
722
+ static CURVE(): WeierstrassOpts<T> {
723
+ return CURVE;
724
+ }
725
+
726
+ /** Does NOT validate if the point is valid. Use `.assertValidity()`. */
727
+ static fromAffine(p: AffinePoint<T>): Point {
728
+ const { x, y } = p || {};
729
+ if (!p || !Fp.isValid(x) || !Fp.isValid(y)) throw new Error('invalid affine point');
730
+ if (p instanceof Point) throw new Error('projective point not allowed');
731
+ // (0, 0) would've produced (0, 0, 1) - instead, we need (0, 1, 0)
732
+ if (Fp.is0(x) && Fp.is0(y)) return Point.ZERO;
733
+ return new Point(x, y, Fp.ONE);
734
+ }
735
+
736
+ static fromBytes(bytes: TArg<Uint8Array>): Point {
737
+ const P = Point.fromAffine(decodePoint(abytes(bytes, undefined, 'point')));
738
+ P.assertValidity();
739
+ return P;
740
+ }
741
+
742
+ static fromHex(hex: string): Point {
743
+ return Point.fromBytes(hexToBytes(hex));
744
+ }
745
+
746
+ get x(): T {
747
+ return this.toAffine().x;
748
+ }
749
+ get y(): T {
750
+ return this.toAffine().y;
751
+ }
752
+
753
+ /**
754
+ * @param isLazy - true will defer table computation until the first multiplication
755
+ */
756
+ precompute(windowSize: number = 6, isLazy = true): Point {
757
+ wnaf.setWindowSize(this, windowSize);
758
+ if (!isLazy) this.multiply(_3n); // random number
759
+ return this;
760
+ }
761
+
762
+ // TODO: return `this`
763
+ /** A point on curve is valid if it conforms to equation. */
764
+ assertValidity(): void {
765
+ const p = this;
766
+ if (p.is0()) {
767
+ // (0, 1, 0) aka ZERO is invalid in most contexts.
768
+ // In BLS, ZERO can be serialized, so we allow it.
769
+ // Keep the accepted infinity encoding canonical: projective-equivalent (X, Y, 0) points
770
+ // like (1, 1, 0) compare equal to ZERO, but only (0, 1, 0) should pass this guard.
771
+ if (allowInfinityPoint && Fp.is0(p.X) && Fp.eql(p.Y, Fp.ONE) && Fp.is0(p.Z)) return;
772
+ throw new Error('bad point: ZERO');
773
+ }
774
+ if (validityCache.has(p)) return;
775
+ // Some 3rd-party test vectors require different wording between here & `fromCompressedHex`
776
+ const { x, y } = p.toAffine();
777
+ if (!Fp.isValid(x) || !Fp.isValid(y)) throw new Error('bad point: x or y not field elements');
778
+ if (!isValidXY(x, y)) throw new Error('bad point: equation left != right');
779
+ if (!p.isTorsionFree()) throw new Error('bad point: not in prime-order subgroup');
780
+ validityCache.add(p);
781
+ }
782
+
783
+ hasEvenY(): boolean {
784
+ const { y } = this.toAffine();
785
+ if (!Fp.isOdd) throw new Error("Field doesn't support isOdd");
786
+ return !Fp.isOdd(y);
787
+ }
788
+
789
+ /** Compare one point to another. */
790
+ equals(other: WeierstrassPoint<T>): boolean {
791
+ aprjpoint(other);
792
+ const { X: X1, Y: Y1, Z: Z1 } = this;
793
+ const { X: X2, Y: Y2, Z: Z2 } = other;
794
+ const U1 = Fp.eql(Fp.mul(X1, Z2), Fp.mul(X2, Z1));
795
+ const U2 = Fp.eql(Fp.mul(Y1, Z2), Fp.mul(Y2, Z1));
796
+ return U1 && U2;
797
+ }
798
+
799
+ /** Flips point to one corresponding to (x, -y) in Affine coordinates. */
800
+ negate(): Point {
801
+ return new Point(this.X, Fp.neg(this.Y), this.Z);
802
+ }
803
+
804
+ // Renes-Costello-Batina exception-free doubling formula.
805
+ // There is 30% faster Jacobian formula, but it is not complete.
806
+ // https://eprint.iacr.org/2015/1060, algorithm 3
807
+ // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
808
+ double() {
809
+ const { X: X1, Y: Y1, Z: Z1 } = this;
810
+ let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore
811
+ let t0 = Fp.mul(X1, X1); // step 1
812
+ let t1 = Fp.mul(Y1, Y1);
813
+ let t2 = Fp.mul(Z1, Z1);
814
+ let t3 = Fp.mul(X1, Y1);
815
+ t3 = Fp.add(t3, t3); // step 5
816
+ Z3 = Fp.mul(X1, Z1);
817
+ Z3 = Fp.add(Z3, Z3);
818
+ X3 = mulA(Z3);
819
+ Y3 = Fp.mul(b3, t2);
820
+ Y3 = Fp.add(X3, Y3); // step 10
821
+ X3 = Fp.sub(t1, Y3);
822
+ Y3 = Fp.add(t1, Y3);
823
+ Y3 = Fp.mul(X3, Y3);
824
+ X3 = Fp.mul(t3, X3);
825
+ Z3 = Fp.mul(b3, Z3); // step 15
826
+ t2 = mulA(t2);
827
+ t3 = Fp.sub(t0, t2);
828
+ t3 = mulA(t3);
829
+ t3 = Fp.add(t3, Z3);
830
+ Z3 = Fp.add(t0, t0); // step 20
831
+ t0 = Fp.add(Z3, t0);
832
+ t0 = Fp.add(t0, t2);
833
+ t0 = Fp.mul(t0, t3);
834
+ Y3 = Fp.add(Y3, t0);
835
+ t2 = Fp.mul(Y1, Z1); // step 25
836
+ t2 = Fp.add(t2, t2);
837
+ t0 = Fp.mul(t2, t3);
838
+ X3 = Fp.sub(X3, t0);
839
+ Z3 = Fp.mul(t2, t1);
840
+ Z3 = Fp.add(Z3, Z3); // step 30
841
+ Z3 = Fp.add(Z3, Z3);
842
+ return new Point(X3, Y3, Z3);
843
+ }
844
+
845
+ // Renes-Costello-Batina exception-free addition formula.
846
+ // There is 30% faster Jacobian formula, but it is not complete.
847
+ // https://eprint.iacr.org/2015/1060, algorithm 1
848
+ // Cost: 12M + 0S + 3*a + 3*b3 + 23add.
849
+ add(other: WeierstrassPoint<T>): Point {
850
+ aprjpoint(other);
851
+ const { X: X1, Y: Y1, Z: Z1 } = this;
852
+ const { X: X2, Y: Y2, Z: Z2 } = other;
853
+ let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore
854
+ let t0 = Fp.mul(X1, X2); // step 1
855
+ let t1 = Fp.mul(Y1, Y2);
856
+ let t2 = Fp.mul(Z1, Z2);
857
+ let t3 = Fp.add(X1, Y1);
858
+ let t4 = Fp.add(X2, Y2); // step 5
859
+ t3 = Fp.mul(t3, t4);
860
+ t4 = Fp.add(t0, t1);
861
+ t3 = Fp.sub(t3, t4);
862
+ t4 = Fp.add(X1, Z1);
863
+ let t5 = Fp.add(X2, Z2); // step 10
864
+ t4 = Fp.mul(t4, t5);
865
+ t5 = Fp.add(t0, t2);
866
+ t4 = Fp.sub(t4, t5);
867
+ t5 = Fp.add(Y1, Z1);
868
+ X3 = Fp.add(Y2, Z2); // step 15
869
+ t5 = Fp.mul(t5, X3);
870
+ X3 = Fp.add(t1, t2);
871
+ t5 = Fp.sub(t5, X3);
872
+ Z3 = mulA(t4);
873
+ X3 = Fp.mul(b3, t2); // step 20
874
+ Z3 = Fp.add(X3, Z3);
875
+ X3 = Fp.sub(t1, Z3);
876
+ Z3 = Fp.add(t1, Z3);
877
+ Y3 = Fp.mul(X3, Z3);
878
+ t1 = Fp.add(t0, t0); // step 25
879
+ t1 = Fp.add(t1, t0);
880
+ t2 = mulA(t2);
881
+ t4 = Fp.mul(b3, t4);
882
+ t1 = Fp.add(t1, t2);
883
+ t2 = Fp.sub(t0, t2); // step 30
884
+ t2 = mulA(t2);
885
+ t4 = Fp.add(t4, t2);
886
+ t0 = Fp.mul(t1, t4);
887
+ Y3 = Fp.add(Y3, t0);
888
+ t0 = Fp.mul(t5, t4); // step 35
889
+ X3 = Fp.mul(t3, X3);
890
+ X3 = Fp.sub(X3, t0);
891
+ t0 = Fp.mul(t3, t1);
892
+ Z3 = Fp.mul(t5, Z3);
893
+ Z3 = Fp.add(Z3, t0); // step 40
894
+ return new Point(X3, Y3, Z3);
895
+ }
896
+
897
+ subtract(other: WeierstrassPoint<T>) {
898
+ // Validate before calling `negate()` so wrong inputs fail with the point guard
899
+ // instead of leaking a foreign `negate()` error.
900
+ aprjpoint(other);
901
+ return this.add(other.negate());
902
+ }
903
+
904
+ is0(): boolean {
905
+ return this.equals(Point.ZERO);
906
+ }
907
+
908
+ /**
909
+ * Constant time multiplication.
910
+ * Uses precomputed tables (signed fixed-window wNAF) when available.
911
+ * Uses scalar blinding and avoids endomorphism splitting in the secret-scalar path.
912
+ * @param scalar - by which the point would be multiplied
913
+ * @returns New point
914
+ */
915
+ multiply(scalar: bigint): Point {
916
+ // Keep the subgroup-scalar contract strict instead of reducing 0 / n to ZERO.
917
+ // In key/signature-style callers, those values usually mean broken hash/scalar plumbing,
918
+ // and failing closed is safer than silently producing the identity point.
919
+ if (!Fn.isValidNot0(scalar)) throw new RangeError('invalid scalar: out of range'); // 0 is invalid
920
+ const { p, f } = wnaf.mulSecret(this, scalar, cofactor, normalize);
921
+ return normalize([p, f])[0];
922
+ }
923
+
924
+ /**
925
+ * Non-constant-time multiplication. Uses width-4 wNAF with GLV endomorphism splitting
926
+ * when available (two half-width scalars sharing one halved doubling chain).
927
+ * It's faster, but should only be used when you don't care about
928
+ * an exposed secret key e.g. sig verification, which works over *public* keys.
929
+ */
930
+ multiplyUnsafe(scalar: bigint): Point {
931
+ const p = this as Point;
932
+ const sc = scalar;
933
+ // Public-scalar callers may need 0, but n and larger values stay rejected here too.
934
+ // Reducing them mod n would turn bad caller input into an accidental identity point.
935
+ if (!Fn.isValid(sc)) throw new RangeError('invalid scalar: out of range'); // 0 is valid
936
+ if (sc === _0n || p.is0()) return Point.ZERO;
937
+ if (sc === _1n) return p;
938
+ if (wnaf.hasWindowSize(this)) return wnaf.mulUnsafe(p, sc, normalize); // precomputes
939
+ const points: Point[] = [];
940
+ const scalars: bigint[] = [];
941
+ pushWnafPair(points, scalars, p, sc);
942
+ return mulAddUnsafe(Point, points, scalars);
943
+ }
944
+
945
+ /**
946
+ * Non-constant-time double-scalar multiplication `a⋅this + b⋅other` (Strauss–Shamir).
947
+ * Both walks share one doubling chain via {@link mulAddUnsafe}, and GLV endomorphism
948
+ * (when available) halves the chain again by splitting each scalar into two half-width
949
+ * parts. Used by ECDSA verification and public-key recovery for `R = u1⋅G + u2⋅P`.
950
+ * Only for public scalars.
951
+ */
952
+ mulAddUnsafe(a: bigint, other: Point, b: bigint): Point {
953
+ aprjpoint(other);
954
+ const points: Point[] = [];
955
+ const scalars: bigint[] = [];
956
+ pushWnafPair(points, scalars, this as Point, a);
957
+ pushWnafPair(points, scalars, other, b);
958
+ return mulAddUnsafe(Point, points, scalars);
959
+ }
960
+
961
+ /**
962
+ * Converts Projective point to affine (x, y) coordinates.
963
+ * (X, Y, Z) ∋ (x=X/Z, y=Y/Z).
964
+ * @param invertedZ - Z^-1 (inverted zero) - optional, precomputation is useful for invertBatch
965
+ */
966
+ toAffine(invertedZ?: T): AffinePoint<T> {
967
+ const p = this;
968
+ let iz = invertedZ;
969
+ if (iz != null && !Fp.isValid(iz))
970
+ throw new RangeError('"invertedZ" expected valid field element');
971
+ const { X, Y, Z } = p;
972
+ // Fast-path for normalized points
973
+ if (Fp.eql(Z, Fp.ONE)) return { x: X, y: Y };
974
+ const is0 = p.is0();
975
+ // If invZ was 0, we return zero point. However we still want to execute
976
+ // all operations, so we replace invZ with a random number, 1.
977
+ if (iz == null) iz = is0 ? Fp.ONE : Fp.inv(Z);
978
+ const x = Fp.mul(X, iz);
979
+ const y = Fp.mul(Y, iz);
980
+ const zz = Fp.mul(Z, iz);
981
+ if (is0) return { x: Fp.ZERO, y: Fp.ZERO };
982
+ if (!Fp.eql(zz, Fp.ONE)) throw new Error('invZ was invalid');
983
+ return { x, y };
984
+ }
985
+
986
+ /**
987
+ * Checks whether Point is free of torsion elements (is in prime subgroup).
988
+ * Always torsion-free for cofactor=1 curves.
989
+ */
990
+ isTorsionFree(): boolean {
991
+ if (cofactor === _1n) return true;
992
+ if (isTorsionFree) return isTorsionFree(Point, this);
993
+ // unsafe() will use the uncached wNAF path internally, since CURVE_ORDER >= Fn.ORDER
994
+ return wnaf.mulUnsafe(this, CURVE_ORDER).is0();
995
+ }
996
+
997
+ clearCofactor(): Point {
998
+ if (cofactor === _1n) return this; // Fast-path
999
+ if (clearCofactor) return clearCofactor(Point, this) as Point;
1000
+ // Default fallback assumes the cofactor fits the usual subgroup-scalar
1001
+ // multiplyUnsafe() contract. Curves with larger / structured cofactors
1002
+ // should define a clearCofactor override anyway (e.g. psi/Frobenius maps).
1003
+ return this.multiplyUnsafe(cofactor);
1004
+ }
1005
+
1006
+ isSmallOrder(): boolean {
1007
+ if (cofactor === _1n) return this.is0(); // Fast-path
1008
+ return this.clearCofactor().is0();
1009
+ }
1010
+
1011
+ toBytes(isCompressed = true): TRet<Uint8Array> {
1012
+ abool(isCompressed, 'isCompressed');
1013
+ // assertValidity() covers on-curve and subgroup membership. The encoder below repeats the
1014
+ // infinity check rather than relying on this call, so it stays correct for any caller.
1015
+ this.assertValidity();
1016
+ return encodePoint(Point, this, isCompressed);
1017
+ }
1018
+
1019
+ toHex(isCompressed = true): string {
1020
+ return bytesToHex(this.toBytes(isCompressed));
1021
+ }
1022
+
1023
+ toString() {
1024
+ return `<Point ${this.is0() ? 'ZERO' : this.toHex()}>`;
1025
+ }
1026
+ }
1027
+ const normalize = (points: Point[]) => normalizeZ(Point, points);
1028
+ const wnaf = new ScalarMultiplier(Point, randomBytes);
1029
+ // Enable W=6 wNAF precomputes. Slows down first publicKey computation.
1030
+ // Disable for tiny toy curves, with scalar fields < 6 bits.
1031
+ if (wnaf.bits >= 6) Point.BASE.precompute(6);
1032
+ Object.freeze(Point.prototype);
1033
+ Object.freeze(Point);
1034
+ return Point;
1035
+ }
1036
+
1037
+ /** Parsed ECDSA signature with helpers for recovery and re-encoding. */
1038
+ export interface ECDSASignature {
1039
+ /** Signature component `r`. */
1040
+ readonly r: bigint;
1041
+ /** Signature component `s`. */
1042
+ readonly s: bigint;
1043
+ /** Optional recovery bit for recoverable signatures. */
1044
+ readonly recovery?: number;
1045
+ /**
1046
+ * Return a copy of the signature with a recovery bit attached.
1047
+ * @param recovery - Recovery bit to attach.
1048
+ * @returns Signature with an attached recovery bit.
1049
+ */
1050
+ addRecoveryBit(recovery: number): ECDSASignature & { readonly recovery: number };
1051
+ /**
1052
+ * Check whether the signature uses the high-S half-order.
1053
+ * @returns Whether the signature uses the high-S half-order.
1054
+ */
1055
+ hasHighS(): boolean;
1056
+ /**
1057
+ * Recover the public key from the hashed message and recovery bit.
1058
+ * @param messageHash - Hashed message bytes.
1059
+ * @returns Recovered public-key point.
1060
+ */
1061
+ recoverPublicKey(messageHash: TArg<Uint8Array>): WeierstrassPoint<bigint>;
1062
+ /**
1063
+ * Encode the signature into bytes.
1064
+ * @param format - Signature encoding to produce.
1065
+ * @returns Encoded signature bytes.
1066
+ */
1067
+ toBytes(format?: string): TRet<Uint8Array>;
1068
+ /**
1069
+ * Encode the signature into hex.
1070
+ * @param format - Signature encoding to produce.
1071
+ * @returns Encoded signature hex.
1072
+ */
1073
+ toHex(format?: string): string;
1074
+ }
1075
+ /** Constructor and decoding helpers for ECDSA signatures. */
1076
+ export type ECDSASignatureCons = {
1077
+ /** Create a signature from `r`, `s`, and an optional recovery bit. */
1078
+ new (r: bigint, s: bigint, recovery?: number): ECDSASignature;
1079
+ /**
1080
+ * Decode a signature from bytes.
1081
+ * @param bytes - Encoded signature bytes.
1082
+ * @param format - Signature encoding to parse.
1083
+ * @returns Parsed signature.
1084
+ */
1085
+ fromBytes(bytes: TArg<Uint8Array>, format?: ECDSASignatureFormat): ECDSASignature;
1086
+ /**
1087
+ * Decode a signature from hex.
1088
+ * @param hex - Encoded signature hex.
1089
+ * @param format - Signature encoding to parse.
1090
+ * @returns Parsed signature.
1091
+ */
1092
+ fromHex(hex: string, format?: ECDSASignatureFormat): ECDSASignature;
1093
+ };
1094
+
1095
+ // Points start with byte 0x02 when y is even; otherwise 0x03
1096
+ function pprefix(hasEvenY: boolean): TRet<Uint8Array> {
1097
+ return Uint8Array.of(hasEvenY ? 0x02 : 0x03) as TRet<Uint8Array>;
1098
+ }
1099
+
1100
+ function getWLengths<T>(Fp: TArg<IField<T>>, Fn: TArg<IField<bigint>>) {
1101
+ return {
1102
+ secretKey: Fn.BYTES,
1103
+ publicKey: 1 + Fp.BYTES,
1104
+ publicKeyUncompressed: 1 + 2 * Fp.BYTES,
1105
+ publicKeyHasPrefix: true,
1106
+ // Raw compact `(r || s)` signature width; DER and recovered signatures use
1107
+ // different lengths outside this helper.
1108
+ signature: 2 * Fn.BYTES,
1109
+ };
1110
+ }
1111
+
1112
+ /**
1113
+ * Sometimes users only need getPublicKey, getSharedSecret, and secret key handling.
1114
+ * This helper ensures no signature functionality is present. Less code, smaller bundle size.
1115
+ * @param Point - Weierstrass point constructor.
1116
+ * @param ecdhOpts - Optional randomness helpers:
1117
+ * - `randomBytes` (optional): Optional RNG override.
1118
+ * @returns ECDH helper namespace.
1119
+ * @example
1120
+ * Sometimes users only need getPublicKey, getSharedSecret, and secret key handling.
1121
+ *
1122
+ * ```ts
1123
+ * import { ecdh } from '@noble/curves/abstract/weierstrass.js';
1124
+ * import { p256 } from '@noble/curves/nist.js';
1125
+ * const dh = ecdh(p256.Point);
1126
+ * const alice = dh.keygen();
1127
+ * const shared = dh.getSharedSecret(alice.secretKey, alice.publicKey);
1128
+ * ```
1129
+ */
1130
+ export function ecdh(
1131
+ Point: WeierstrassPointCons<bigint>,
1132
+ ecdhOpts: TArg<{ randomBytes?: (bytesLength?: number) => TRet<Uint8Array> }> = {}
1133
+ ): ECDH {
1134
+ validatePointCons(Point);
1135
+ const { Fn } = Point;
1136
+ const randomBytes_ = ecdhOpts.randomBytes === undefined ? wcRandomBytes : ecdhOpts.randomBytes;
1137
+ // Keep the advertised seed length aligned with mapHashToField(), which keeps a hard 16-byte
1138
+ // minimum even on toy curves.
1139
+ const lengths = Object.assign(getWLengths(Point.Fp, Fn), {
1140
+ seed: Math.max(getMinHashLength(Fn.ORDER), 16),
1141
+ });
1142
+
1143
+ function isValidSecretKey(secretKey: TArg<Uint8Array>) {
1144
+ try {
1145
+ const num = Fn.fromBytes(secretKey);
1146
+ return Fn.isValidNot0(num);
1147
+ } catch (error) {
1148
+ return false;
1149
+ }
1150
+ }
1151
+
1152
+ function isValidPublicKey(publicKey: TArg<Uint8Array>, isCompressed?: boolean): boolean {
1153
+ const { publicKey: comp, publicKeyUncompressed } = lengths;
1154
+ try {
1155
+ const l = publicKey.length;
1156
+ if (isCompressed === true && l !== comp) return false;
1157
+ if (isCompressed === false && l !== publicKeyUncompressed) return false;
1158
+ // SEC 1 §3.2.2: the identity is never a valid public key, even on curves whose codec
1159
+ // can decode it.
1160
+ return !Point.fromBytes(publicKey).is0();
1161
+ } catch (error) {
1162
+ return false;
1163
+ }
1164
+ }
1165
+
1166
+ /**
1167
+ * Produces cryptographically secure secret key from random of size
1168
+ * (groupLen + ceil(groupLen / 2)) with modulo bias being negligible.
1169
+ */
1170
+ function randomSecretKey(seed?: TArg<Uint8Array>): TRet<Uint8Array> {
1171
+ seed = seed === undefined ? randomBytes_(lengths.seed) : seed;
1172
+ return mapHashToField(abytes(seed, lengths.seed, 'seed'), Fn.ORDER) as TRet<Uint8Array>;
1173
+ }
1174
+
1175
+ /**
1176
+ * Computes public key for a secret key. Checks for validity of the secret key.
1177
+ * @param isCompressed - whether to return compact (default), or full key
1178
+ * @returns Public key, full when isCompressed=false; short when isCompressed=true
1179
+ */
1180
+ function getPublicKey(secretKey: TArg<Uint8Array>, isCompressed = true): TRet<Uint8Array> {
1181
+ return Point.BASE.multiply(Fn.fromBytes(secretKey)).toBytes(isCompressed);
1182
+ }
1183
+
1184
+ /**
1185
+ * Quick and dirty check for item being public key. Does not validate hex, or being on-curve.
1186
+ */
1187
+ function isProbPub(item: TArg<Uint8Array>): boolean | undefined {
1188
+ const { secretKey, publicKey, publicKeyUncompressed } = lengths;
1189
+ const allowedLengths = (Fn as { _lengths?: readonly number[] })._lengths;
1190
+ if (!isBytes(item)) return undefined;
1191
+ const l = abytes(item, undefined, 'key').length;
1192
+ const isPub = l === publicKey || l === publicKeyUncompressed;
1193
+ const isSec = l === secretKey || !!allowedLengths?.includes(l);
1194
+ // P-521 accepts both 65- and 66-byte secret keys, so overlapping lengths stay ambiguous.
1195
+ if (isPub && isSec) return undefined;
1196
+ return isPub;
1197
+ }
1198
+
1199
+ /**
1200
+ * ECDH (Elliptic Curve Diffie Hellman).
1201
+ * Computes encoded shared point from secret key A and public key B.
1202
+ * Checks: 1) secret key validity 2) shared key is on-curve.
1203
+ * Does NOT hash the result or expose the SEC 1 x-coordinate-only `z`.
1204
+ * Returns the encoded shared point on purpose: callers that need `x_P`
1205
+ * can derive it from the encoded point, but `x_P` alone cannot recover the
1206
+ * point/parity back.
1207
+ * This helper only exposes the fully validated public-key path, not cofactor DH.
1208
+ * @param isCompressed - whether to return compact (default), or full key
1209
+ * @returns shared point encoding
1210
+ */
1211
+ function getSharedSecret(
1212
+ secretKeyA: TArg<Uint8Array>,
1213
+ publicKeyB: TArg<Uint8Array>,
1214
+ isCompressed = true
1215
+ ): TRet<Uint8Array> {
1216
+ if (isProbPub(secretKeyA) === true) throw new Error('first arg must be private key');
1217
+ if (isProbPub(publicKeyB) === false) throw new Error('second arg must be public key');
1218
+ const s = Fn.fromBytes(secretKeyA);
1219
+ const b = Point.fromBytes(publicKeyB); // checks for being on-curve
1220
+ if (b.is0()) throw new Error('invalid public key: point at infinity');
1221
+ return b.multiply(s).toBytes(isCompressed);
1222
+ }
1223
+
1224
+ const utils = {
1225
+ isValidSecretKey,
1226
+ isValidPublicKey,
1227
+ randomSecretKey,
1228
+ };
1229
+ const keygen = createKeygen(randomSecretKey, getPublicKey);
1230
+ Object.freeze(utils);
1231
+ Object.freeze(lengths);
1232
+
1233
+ return Object.freeze({ getPublicKey, getSharedSecret, keygen, Point, utils, lengths });
1234
+ }
1235
+
1236
+ /**
1237
+ * Creates ECDSA signing interface for given elliptic curve `Point` and `hash` function.
1238
+ *
1239
+ * @param Point - created using {@link weierstrass} function
1240
+ * @param hash - used for 1) message prehash-ing 2) k generation in `sign`, using hmac_drbg(hash)
1241
+ * @param ecdsaOpts - rarely needed, see {@link ECDSAOpts}:
1242
+ * - `lowS`: Default low-S policy.
1243
+ * - `hmac`: HMAC implementation used by RFC6979 DRBG.
1244
+ * - `randomBytes`: Optional RNG override.
1245
+ * - `bits2int`: Optional hash-to-int conversion override.
1246
+ * - `bits2int_modN`: Optional hash-to-int-mod-n conversion override.
1247
+ *
1248
+ * @returns ECDSA helper namespace.
1249
+ * @example
1250
+ * Create an ECDSA signer/verifier bundle for one curve implementation.
1251
+ *
1252
+ * ```ts
1253
+ * import { ecdsa } from '@noble/curves/abstract/weierstrass.js';
1254
+ * import { p256 } from '@noble/curves/nist.js';
1255
+ * import { sha256 } from '@noble/hashes/sha2.js';
1256
+ * const p256ecdsa = ecdsa(p256.Point, sha256);
1257
+ * const { secretKey, publicKey } = p256ecdsa.keygen();
1258
+ * const msg = new TextEncoder().encode('hello noble');
1259
+ * const sig = p256ecdsa.sign(msg, secretKey);
1260
+ * const isValid = p256ecdsa.verify(sig, msg, publicKey);
1261
+ * ```
1262
+ */
1263
+ export function ecdsa(
1264
+ Point: WeierstrassPointCons<bigint>,
1265
+ hash: TArg<CHash>,
1266
+ ecdsaOpts: TArg<ECDSAOpts> = {}
1267
+ ): ECDSA {
1268
+ validatePointCons(Point);
1269
+ // Custom hash / bits2int hooks are treated as pure functions over validated caller-owned bytes.
1270
+ const hash_ = hash as CHash;
1271
+ ahash(hash_);
1272
+ validateObject(
1273
+ ecdsaOpts,
1274
+ {},
1275
+ {
1276
+ hmac: 'function',
1277
+ lowS: 'boolean',
1278
+ randomBytes: 'function',
1279
+ bits2int: 'function',
1280
+ bits2int_modN: 'function',
1281
+ }
1282
+ );
1283
+ const opts = Object.assign({}, ecdsaOpts) as ECDSAOpts;
1284
+ const randomBytes = opts.randomBytes === undefined ? wcRandomBytes : opts.randomBytes;
1285
+ const hmac =
1286
+ opts.hmac === undefined
1287
+ ? (key: TArg<Uint8Array>, msg: TArg<Uint8Array>) => nobleHmac(hash_, key, msg)
1288
+ : (opts.hmac as HmacFn);
1289
+
1290
+ const { Fp, Fn } = Point;
1291
+ const { ORDER: CURVE_ORDER, BITS: fnBits } = Fn;
1292
+ // Nonce-inversion blinding in k2sig draws `getMinHashLength(n)` bytes per sign. Probe the RNG
1293
+ // once (see {@link probeRandomBytes}, shared with ScalarMultiplier): in environments without
1294
+ // working randomness, signing downgrades to Fermat inversion (invertCt) instead of throwing on
1295
+ // every sign(). The shape of returned bytes is still validated (by mapHashToField) on every
1296
+ // blinded call, where breakage fails closed.
1297
+ const blindLength = getMinHashLength(CURVE_ORDER);
1298
+ const csprng = probeRandomBytes(randomBytes, blindLength);
1299
+ const { keygen, getPublicKey, getSharedSecret, utils, lengths } = ecdh(Point, opts);
1300
+ const defaultSigOpts: Required<ECDSASignOpts> = {
1301
+ prehash: true,
1302
+ lowS: typeof opts.lowS === 'boolean' ? opts.lowS : true,
1303
+ format: 'compact' as ECDSASignatureFormat,
1304
+ extraEntropy: false,
1305
+ };
1306
+ // SEC 1 4.1.6 public-key recovery tries x = r + jn for j = 0..h. Our recovered-signature
1307
+ // format only stores one overflow bit, so it can only distinguish q.x = r from q.x = r + n.
1308
+ // A third lift would have the form q.x = r + 2n. Since valid ECDSA r is in 1..n-1, the
1309
+ // smallest such lift is 1 + 2n, not 2n.
1310
+ const hasLargeRecoveryLifts = CURVE_ORDER * _2n + _1n < Fp.ORDER;
1311
+
1312
+ function isBiggerThanHalfOrder(number: bigint) {
1313
+ const HALF = CURVE_ORDER >> _1n;
1314
+ return number > HALF;
1315
+ }
1316
+ function validateRS(title: string, num: bigint): bigint {
1317
+ if (!Fn.isValidNot0(num))
1318
+ throw new Error(`invalid signature ${title}: out of range 1..Point.Fn.ORDER`);
1319
+ return num;
1320
+ }
1321
+ function assertFieldSignIsSupported(): void {
1322
+ if (!Fp.isOdd) throw new Error("Field doesn't support isOdd");
1323
+ }
1324
+ // Recovery id of an affine point (x, y) whose x reduces to signature `r` mod n:
1325
+ // bit 0 = y parity, bit 1 = x overflowed the group order (x = r + n).
1326
+ function getRecoveryBit(x: bigint, y: bigint, r: bigint): number {
1327
+ assertFieldSignIsSupported();
1328
+ return (x === r ? 0 : 2) | Number(Fp.isOdd!(y));
1329
+ }
1330
+ function assertRecoverableCurve(): void {
1331
+ // ECDSA recovery only supports curves where the current recovery id can distinguish
1332
+ // q.x = r and q.x = r + n; larger lifts may need additional `r + n*i` branches.
1333
+ // SEC 1 4.1.6 recovers candidates via x = r + jn, but this format only encodes j = 0 or 1.
1334
+ // The next possible candidate is q.x = r + 2n, and its smallest valid value is 1 + 2n.
1335
+ // To easily get i, we either need to:
1336
+ // a. increase amount of valid recid values (4, 5...); OR
1337
+ // b. prohibit recovered signatures for those curves.
1338
+ if (hasLargeRecoveryLifts)
1339
+ throw new Error('"recovered" sig type is not supported for cofactor >2 curves');
1340
+ }
1341
+ function validateSigLength(bytes: TArg<Uint8Array>, format: ECDSASignatureFormat) {
1342
+ validateSigFormat(format);
1343
+ const size = lengths.signature!;
1344
+ const sizer = format === 'compact' ? size : format === 'recovered' ? size + 1 : undefined;
1345
+ return abytes(bytes, sizer);
1346
+ }
1347
+
1348
+ /**
1349
+ * ECDSA signature with its (r, s) properties. Supports compact, recovered & DER representations.
1350
+ */
1351
+ class Signature implements ECDSASignature {
1352
+ readonly r: bigint;
1353
+ readonly s: bigint;
1354
+ readonly recovery?: number;
1355
+
1356
+ constructor(r: bigint, s: bigint, recovery?: number) {
1357
+ this.r = validateRS('r', r); // r in [1..N-1];
1358
+ this.s = validateRS('s', s); // s in [1..N-1];
1359
+ if (recovery != null) {
1360
+ assertRecoverableCurve();
1361
+ if (![0, 1, 2, 3].includes(recovery)) throw new Error('invalid recovery id');
1362
+ this.recovery = recovery;
1363
+ }
1364
+ Object.freeze(this);
1365
+ }
1366
+
1367
+ static fromBytes(
1368
+ bytes: TArg<Uint8Array>,
1369
+ format: ECDSASignatureFormat = defaultSigOpts.format
1370
+ ): Signature {
1371
+ validateSigLength(bytes, format);
1372
+ let recid: number | undefined;
1373
+ if (format === 'der') {
1374
+ // Valid scalar INTEGERs use at most Fn.BYTES plus one DER sign-padding byte. Keep the
1375
+ // total bound conservative so malformed inputs are rejected before parsing any INTEGER.
1376
+ if (bytes.length > 2 * Fn.BYTES + 16)
1377
+ throw new DER.Err('invalid signature: DER signature too long');
1378
+ const { r, s } = DER.toSig(abytes(bytes), Fn.BYTES + 1);
1379
+ return new Signature(r, s);
1380
+ }
1381
+ if (format === 'recovered') {
1382
+ recid = bytes[0];
1383
+ format = 'compact';
1384
+ bytes = bytes.subarray(1);
1385
+ }
1386
+ const L = lengths.signature! / 2;
1387
+ const r = bytes.subarray(0, L);
1388
+ const s = bytes.subarray(L, L * 2);
1389
+ return new Signature(Fn.fromBytes(r), Fn.fromBytes(s), recid);
1390
+ }
1391
+
1392
+ static fromHex(hex: string, format?: ECDSASignatureFormat) {
1393
+ return this.fromBytes(hexToBytes(hex), format);
1394
+ }
1395
+
1396
+ private assertRecovery(): number {
1397
+ const { recovery } = this;
1398
+ if (recovery == null) throw new Error('invalid recovery id: must be present');
1399
+ return recovery;
1400
+ }
1401
+
1402
+ addRecoveryBit(recovery: number): RecoveredSignature {
1403
+ return new Signature(this.r, this.s, recovery) as RecoveredSignature;
1404
+ }
1405
+
1406
+ // Unlike the top-level helper below, this method expects a digest that has
1407
+ // already been hashed to the curve's message representative.
1408
+ recoverPublicKey(messageHash: TArg<Uint8Array>): WeierstrassPoint<bigint> {
1409
+ const { r, s } = this;
1410
+ const recovery = this.assertRecovery();
1411
+ const radj = recovery === 2 || recovery === 3 ? r + CURVE_ORDER : r;
1412
+ if (!Fp.isValid(radj)) throw new Error('invalid recovery id: sig.r+curve.n != R.x');
1413
+ const x = Fp.toBytes(radj);
1414
+ const R = Point.fromBytes(concatBytes(pprefix((recovery & 1) === 0), x));
1415
+ const ir = Fn.inv(radj); // r^-1
1416
+ const h = bits2int_modN(abytes(messageHash, undefined, 'msgHash')); // Truncate hash
1417
+ const u1 = Fn.create(-h * ir); // -hr^-1
1418
+ const u2 = Fn.create(s * ir); // sr^-1
1419
+ // (sr^-1)R-(hr^-1)G = -(hr^-1)G + (sr^-1). unsafe is fine: there is no private data.
1420
+ const Q = Point.BASE.mulAddUnsafe(u1, R, u2);
1421
+ if (Q.is0()) throw new Error('invalid recovery: point at infinify');
1422
+ Q.assertValidity();
1423
+ return Q;
1424
+ }
1425
+
1426
+ // Signatures should be low-s, to prevent malleability.
1427
+ hasHighS(): boolean {
1428
+ return isBiggerThanHalfOrder(this.s);
1429
+ }
1430
+
1431
+ toBytes(format: ECDSASignatureFormat = defaultSigOpts.format): TRet<Uint8Array> {
1432
+ validateSigFormat(format);
1433
+ if (format === 'der') return hexToBytes(DER.hexFromSig(this)) as TRet<Uint8Array>;
1434
+ const { r, s } = this;
1435
+ const rb = Fn.toBytes(r);
1436
+ const sb = Fn.toBytes(s);
1437
+ if (format === 'recovered') {
1438
+ assertRecoverableCurve();
1439
+ return concatBytes(Uint8Array.of(this.assertRecovery()), rb, sb) as TRet<Uint8Array>;
1440
+ }
1441
+ return concatBytes(rb, sb) as TRet<Uint8Array>;
1442
+ }
1443
+
1444
+ toHex(format?: ECDSASignatureFormat) {
1445
+ return bytesToHex(this.toBytes(format));
1446
+ }
1447
+ }
1448
+ type RecoveredSignature = Signature & { recovery: number };
1449
+ Object.freeze(Signature.prototype);
1450
+ Object.freeze(Signature);
1451
+
1452
+ // RFC6979: ensure ECDSA msg is X bytes and < N. RFC suggests optional truncating via bits2octets.
1453
+ // FIPS 186-4 4.6 suggests the leftmost min(nBitLen, outLen) bits, which matches bits2int.
1454
+ // bits2int can produce res>N, we can do mod(res, N) since the bitLen is the same.
1455
+ // int2octets can't be used; pads small msgs with 0: unacceptatble for trunc as per RFC vectors
1456
+ const bits2int: (bytes: TArg<Uint8Array>) => bigint =
1457
+ opts.bits2int === undefined
1458
+ ? function bits2int_def(bytes: TArg<Uint8Array>): bigint {
1459
+ // Our custom check "just in case", for protection against DoS
1460
+ if (bytes.length > 8192) throw new Error('input is too large');
1461
+ // For curves with nBitLength % 8 !== 0: bits2octets(bits2octets(m)) !== bits2octets(m)
1462
+ // for some cases, since bytes.length * 8 is not actual bitLength.
1463
+ const num = bytesToNumberBE(bytes); // check for == u8 done here
1464
+ const delta = bytes.length * 8 - fnBits; // truncate to nBitLength leftmost bits
1465
+ return delta > 0 ? num >> BigInt(delta) : num;
1466
+ }
1467
+ : (opts.bits2int as (bytes: TArg<Uint8Array>) => bigint);
1468
+ const bits2int_modN: (bytes: TArg<Uint8Array>) => bigint =
1469
+ opts.bits2int_modN === undefined
1470
+ ? function bits2int_modN_def(bytes: TArg<Uint8Array>): bigint {
1471
+ return Fn.create(bits2int(bytes)); // can't use bytesToNumberBE here
1472
+ }
1473
+ : (opts.bits2int_modN as (bytes: TArg<Uint8Array>) => bigint);
1474
+ const ORDER_MASK = bitMask(fnBits);
1475
+ // Pads output with zero as per spec.
1476
+ /** Converts to bytes. Checks if num in `[0..ORDER_MASK-1]` e.g.: `[0..2^256-1]`. */
1477
+ function int2octets(num: bigint): TRet<Uint8Array> {
1478
+ aInRange('num < 2^' + fnBits, num, _0n, ORDER_MASK);
1479
+ return Fn.toBytes(num) as TRet<Uint8Array>;
1480
+ }
1481
+
1482
+ function validateMsgAndHash(message: TArg<Uint8Array>, prehash: boolean): TRet<Uint8Array> {
1483
+ abytes(message, undefined, 'message');
1484
+ return (
1485
+ prehash ? abytes(hash_(message), undefined, 'prehashed message') : message
1486
+ ) as TRet<Uint8Array>;
1487
+ }
1488
+
1489
+ /**
1490
+ * Steps A, D of RFC6979 3.2.
1491
+ * Creates RFC6979 seed; converts msg/privKey to numbers.
1492
+ * Used only in sign, not in verify.
1493
+ *
1494
+ * Warning: we cannot assume here that message has same amount of bytes as curve order,
1495
+ * this will be invalid at least for P521. Also it can be bigger for P224 + SHA256.
1496
+ */
1497
+ function prepSig(
1498
+ message: TArg<Uint8Array>,
1499
+ secretKey: TArg<Uint8Array>,
1500
+ opts: TArg<ECDSASignOpts>
1501
+ ) {
1502
+ const { lowS, prehash, extraEntropy } = validateSigOpts(opts, defaultSigOpts);
1503
+ message = validateMsgAndHash(message, prehash); // RFC6979 3.2 A: h1 = H(m)
1504
+ // We can't later call bits2octets, since nested bits2int is broken for curves
1505
+ // with fnBits % 8 !== 0. Because of that, we unwrap it here as int2octets call.
1506
+ // const bits2octets = (bits) => int2octets(bits2int_modN(bits))
1507
+ const h1int = bits2int_modN(message);
1508
+ const d = Fn.fromBytes(secretKey); // validate secret key, convert to bigint
1509
+ if (!Fn.isValidNot0(d)) throw new Error('invalid private key');
1510
+ const seedArgs: TArg<Uint8Array>[] = [int2octets(d), int2octets(h1int)];
1511
+ // extraEntropy. RFC6979 3.6: additional k' (optional).
1512
+ if (extraEntropy != null && extraEntropy !== false) {
1513
+ // K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k')
1514
+ // gen random bytes OR pass as-is
1515
+ const e = extraEntropy === true ? randomBytes(lengths.secretKey) : extraEntropy;
1516
+ seedArgs.push(abytes(e, undefined, 'extraEntropy')); // check for being bytes
1517
+ }
1518
+ const seed = concatBytes(...seedArgs) as TRet<Uint8Array>; // Step D of RFC6979 3.2
1519
+ const m = h1int; // no need to call bits2int second time here, it is inside truncateHash!
1520
+ // Converts signature params into point w r/s, checks result for validity.
1521
+ // To transform k => Signature:
1522
+ // q = k⋅G
1523
+ // r = q.x mod n
1524
+ // s = k^-1(m + rd) mod n
1525
+ // The nonce inversion is blinded: with random b ∈ [1,n−1], s = (bk)^-1(bm + bdr) per
1526
+ // https://tches.iacr.org/index.php/TCHES/article/view/7337/6509. Fn.inv()'s extended-Euclidean
1527
+ // loop count depends on its input (cf. Minerva), but here it only ever sees b·k — uniformly
1528
+ // random, independent of k — so its timing reveals nothing about the nonce; b also masks d in
1529
+ // the products. Without a CSPRNG (probed in ecdsa()) we fall back to Fermat inversion
1530
+ // (invertCt), whose control flow is data-independent, at ~4x the inversion cost.
1531
+ function k2sig(kBytes: TArg<Uint8Array>): Signature | undefined {
1532
+ // RFC 6979 Section 3.2, step 3: k = bits2int(T)
1533
+ // Important: all mod() calls here must be done over N
1534
+ const k = bits2int(kBytes); // Cannot use fields methods, since it is group element
1535
+ if (!Fn.isValidNot0(k)) return; // Valid scalars (including k) must be in 1..N-1
1536
+ const q = Point.BASE.multiply(k).toAffine(); // q = k⋅G
1537
+ const r = Fn.create(q.x); // r = q.x mod n
1538
+ if (r === _0n) return;
1539
+ let s: bigint;
1540
+ if (csprng !== undefined) {
1541
+ // mapHashToField maps 1.5x-order-length uniform bytes into [1, n-1], negligible bias.
1542
+ const b = bytesToNumberBE(mapHashToField(csprng(blindLength), CURVE_ORDER));
1543
+ const ibk = Fn.inv(Fn.mul(b, k)); // (bk)^-1: inversion input is decorrelated from k
1544
+ const bm = Fn.mul(b, m);
1545
+ const bd = Fn.mul(b, d);
1546
+ s = Fn.create(ibk * Fn.create(bm + bd * r)); // s = (bk)^-1(bm + bdr) = k^-1(m + rd) mod n
1547
+ } else {
1548
+ const ik = invertCt(k, CURVE_ORDER); // k^-1 mod n with data-independent control flow
1549
+ s = Fn.create(ik * Fn.create(m + r * d)); // s = k^-1(m + rd) mod n
1550
+ }
1551
+ if (s === _0n) return;
1552
+ let recovery = getRecoveryBit(q.x, q.y, r); // recovery bit (2 or 3 when q.x>n)
1553
+ let normS = s;
1554
+ if (lowS && isBiggerThanHalfOrder(s)) {
1555
+ normS = Fn.neg(s); // if lowS was passed, ensure s is always in the bottom half of N
1556
+ recovery ^= 1;
1557
+ }
1558
+ return new Signature(r, normS, hasLargeRecoveryLifts ? undefined : recovery);
1559
+ }
1560
+ return { seed, k2sig };
1561
+ }
1562
+
1563
+ /**
1564
+ * Signs a message or message hash with a secret key.
1565
+ * With the default `prehash: true`, raw message bytes are hashed internally;
1566
+ * only `{ prehash: false }` expects a caller-supplied digest.
1567
+ *
1568
+ * ```
1569
+ * sign(m, d) where
1570
+ * k = rfc6979_hmac_drbg(m, d)
1571
+ * (x, y) = G × k
1572
+ * r = x mod n
1573
+ * s = (m + dr) / k mod n
1574
+ * ```
1575
+ */
1576
+ function sign(
1577
+ message: TArg<Uint8Array>,
1578
+ secretKey: TArg<Uint8Array>,
1579
+ opts: TArg<ECDSASignOpts> = {}
1580
+ ): TRet<Uint8Array> {
1581
+ const { seed, k2sig } = prepSig(message, secretKey, opts); // Steps A, D of RFC6979 3.2.
1582
+ const drbg = createHmacDrbg<Signature>(hash_.outputLen, Fn.BYTES, hmac);
1583
+ const sig = drbg(seed, k2sig); // Steps B, C, D, E, F, G
1584
+ return sig.toBytes(opts.format);
1585
+ }
1586
+
1587
+ /**
1588
+ * Verifies a signature against message and public key.
1589
+ * Rejects lowS signatures by default: see {@link ECDSAVerifyOpts}.
1590
+ * Implements section 4.1.4 from https://www.secg.org/sec1-v2.pdf:
1591
+ *
1592
+ * ```
1593
+ * verify(r, s, h, P) where
1594
+ * u1 = hs^-1 mod n
1595
+ * u2 = rs^-1 mod n
1596
+ * R = u1⋅G + u2⋅P
1597
+ * mod(R.x, n) == r
1598
+ * ```
1599
+ */
1600
+ function verify(
1601
+ signature: TArg<Uint8Array>,
1602
+ message: TArg<Uint8Array>,
1603
+ publicKey: TArg<Uint8Array>,
1604
+ opts: TArg<ECDSAVerifyOpts> = {}
1605
+ ): boolean {
1606
+ const { lowS, prehash, format } = validateSigOpts(opts, defaultSigOpts);
1607
+ publicKey = abytes(publicKey, undefined, 'publicKey');
1608
+ message = validateMsgAndHash(message, prehash);
1609
+ if (!isBytes(signature as any)) {
1610
+ const end = signature instanceof Signature ? ', use sig.toBytes()' : '';
1611
+ throw new Error('verify expects Uint8Array signature' + end);
1612
+ }
1613
+ validateSigLength(signature, format); // execute this twice because we want loud error
1614
+ try {
1615
+ const sig = Signature.fromBytes(signature, format);
1616
+ const P = Point.fromBytes(publicKey);
1617
+ // SEC 1 verification keys must not be the identity, even when the generic point decoder
1618
+ // permits infinity for another protocol (for example, a pairing curve).
1619
+ if (P.is0()) return false;
1620
+ if (lowS && sig.hasHighS()) return false;
1621
+ const { r, s } = sig;
1622
+ const h = bits2int_modN(message); // mod n, not mod p
1623
+ const is = Fn.inv(s); // s^-1 mod n
1624
+ const u1 = Fn.create(h * is); // u1 = hs^-1 mod n
1625
+ const u2 = Fn.create(r * is); // u2 = rs^-1 mod n
1626
+ const R = Point.BASE.mulAddUnsafe(u1, P, u2); // u1⋅G + u2⋅P, joint Strauss–Shamir
1627
+ if (R.is0()) return false;
1628
+ const q = R.toAffine();
1629
+ const v = Fn.create(q.x); // v = R.x mod n
1630
+ if (v !== r) return false;
1631
+ // R is the exact point `recoverPublicKey(r, recid)` reconstructs (sR = hG + rP),
1632
+ // so binding the signature to its recovery id only needs R's parity/overflow bits.
1633
+ if (format === 'recovered' && sig.recovery !== getRecoveryBit(q.x, q.y, r)) return false;
1634
+ return true;
1635
+ } catch (e) {
1636
+ return false;
1637
+ }
1638
+ }
1639
+
1640
+ function recoverPublicKey(
1641
+ signature: TArg<Uint8Array>,
1642
+ message: TArg<Uint8Array>,
1643
+ opts: TArg<ECDSARecoverOpts> = {}
1644
+ ): TRet<Uint8Array> {
1645
+ // Top-level recovery mirrors `sign()` / `verify()`: it hashes raw message
1646
+ // bytes first unless the caller passes `{ prehash: false }`.
1647
+ const { prehash } = validateSigOpts(opts, defaultSigOpts);
1648
+ message = validateMsgAndHash(message, prehash);
1649
+ return Signature.fromBytes(signature, 'recovered').recoverPublicKey(message).toBytes();
1650
+ }
1651
+
1652
+ // utils.isValidPublicKey() already rejects the identity, so ECDSA needs no shadow copy.
1653
+ return Object.freeze({
1654
+ keygen,
1655
+ getPublicKey,
1656
+ getSharedSecret,
1657
+ utils,
1658
+ lengths,
1659
+ Point,
1660
+ sign,
1661
+ verify,
1662
+ recoverPublicKey,
1663
+ Signature,
1664
+ hash: hash_,
1665
+ }) satisfies Signer;
1666
+ }