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

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 (3115) 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 +513 -0
  1617. package/node_modules/body-parser/index.js +55 -0
  1618. package/node_modules/body-parser/lib/read.js +264 -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 +85 -0
  1624. package/node_modules/body-parser/package.json +60 -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 +123 -0
  1718. package/node_modules/encodeurl/index.js +58 -0
  1719. package/node_modules/encodeurl/package.json +47 -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 +25 -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 +25 -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 +29 -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 +21 -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 +23 -0
  1942. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +26 -0
  1943. package/node_modules/jose/dist/types/jws/general/sign.d.ts +41 -0
  1944. package/node_modules/jose/dist/types/jws/general/verify.d.ts +31 -0
  1945. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +38 -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 +21 -0
  1949. package/node_modules/jose/dist/types/jwt/verify.d.ts +36 -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 +802 -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 +9 -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 +41 -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 +60 -0
  1969. package/node_modules/jose/dist/webapi/jwks/remote.js +103 -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 +42 -0
  1976. package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -0
  1977. package/node_modules/jose/dist/webapi/jwt/encrypt.js +42 -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 +41 -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 +190 -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 +89 -0
  1995. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +150 -0
  1996. package/node_modules/jose/dist/webapi/lib/key.js +157 -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 +195 -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/.github/FUNDING.yml +12 -0
  2080. package/node_modules/object-inspect/CHANGELOG.md +455 -0
  2081. package/node_modules/object-inspect/LICENSE +21 -0
  2082. package/node_modules/object-inspect/index.js +846 -0
  2083. package/node_modules/object-inspect/package-support.json +20 -0
  2084. package/node_modules/object-inspect/package.json +114 -0
  2085. package/node_modules/object-inspect/readme.markdown +87 -0
  2086. package/node_modules/object-inspect/stringWidth.js +68 -0
  2087. package/node_modules/object-inspect/stringWidthRanges.js +38 -0
  2088. package/node_modules/object-inspect/util.inspect.js +1 -0
  2089. package/node_modules/on-finished/LICENSE +23 -0
  2090. package/node_modules/on-finished/README.md +162 -0
  2091. package/node_modules/on-finished/index.js +246 -0
  2092. package/node_modules/on-finished/package.json +43 -0
  2093. package/node_modules/once/LICENSE +15 -0
  2094. package/node_modules/once/README.md +79 -0
  2095. package/node_modules/once/once.js +42 -0
  2096. package/node_modules/once/package.json +33 -0
  2097. package/node_modules/parseurl/HISTORY.md +58 -0
  2098. package/node_modules/parseurl/LICENSE +24 -0
  2099. package/node_modules/parseurl/README.md +133 -0
  2100. package/node_modules/parseurl/index.js +158 -0
  2101. package/node_modules/parseurl/package.json +40 -0
  2102. package/node_modules/path-to-regexp/LICENSE +21 -0
  2103. package/node_modules/path-to-regexp/Readme.md +224 -0
  2104. package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
  2105. package/node_modules/path-to-regexp/dist/index.js +431 -0
  2106. package/node_modules/path-to-regexp/dist/index.js.map +1 -0
  2107. package/node_modules/path-to-regexp/package.json +64 -0
  2108. package/node_modules/proxy-addr/HISTORY.md +167 -0
  2109. package/node_modules/proxy-addr/LICENSE +22 -0
  2110. package/node_modules/proxy-addr/README.md +139 -0
  2111. package/node_modules/proxy-addr/index.js +359 -0
  2112. package/node_modules/proxy-addr/package.json +51 -0
  2113. package/node_modules/qs/.editorconfig +46 -0
  2114. package/node_modules/qs/.github/FUNDING.yml +12 -0
  2115. package/node_modules/qs/.github/SECURITY.md +11 -0
  2116. package/node_modules/qs/.github/THREAT_MODEL.md +80 -0
  2117. package/node_modules/qs/.nycrc +13 -0
  2118. package/node_modules/qs/CHANGELOG.md +937 -0
  2119. package/node_modules/qs/LICENSE.md +29 -0
  2120. package/node_modules/qs/README.md +857 -0
  2121. package/node_modules/qs/dist/qs.js +141 -0
  2122. package/node_modules/qs/eslint.config.mjs +68 -0
  2123. package/node_modules/qs/lib/formats.js +28 -0
  2124. package/node_modules/qs/lib/index.js +11 -0
  2125. package/node_modules/qs/lib/parse.js +522 -0
  2126. package/node_modules/qs/lib/stringify.js +380 -0
  2127. package/node_modules/qs/lib/utils.js +531 -0
  2128. package/node_modules/qs/package.json +95 -0
  2129. package/node_modules/qs/test/empty-keys-cases.js +267 -0
  2130. package/node_modules/qs/test/parse.js +2629 -0
  2131. package/node_modules/qs/test/stringify.js +2217 -0
  2132. package/node_modules/qs/test/utils.js +880 -0
  2133. package/node_modules/range-parser/HISTORY.md +56 -0
  2134. package/node_modules/range-parser/LICENSE +23 -0
  2135. package/node_modules/range-parser/README.md +85 -0
  2136. package/node_modules/range-parser/index.js +181 -0
  2137. package/node_modules/range-parser/package.json +48 -0
  2138. package/node_modules/raw-body/LICENSE +22 -0
  2139. package/node_modules/raw-body/README.md +223 -0
  2140. package/node_modules/raw-body/index.d.ts +85 -0
  2141. package/node_modules/raw-body/index.js +336 -0
  2142. package/node_modules/raw-body/package.json +46 -0
  2143. package/node_modules/router/HISTORY.md +243 -0
  2144. package/node_modules/router/LICENSE +23 -0
  2145. package/node_modules/router/README.md +636 -0
  2146. package/node_modules/router/index.d.ts +188 -0
  2147. package/node_modules/router/index.js +784 -0
  2148. package/node_modules/router/lib/layer.js +354 -0
  2149. package/node_modules/router/lib/param.js +47 -0
  2150. package/node_modules/router/lib/route.d.ts +118 -0
  2151. package/node_modules/router/lib/route.js +248 -0
  2152. package/node_modules/router/lib/symbols.js +4 -0
  2153. package/node_modules/router/lib/tracing.js +173 -0
  2154. package/node_modules/router/package.json +59 -0
  2155. package/node_modules/safer-buffer/LICENSE +21 -0
  2156. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2157. package/node_modules/safer-buffer/Readme.md +156 -0
  2158. package/node_modules/safer-buffer/dangerous.js +58 -0
  2159. package/node_modules/safer-buffer/package.json +34 -0
  2160. package/node_modules/safer-buffer/safer.js +77 -0
  2161. package/node_modules/safer-buffer/tests.js +406 -0
  2162. package/node_modules/send/LICENSE +23 -0
  2163. package/node_modules/send/README.md +317 -0
  2164. package/node_modules/send/index.js +997 -0
  2165. package/node_modules/send/package.json +63 -0
  2166. package/node_modules/serve-static/LICENSE +25 -0
  2167. package/node_modules/serve-static/README.md +253 -0
  2168. package/node_modules/serve-static/index.js +208 -0
  2169. package/node_modules/serve-static/package.json +44 -0
  2170. package/node_modules/setprototypeof/LICENSE +13 -0
  2171. package/node_modules/setprototypeof/README.md +31 -0
  2172. package/node_modules/setprototypeof/index.d.ts +2 -0
  2173. package/node_modules/setprototypeof/index.js +17 -0
  2174. package/node_modules/setprototypeof/package.json +38 -0
  2175. package/node_modules/setprototypeof/test/index.js +24 -0
  2176. package/node_modules/side-channel/.editorconfig +9 -0
  2177. package/node_modules/side-channel/.eslintrc +12 -0
  2178. package/node_modules/side-channel/.github/FUNDING.yml +12 -0
  2179. package/node_modules/side-channel/.nycrc +13 -0
  2180. package/node_modules/side-channel/CHANGELOG.md +120 -0
  2181. package/node_modules/side-channel/LICENSE +21 -0
  2182. package/node_modules/side-channel/README.md +61 -0
  2183. package/node_modules/side-channel/index.d.ts +14 -0
  2184. package/node_modules/side-channel/index.js +46 -0
  2185. package/node_modules/side-channel/package.json +85 -0
  2186. package/node_modules/side-channel/test/index.js +120 -0
  2187. package/node_modules/side-channel/tsconfig.json +9 -0
  2188. package/node_modules/side-channel-list/.editorconfig +9 -0
  2189. package/node_modules/side-channel-list/.eslintrc +11 -0
  2190. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  2191. package/node_modules/side-channel-list/.nycrc +13 -0
  2192. package/node_modules/side-channel-list/CHANGELOG.md +36 -0
  2193. package/node_modules/side-channel-list/LICENSE +21 -0
  2194. package/node_modules/side-channel-list/README.md +62 -0
  2195. package/node_modules/side-channel-list/index.d.ts +13 -0
  2196. package/node_modules/side-channel-list/index.js +111 -0
  2197. package/node_modules/side-channel-list/list.d.ts +14 -0
  2198. package/node_modules/side-channel-list/package.json +77 -0
  2199. package/node_modules/side-channel-list/test/index.js +154 -0
  2200. package/node_modules/side-channel-list/tsconfig.json +9 -0
  2201. package/node_modules/side-channel-map/.editorconfig +9 -0
  2202. package/node_modules/side-channel-map/.eslintrc +11 -0
  2203. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  2204. package/node_modules/side-channel-map/.nycrc +13 -0
  2205. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  2206. package/node_modules/side-channel-map/LICENSE +21 -0
  2207. package/node_modules/side-channel-map/README.md +62 -0
  2208. package/node_modules/side-channel-map/index.d.ts +15 -0
  2209. package/node_modules/side-channel-map/index.js +68 -0
  2210. package/node_modules/side-channel-map/package.json +80 -0
  2211. package/node_modules/side-channel-map/test/index.js +114 -0
  2212. package/node_modules/side-channel-map/tsconfig.json +9 -0
  2213. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  2214. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  2215. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  2216. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  2217. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  2218. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  2219. package/node_modules/side-channel-weakmap/README.md +62 -0
  2220. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  2221. package/node_modules/side-channel-weakmap/index.js +84 -0
  2222. package/node_modules/side-channel-weakmap/package.json +87 -0
  2223. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  2224. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  2225. package/node_modules/statuses/HISTORY.md +87 -0
  2226. package/node_modules/statuses/LICENSE +23 -0
  2227. package/node_modules/statuses/README.md +139 -0
  2228. package/node_modules/statuses/codes.json +65 -0
  2229. package/node_modules/statuses/index.js +146 -0
  2230. package/node_modules/statuses/package.json +49 -0
  2231. package/node_modules/toidentifier/HISTORY.md +9 -0
  2232. package/node_modules/toidentifier/LICENSE +21 -0
  2233. package/node_modules/toidentifier/README.md +61 -0
  2234. package/node_modules/toidentifier/index.js +32 -0
  2235. package/node_modules/toidentifier/package.json +38 -0
  2236. package/node_modules/type-is/HISTORY.md +292 -0
  2237. package/node_modules/type-is/LICENSE +23 -0
  2238. package/node_modules/type-is/README.md +198 -0
  2239. package/node_modules/type-is/index.js +240 -0
  2240. package/node_modules/type-is/package.json +51 -0
  2241. package/node_modules/unpipe/HISTORY.md +4 -0
  2242. package/node_modules/unpipe/LICENSE +22 -0
  2243. package/node_modules/unpipe/README.md +43 -0
  2244. package/node_modules/unpipe/index.js +69 -0
  2245. package/node_modules/unpipe/package.json +27 -0
  2246. package/node_modules/vary/HISTORY.md +39 -0
  2247. package/node_modules/vary/LICENSE +22 -0
  2248. package/node_modules/vary/README.md +101 -0
  2249. package/node_modules/vary/index.js +149 -0
  2250. package/node_modules/vary/package.json +43 -0
  2251. package/node_modules/wrappy/LICENSE +15 -0
  2252. package/node_modules/wrappy/README.md +36 -0
  2253. package/node_modules/wrappy/package.json +29 -0
  2254. package/node_modules/wrappy/wrappy.js +33 -0
  2255. package/node_modules/ws/LICENSE +20 -0
  2256. package/node_modules/ws/README.md +539 -0
  2257. package/node_modules/ws/browser.js +8 -0
  2258. package/node_modules/ws/index.js +22 -0
  2259. package/node_modules/ws/lib/buffer-util.js +142 -0
  2260. package/node_modules/ws/lib/constants.js +19 -0
  2261. package/node_modules/ws/lib/event-target.js +292 -0
  2262. package/node_modules/ws/lib/extension.js +203 -0
  2263. package/node_modules/ws/lib/limiter.js +55 -0
  2264. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  2265. package/node_modules/ws/lib/receiver.js +751 -0
  2266. package/node_modules/ws/lib/sender.js +610 -0
  2267. package/node_modules/ws/lib/stream.js +161 -0
  2268. package/node_modules/ws/lib/subprotocol.js +62 -0
  2269. package/node_modules/ws/lib/validation.js +152 -0
  2270. package/node_modules/ws/lib/websocket-server.js +565 -0
  2271. package/node_modules/ws/lib/websocket.js +1471 -0
  2272. package/node_modules/ws/package.json +74 -0
  2273. package/node_modules/ws/wrapper.mjs +21 -0
  2274. package/node_modules/zod/LICENSE +21 -0
  2275. package/node_modules/zod/README.md +218 -0
  2276. package/node_modules/zod/compile.cjs +96 -0
  2277. package/node_modules/zod/compile.d.cts +1 -0
  2278. package/node_modules/zod/compile.d.ts +1 -0
  2279. package/node_modules/zod/compile.js +52 -0
  2280. package/node_modules/zod/index.cjs +52 -0
  2281. package/node_modules/zod/index.d.cts +3 -0
  2282. package/node_modules/zod/index.d.ts +3 -0
  2283. package/node_modules/zod/index.js +7 -0
  2284. package/node_modules/zod/locales/index.cjs +36 -0
  2285. package/node_modules/zod/locales/index.d.cts +1 -0
  2286. package/node_modules/zod/locales/index.d.ts +1 -0
  2287. package/node_modules/zod/locales/index.js +1 -0
  2288. package/node_modules/zod/locales/package.json +7 -0
  2289. package/node_modules/zod/mini/index.cjs +51 -0
  2290. package/node_modules/zod/mini/index.d.cts +3 -0
  2291. package/node_modules/zod/mini/index.d.ts +3 -0
  2292. package/node_modules/zod/mini/index.js +3 -0
  2293. package/node_modules/zod/mini/package.json +7 -0
  2294. package/node_modules/zod/package.json +147 -0
  2295. package/node_modules/zod/src/compile.ts +56 -0
  2296. package/node_modules/zod/src/index.ts +7 -0
  2297. package/node_modules/zod/src/locales/index.ts +1 -0
  2298. package/node_modules/zod/src/mini/index.ts +3 -0
  2299. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  2300. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  2301. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  2302. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  2303. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  2304. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  2305. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  2306. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  2307. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  2308. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  2309. package/node_modules/zod/src/v3/errors.ts +13 -0
  2310. package/node_modules/zod/src/v3/external.ts +6 -0
  2311. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  2312. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  2313. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  2314. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  2315. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  2316. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  2317. package/node_modules/zod/src/v3/index.ts +4 -0
  2318. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  2319. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  2320. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  2321. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  2322. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  2323. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  2324. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  2325. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  2326. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  2327. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  2328. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  2329. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  2330. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  2331. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  2332. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  2333. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  2334. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  2335. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  2336. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  2337. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  2338. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  2339. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  2340. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  2341. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  2342. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  2343. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  2344. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  2345. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  2346. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  2347. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  2348. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  2349. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  2350. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  2351. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  2352. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  2353. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  2354. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  2355. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  2356. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  2357. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  2358. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  2359. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  2360. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  2361. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  2362. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  2363. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  2364. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  2365. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  2366. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  2367. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  2368. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  2369. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  2370. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  2371. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  2372. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  2373. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  2374. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  2375. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  2376. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  2377. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  2378. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  2379. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  2380. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  2381. package/node_modules/zod/src/v3/types.ts +5138 -0
  2382. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  2383. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  2384. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  2385. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  2386. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  2387. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  2388. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  2389. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  2390. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  2391. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  2392. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  2393. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  2394. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  2395. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  2396. package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  2397. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  2398. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  2399. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  2400. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  2401. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  2402. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  2403. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  2404. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  2405. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  2406. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  2407. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  2408. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  2409. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  2410. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  2411. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  2412. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  2413. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  2414. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  2415. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  2416. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  2417. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  2418. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  2419. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  2420. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  2421. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  2422. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  2423. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  2424. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  2425. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  2426. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  2427. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  2428. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  2429. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  2430. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  2431. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  2432. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  2433. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  2434. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  2435. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  2436. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  2437. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  2438. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  2439. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  2440. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  2441. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  2442. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  2443. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  2444. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  2445. package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  2446. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  2447. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  2448. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  2449. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  2450. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  2451. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  2452. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  2453. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  2454. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  2455. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  2456. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  2457. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  2458. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  2459. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  2460. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  2461. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  2462. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  2463. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  2464. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  2465. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  2466. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  2467. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  2468. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  2469. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  2470. package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  2471. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  2472. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  2473. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  2474. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  2475. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  2476. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  2477. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  2478. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  2479. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  2480. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  2481. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  2482. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  2483. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  2484. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  2485. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  2486. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  2487. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  2488. package/node_modules/zod/src/v4/core/core.ts +230 -0
  2489. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  2490. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  2491. package/node_modules/zod/src/v4/core/index.ts +19 -0
  2492. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  2493. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  2494. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  2495. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  2496. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  2497. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  2498. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  2499. package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  2500. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  2501. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  2502. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  2503. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  2504. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  2505. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  2506. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  2507. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  2508. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  2509. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  2510. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  2511. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  2512. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  2513. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  2514. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  2515. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  2516. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  2517. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  2518. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  2519. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  2520. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  2521. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  2522. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  2523. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  2524. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  2525. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  2526. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  2527. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  2528. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  2529. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  2530. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  2531. package/node_modules/zod/src/v4/core/util.ts +1293 -0
  2532. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  2533. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  2534. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  2535. package/node_modules/zod/src/v4/index.ts +4 -0
  2536. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  2537. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  2538. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  2539. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  2540. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  2541. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  2542. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  2543. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  2544. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  2545. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  2546. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  2547. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  2548. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  2549. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  2550. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  2551. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  2552. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  2553. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  2554. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  2555. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  2556. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  2557. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  2558. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  2559. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  2560. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  2561. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  2562. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  2563. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  2564. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  2565. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  2566. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  2567. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  2568. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  2569. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  2570. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  2571. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  2572. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  2573. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  2574. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  2575. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  2576. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  2577. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  2578. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  2579. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  2580. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  2581. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  2582. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  2583. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  2584. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  2585. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  2586. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  2587. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  2588. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  2589. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  2590. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  2591. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  2592. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  2593. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  2594. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  2595. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  2596. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  2597. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  2598. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  2599. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  2600. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  2601. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  2602. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  2603. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  2604. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  2605. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  2606. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  2607. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  2608. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  2609. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  2610. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  2611. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  2612. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  2613. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  2614. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  2615. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  2616. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  2617. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  2618. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  2619. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  2620. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  2621. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  2622. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  2623. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  2624. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  2625. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  2626. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  2627. package/node_modules/zod/v3/ZodError.cjs +167 -0
  2628. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  2629. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  2630. package/node_modules/zod/v3/ZodError.js +143 -0
  2631. package/node_modules/zod/v3/errors.cjs +36 -0
  2632. package/node_modules/zod/v3/errors.d.cts +5 -0
  2633. package/node_modules/zod/v3/errors.d.ts +5 -0
  2634. package/node_modules/zod/v3/errors.js +9 -0
  2635. package/node_modules/zod/v3/external.cjs +41 -0
  2636. package/node_modules/zod/v3/external.d.cts +6 -0
  2637. package/node_modules/zod/v3/external.d.ts +6 -0
  2638. package/node_modules/zod/v3/external.js +6 -0
  2639. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  2640. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  2641. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  2642. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  2643. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  2644. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  2645. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  2646. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  2647. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  2648. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  2649. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  2650. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  2651. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  2652. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  2653. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  2654. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  2655. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  2656. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  2657. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  2658. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  2659. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  2660. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2661. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2662. package/node_modules/zod/v3/helpers/util.js +133 -0
  2663. package/node_modules/zod/v3/index.cjs +52 -0
  2664. package/node_modules/zod/v3/index.d.cts +4 -0
  2665. package/node_modules/zod/v3/index.d.ts +4 -0
  2666. package/node_modules/zod/v3/index.js +4 -0
  2667. package/node_modules/zod/v3/locales/en.cjs +112 -0
  2668. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  2669. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  2670. package/node_modules/zod/v3/locales/en.js +109 -0
  2671. package/node_modules/zod/v3/package.json +7 -0
  2672. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  2673. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2674. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2675. package/node_modules/zod/v3/standard-schema.js +1 -0
  2676. package/node_modules/zod/v3/types.cjs +3798 -0
  2677. package/node_modules/zod/v3/types.d.cts +1034 -0
  2678. package/node_modules/zod/v3/types.d.ts +1034 -0
  2679. package/node_modules/zod/v3/types.js +3697 -0
  2680. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  2681. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2682. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2683. package/node_modules/zod/v4/classic/checks.js +1 -0
  2684. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  2685. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2686. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2687. package/node_modules/zod/v4/classic/coerce.js +17 -0
  2688. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  2689. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  2690. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  2691. package/node_modules/zod/v4/classic/compat.js +31 -0
  2692. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  2693. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  2694. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  2695. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  2696. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  2697. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  2698. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  2699. package/node_modules/zod/v4/classic/errors.js +57 -0
  2700. package/node_modules/zod/v4/classic/external.cjs +97 -0
  2701. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  2702. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  2703. package/node_modules/zod/v4/classic/external.js +17 -0
  2704. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  2705. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2706. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2707. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  2708. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  2709. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  2710. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  2711. package/node_modules/zod/v4/classic/in-out.js +36 -0
  2712. package/node_modules/zod/v4/classic/index.cjs +52 -0
  2713. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  2714. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  2715. package/node_modules/zod/v4/classic/index.js +4 -0
  2716. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  2717. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  2718. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  2719. package/node_modules/zod/v4/classic/iso.js +15 -0
  2720. package/node_modules/zod/v4/classic/package.json +7 -0
  2721. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  2722. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  2723. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  2724. package/node_modules/zod/v4/classic/parse.js +16 -0
  2725. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  2726. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  2727. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  2728. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  2729. package/node_modules/zod/v4/core/api.cjs +1269 -0
  2730. package/node_modules/zod/v4/core/api.d.cts +335 -0
  2731. package/node_modules/zod/v4/core/api.d.ts +335 -0
  2732. package/node_modules/zod/v4/core/api.js +1107 -0
  2733. package/node_modules/zod/v4/core/checks.cjs +561 -0
  2734. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  2735. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  2736. package/node_modules/zod/v4/core/checks.js +516 -0
  2737. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  2738. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  2739. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  2740. package/node_modules/zod/v4/core/compile.js +1866 -0
  2741. package/node_modules/zod/v4/core/core.cjs +167 -0
  2742. package/node_modules/zod/v4/core/core.d.cts +82 -0
  2743. package/node_modules/zod/v4/core/core.d.ts +82 -0
  2744. package/node_modules/zod/v4/core/core.js +141 -0
  2745. package/node_modules/zod/v4/core/doc.cjs +61 -0
  2746. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  2747. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  2748. package/node_modules/zod/v4/core/doc.js +38 -0
  2749. package/node_modules/zod/v4/core/errors.cjs +317 -0
  2750. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  2751. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  2752. package/node_modules/zod/v4/core/errors.js +267 -0
  2753. package/node_modules/zod/v4/core/index.cjs +70 -0
  2754. package/node_modules/zod/v4/core/index.d.cts +19 -0
  2755. package/node_modules/zod/v4/core/index.d.ts +19 -0
  2756. package/node_modules/zod/v4/core/index.js +19 -0
  2757. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  2758. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2759. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2760. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  2761. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  2762. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  2763. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  2764. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  2765. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  2766. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  2767. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  2768. package/node_modules/zod/v4/core/json-schema.js +1 -0
  2769. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  2770. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  2771. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  2772. package/node_modules/zod/v4/core/memoizer.js +311 -0
  2773. package/node_modules/zod/v4/core/package.json +7 -0
  2774. package/node_modules/zod/v4/core/parse.cjs +233 -0
  2775. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  2776. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  2777. package/node_modules/zod/v4/core/parse.js +175 -0
  2778. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  2779. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  2780. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  2781. package/node_modules/zod/v4/core/regexes.js +156 -0
  2782. package/node_modules/zod/v4/core/registries.cjs +75 -0
  2783. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  2784. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  2785. package/node_modules/zod/v4/core/registries.js +51 -0
  2786. package/node_modules/zod/v4/core/schemas.cjs +2699 -0
  2787. package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  2788. package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  2789. package/node_modules/zod/v4/core/schemas.js +2636 -0
  2790. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  2791. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  2792. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  2793. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  2794. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  2795. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  2796. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  2797. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  2798. package/node_modules/zod/v4/core/util.cjs +964 -0
  2799. package/node_modules/zod/v4/core/util.d.cts +280 -0
  2800. package/node_modules/zod/v4/core/util.d.ts +280 -0
  2801. package/node_modules/zod/v4/core/util.js +873 -0
  2802. package/node_modules/zod/v4/core/versions.cjs +27 -0
  2803. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  2804. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  2805. package/node_modules/zod/v4/core/versions.js +5 -0
  2806. package/node_modules/zod/v4/core/visit.cjs +214 -0
  2807. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  2808. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  2809. package/node_modules/zod/v4/core/visit.js +169 -0
  2810. package/node_modules/zod/v4/index.cjs +51 -0
  2811. package/node_modules/zod/v4/index.d.cts +3 -0
  2812. package/node_modules/zod/v4/index.d.ts +3 -0
  2813. package/node_modules/zod/v4/index.js +4 -0
  2814. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  2815. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  2816. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  2817. package/node_modules/zod/v4/locales/ar.js +111 -0
  2818. package/node_modules/zod/v4/locales/az.cjs +137 -0
  2819. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  2820. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  2821. package/node_modules/zod/v4/locales/az.js +110 -0
  2822. package/node_modules/zod/v4/locales/be.cjs +195 -0
  2823. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  2824. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  2825. package/node_modules/zod/v4/locales/be.js +168 -0
  2826. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  2827. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  2828. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  2829. package/node_modules/zod/v4/locales/bg.js +125 -0
  2830. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  2831. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  2832. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  2833. package/node_modules/zod/v4/locales/bn.js +113 -0
  2834. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  2835. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  2836. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  2837. package/node_modules/zod/v4/locales/ca.js +112 -0
  2838. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  2839. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  2840. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  2841. package/node_modules/zod/v4/locales/ckb.js +133 -0
  2842. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  2843. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  2844. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  2845. package/node_modules/zod/v4/locales/cs.js +116 -0
  2846. package/node_modules/zod/v4/locales/da.cjs +147 -0
  2847. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  2848. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  2849. package/node_modules/zod/v4/locales/da.js +120 -0
  2850. package/node_modules/zod/v4/locales/de.cjs +140 -0
  2851. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  2852. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  2853. package/node_modules/zod/v4/locales/de.js +113 -0
  2854. package/node_modules/zod/v4/locales/el.cjs +139 -0
  2855. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  2856. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  2857. package/node_modules/zod/v4/locales/el.js +112 -0
  2858. package/node_modules/zod/v4/locales/en.cjs +152 -0
  2859. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  2860. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  2861. package/node_modules/zod/v4/locales/en.js +125 -0
  2862. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  2863. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  2864. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  2865. package/node_modules/zod/v4/locales/eo.js +114 -0
  2866. package/node_modules/zod/v4/locales/es.cjs +163 -0
  2867. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  2868. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  2869. package/node_modules/zod/v4/locales/es.js +136 -0
  2870. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  2871. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  2872. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  2873. package/node_modules/zod/v4/locales/fa.js +119 -0
  2874. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  2875. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  2876. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  2877. package/node_modules/zod/v4/locales/fi.js +117 -0
  2878. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  2879. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  2880. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  2881. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  2882. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  2883. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  2884. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  2885. package/node_modules/zod/v4/locales/fr.js +129 -0
  2886. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  2887. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  2888. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  2889. package/node_modules/zod/v4/locales/gu.js +113 -0
  2890. package/node_modules/zod/v4/locales/he.cjs +248 -0
  2891. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  2892. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  2893. package/node_modules/zod/v4/locales/he.js +221 -0
  2894. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  2895. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  2896. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  2897. package/node_modules/zod/v4/locales/hi.js +111 -0
  2898. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  2899. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  2900. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  2901. package/node_modules/zod/v4/locales/hr.js +126 -0
  2902. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  2903. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  2904. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  2905. package/node_modules/zod/v4/locales/hu.js +113 -0
  2906. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  2907. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  2908. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  2909. package/node_modules/zod/v4/locales/hy.js +158 -0
  2910. package/node_modules/zod/v4/locales/id.cjs +138 -0
  2911. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  2912. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  2913. package/node_modules/zod/v4/locales/id.js +111 -0
  2914. package/node_modules/zod/v4/locales/index.cjs +152 -0
  2915. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  2916. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  2917. package/node_modules/zod/v4/locales/index.js +63 -0
  2918. package/node_modules/zod/v4/locales/is.cjs +141 -0
  2919. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  2920. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  2921. package/node_modules/zod/v4/locales/is.js +114 -0
  2922. package/node_modules/zod/v4/locales/it.cjs +140 -0
  2923. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  2924. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  2925. package/node_modules/zod/v4/locales/it.js +113 -0
  2926. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  2927. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  2928. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  2929. package/node_modules/zod/v4/locales/ja.js +112 -0
  2930. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  2931. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  2932. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  2933. package/node_modules/zod/v4/locales/ka.js +117 -0
  2934. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  2935. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  2936. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  2937. package/node_modules/zod/v4/locales/kh.js +5 -0
  2938. package/node_modules/zod/v4/locales/km.cjs +142 -0
  2939. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  2940. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  2941. package/node_modules/zod/v4/locales/km.js +115 -0
  2942. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  2943. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  2944. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  2945. package/node_modules/zod/v4/locales/kn.js +116 -0
  2946. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  2947. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  2948. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  2949. package/node_modules/zod/v4/locales/ko.js +116 -0
  2950. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  2951. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  2952. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  2953. package/node_modules/zod/v4/locales/lt.js +207 -0
  2954. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  2955. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  2956. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  2957. package/node_modules/zod/v4/locales/mk.js +114 -0
  2958. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  2959. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  2960. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  2961. package/node_modules/zod/v4/locales/ms.js +112 -0
  2962. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  2963. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  2964. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  2965. package/node_modules/zod/v4/locales/ne.js +111 -0
  2966. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  2967. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  2968. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  2969. package/node_modules/zod/v4/locales/nl.js +115 -0
  2970. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  2971. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  2972. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  2973. package/node_modules/zod/v4/locales/nn.js +113 -0
  2974. package/node_modules/zod/v4/locales/no.cjs +140 -0
  2975. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  2976. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  2977. package/node_modules/zod/v4/locales/no.js +113 -0
  2978. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  2979. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  2980. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  2981. package/node_modules/zod/v4/locales/ota.js +114 -0
  2982. package/node_modules/zod/v4/locales/package.json +7 -0
  2983. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  2984. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  2985. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  2986. package/node_modules/zod/v4/locales/pl.js +114 -0
  2987. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  2988. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  2989. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  2990. package/node_modules/zod/v4/locales/ps.js +119 -0
  2991. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  2992. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  2993. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  2994. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  2995. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  2996. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  2997. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  2998. package/node_modules/zod/v4/locales/pt.js +142 -0
  2999. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  3000. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  3001. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  3002. package/node_modules/zod/v4/locales/ro.js +122 -0
  3003. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  3004. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  3005. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3006. package/node_modules/zod/v4/locales/ru.js +168 -0
  3007. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  3008. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  3009. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  3010. package/node_modules/zod/v4/locales/sk.js +116 -0
  3011. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  3012. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  3013. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3014. package/node_modules/zod/v4/locales/sl.js +114 -0
  3015. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  3016. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  3017. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3018. package/node_modules/zod/v4/locales/sv.js +115 -0
  3019. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  3020. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  3021. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3022. package/node_modules/zod/v4/locales/ta.js +115 -0
  3023. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  3024. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  3025. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  3026. package/node_modules/zod/v4/locales/tg.js +117 -0
  3027. package/node_modules/zod/v4/locales/th.cjs +142 -0
  3028. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  3029. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  3030. package/node_modules/zod/v4/locales/th.js +115 -0
  3031. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  3032. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  3033. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  3034. package/node_modules/zod/v4/locales/tk.js +107 -0
  3035. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  3036. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3037. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  3038. package/node_modules/zod/v4/locales/tr.js +110 -0
  3039. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  3040. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  3041. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  3042. package/node_modules/zod/v4/locales/ua.js +5 -0
  3043. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  3044. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  3045. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  3046. package/node_modules/zod/v4/locales/uk.js +113 -0
  3047. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  3048. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  3049. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3050. package/node_modules/zod/v4/locales/ur.js +115 -0
  3051. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  3052. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  3053. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  3054. package/node_modules/zod/v4/locales/uz.js +113 -0
  3055. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  3056. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  3057. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3058. package/node_modules/zod/v4/locales/vi.js +113 -0
  3059. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  3060. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  3061. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  3062. package/node_modules/zod/v4/locales/yo.js +112 -0
  3063. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  3064. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  3065. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3066. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  3067. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  3068. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  3069. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3070. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  3071. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  3072. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3073. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3074. package/node_modules/zod/v4/mini/checks.js +1 -0
  3075. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  3076. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3077. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3078. package/node_modules/zod/v4/mini/coerce.js +22 -0
  3079. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  3080. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  3081. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  3082. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  3083. package/node_modules/zod/v4/mini/external.cjs +95 -0
  3084. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  3085. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  3086. package/node_modules/zod/v4/mini/external.js +16 -0
  3087. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  3088. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  3089. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  3090. package/node_modules/zod/v4/mini/in-out.js +36 -0
  3091. package/node_modules/zod/v4/mini/index.cjs +51 -0
  3092. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  3093. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  3094. package/node_modules/zod/v4/mini/index.js +3 -0
  3095. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  3096. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3097. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3098. package/node_modules/zod/v4/mini/iso.js +34 -0
  3099. package/node_modules/zod/v4/mini/package.json +7 -0
  3100. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  3101. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3102. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3103. package/node_modules/zod/v4/mini/parse.js +1 -0
  3104. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  3105. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  3106. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  3107. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  3108. package/node_modules/zod/v4/package.json +7 -0
  3109. package/node_modules/zod/v4-mini/index.cjs +51 -0
  3110. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  3111. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  3112. package/node_modules/zod/v4-mini/index.js +3 -0
  3113. package/node_modules/zod/v4-mini/package.json +7 -0
  3114. package/package.json +41 -4
  3115. package/README.md +0 -3
@@ -0,0 +1,3941 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/server/index.ts
31
+ var server_exports = {};
32
+ __export(server_exports, {
33
+ AgentEvent: () => AgentEvent,
34
+ DefaultExecutionEventBus: () => DefaultExecutionEventBus,
35
+ DefaultExecutionEventBusManager: () => DefaultExecutionEventBusManager,
36
+ DefaultPushNotificationSender: () => DefaultPushNotificationSender,
37
+ DefaultRequestHandler: () => DefaultRequestHandler,
38
+ ExecutionEventQueue: () => ExecutionEventQueue,
39
+ InMemoryPushNotificationStore: () => InMemoryPushNotificationStore,
40
+ InMemoryTaskStore: () => InMemoryTaskStore,
41
+ JsonRpcTransportHandler: () => JsonRpcTransportHandler,
42
+ RequestContext: () => RequestContext,
43
+ ResultManager: () => ResultManager,
44
+ STATE_HEADERS_KEY: () => STATE_HEADERS_KEY,
45
+ ServerCallContext: () => ServerCallContext,
46
+ UnauthenticatedUser: () => UnauthenticatedUser,
47
+ V1PushNotificationSerializer: () => V1PushNotificationSerializer,
48
+ assertUnreachableEvent: () => assertUnreachableEvent,
49
+ defaultServerCallContextBuilder: () => defaultServerCallContextBuilder,
50
+ getSupportedVersions: () => getSupportedVersions,
51
+ resolveUserScope: () => resolveUserScope,
52
+ validateVersion: () => validateVersion
53
+ });
54
+ module.exports = __toCommonJS(server_exports);
55
+
56
+ // src/server/agent_execution/request_context.ts
57
+ var RequestContext = class {
58
+ request;
59
+ taskId;
60
+ contextId;
61
+ context;
62
+ task;
63
+ referenceTasks;
64
+ constructor(request, taskId, contextId, context, task, referenceTasks) {
65
+ if (!request.message) {
66
+ throw new Error("RequestContext requires request.message to be set.");
67
+ }
68
+ this.request = structuredClone(request);
69
+ this.taskId = taskId;
70
+ this.contextId = contextId;
71
+ this.context = context;
72
+ this.task = task;
73
+ this.referenceTasks = referenceTasks;
74
+ }
75
+ get userMessage() {
76
+ return this.request.message;
77
+ }
78
+ };
79
+
80
+ // src/server/events/execution_event_bus.ts
81
+ var AgentEvent = {
82
+ message: (data) => ({ kind: "message", data }),
83
+ task: (data) => ({ kind: "task", data }),
84
+ statusUpdate: (data) => ({
85
+ kind: "statusUpdate",
86
+ data
87
+ }),
88
+ artifactUpdate: (data) => ({
89
+ kind: "artifactUpdate",
90
+ data
91
+ })
92
+ };
93
+ function assertUnreachableEvent(event) {
94
+ throw new Error(`Unhandled event kind: ${event.kind}`);
95
+ }
96
+ var CustomEventImpl = typeof CustomEvent !== "undefined" ? CustomEvent : class CustomEventPolyfill extends Event {
97
+ detail;
98
+ constructor(type, eventInitDict) {
99
+ super(type, eventInitDict);
100
+ this.detail = eventInitDict?.detail ?? null;
101
+ }
102
+ };
103
+ function isAgentExecutionCustomEvent(e) {
104
+ return e instanceof CustomEventImpl;
105
+ }
106
+ var DefaultExecutionEventBus = class extends EventTarget {
107
+ // Separate storage so each event type can hold listeners of its own
108
+ // signature: 'event' listeners receive a payload, 'finished' listeners
109
+ // are invoked with no arguments.
110
+ eventListeners = /* @__PURE__ */ new Map();
111
+ finishedListeners = /* @__PURE__ */ new Map();
112
+ publish(event) {
113
+ this.dispatchEvent(new CustomEventImpl("event", { detail: event }));
114
+ }
115
+ finished() {
116
+ this.dispatchEvent(new Event("finished"));
117
+ }
118
+ on(eventName, listener) {
119
+ if (eventName === "event") {
120
+ this.addEventListenerInternal(listener);
121
+ } else {
122
+ this.addFinishedListenerInternal(listener);
123
+ }
124
+ return this;
125
+ }
126
+ off(eventName, listener) {
127
+ if (eventName === "event") {
128
+ this.removeEventListenerInternal(listener);
129
+ } else {
130
+ this.removeFinishedListenerInternal(listener);
131
+ }
132
+ return this;
133
+ }
134
+ once(eventName, listener) {
135
+ if (eventName === "event") {
136
+ this.addEventListenerOnceInternal(listener);
137
+ } else {
138
+ this.addFinishedListenerOnceInternal(listener);
139
+ }
140
+ return this;
141
+ }
142
+ removeAllListeners(eventName) {
143
+ if (eventName === void 0 || eventName === "event") {
144
+ for (const wrappedListeners of this.eventListeners.values()) {
145
+ for (const wrapped of wrappedListeners) {
146
+ this.removeEventListener("event", wrapped);
147
+ }
148
+ }
149
+ this.eventListeners.clear();
150
+ }
151
+ if (eventName === void 0 || eventName === "finished") {
152
+ for (const wrappedListeners of this.finishedListeners.values()) {
153
+ for (const wrapped of wrappedListeners) {
154
+ this.removeEventListener("finished", wrapped);
155
+ }
156
+ }
157
+ this.finishedListeners.clear();
158
+ }
159
+ return this;
160
+ }
161
+ // Listener tracking helpers.
162
+ trackListener(listenerMap, listener, wrapped) {
163
+ const existing = listenerMap.get(listener);
164
+ if (existing) {
165
+ existing.push(wrapped);
166
+ } else {
167
+ listenerMap.set(listener, [wrapped]);
168
+ }
169
+ }
170
+ untrackWrappedListener(listenerMap, listener, wrapped) {
171
+ const wrappedList = listenerMap.get(listener);
172
+ if (wrappedList && wrappedList.length > 0) {
173
+ const index = wrappedList.indexOf(wrapped);
174
+ if (index !== -1) {
175
+ wrappedList.splice(index, 1);
176
+ if (wrappedList.length === 0) {
177
+ listenerMap.delete(listener);
178
+ }
179
+ }
180
+ }
181
+ }
182
+ // 'event' listeners.
183
+ addEventListenerInternal(listener) {
184
+ const wrapped = (e) => {
185
+ if (!isAgentExecutionCustomEvent(e)) {
186
+ throw new Error('Internal error: expected CustomEvent for "event" type');
187
+ }
188
+ listener.call(this, e.detail);
189
+ };
190
+ this.trackListener(this.eventListeners, listener, wrapped);
191
+ this.addEventListener("event", wrapped);
192
+ }
193
+ removeEventListenerInternal(listener) {
194
+ const wrappedList = this.eventListeners.get(listener);
195
+ if (wrappedList && wrappedList.length > 0) {
196
+ const wrapped = wrappedList.pop();
197
+ if (wrappedList.length === 0) {
198
+ this.eventListeners.delete(listener);
199
+ }
200
+ this.removeEventListener("event", wrapped);
201
+ }
202
+ }
203
+ addEventListenerOnceInternal(listener) {
204
+ const wrapped = (e) => {
205
+ if (!isAgentExecutionCustomEvent(e)) {
206
+ throw new Error('Internal error: expected CustomEvent for "event" type');
207
+ }
208
+ this.untrackWrappedListener(this.eventListeners, listener, wrapped);
209
+ listener.call(this, e.detail);
210
+ };
211
+ this.trackListener(this.eventListeners, listener, wrapped);
212
+ this.addEventListener("event", wrapped, { once: true });
213
+ }
214
+ // 'finished' listeners. Invoked with no arguments; the interface
215
+ // declares them as `FinishedListener` so callers get a precise type.
216
+ addFinishedListenerInternal(listener) {
217
+ const wrapped = () => {
218
+ listener.call(this);
219
+ };
220
+ this.trackListener(this.finishedListeners, listener, wrapped);
221
+ this.addEventListener("finished", wrapped);
222
+ }
223
+ removeFinishedListenerInternal(listener) {
224
+ const wrappedList = this.finishedListeners.get(listener);
225
+ if (wrappedList && wrappedList.length > 0) {
226
+ const wrapped = wrappedList.pop();
227
+ if (wrappedList.length === 0) {
228
+ this.finishedListeners.delete(listener);
229
+ }
230
+ this.removeEventListener("finished", wrapped);
231
+ }
232
+ }
233
+ addFinishedListenerOnceInternal(listener) {
234
+ const wrapped = () => {
235
+ this.untrackWrappedListener(this.finishedListeners, listener, wrapped);
236
+ listener.call(this);
237
+ };
238
+ this.trackListener(this.finishedListeners, listener, wrapped);
239
+ this.addEventListener("finished", wrapped, { once: true });
240
+ }
241
+ };
242
+
243
+ // src/extensions.ts
244
+ var Extensions = {
245
+ /**
246
+ * Creates new {@link Extensions} from `current` and `additional`.
247
+ * If `current` already contains `additional` it is returned unmodified.
248
+ */
249
+ createFrom: (current, additional) => {
250
+ if (current?.includes(additional)) {
251
+ return current;
252
+ }
253
+ return [...current ?? [], additional];
254
+ },
255
+ /**
256
+ * Creates {@link Extensions} from comma separated extensions identifiers as per
257
+ * https://a2a-protocol.org/latest/specification/#326-service-parameters.
258
+ * Parses the output of `toServiceParameter`.
259
+ */
260
+ parseServiceParameter: (value) => {
261
+ if (!value) {
262
+ return [];
263
+ }
264
+ const unique = new Set(
265
+ value.split(",").map((ext) => ext.trim()).filter((ext) => ext.length > 0)
266
+ );
267
+ return Array.from(unique);
268
+ },
269
+ /**
270
+ * Converts {@link Extensions} to comma separated extensions identifiers as per
271
+ * https://a2a-protocol.org/latest/specification/#326-service-parameters.
272
+ */
273
+ toServiceParameter: (value) => {
274
+ return value.join(",");
275
+ }
276
+ };
277
+
278
+ // src/server/context.ts
279
+ var ABSENT_HEADER_VERSION = "0.3";
280
+ var STATE_HEADERS_KEY = "headers";
281
+ var defaultServerCallContextBuilder = ({
282
+ extensions,
283
+ user,
284
+ headers,
285
+ requestedVersion,
286
+ tenant
287
+ }) => {
288
+ const state = /* @__PURE__ */ new Map([[STATE_HEADERS_KEY, headers]]);
289
+ return new ServerCallContext({
290
+ requestedExtensions: extensions,
291
+ user,
292
+ state,
293
+ requestedVersion,
294
+ tenant
295
+ });
296
+ };
297
+ var ServerCallContext = class {
298
+ _requestedExtensions;
299
+ _user;
300
+ _requestedVersion;
301
+ _tenant;
302
+ _activatedExtensions;
303
+ _state;
304
+ constructor(options) {
305
+ this._requestedExtensions = options?.requestedExtensions;
306
+ this._user = options?.user;
307
+ this._tenant = options?.tenant;
308
+ this._requestedVersion = options?.requestedVersion || ABSENT_HEADER_VERSION;
309
+ this._state = options?.state ?? /* @__PURE__ */ new Map();
310
+ }
311
+ get tenant() {
312
+ return this._tenant;
313
+ }
314
+ /**
315
+ * Sets the tenant resolved by a transport without replacing this context.
316
+ * Keeping the instance preserves custom state, subclasses, and extension
317
+ * activations observed by the response layer.
318
+ *
319
+ * @throws {Error} If a tenant has already been set, including by the constructor.
320
+ */
321
+ setTenant(tenant) {
322
+ if (this._tenant !== void 0) {
323
+ throw new Error("Tenant is already set.");
324
+ }
325
+ this._tenant = tenant;
326
+ }
327
+ get user() {
328
+ return this._user;
329
+ }
330
+ get activatedExtensions() {
331
+ return this._activatedExtensions;
332
+ }
333
+ get requestedExtensions() {
334
+ return this._requestedExtensions;
335
+ }
336
+ get requestedVersion() {
337
+ return this._requestedVersion;
338
+ }
339
+ /**
340
+ * Arbitrary key/value state bag, equivalent to the `state` field on the
341
+ * Python A2A SDK's `ServerCallContext`. Use this to carry custom data
342
+ * (e.g. request headers, tenant IDs) through the call pipeline.
343
+ */
344
+ get state() {
345
+ return this._state;
346
+ }
347
+ addActivatedExtension(uri) {
348
+ this._activatedExtensions = Extensions.createFrom(this._activatedExtensions, uri);
349
+ }
350
+ /**
351
+ * Replaces the requested-extensions set. Mutated in place rather than
352
+ * via a fresh context because the transport layer holds a reference
353
+ * to this object and reads `activatedExtensions` off it after dispatch
354
+ * to populate the response `A2A-Extensions` header.
355
+ */
356
+ setRequestedExtensions(extensions) {
357
+ this._requestedExtensions = extensions;
358
+ }
359
+ };
360
+
361
+ // src/server/owner_resolver.ts
362
+ function resolveUserScope(context) {
363
+ return context.user?.userName || "unknown";
364
+ }
365
+
366
+ // src/errors/base.ts
367
+ var A2A_ERROR_DOMAIN = "a2a-protocol.org";
368
+ var ERROR_INFO_TYPE = "type.googleapis.com/google.rpc.ErrorInfo";
369
+ var A2A_ERROR_BRAND = /* @__PURE__ */ Symbol.for("@a2a-js/sdk.A2AError");
370
+ var A2AError = class _A2AError extends Error {
371
+ /** UPPER_SNAKE_CASE reason from `google.rpc.ErrorInfo` (§10.6 / §11.6). */
372
+ reason = "INTERNAL_ERROR";
373
+ /** Optional `google.rpc.ErrorInfo.metadata`. */
374
+ metadata;
375
+ /**
376
+ * Makes `instanceof` immune to this module being duplicated across
377
+ * entry-point bundles: the brand stands in for constructor identity.
378
+ *
379
+ * Inherited by every subclass, so `err instanceof TaskNotFoundError`
380
+ * stays exact — subclasses are matched by name up the prototype
381
+ * chain, the same identity `error.name` and the registry tables below
382
+ * already key on. Their names come from the runtime strings in
383
+ * `specs`, so a bundler cannot rename them; the base class, whose
384
+ * name *is* a renameable binding, is answered by the brand alone.
385
+ */
386
+ static [Symbol.hasInstance](value) {
387
+ if (typeof value !== "object" || value === null || !(A2A_ERROR_BRAND in value)) return false;
388
+ if (this === _A2AError) return true;
389
+ for (let proto = Object.getPrototypeOf(value); proto !== null; proto = Object.getPrototypeOf(proto)) {
390
+ if (proto.constructor?.name === this.name) {
391
+ return true;
392
+ }
393
+ }
394
+ return false;
395
+ }
396
+ constructor(options) {
397
+ const opts = typeof options === "string" ? { message: options } : options;
398
+ super(
399
+ opts?.message ?? "An unexpected error occurred.",
400
+ opts?.cause !== void 0 ? { cause: opts.cause } : void 0
401
+ );
402
+ this.name = new.target.name;
403
+ if (opts?.metadata && Object.keys(opts.metadata).length > 0) {
404
+ this.metadata = opts.metadata;
405
+ }
406
+ }
407
+ /** Builds `google.rpc.ErrorInfo` from this error. */
408
+ toErrorInfo() {
409
+ return {
410
+ "@type": ERROR_INFO_TYPE,
411
+ reason: this.reason,
412
+ domain: A2A_ERROR_DOMAIN,
413
+ ...this.metadata ? { metadata: this.metadata } : {}
414
+ };
415
+ }
416
+ };
417
+ Object.defineProperty(A2AError.prototype, A2A_ERROR_BRAND, { value: true });
418
+ var specs = [
419
+ { name: "TaskNotFoundError", reason: "TASK_NOT_FOUND", defaultMessage: "Task not found" },
420
+ {
421
+ name: "TaskNotCancelableError",
422
+ reason: "TASK_NOT_CANCELABLE",
423
+ defaultMessage: "Task cannot be canceled"
424
+ },
425
+ {
426
+ name: "PushNotificationNotSupportedError",
427
+ reason: "PUSH_NOTIFICATION_NOT_SUPPORTED",
428
+ defaultMessage: "Push Notification is not supported"
429
+ },
430
+ {
431
+ name: "UnsupportedOperationError",
432
+ reason: "UNSUPPORTED_OPERATION",
433
+ defaultMessage: "This operation is not supported"
434
+ },
435
+ {
436
+ name: "ContentTypeNotSupportedError",
437
+ reason: "CONTENT_TYPE_NOT_SUPPORTED",
438
+ defaultMessage: "Incompatible content types"
439
+ },
440
+ {
441
+ name: "InvalidAgentResponseError",
442
+ reason: "INVALID_AGENT_RESPONSE",
443
+ defaultMessage: "Invalid agent response type"
444
+ },
445
+ {
446
+ name: "ExtendedAgentCardNotConfiguredError",
447
+ reason: "EXTENDED_AGENT_CARD_NOT_CONFIGURED",
448
+ defaultMessage: "Extended Agent Card not configured"
449
+ },
450
+ {
451
+ name: "ExtensionSupportRequiredError",
452
+ reason: "EXTENSION_SUPPORT_REQUIRED",
453
+ defaultMessage: "Extension support required"
454
+ },
455
+ {
456
+ name: "VersionNotSupportedError",
457
+ reason: "VERSION_NOT_SUPPORTED",
458
+ defaultMessage: "Version not supported"
459
+ },
460
+ {
461
+ name: "RequestMalformedError",
462
+ reason: "INVALID_PARAMS",
463
+ defaultMessage: "Request malformed"
464
+ }
465
+ ];
466
+ var A2A_ERROR_SPECS = Object.freeze(
467
+ Object.fromEntries(specs.map((s) => [s.name, s]))
468
+ );
469
+ var A2A_ERROR_SPECS_BY_REASON = Object.freeze(
470
+ Object.fromEntries(specs.map((s) => [s.reason, s]))
471
+ );
472
+ function makeSemantic(spec) {
473
+ const cls = {
474
+ [spec.name]: class extends A2AError {
475
+ reason = spec.reason;
476
+ constructor(options) {
477
+ if (options === void 0) super({ message: spec.defaultMessage });
478
+ else if (typeof options === "string") super({ message: options });
479
+ else super({ message: spec.defaultMessage, ...options });
480
+ }
481
+ }
482
+ }[spec.name];
483
+ return cls;
484
+ }
485
+ var TaskNotFoundError = makeSemantic(A2A_ERROR_SPECS.TaskNotFoundError);
486
+ var TaskNotCancelableError = makeSemantic(A2A_ERROR_SPECS.TaskNotCancelableError);
487
+ var PushNotificationNotSupportedError = makeSemantic(
488
+ A2A_ERROR_SPECS.PushNotificationNotSupportedError
489
+ );
490
+ var UnsupportedOperationError = makeSemantic(A2A_ERROR_SPECS.UnsupportedOperationError);
491
+ var ContentTypeNotSupportedError = makeSemantic(
492
+ A2A_ERROR_SPECS.ContentTypeNotSupportedError
493
+ );
494
+ var InvalidAgentResponseError = makeSemantic(A2A_ERROR_SPECS.InvalidAgentResponseError);
495
+ var ExtendedAgentCardNotConfiguredError = makeSemantic(
496
+ A2A_ERROR_SPECS.ExtendedAgentCardNotConfiguredError
497
+ );
498
+ var ExtensionSupportRequiredError = makeSemantic(
499
+ A2A_ERROR_SPECS.ExtensionSupportRequiredError
500
+ );
501
+ var VersionNotSupportedError = makeSemantic(A2A_ERROR_SPECS.VersionNotSupportedError);
502
+ var RequestMalformedError = makeSemantic(A2A_ERROR_SPECS.RequestMalformedError);
503
+ var A2A_ERROR_CLASSES = Object.freeze({
504
+ TaskNotFoundError,
505
+ TaskNotCancelableError,
506
+ PushNotificationNotSupportedError,
507
+ UnsupportedOperationError,
508
+ ContentTypeNotSupportedError,
509
+ InvalidAgentResponseError,
510
+ ExtendedAgentCardNotConfiguredError,
511
+ ExtensionSupportRequiredError,
512
+ VersionNotSupportedError,
513
+ RequestMalformedError
514
+ });
515
+ function extractErrorMessage(err) {
516
+ if (err instanceof Error) return err.message;
517
+ if (err === null || err === void 0) return String(err);
518
+ if (typeof err === "string") return err;
519
+ try {
520
+ return JSON.stringify(err);
521
+ } catch {
522
+ return String(err);
523
+ }
524
+ }
525
+
526
+ // src/errors/rest.ts
527
+ var HTTP_STATUS = {
528
+ OK: 200,
529
+ CREATED: 201,
530
+ ACCEPTED: 202,
531
+ NO_CONTENT: 204,
532
+ BAD_REQUEST: 400,
533
+ UNAUTHORIZED: 401,
534
+ NOT_FOUND: 404,
535
+ CONFLICT: 409,
536
+ INTERNAL_SERVER_ERROR: 500,
537
+ NOT_IMPLEMENTED: 501
538
+ };
539
+ var REST_STATUS_NAME = {
540
+ OK: "OK",
541
+ CANCELLED: "CANCELLED",
542
+ UNKNOWN: "UNKNOWN",
543
+ INVALID_ARGUMENT: "INVALID_ARGUMENT",
544
+ DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED",
545
+ NOT_FOUND: "NOT_FOUND",
546
+ ALREADY_EXISTS: "ALREADY_EXISTS",
547
+ PERMISSION_DENIED: "PERMISSION_DENIED",
548
+ RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED",
549
+ FAILED_PRECONDITION: "FAILED_PRECONDITION",
550
+ ABORTED: "ABORTED",
551
+ OUT_OF_RANGE: "OUT_OF_RANGE",
552
+ UNIMPLEMENTED: "UNIMPLEMENTED",
553
+ INTERNAL: "INTERNAL",
554
+ UNAVAILABLE: "UNAVAILABLE",
555
+ DATA_LOSS: "DATA_LOSS",
556
+ UNAUTHENTICATED: "UNAUTHENTICATED"
557
+ };
558
+ var REST_ERROR_HTTP_STATUS = Object.freeze({
559
+ TaskNotFoundError: HTTP_STATUS.NOT_FOUND,
560
+ TaskNotCancelableError: HTTP_STATUS.BAD_REQUEST,
561
+ PushNotificationNotSupportedError: HTTP_STATUS.BAD_REQUEST,
562
+ UnsupportedOperationError: HTTP_STATUS.BAD_REQUEST,
563
+ ContentTypeNotSupportedError: HTTP_STATUS.BAD_REQUEST,
564
+ InvalidAgentResponseError: HTTP_STATUS.INTERNAL_SERVER_ERROR,
565
+ ExtendedAgentCardNotConfiguredError: HTTP_STATUS.BAD_REQUEST,
566
+ ExtensionSupportRequiredError: HTTP_STATUS.BAD_REQUEST,
567
+ VersionNotSupportedError: HTTP_STATUS.BAD_REQUEST,
568
+ RequestMalformedError: HTTP_STATUS.BAD_REQUEST
569
+ });
570
+ var REST_ERROR_STATUS_NAME = Object.freeze({
571
+ TaskNotFoundError: REST_STATUS_NAME.NOT_FOUND,
572
+ TaskNotCancelableError: REST_STATUS_NAME.FAILED_PRECONDITION,
573
+ PushNotificationNotSupportedError: REST_STATUS_NAME.FAILED_PRECONDITION,
574
+ UnsupportedOperationError: REST_STATUS_NAME.FAILED_PRECONDITION,
575
+ ContentTypeNotSupportedError: REST_STATUS_NAME.INVALID_ARGUMENT,
576
+ InvalidAgentResponseError: REST_STATUS_NAME.INTERNAL,
577
+ ExtendedAgentCardNotConfiguredError: REST_STATUS_NAME.FAILED_PRECONDITION,
578
+ ExtensionSupportRequiredError: REST_STATUS_NAME.FAILED_PRECONDITION,
579
+ VersionNotSupportedError: REST_STATUS_NAME.FAILED_PRECONDITION,
580
+ RequestMalformedError: REST_STATUS_NAME.INVALID_ARGUMENT
581
+ });
582
+ function makeRest(name) {
583
+ const Base = A2A_ERROR_CLASSES[name];
584
+ const defaultStatus = REST_ERROR_HTTP_STATUS[name] ?? HTTP_STATUS.INTERNAL_SERVER_ERROR;
585
+ const cls = {
586
+ [`Rest${name}`]: class extends Base {
587
+ transport = "rest";
588
+ statusCode;
589
+ headers;
590
+ constructor(options) {
591
+ super(options);
592
+ this.name = name;
593
+ this.statusCode = options?.statusCode ?? defaultStatus;
594
+ if (options?.headers) this.headers = options.headers;
595
+ }
596
+ }
597
+ }[`Rest${name}`];
598
+ return cls;
599
+ }
600
+ var RestTaskNotFoundError = makeRest("TaskNotFoundError");
601
+ var RestTaskNotCancelableError = makeRest("TaskNotCancelableError");
602
+ var RestPushNotificationNotSupportedError = makeRest("PushNotificationNotSupportedError");
603
+ var RestUnsupportedOperationError = makeRest("UnsupportedOperationError");
604
+ var RestContentTypeNotSupportedError = makeRest("ContentTypeNotSupportedError");
605
+ var RestInvalidAgentResponseError = makeRest("InvalidAgentResponseError");
606
+ var RestExtendedAgentCardNotConfiguredError = makeRest(
607
+ "ExtendedAgentCardNotConfiguredError"
608
+ );
609
+ var RestExtensionSupportRequiredError = makeRest("ExtensionSupportRequiredError");
610
+ var RestVersionNotSupportedError = makeRest("VersionNotSupportedError");
611
+ var RestRequestMalformedError = makeRest("RequestMalformedError");
612
+ var REST_ERROR_CLASSES = Object.freeze({
613
+ TaskNotFoundError: RestTaskNotFoundError,
614
+ TaskNotCancelableError: RestTaskNotCancelableError,
615
+ PushNotificationNotSupportedError: RestPushNotificationNotSupportedError,
616
+ UnsupportedOperationError: RestUnsupportedOperationError,
617
+ ContentTypeNotSupportedError: RestContentTypeNotSupportedError,
618
+ InvalidAgentResponseError: RestInvalidAgentResponseError,
619
+ ExtendedAgentCardNotConfiguredError: RestExtendedAgentCardNotConfiguredError,
620
+ ExtensionSupportRequiredError: RestExtensionSupportRequiredError,
621
+ VersionNotSupportedError: RestVersionNotSupportedError,
622
+ RequestMalformedError: RestRequestMalformedError
623
+ });
624
+
625
+ // src/errors/json_rpc.ts
626
+ var A2A_ERROR_CODE = {
627
+ PARSE_ERROR: -32700,
628
+ INVALID_REQUEST: -32600,
629
+ METHOD_NOT_FOUND: -32601,
630
+ INVALID_PARAMS: -32602,
631
+ INTERNAL_ERROR: -32603,
632
+ TASK_NOT_FOUND: -32001,
633
+ TASK_NOT_CANCELABLE: -32002,
634
+ PUSH_NOTIFICATION_NOT_SUPPORTED: -32003,
635
+ UNSUPPORTED_OPERATION: -32004,
636
+ CONTENT_TYPE_NOT_SUPPORTED: -32005,
637
+ INVALID_AGENT_RESPONSE: -32006,
638
+ EXTENDED_CARD_NOT_CONFIGURED: -32007,
639
+ EXTENSION_SUPPORT_REQUIRED: -32008,
640
+ VERSION_NOT_SUPPORTED: -32009
641
+ };
642
+ var JSON_RPC_ERROR_CODE = Object.freeze({
643
+ TaskNotFoundError: A2A_ERROR_CODE.TASK_NOT_FOUND,
644
+ TaskNotCancelableError: A2A_ERROR_CODE.TASK_NOT_CANCELABLE,
645
+ PushNotificationNotSupportedError: A2A_ERROR_CODE.PUSH_NOTIFICATION_NOT_SUPPORTED,
646
+ UnsupportedOperationError: A2A_ERROR_CODE.UNSUPPORTED_OPERATION,
647
+ ContentTypeNotSupportedError: A2A_ERROR_CODE.CONTENT_TYPE_NOT_SUPPORTED,
648
+ InvalidAgentResponseError: A2A_ERROR_CODE.INVALID_AGENT_RESPONSE,
649
+ ExtendedAgentCardNotConfiguredError: A2A_ERROR_CODE.EXTENDED_CARD_NOT_CONFIGURED,
650
+ ExtensionSupportRequiredError: A2A_ERROR_CODE.EXTENSION_SUPPORT_REQUIRED,
651
+ VersionNotSupportedError: A2A_ERROR_CODE.VERSION_NOT_SUPPORTED,
652
+ RequestMalformedError: A2A_ERROR_CODE.INVALID_PARAMS
653
+ });
654
+ var JSON_RPC_CODE_TO_ERROR = Object.freeze(
655
+ Object.fromEntries(Object.entries(JSON_RPC_ERROR_CODE).map(([name, code]) => [code, name]))
656
+ );
657
+ function isJsonRpcError(err) {
658
+ return err instanceof A2AError && err.transport === "jsonrpc";
659
+ }
660
+ function makeJsonRpc(name) {
661
+ const Base = A2A_ERROR_CLASSES[name];
662
+ const defaultCode = JSON_RPC_ERROR_CODE[name] ?? A2A_ERROR_CODE.INTERNAL_ERROR;
663
+ const cls = {
664
+ [`JsonRpc${name}`]: class extends Base {
665
+ transport = "jsonrpc";
666
+ envelopeCode;
667
+ data;
668
+ constructor(options) {
669
+ super(options);
670
+ this.name = name;
671
+ this.envelopeCode = options?.envelopeCode ?? defaultCode;
672
+ if (options?.data !== void 0) this.data = options.data;
673
+ }
674
+ }
675
+ }[`JsonRpc${name}`];
676
+ return cls;
677
+ }
678
+ var JsonRpcTaskNotFoundError = makeJsonRpc("TaskNotFoundError");
679
+ var JsonRpcTaskNotCancelableError = makeJsonRpc("TaskNotCancelableError");
680
+ var JsonRpcPushNotificationNotSupportedError = makeJsonRpc(
681
+ "PushNotificationNotSupportedError"
682
+ );
683
+ var JsonRpcUnsupportedOperationError = makeJsonRpc("UnsupportedOperationError");
684
+ var JsonRpcContentTypeNotSupportedError = makeJsonRpc("ContentTypeNotSupportedError");
685
+ var JsonRpcInvalidAgentResponseError = makeJsonRpc("InvalidAgentResponseError");
686
+ var JsonRpcExtendedAgentCardNotConfiguredError = makeJsonRpc(
687
+ "ExtendedAgentCardNotConfiguredError"
688
+ );
689
+ var JsonRpcExtensionSupportRequiredError = makeJsonRpc("ExtensionSupportRequiredError");
690
+ var JsonRpcVersionNotSupportedError = makeJsonRpc("VersionNotSupportedError");
691
+ var JsonRpcRequestMalformedError = makeJsonRpc("RequestMalformedError");
692
+ var JSON_RPC_ERROR_CLASSES = Object.freeze({
693
+ TaskNotFoundError: JsonRpcTaskNotFoundError,
694
+ TaskNotCancelableError: JsonRpcTaskNotCancelableError,
695
+ PushNotificationNotSupportedError: JsonRpcPushNotificationNotSupportedError,
696
+ UnsupportedOperationError: JsonRpcUnsupportedOperationError,
697
+ ContentTypeNotSupportedError: JsonRpcContentTypeNotSupportedError,
698
+ InvalidAgentResponseError: JsonRpcInvalidAgentResponseError,
699
+ ExtendedAgentCardNotConfiguredError: JsonRpcExtendedAgentCardNotConfiguredError,
700
+ ExtensionSupportRequiredError: JsonRpcExtensionSupportRequiredError,
701
+ VersionNotSupportedError: JsonRpcVersionNotSupportedError,
702
+ RequestMalformedError: JsonRpcRequestMalformedError
703
+ });
704
+ function toJsonRpcError(error) {
705
+ if (isJsonRpcError(error)) {
706
+ const spec = A2A_ERROR_SPECS[error.name];
707
+ return {
708
+ code: error.envelopeCode,
709
+ message: error.message,
710
+ ...spec ? { data: [error.toErrorInfo()] } : {}
711
+ };
712
+ }
713
+ if (error instanceof A2AError) {
714
+ const code = JSON_RPC_ERROR_CODE[error.name] ?? A2A_ERROR_CODE.INTERNAL_ERROR;
715
+ return { code, message: error.message, data: [error.toErrorInfo()] };
716
+ }
717
+ const message = error instanceof Error && error.message || "An unexpected error occurred.";
718
+ return { code: A2A_ERROR_CODE.INTERNAL_ERROR, message };
719
+ }
720
+ var RESERVED_CODE_TO_SEMANTIC = {
721
+ [A2A_ERROR_CODE.PARSE_ERROR]: "RequestMalformedError",
722
+ [A2A_ERROR_CODE.INVALID_REQUEST]: "RequestMalformedError",
723
+ [A2A_ERROR_CODE.METHOD_NOT_FOUND]: "RequestMalformedError"
724
+ };
725
+
726
+ // src/types/protojson.ts
727
+ function taskStateFromJSON(object) {
728
+ switch (object) {
729
+ case 0:
730
+ case "TASK_STATE_UNSPECIFIED":
731
+ return 0 /* TASK_STATE_UNSPECIFIED */;
732
+ case 1:
733
+ case "TASK_STATE_SUBMITTED":
734
+ return 1 /* TASK_STATE_SUBMITTED */;
735
+ case 2:
736
+ case "TASK_STATE_WORKING":
737
+ return 2 /* TASK_STATE_WORKING */;
738
+ case 3:
739
+ case "TASK_STATE_COMPLETED":
740
+ return 3 /* TASK_STATE_COMPLETED */;
741
+ case 4:
742
+ case "TASK_STATE_FAILED":
743
+ return 4 /* TASK_STATE_FAILED */;
744
+ case 5:
745
+ case "TASK_STATE_CANCELED":
746
+ return 5 /* TASK_STATE_CANCELED */;
747
+ case 6:
748
+ case "TASK_STATE_INPUT_REQUIRED":
749
+ return 6 /* TASK_STATE_INPUT_REQUIRED */;
750
+ case 7:
751
+ case "TASK_STATE_REJECTED":
752
+ return 7 /* TASK_STATE_REJECTED */;
753
+ case 8:
754
+ case "TASK_STATE_AUTH_REQUIRED":
755
+ return 8 /* TASK_STATE_AUTH_REQUIRED */;
756
+ case -1:
757
+ case "UNRECOGNIZED":
758
+ default:
759
+ return -1 /* UNRECOGNIZED */;
760
+ }
761
+ }
762
+ function taskStateToJSON(object) {
763
+ switch (object) {
764
+ case 0 /* TASK_STATE_UNSPECIFIED */:
765
+ return "TASK_STATE_UNSPECIFIED";
766
+ case 1 /* TASK_STATE_SUBMITTED */:
767
+ return "TASK_STATE_SUBMITTED";
768
+ case 2 /* TASK_STATE_WORKING */:
769
+ return "TASK_STATE_WORKING";
770
+ case 3 /* TASK_STATE_COMPLETED */:
771
+ return "TASK_STATE_COMPLETED";
772
+ case 4 /* TASK_STATE_FAILED */:
773
+ return "TASK_STATE_FAILED";
774
+ case 5 /* TASK_STATE_CANCELED */:
775
+ return "TASK_STATE_CANCELED";
776
+ case 6 /* TASK_STATE_INPUT_REQUIRED */:
777
+ return "TASK_STATE_INPUT_REQUIRED";
778
+ case 7 /* TASK_STATE_REJECTED */:
779
+ return "TASK_STATE_REJECTED";
780
+ case 8 /* TASK_STATE_AUTH_REQUIRED */:
781
+ return "TASK_STATE_AUTH_REQUIRED";
782
+ case -1 /* UNRECOGNIZED */:
783
+ default:
784
+ return "UNRECOGNIZED";
785
+ }
786
+ }
787
+ function roleFromJSON(object) {
788
+ switch (object) {
789
+ case 0:
790
+ case "ROLE_UNSPECIFIED":
791
+ return 0 /* ROLE_UNSPECIFIED */;
792
+ case 1:
793
+ case "ROLE_USER":
794
+ return 1 /* ROLE_USER */;
795
+ case 2:
796
+ case "ROLE_AGENT":
797
+ return 2 /* ROLE_AGENT */;
798
+ case -1:
799
+ case "UNRECOGNIZED":
800
+ default:
801
+ return -1 /* UNRECOGNIZED */;
802
+ }
803
+ }
804
+ function roleToJSON(object) {
805
+ switch (object) {
806
+ case 0 /* ROLE_UNSPECIFIED */:
807
+ return "ROLE_UNSPECIFIED";
808
+ case 1 /* ROLE_USER */:
809
+ return "ROLE_USER";
810
+ case 2 /* ROLE_AGENT */:
811
+ return "ROLE_AGENT";
812
+ case -1 /* UNRECOGNIZED */:
813
+ default:
814
+ return "UNRECOGNIZED";
815
+ }
816
+ }
817
+ var SendMessageConfiguration = {
818
+ fromJSON(object) {
819
+ return {
820
+ acceptedOutputModes: globalThis.Array.isArray(object?.acceptedOutputModes) ? object.acceptedOutputModes.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.accepted_output_modes) ? object.accepted_output_modes.map((e) => globalThis.String(e)) : [],
821
+ taskPushNotificationConfig: isSet(object.taskPushNotificationConfig) ? TaskPushNotificationConfig.fromJSON(object.taskPushNotificationConfig) : isSet(object.task_push_notification_config) ? TaskPushNotificationConfig.fromJSON(object.task_push_notification_config) : void 0,
822
+ historyLength: isSet(object.historyLength) ? globalThis.Number(object.historyLength) : isSet(object.history_length) ? globalThis.Number(object.history_length) : void 0,
823
+ returnImmediately: isSet(object.returnImmediately) ? globalThis.Boolean(object.returnImmediately) : isSet(object.return_immediately) ? globalThis.Boolean(object.return_immediately) : false
824
+ };
825
+ },
826
+ toJSON(message) {
827
+ const obj = {};
828
+ if (message.acceptedOutputModes?.length) {
829
+ obj.acceptedOutputModes = message.acceptedOutputModes;
830
+ }
831
+ if (message.taskPushNotificationConfig !== void 0) {
832
+ obj.taskPushNotificationConfig = TaskPushNotificationConfig.toJSON(
833
+ message.taskPushNotificationConfig
834
+ );
835
+ }
836
+ if (message.historyLength !== void 0) {
837
+ obj.historyLength = Math.round(message.historyLength);
838
+ }
839
+ if (message.returnImmediately !== false) {
840
+ obj.returnImmediately = message.returnImmediately;
841
+ }
842
+ return obj;
843
+ }
844
+ };
845
+ var Task = {
846
+ fromJSON(object) {
847
+ return {
848
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
849
+ contextId: isSet(object.contextId) ? globalThis.String(object.contextId) : isSet(object.context_id) ? globalThis.String(object.context_id) : "",
850
+ status: isSet(object.status) ? TaskStatus.fromJSON(object.status) : void 0,
851
+ artifacts: globalThis.Array.isArray(object?.artifacts) ? object.artifacts.map((e) => Artifact.fromJSON(e)) : [],
852
+ history: globalThis.Array.isArray(object?.history) ? object.history.map((e) => Message.fromJSON(e)) : [],
853
+ metadata: isObject(object.metadata) ? object.metadata : void 0
854
+ };
855
+ },
856
+ toJSON(message) {
857
+ const obj = {};
858
+ if (message.id !== "") {
859
+ obj.id = message.id;
860
+ }
861
+ if (message.contextId !== "") {
862
+ obj.contextId = message.contextId;
863
+ }
864
+ if (message.status !== void 0) {
865
+ obj.status = TaskStatus.toJSON(message.status);
866
+ }
867
+ if (message.artifacts?.length) {
868
+ obj.artifacts = message.artifacts.map((e) => Artifact.toJSON(e));
869
+ }
870
+ if (message.history?.length) {
871
+ obj.history = message.history.map((e) => Message.toJSON(e));
872
+ }
873
+ if (message.metadata !== void 0) {
874
+ obj.metadata = message.metadata;
875
+ }
876
+ return obj;
877
+ }
878
+ };
879
+ var TaskStatus = {
880
+ fromJSON(object) {
881
+ return {
882
+ state: isSet(object.state) ? taskStateFromJSON(object.state) : 0,
883
+ message: isSet(object.message) ? Message.fromJSON(object.message) : void 0,
884
+ timestamp: isSet(object.timestamp) ? globalThis.String(object.timestamp) : void 0
885
+ };
886
+ },
887
+ toJSON(message) {
888
+ const obj = {};
889
+ if (message.state !== 0) {
890
+ obj.state = taskStateToJSON(message.state);
891
+ }
892
+ if (message.message !== void 0) {
893
+ obj.message = Message.toJSON(message.message);
894
+ }
895
+ if (message.timestamp !== void 0) {
896
+ obj.timestamp = message.timestamp;
897
+ }
898
+ return obj;
899
+ }
900
+ };
901
+ var Part = {
902
+ fromJSON(object) {
903
+ return {
904
+ content: isSet(object.text) ? { $case: "text", value: globalThis.String(object.text) } : isSet(object.raw) ? { $case: "raw", value: Buffer.from(bytesFromBase64(object.raw)) } : isSet(object.url) ? { $case: "url", value: globalThis.String(object.url) } : isSet(object.data) ? { $case: "data", value: object.data } : void 0,
905
+ metadata: isObject(object.metadata) ? object.metadata : void 0,
906
+ filename: isSet(object.filename) ? globalThis.String(object.filename) : "",
907
+ mediaType: isSet(object.mediaType) ? globalThis.String(object.mediaType) : isSet(object.media_type) ? globalThis.String(object.media_type) : ""
908
+ };
909
+ },
910
+ toJSON(message) {
911
+ const obj = {};
912
+ if (message.content?.$case === "text") {
913
+ obj.text = message.content.value;
914
+ } else if (message.content?.$case === "raw") {
915
+ obj.raw = base64FromBytes(message.content.value);
916
+ } else if (message.content?.$case === "url") {
917
+ obj.url = message.content.value;
918
+ } else if (message.content?.$case === "data") {
919
+ obj.data = message.content.value;
920
+ }
921
+ if (message.metadata !== void 0) {
922
+ obj.metadata = message.metadata;
923
+ }
924
+ if (message.filename !== "") {
925
+ obj.filename = message.filename;
926
+ }
927
+ if (message.mediaType !== "") {
928
+ obj.mediaType = message.mediaType;
929
+ }
930
+ return obj;
931
+ }
932
+ };
933
+ var Message = {
934
+ fromJSON(object) {
935
+ return {
936
+ messageId: isSet(object.messageId) ? globalThis.String(object.messageId) : isSet(object.message_id) ? globalThis.String(object.message_id) : "",
937
+ contextId: isSet(object.contextId) ? globalThis.String(object.contextId) : isSet(object.context_id) ? globalThis.String(object.context_id) : "",
938
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
939
+ role: isSet(object.role) ? roleFromJSON(object.role) : 0,
940
+ parts: globalThis.Array.isArray(object?.parts) ? object.parts.map((e) => Part.fromJSON(e)) : [],
941
+ metadata: isObject(object.metadata) ? object.metadata : void 0,
942
+ extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => globalThis.String(e)) : [],
943
+ referenceTaskIds: globalThis.Array.isArray(object?.referenceTaskIds) ? object.referenceTaskIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.reference_task_ids) ? object.reference_task_ids.map((e) => globalThis.String(e)) : []
944
+ };
945
+ },
946
+ toJSON(message) {
947
+ const obj = {};
948
+ if (message.messageId !== "") {
949
+ obj.messageId = message.messageId;
950
+ }
951
+ if (message.contextId !== "") {
952
+ obj.contextId = message.contextId;
953
+ }
954
+ if (message.taskId !== "") {
955
+ obj.taskId = message.taskId;
956
+ }
957
+ if (message.role !== 0) {
958
+ obj.role = roleToJSON(message.role);
959
+ }
960
+ if (message.parts?.length) {
961
+ obj.parts = message.parts.map((e) => Part.toJSON(e));
962
+ }
963
+ if (message.metadata !== void 0) {
964
+ obj.metadata = message.metadata;
965
+ }
966
+ if (message.extensions?.length) {
967
+ obj.extensions = message.extensions;
968
+ }
969
+ if (message.referenceTaskIds?.length) {
970
+ obj.referenceTaskIds = message.referenceTaskIds;
971
+ }
972
+ return obj;
973
+ }
974
+ };
975
+ var Artifact = {
976
+ fromJSON(object) {
977
+ return {
978
+ artifactId: isSet(object.artifactId) ? globalThis.String(object.artifactId) : isSet(object.artifact_id) ? globalThis.String(object.artifact_id) : "",
979
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
980
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
981
+ parts: globalThis.Array.isArray(object?.parts) ? object.parts.map((e) => Part.fromJSON(e)) : [],
982
+ metadata: isObject(object.metadata) ? object.metadata : void 0,
983
+ extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => globalThis.String(e)) : []
984
+ };
985
+ },
986
+ toJSON(message) {
987
+ const obj = {};
988
+ if (message.artifactId !== "") {
989
+ obj.artifactId = message.artifactId;
990
+ }
991
+ if (message.name !== "") {
992
+ obj.name = message.name;
993
+ }
994
+ if (message.description !== "") {
995
+ obj.description = message.description;
996
+ }
997
+ if (message.parts?.length) {
998
+ obj.parts = message.parts.map((e) => Part.toJSON(e));
999
+ }
1000
+ if (message.metadata !== void 0) {
1001
+ obj.metadata = message.metadata;
1002
+ }
1003
+ if (message.extensions?.length) {
1004
+ obj.extensions = message.extensions;
1005
+ }
1006
+ return obj;
1007
+ }
1008
+ };
1009
+ var TaskStatusUpdateEvent = {
1010
+ fromJSON(object) {
1011
+ return {
1012
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
1013
+ contextId: isSet(object.contextId) ? globalThis.String(object.contextId) : isSet(object.context_id) ? globalThis.String(object.context_id) : "",
1014
+ status: isSet(object.status) ? TaskStatus.fromJSON(object.status) : void 0,
1015
+ metadata: isObject(object.metadata) ? object.metadata : void 0
1016
+ };
1017
+ },
1018
+ toJSON(message) {
1019
+ const obj = {};
1020
+ if (message.taskId !== "") {
1021
+ obj.taskId = message.taskId;
1022
+ }
1023
+ if (message.contextId !== "") {
1024
+ obj.contextId = message.contextId;
1025
+ }
1026
+ if (message.status !== void 0) {
1027
+ obj.status = TaskStatus.toJSON(message.status);
1028
+ }
1029
+ if (message.metadata !== void 0) {
1030
+ obj.metadata = message.metadata;
1031
+ }
1032
+ return obj;
1033
+ }
1034
+ };
1035
+ var TaskArtifactUpdateEvent = {
1036
+ fromJSON(object) {
1037
+ return {
1038
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
1039
+ contextId: isSet(object.contextId) ? globalThis.String(object.contextId) : isSet(object.context_id) ? globalThis.String(object.context_id) : "",
1040
+ artifact: isSet(object.artifact) ? Artifact.fromJSON(object.artifact) : void 0,
1041
+ append: isSet(object.append) ? globalThis.Boolean(object.append) : false,
1042
+ lastChunk: isSet(object.lastChunk) ? globalThis.Boolean(object.lastChunk) : isSet(object.last_chunk) ? globalThis.Boolean(object.last_chunk) : false,
1043
+ metadata: isObject(object.metadata) ? object.metadata : void 0
1044
+ };
1045
+ },
1046
+ toJSON(message) {
1047
+ const obj = {};
1048
+ if (message.taskId !== "") {
1049
+ obj.taskId = message.taskId;
1050
+ }
1051
+ if (message.contextId !== "") {
1052
+ obj.contextId = message.contextId;
1053
+ }
1054
+ if (message.artifact !== void 0) {
1055
+ obj.artifact = Artifact.toJSON(message.artifact);
1056
+ }
1057
+ if (message.append !== false) {
1058
+ obj.append = message.append;
1059
+ }
1060
+ if (message.lastChunk !== false) {
1061
+ obj.lastChunk = message.lastChunk;
1062
+ }
1063
+ if (message.metadata !== void 0) {
1064
+ obj.metadata = message.metadata;
1065
+ }
1066
+ return obj;
1067
+ }
1068
+ };
1069
+ var AuthenticationInfo = {
1070
+ fromJSON(object) {
1071
+ return {
1072
+ scheme: isSet(object.scheme) ? globalThis.String(object.scheme) : "",
1073
+ credentials: isSet(object.credentials) ? globalThis.String(object.credentials) : ""
1074
+ };
1075
+ },
1076
+ toJSON(message) {
1077
+ const obj = {};
1078
+ if (message.scheme !== "") {
1079
+ obj.scheme = message.scheme;
1080
+ }
1081
+ if (message.credentials !== "") {
1082
+ obj.credentials = message.credentials;
1083
+ }
1084
+ return obj;
1085
+ }
1086
+ };
1087
+ var AgentInterface = {
1088
+ fromJSON(object) {
1089
+ return {
1090
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
1091
+ protocolBinding: isSet(object.protocolBinding) ? globalThis.String(object.protocolBinding) : isSet(object.protocol_binding) ? globalThis.String(object.protocol_binding) : "",
1092
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1093
+ protocolVersion: isSet(object.protocolVersion) ? globalThis.String(object.protocolVersion) : isSet(object.protocol_version) ? globalThis.String(object.protocol_version) : ""
1094
+ };
1095
+ },
1096
+ toJSON(message) {
1097
+ const obj = {};
1098
+ if (message.url !== "") {
1099
+ obj.url = message.url;
1100
+ }
1101
+ if (message.protocolBinding !== "") {
1102
+ obj.protocolBinding = message.protocolBinding;
1103
+ }
1104
+ if (message.tenant !== "") {
1105
+ obj.tenant = message.tenant;
1106
+ }
1107
+ if (message.protocolVersion !== "") {
1108
+ obj.protocolVersion = message.protocolVersion;
1109
+ }
1110
+ return obj;
1111
+ }
1112
+ };
1113
+ var AgentCard = {
1114
+ fromJSON(object) {
1115
+ return {
1116
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
1117
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1118
+ supportedInterfaces: globalThis.Array.isArray(object?.supportedInterfaces) ? object.supportedInterfaces.map((e) => AgentInterface.fromJSON(e)) : globalThis.Array.isArray(object?.supported_interfaces) ? object.supported_interfaces.map((e) => AgentInterface.fromJSON(e)) : [],
1119
+ provider: isSet(object.provider) ? AgentProvider.fromJSON(object.provider) : void 0,
1120
+ version: isSet(object.version) ? globalThis.String(object.version) : "",
1121
+ documentationUrl: isSet(object.documentationUrl) ? globalThis.String(object.documentationUrl) : isSet(object.documentation_url) ? globalThis.String(object.documentation_url) : void 0,
1122
+ capabilities: isSet(object.capabilities) ? AgentCapabilities.fromJSON(object.capabilities) : void 0,
1123
+ securitySchemes: isObject(object.securitySchemes) ? globalThis.Object.entries(object.securitySchemes).reduce(
1124
+ (acc, [key, value]) => {
1125
+ acc[key] = SecurityScheme.fromJSON(value);
1126
+ return acc;
1127
+ },
1128
+ {}
1129
+ ) : isObject(object.security_schemes) ? globalThis.Object.entries(object.security_schemes).reduce(
1130
+ (acc, [key, value]) => {
1131
+ acc[key] = SecurityScheme.fromJSON(value);
1132
+ return acc;
1133
+ },
1134
+ {}
1135
+ ) : {},
1136
+ securityRequirements: globalThis.Array.isArray(object?.securityRequirements) ? object.securityRequirements.map((e) => SecurityRequirement.fromJSON(e)) : globalThis.Array.isArray(object?.security_requirements) ? object.security_requirements.map((e) => SecurityRequirement.fromJSON(e)) : [],
1137
+ defaultInputModes: globalThis.Array.isArray(object?.defaultInputModes) ? object.defaultInputModes.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.default_input_modes) ? object.default_input_modes.map((e) => globalThis.String(e)) : [],
1138
+ defaultOutputModes: globalThis.Array.isArray(object?.defaultOutputModes) ? object.defaultOutputModes.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.default_output_modes) ? object.default_output_modes.map((e) => globalThis.String(e)) : [],
1139
+ skills: globalThis.Array.isArray(object?.skills) ? object.skills.map((e) => AgentSkill.fromJSON(e)) : [],
1140
+ signatures: globalThis.Array.isArray(object?.signatures) ? object.signatures.map((e) => AgentCardSignature.fromJSON(e)) : [],
1141
+ iconUrl: isSet(object.iconUrl) ? globalThis.String(object.iconUrl) : isSet(object.icon_url) ? globalThis.String(object.icon_url) : void 0
1142
+ };
1143
+ },
1144
+ toJSON(message) {
1145
+ const obj = {};
1146
+ if (message.name !== "") {
1147
+ obj.name = message.name;
1148
+ }
1149
+ if (message.description !== "") {
1150
+ obj.description = message.description;
1151
+ }
1152
+ if (message.supportedInterfaces?.length) {
1153
+ obj.supportedInterfaces = message.supportedInterfaces.map((e) => AgentInterface.toJSON(e));
1154
+ }
1155
+ if (message.provider !== void 0) {
1156
+ obj.provider = AgentProvider.toJSON(message.provider);
1157
+ }
1158
+ if (message.version !== "") {
1159
+ obj.version = message.version;
1160
+ }
1161
+ if (message.documentationUrl !== void 0) {
1162
+ obj.documentationUrl = message.documentationUrl;
1163
+ }
1164
+ if (message.capabilities !== void 0) {
1165
+ obj.capabilities = AgentCapabilities.toJSON(message.capabilities);
1166
+ }
1167
+ if (message.securitySchemes) {
1168
+ const entries = globalThis.Object.entries(message.securitySchemes);
1169
+ if (entries.length > 0) {
1170
+ const securitySchemes = {};
1171
+ entries.forEach(([k, v]) => {
1172
+ securitySchemes[k] = SecurityScheme.toJSON(v);
1173
+ });
1174
+ obj.securitySchemes = securitySchemes;
1175
+ }
1176
+ }
1177
+ if (message.securityRequirements?.length) {
1178
+ obj.securityRequirements = message.securityRequirements.map(
1179
+ (e) => SecurityRequirement.toJSON(e)
1180
+ );
1181
+ }
1182
+ if (message.defaultInputModes?.length) {
1183
+ obj.defaultInputModes = message.defaultInputModes;
1184
+ }
1185
+ if (message.defaultOutputModes?.length) {
1186
+ obj.defaultOutputModes = message.defaultOutputModes;
1187
+ }
1188
+ if (message.skills?.length) {
1189
+ obj.skills = message.skills.map((e) => AgentSkill.toJSON(e));
1190
+ }
1191
+ if (message.signatures?.length) {
1192
+ obj.signatures = message.signatures.map((e) => AgentCardSignature.toJSON(e));
1193
+ }
1194
+ if (message.iconUrl !== void 0) {
1195
+ obj.iconUrl = message.iconUrl;
1196
+ }
1197
+ return obj;
1198
+ }
1199
+ };
1200
+ var AgentProvider = {
1201
+ fromJSON(object) {
1202
+ return {
1203
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
1204
+ organization: isSet(object.organization) ? globalThis.String(object.organization) : ""
1205
+ };
1206
+ },
1207
+ toJSON(message) {
1208
+ const obj = {};
1209
+ if (message.url !== "") {
1210
+ obj.url = message.url;
1211
+ }
1212
+ if (message.organization !== "") {
1213
+ obj.organization = message.organization;
1214
+ }
1215
+ return obj;
1216
+ }
1217
+ };
1218
+ var AgentCapabilities = {
1219
+ fromJSON(object) {
1220
+ return {
1221
+ streaming: isSet(object.streaming) ? globalThis.Boolean(object.streaming) : void 0,
1222
+ pushNotifications: isSet(object.pushNotifications) ? globalThis.Boolean(object.pushNotifications) : isSet(object.push_notifications) ? globalThis.Boolean(object.push_notifications) : void 0,
1223
+ extensions: globalThis.Array.isArray(object?.extensions) ? object.extensions.map((e) => AgentExtension.fromJSON(e)) : [],
1224
+ extendedAgentCard: isSet(object.extendedAgentCard) ? globalThis.Boolean(object.extendedAgentCard) : isSet(object.extended_agent_card) ? globalThis.Boolean(object.extended_agent_card) : void 0
1225
+ };
1226
+ },
1227
+ toJSON(message) {
1228
+ const obj = {};
1229
+ if (message.streaming !== void 0) {
1230
+ obj.streaming = message.streaming;
1231
+ }
1232
+ if (message.pushNotifications !== void 0) {
1233
+ obj.pushNotifications = message.pushNotifications;
1234
+ }
1235
+ if (message.extensions?.length) {
1236
+ obj.extensions = message.extensions.map((e) => AgentExtension.toJSON(e));
1237
+ }
1238
+ if (message.extendedAgentCard !== void 0) {
1239
+ obj.extendedAgentCard = message.extendedAgentCard;
1240
+ }
1241
+ return obj;
1242
+ }
1243
+ };
1244
+ var AgentExtension = {
1245
+ fromJSON(object) {
1246
+ return {
1247
+ uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
1248
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1249
+ required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
1250
+ params: isObject(object.params) ? object.params : void 0
1251
+ };
1252
+ },
1253
+ toJSON(message) {
1254
+ const obj = {};
1255
+ if (message.uri !== "") {
1256
+ obj.uri = message.uri;
1257
+ }
1258
+ if (message.description !== "") {
1259
+ obj.description = message.description;
1260
+ }
1261
+ if (message.required !== false) {
1262
+ obj.required = message.required;
1263
+ }
1264
+ if (message.params !== void 0) {
1265
+ obj.params = message.params;
1266
+ }
1267
+ return obj;
1268
+ }
1269
+ };
1270
+ var AgentSkill = {
1271
+ fromJSON(object) {
1272
+ return {
1273
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
1274
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
1275
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1276
+ tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
1277
+ examples: globalThis.Array.isArray(object?.examples) ? object.examples.map((e) => globalThis.String(e)) : [],
1278
+ inputModes: globalThis.Array.isArray(object?.inputModes) ? object.inputModes.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.input_modes) ? object.input_modes.map((e) => globalThis.String(e)) : [],
1279
+ outputModes: globalThis.Array.isArray(object?.outputModes) ? object.outputModes.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.output_modes) ? object.output_modes.map((e) => globalThis.String(e)) : [],
1280
+ securityRequirements: globalThis.Array.isArray(object?.securityRequirements) ? object.securityRequirements.map((e) => SecurityRequirement.fromJSON(e)) : globalThis.Array.isArray(object?.security_requirements) ? object.security_requirements.map((e) => SecurityRequirement.fromJSON(e)) : []
1281
+ };
1282
+ },
1283
+ toJSON(message) {
1284
+ const obj = {};
1285
+ if (message.id !== "") {
1286
+ obj.id = message.id;
1287
+ }
1288
+ if (message.name !== "") {
1289
+ obj.name = message.name;
1290
+ }
1291
+ if (message.description !== "") {
1292
+ obj.description = message.description;
1293
+ }
1294
+ if (message.tags?.length) {
1295
+ obj.tags = message.tags;
1296
+ }
1297
+ if (message.examples?.length) {
1298
+ obj.examples = message.examples;
1299
+ }
1300
+ if (message.inputModes?.length) {
1301
+ obj.inputModes = message.inputModes;
1302
+ }
1303
+ if (message.outputModes?.length) {
1304
+ obj.outputModes = message.outputModes;
1305
+ }
1306
+ if (message.securityRequirements?.length) {
1307
+ obj.securityRequirements = message.securityRequirements.map(
1308
+ (e) => SecurityRequirement.toJSON(e)
1309
+ );
1310
+ }
1311
+ return obj;
1312
+ }
1313
+ };
1314
+ var AgentCardSignature = {
1315
+ fromJSON(object) {
1316
+ return {
1317
+ protected: isSet(object.protected) ? globalThis.String(object.protected) : "",
1318
+ signature: isSet(object.signature) ? globalThis.String(object.signature) : "",
1319
+ header: isObject(object.header) ? object.header : void 0
1320
+ };
1321
+ },
1322
+ toJSON(message) {
1323
+ const obj = {};
1324
+ if (message.protected !== "") {
1325
+ obj.protected = message.protected;
1326
+ }
1327
+ if (message.signature !== "") {
1328
+ obj.signature = message.signature;
1329
+ }
1330
+ if (message.header !== void 0) {
1331
+ obj.header = message.header;
1332
+ }
1333
+ return obj;
1334
+ }
1335
+ };
1336
+ var TaskPushNotificationConfig = {
1337
+ fromJSON(object) {
1338
+ return {
1339
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1340
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
1341
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
1342
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
1343
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
1344
+ authentication: isSet(object.authentication) ? AuthenticationInfo.fromJSON(object.authentication) : void 0
1345
+ };
1346
+ },
1347
+ toJSON(message) {
1348
+ const obj = {};
1349
+ if (message.tenant !== "") {
1350
+ obj.tenant = message.tenant;
1351
+ }
1352
+ if (message.id !== "") {
1353
+ obj.id = message.id;
1354
+ }
1355
+ if (message.taskId !== "") {
1356
+ obj.taskId = message.taskId;
1357
+ }
1358
+ if (message.url !== "") {
1359
+ obj.url = message.url;
1360
+ }
1361
+ if (message.token !== "") {
1362
+ obj.token = message.token;
1363
+ }
1364
+ if (message.authentication !== void 0) {
1365
+ obj.authentication = AuthenticationInfo.toJSON(message.authentication);
1366
+ }
1367
+ return obj;
1368
+ }
1369
+ };
1370
+ var StringList = {
1371
+ fromJSON(object) {
1372
+ return {
1373
+ list: globalThis.Array.isArray(object?.list) ? object.list.map((e) => globalThis.String(e)) : []
1374
+ };
1375
+ },
1376
+ toJSON(message) {
1377
+ const obj = {};
1378
+ if (message.list?.length) {
1379
+ obj.list = message.list;
1380
+ }
1381
+ return obj;
1382
+ }
1383
+ };
1384
+ var SecurityRequirement = {
1385
+ fromJSON(object) {
1386
+ return {
1387
+ schemes: isObject(object.schemes) ? globalThis.Object.entries(object.schemes).reduce(
1388
+ (acc, [key, value]) => {
1389
+ acc[key] = StringList.fromJSON(value);
1390
+ return acc;
1391
+ },
1392
+ {}
1393
+ ) : {}
1394
+ };
1395
+ },
1396
+ toJSON(message) {
1397
+ const obj = {};
1398
+ if (message.schemes) {
1399
+ const entries = globalThis.Object.entries(message.schemes);
1400
+ if (entries.length > 0) {
1401
+ const schemes = {};
1402
+ entries.forEach(([k, v]) => {
1403
+ schemes[k] = StringList.toJSON(v);
1404
+ });
1405
+ obj.schemes = schemes;
1406
+ }
1407
+ }
1408
+ return obj;
1409
+ }
1410
+ };
1411
+ var SecurityScheme = {
1412
+ fromJSON(object) {
1413
+ return {
1414
+ scheme: isSet(object.apiKeySecurityScheme) ? {
1415
+ $case: "apiKeySecurityScheme",
1416
+ value: APIKeySecurityScheme.fromJSON(object.apiKeySecurityScheme)
1417
+ } : isSet(object.api_key_security_scheme) ? {
1418
+ $case: "apiKeySecurityScheme",
1419
+ value: APIKeySecurityScheme.fromJSON(object.api_key_security_scheme)
1420
+ } : isSet(object.httpAuthSecurityScheme) ? {
1421
+ $case: "httpAuthSecurityScheme",
1422
+ value: HTTPAuthSecurityScheme.fromJSON(object.httpAuthSecurityScheme)
1423
+ } : isSet(object.http_auth_security_scheme) ? {
1424
+ $case: "httpAuthSecurityScheme",
1425
+ value: HTTPAuthSecurityScheme.fromJSON(object.http_auth_security_scheme)
1426
+ } : isSet(object.oauth2SecurityScheme) ? {
1427
+ $case: "oauth2SecurityScheme",
1428
+ value: OAuth2SecurityScheme.fromJSON(object.oauth2SecurityScheme)
1429
+ } : isSet(object.oauth2_security_scheme) ? {
1430
+ $case: "oauth2SecurityScheme",
1431
+ value: OAuth2SecurityScheme.fromJSON(object.oauth2_security_scheme)
1432
+ } : isSet(object.openIdConnectSecurityScheme) ? {
1433
+ $case: "openIdConnectSecurityScheme",
1434
+ value: OpenIdConnectSecurityScheme.fromJSON(
1435
+ object.openIdConnectSecurityScheme
1436
+ )
1437
+ } : isSet(object.open_id_connect_security_scheme) ? {
1438
+ $case: "openIdConnectSecurityScheme",
1439
+ value: OpenIdConnectSecurityScheme.fromJSON(
1440
+ object.open_id_connect_security_scheme
1441
+ )
1442
+ } : isSet(object.mtlsSecurityScheme) ? {
1443
+ $case: "mtlsSecurityScheme",
1444
+ value: MutualTlsSecurityScheme.fromJSON(object.mtlsSecurityScheme)
1445
+ } : isSet(object.mtls_security_scheme) ? {
1446
+ $case: "mtlsSecurityScheme",
1447
+ value: MutualTlsSecurityScheme.fromJSON(object.mtls_security_scheme)
1448
+ } : void 0
1449
+ };
1450
+ },
1451
+ toJSON(message) {
1452
+ const obj = {};
1453
+ if (message.scheme?.$case === "apiKeySecurityScheme") {
1454
+ obj.apiKeySecurityScheme = APIKeySecurityScheme.toJSON(message.scheme.value);
1455
+ } else if (message.scheme?.$case === "httpAuthSecurityScheme") {
1456
+ obj.httpAuthSecurityScheme = HTTPAuthSecurityScheme.toJSON(message.scheme.value);
1457
+ } else if (message.scheme?.$case === "oauth2SecurityScheme") {
1458
+ obj.oauth2SecurityScheme = OAuth2SecurityScheme.toJSON(message.scheme.value);
1459
+ } else if (message.scheme?.$case === "openIdConnectSecurityScheme") {
1460
+ obj.openIdConnectSecurityScheme = OpenIdConnectSecurityScheme.toJSON(message.scheme.value);
1461
+ } else if (message.scheme?.$case === "mtlsSecurityScheme") {
1462
+ obj.mtlsSecurityScheme = MutualTlsSecurityScheme.toJSON(message.scheme.value);
1463
+ }
1464
+ return obj;
1465
+ }
1466
+ };
1467
+ var APIKeySecurityScheme = {
1468
+ fromJSON(object) {
1469
+ return {
1470
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1471
+ location: isSet(object.location) ? globalThis.String(object.location) : "",
1472
+ name: isSet(object.name) ? globalThis.String(object.name) : ""
1473
+ };
1474
+ },
1475
+ toJSON(message) {
1476
+ const obj = {};
1477
+ if (message.description !== "") {
1478
+ obj.description = message.description;
1479
+ }
1480
+ if (message.location !== "") {
1481
+ obj.location = message.location;
1482
+ }
1483
+ if (message.name !== "") {
1484
+ obj.name = message.name;
1485
+ }
1486
+ return obj;
1487
+ }
1488
+ };
1489
+ var HTTPAuthSecurityScheme = {
1490
+ fromJSON(object) {
1491
+ return {
1492
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1493
+ scheme: isSet(object.scheme) ? globalThis.String(object.scheme) : "",
1494
+ bearerFormat: isSet(object.bearerFormat) ? globalThis.String(object.bearerFormat) : isSet(object.bearer_format) ? globalThis.String(object.bearer_format) : ""
1495
+ };
1496
+ },
1497
+ toJSON(message) {
1498
+ const obj = {};
1499
+ if (message.description !== "") {
1500
+ obj.description = message.description;
1501
+ }
1502
+ if (message.scheme !== "") {
1503
+ obj.scheme = message.scheme;
1504
+ }
1505
+ if (message.bearerFormat !== "") {
1506
+ obj.bearerFormat = message.bearerFormat;
1507
+ }
1508
+ return obj;
1509
+ }
1510
+ };
1511
+ var OAuth2SecurityScheme = {
1512
+ fromJSON(object) {
1513
+ return {
1514
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1515
+ flows: isSet(object.flows) ? OAuthFlows.fromJSON(object.flows) : void 0,
1516
+ oauth2MetadataUrl: isSet(object.oauth2MetadataUrl) ? globalThis.String(object.oauth2MetadataUrl) : isSet(object.oauth2_metadata_url) ? globalThis.String(object.oauth2_metadata_url) : ""
1517
+ };
1518
+ },
1519
+ toJSON(message) {
1520
+ const obj = {};
1521
+ if (message.description !== "") {
1522
+ obj.description = message.description;
1523
+ }
1524
+ if (message.flows !== void 0) {
1525
+ obj.flows = OAuthFlows.toJSON(message.flows);
1526
+ }
1527
+ if (message.oauth2MetadataUrl !== "") {
1528
+ obj.oauth2MetadataUrl = message.oauth2MetadataUrl;
1529
+ }
1530
+ return obj;
1531
+ }
1532
+ };
1533
+ var OpenIdConnectSecurityScheme = {
1534
+ fromJSON(object) {
1535
+ return {
1536
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
1537
+ openIdConnectUrl: isSet(object.openIdConnectUrl) ? globalThis.String(object.openIdConnectUrl) : isSet(object.open_id_connect_url) ? globalThis.String(object.open_id_connect_url) : ""
1538
+ };
1539
+ },
1540
+ toJSON(message) {
1541
+ const obj = {};
1542
+ if (message.description !== "") {
1543
+ obj.description = message.description;
1544
+ }
1545
+ if (message.openIdConnectUrl !== "") {
1546
+ obj.openIdConnectUrl = message.openIdConnectUrl;
1547
+ }
1548
+ return obj;
1549
+ }
1550
+ };
1551
+ var MutualTlsSecurityScheme = {
1552
+ fromJSON(object) {
1553
+ return { description: isSet(object.description) ? globalThis.String(object.description) : "" };
1554
+ },
1555
+ toJSON(message) {
1556
+ const obj = {};
1557
+ if (message.description !== "") {
1558
+ obj.description = message.description;
1559
+ }
1560
+ return obj;
1561
+ }
1562
+ };
1563
+ var OAuthFlows = {
1564
+ fromJSON(object) {
1565
+ return {
1566
+ flow: isSet(object.authorizationCode) ? {
1567
+ $case: "authorizationCode",
1568
+ value: AuthorizationCodeOAuthFlow.fromJSON(object.authorizationCode)
1569
+ } : isSet(object.authorization_code) ? {
1570
+ $case: "authorizationCode",
1571
+ value: AuthorizationCodeOAuthFlow.fromJSON(object.authorization_code)
1572
+ } : isSet(object.clientCredentials) ? {
1573
+ $case: "clientCredentials",
1574
+ value: ClientCredentialsOAuthFlow.fromJSON(object.clientCredentials)
1575
+ } : isSet(object.client_credentials) ? {
1576
+ $case: "clientCredentials",
1577
+ value: ClientCredentialsOAuthFlow.fromJSON(object.client_credentials)
1578
+ } : isSet(object.implicit) ? { $case: "implicit", value: ImplicitOAuthFlow.fromJSON(object.implicit) } : isSet(object.password) ? { $case: "password", value: PasswordOAuthFlow.fromJSON(object.password) } : isSet(object.deviceCode) ? {
1579
+ $case: "deviceCode",
1580
+ value: DeviceCodeOAuthFlow.fromJSON(object.deviceCode)
1581
+ } : isSet(object.device_code) ? {
1582
+ $case: "deviceCode",
1583
+ value: DeviceCodeOAuthFlow.fromJSON(object.device_code)
1584
+ } : void 0
1585
+ };
1586
+ },
1587
+ toJSON(message) {
1588
+ const obj = {};
1589
+ if (message.flow?.$case === "authorizationCode") {
1590
+ obj.authorizationCode = AuthorizationCodeOAuthFlow.toJSON(message.flow.value);
1591
+ } else if (message.flow?.$case === "clientCredentials") {
1592
+ obj.clientCredentials = ClientCredentialsOAuthFlow.toJSON(message.flow.value);
1593
+ } else if (message.flow?.$case === "implicit") {
1594
+ obj.implicit = ImplicitOAuthFlow.toJSON(message.flow.value);
1595
+ } else if (message.flow?.$case === "password") {
1596
+ obj.password = PasswordOAuthFlow.toJSON(message.flow.value);
1597
+ } else if (message.flow?.$case === "deviceCode") {
1598
+ obj.deviceCode = DeviceCodeOAuthFlow.toJSON(message.flow.value);
1599
+ }
1600
+ return obj;
1601
+ }
1602
+ };
1603
+ var AuthorizationCodeOAuthFlow = {
1604
+ fromJSON(object) {
1605
+ return {
1606
+ authorizationUrl: isSet(object.authorizationUrl) ? globalThis.String(object.authorizationUrl) : isSet(object.authorization_url) ? globalThis.String(object.authorization_url) : "",
1607
+ tokenUrl: isSet(object.tokenUrl) ? globalThis.String(object.tokenUrl) : isSet(object.token_url) ? globalThis.String(object.token_url) : "",
1608
+ refreshUrl: isSet(object.refreshUrl) ? globalThis.String(object.refreshUrl) : isSet(object.refresh_url) ? globalThis.String(object.refresh_url) : "",
1609
+ scopes: isObject(object.scopes) ? globalThis.Object.entries(object.scopes).reduce(
1610
+ (acc, [key, value]) => {
1611
+ acc[key] = globalThis.String(value);
1612
+ return acc;
1613
+ },
1614
+ {}
1615
+ ) : {},
1616
+ pkceRequired: isSet(object.pkceRequired) ? globalThis.Boolean(object.pkceRequired) : isSet(object.pkce_required) ? globalThis.Boolean(object.pkce_required) : false
1617
+ };
1618
+ },
1619
+ toJSON(message) {
1620
+ const obj = {};
1621
+ if (message.authorizationUrl !== "") {
1622
+ obj.authorizationUrl = message.authorizationUrl;
1623
+ }
1624
+ if (message.tokenUrl !== "") {
1625
+ obj.tokenUrl = message.tokenUrl;
1626
+ }
1627
+ if (message.refreshUrl !== "") {
1628
+ obj.refreshUrl = message.refreshUrl;
1629
+ }
1630
+ if (message.scopes) {
1631
+ const entries = globalThis.Object.entries(message.scopes);
1632
+ if (entries.length > 0) {
1633
+ const scopes = {};
1634
+ entries.forEach(([k, v]) => {
1635
+ scopes[k] = v;
1636
+ });
1637
+ obj.scopes = scopes;
1638
+ }
1639
+ }
1640
+ if (message.pkceRequired !== false) {
1641
+ obj.pkceRequired = message.pkceRequired;
1642
+ }
1643
+ return obj;
1644
+ }
1645
+ };
1646
+ var ClientCredentialsOAuthFlow = {
1647
+ fromJSON(object) {
1648
+ return {
1649
+ tokenUrl: isSet(object.tokenUrl) ? globalThis.String(object.tokenUrl) : isSet(object.token_url) ? globalThis.String(object.token_url) : "",
1650
+ refreshUrl: isSet(object.refreshUrl) ? globalThis.String(object.refreshUrl) : isSet(object.refresh_url) ? globalThis.String(object.refresh_url) : "",
1651
+ scopes: isObject(object.scopes) ? globalThis.Object.entries(object.scopes).reduce(
1652
+ (acc, [key, value]) => {
1653
+ acc[key] = globalThis.String(value);
1654
+ return acc;
1655
+ },
1656
+ {}
1657
+ ) : {}
1658
+ };
1659
+ },
1660
+ toJSON(message) {
1661
+ const obj = {};
1662
+ if (message.tokenUrl !== "") {
1663
+ obj.tokenUrl = message.tokenUrl;
1664
+ }
1665
+ if (message.refreshUrl !== "") {
1666
+ obj.refreshUrl = message.refreshUrl;
1667
+ }
1668
+ if (message.scopes) {
1669
+ const entries = globalThis.Object.entries(message.scopes);
1670
+ if (entries.length > 0) {
1671
+ const scopes = {};
1672
+ entries.forEach(([k, v]) => {
1673
+ scopes[k] = v;
1674
+ });
1675
+ obj.scopes = scopes;
1676
+ }
1677
+ }
1678
+ return obj;
1679
+ }
1680
+ };
1681
+ var ImplicitOAuthFlow = {
1682
+ fromJSON(object) {
1683
+ return {
1684
+ authorizationUrl: isSet(object.authorizationUrl) ? globalThis.String(object.authorizationUrl) : isSet(object.authorization_url) ? globalThis.String(object.authorization_url) : "",
1685
+ refreshUrl: isSet(object.refreshUrl) ? globalThis.String(object.refreshUrl) : isSet(object.refresh_url) ? globalThis.String(object.refresh_url) : "",
1686
+ scopes: isObject(object.scopes) ? globalThis.Object.entries(object.scopes).reduce(
1687
+ (acc, [key, value]) => {
1688
+ acc[key] = globalThis.String(value);
1689
+ return acc;
1690
+ },
1691
+ {}
1692
+ ) : {}
1693
+ };
1694
+ },
1695
+ toJSON(message) {
1696
+ const obj = {};
1697
+ if (message.authorizationUrl !== "") {
1698
+ obj.authorizationUrl = message.authorizationUrl;
1699
+ }
1700
+ if (message.refreshUrl !== "") {
1701
+ obj.refreshUrl = message.refreshUrl;
1702
+ }
1703
+ if (message.scopes) {
1704
+ const entries = globalThis.Object.entries(message.scopes);
1705
+ if (entries.length > 0) {
1706
+ const scopes = {};
1707
+ entries.forEach(([k, v]) => {
1708
+ scopes[k] = v;
1709
+ });
1710
+ obj.scopes = scopes;
1711
+ }
1712
+ }
1713
+ return obj;
1714
+ }
1715
+ };
1716
+ var PasswordOAuthFlow = {
1717
+ fromJSON(object) {
1718
+ return {
1719
+ tokenUrl: isSet(object.tokenUrl) ? globalThis.String(object.tokenUrl) : isSet(object.token_url) ? globalThis.String(object.token_url) : "",
1720
+ refreshUrl: isSet(object.refreshUrl) ? globalThis.String(object.refreshUrl) : isSet(object.refresh_url) ? globalThis.String(object.refresh_url) : "",
1721
+ scopes: isObject(object.scopes) ? globalThis.Object.entries(object.scopes).reduce(
1722
+ (acc, [key, value]) => {
1723
+ acc[key] = globalThis.String(value);
1724
+ return acc;
1725
+ },
1726
+ {}
1727
+ ) : {}
1728
+ };
1729
+ },
1730
+ toJSON(message) {
1731
+ const obj = {};
1732
+ if (message.tokenUrl !== "") {
1733
+ obj.tokenUrl = message.tokenUrl;
1734
+ }
1735
+ if (message.refreshUrl !== "") {
1736
+ obj.refreshUrl = message.refreshUrl;
1737
+ }
1738
+ if (message.scopes) {
1739
+ const entries = globalThis.Object.entries(message.scopes);
1740
+ if (entries.length > 0) {
1741
+ const scopes = {};
1742
+ entries.forEach(([k, v]) => {
1743
+ scopes[k] = v;
1744
+ });
1745
+ obj.scopes = scopes;
1746
+ }
1747
+ }
1748
+ return obj;
1749
+ }
1750
+ };
1751
+ var DeviceCodeOAuthFlow = {
1752
+ fromJSON(object) {
1753
+ return {
1754
+ deviceAuthorizationUrl: isSet(object.deviceAuthorizationUrl) ? globalThis.String(object.deviceAuthorizationUrl) : isSet(object.device_authorization_url) ? globalThis.String(object.device_authorization_url) : "",
1755
+ tokenUrl: isSet(object.tokenUrl) ? globalThis.String(object.tokenUrl) : isSet(object.token_url) ? globalThis.String(object.token_url) : "",
1756
+ refreshUrl: isSet(object.refreshUrl) ? globalThis.String(object.refreshUrl) : isSet(object.refresh_url) ? globalThis.String(object.refresh_url) : "",
1757
+ scopes: isObject(object.scopes) ? globalThis.Object.entries(object.scopes).reduce(
1758
+ (acc, [key, value]) => {
1759
+ acc[key] = globalThis.String(value);
1760
+ return acc;
1761
+ },
1762
+ {}
1763
+ ) : {}
1764
+ };
1765
+ },
1766
+ toJSON(message) {
1767
+ const obj = {};
1768
+ if (message.deviceAuthorizationUrl !== "") {
1769
+ obj.deviceAuthorizationUrl = message.deviceAuthorizationUrl;
1770
+ }
1771
+ if (message.tokenUrl !== "") {
1772
+ obj.tokenUrl = message.tokenUrl;
1773
+ }
1774
+ if (message.refreshUrl !== "") {
1775
+ obj.refreshUrl = message.refreshUrl;
1776
+ }
1777
+ if (message.scopes) {
1778
+ const entries = globalThis.Object.entries(message.scopes);
1779
+ if (entries.length > 0) {
1780
+ const scopes = {};
1781
+ entries.forEach(([k, v]) => {
1782
+ scopes[k] = v;
1783
+ });
1784
+ obj.scopes = scopes;
1785
+ }
1786
+ }
1787
+ return obj;
1788
+ }
1789
+ };
1790
+ var SendMessageRequest = {
1791
+ fromJSON(object) {
1792
+ return {
1793
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1794
+ message: isSet(object.message) ? Message.fromJSON(object.message) : void 0,
1795
+ configuration: isSet(object.configuration) ? SendMessageConfiguration.fromJSON(object.configuration) : void 0,
1796
+ metadata: isObject(object.metadata) ? object.metadata : void 0
1797
+ };
1798
+ },
1799
+ toJSON(message) {
1800
+ const obj = {};
1801
+ if (message.tenant !== "") {
1802
+ obj.tenant = message.tenant;
1803
+ }
1804
+ if (message.message !== void 0) {
1805
+ obj.message = Message.toJSON(message.message);
1806
+ }
1807
+ if (message.configuration !== void 0) {
1808
+ obj.configuration = SendMessageConfiguration.toJSON(message.configuration);
1809
+ }
1810
+ if (message.metadata !== void 0) {
1811
+ obj.metadata = message.metadata;
1812
+ }
1813
+ return obj;
1814
+ }
1815
+ };
1816
+ var GetTaskRequest = {
1817
+ fromJSON(object) {
1818
+ return {
1819
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1820
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
1821
+ historyLength: isSet(object.historyLength) ? globalThis.Number(object.historyLength) : isSet(object.history_length) ? globalThis.Number(object.history_length) : void 0
1822
+ };
1823
+ },
1824
+ toJSON(message) {
1825
+ const obj = {};
1826
+ if (message.tenant !== "") {
1827
+ obj.tenant = message.tenant;
1828
+ }
1829
+ if (message.id !== "") {
1830
+ obj.id = message.id;
1831
+ }
1832
+ if (message.historyLength !== void 0) {
1833
+ obj.historyLength = Math.round(message.historyLength);
1834
+ }
1835
+ return obj;
1836
+ }
1837
+ };
1838
+ var ListTasksRequest = {
1839
+ fromJSON(object) {
1840
+ return {
1841
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1842
+ contextId: isSet(object.contextId) ? globalThis.String(object.contextId) : isSet(object.context_id) ? globalThis.String(object.context_id) : "",
1843
+ status: isSet(object.status) ? taskStateFromJSON(object.status) : 0,
1844
+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : isSet(object.page_size) ? globalThis.Number(object.page_size) : void 0,
1845
+ pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : isSet(object.page_token) ? globalThis.String(object.page_token) : "",
1846
+ historyLength: isSet(object.historyLength) ? globalThis.Number(object.historyLength) : isSet(object.history_length) ? globalThis.Number(object.history_length) : void 0,
1847
+ statusTimestampAfter: isSet(object.statusTimestampAfter) ? globalThis.String(object.statusTimestampAfter) : isSet(object.status_timestamp_after) ? globalThis.String(object.status_timestamp_after) : void 0,
1848
+ includeArtifacts: isSet(object.includeArtifacts) ? globalThis.Boolean(object.includeArtifacts) : isSet(object.include_artifacts) ? globalThis.Boolean(object.include_artifacts) : void 0
1849
+ };
1850
+ },
1851
+ toJSON(message) {
1852
+ const obj = {};
1853
+ if (message.tenant !== "") {
1854
+ obj.tenant = message.tenant;
1855
+ }
1856
+ if (message.contextId !== "") {
1857
+ obj.contextId = message.contextId;
1858
+ }
1859
+ if (message.status !== 0) {
1860
+ obj.status = taskStateToJSON(message.status);
1861
+ }
1862
+ if (message.pageSize !== void 0) {
1863
+ obj.pageSize = Math.round(message.pageSize);
1864
+ }
1865
+ if (message.pageToken !== "") {
1866
+ obj.pageToken = message.pageToken;
1867
+ }
1868
+ if (message.historyLength !== void 0) {
1869
+ obj.historyLength = Math.round(message.historyLength);
1870
+ }
1871
+ if (message.statusTimestampAfter !== void 0) {
1872
+ obj.statusTimestampAfter = message.statusTimestampAfter;
1873
+ }
1874
+ if (message.includeArtifacts !== void 0) {
1875
+ obj.includeArtifacts = message.includeArtifacts;
1876
+ }
1877
+ return obj;
1878
+ }
1879
+ };
1880
+ var ListTasksResponse = {
1881
+ fromJSON(object) {
1882
+ return {
1883
+ tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e) => Task.fromJSON(e)) : [],
1884
+ nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : isSet(object.next_page_token) ? globalThis.String(object.next_page_token) : "",
1885
+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : isSet(object.page_size) ? globalThis.Number(object.page_size) : 0,
1886
+ totalSize: isSet(object.totalSize) ? globalThis.Number(object.totalSize) : isSet(object.total_size) ? globalThis.Number(object.total_size) : 0
1887
+ };
1888
+ },
1889
+ toJSON(message) {
1890
+ const obj = {};
1891
+ if (message.tasks?.length) {
1892
+ obj.tasks = message.tasks.map((e) => Task.toJSON(e));
1893
+ }
1894
+ if (message.nextPageToken !== "") {
1895
+ obj.nextPageToken = message.nextPageToken;
1896
+ }
1897
+ if (message.pageSize !== 0) {
1898
+ obj.pageSize = Math.round(message.pageSize);
1899
+ }
1900
+ if (message.totalSize !== 0) {
1901
+ obj.totalSize = Math.round(message.totalSize);
1902
+ }
1903
+ return obj;
1904
+ }
1905
+ };
1906
+ var CancelTaskRequest = {
1907
+ fromJSON(object) {
1908
+ return {
1909
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1910
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
1911
+ metadata: isObject(object.metadata) ? object.metadata : void 0
1912
+ };
1913
+ },
1914
+ toJSON(message) {
1915
+ const obj = {};
1916
+ if (message.tenant !== "") {
1917
+ obj.tenant = message.tenant;
1918
+ }
1919
+ if (message.id !== "") {
1920
+ obj.id = message.id;
1921
+ }
1922
+ if (message.metadata !== void 0) {
1923
+ obj.metadata = message.metadata;
1924
+ }
1925
+ return obj;
1926
+ }
1927
+ };
1928
+ var GetTaskPushNotificationConfigRequest = {
1929
+ fromJSON(object) {
1930
+ return {
1931
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1932
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
1933
+ id: isSet(object.id) ? globalThis.String(object.id) : ""
1934
+ };
1935
+ },
1936
+ toJSON(message) {
1937
+ const obj = {};
1938
+ if (message.tenant !== "") {
1939
+ obj.tenant = message.tenant;
1940
+ }
1941
+ if (message.taskId !== "") {
1942
+ obj.taskId = message.taskId;
1943
+ }
1944
+ if (message.id !== "") {
1945
+ obj.id = message.id;
1946
+ }
1947
+ return obj;
1948
+ }
1949
+ };
1950
+ var DeleteTaskPushNotificationConfigRequest = {
1951
+ fromJSON(object) {
1952
+ return {
1953
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1954
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
1955
+ id: isSet(object.id) ? globalThis.String(object.id) : ""
1956
+ };
1957
+ },
1958
+ toJSON(message) {
1959
+ const obj = {};
1960
+ if (message.tenant !== "") {
1961
+ obj.tenant = message.tenant;
1962
+ }
1963
+ if (message.taskId !== "") {
1964
+ obj.taskId = message.taskId;
1965
+ }
1966
+ if (message.id !== "") {
1967
+ obj.id = message.id;
1968
+ }
1969
+ return obj;
1970
+ }
1971
+ };
1972
+ var SubscribeToTaskRequest = {
1973
+ fromJSON(object) {
1974
+ return {
1975
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1976
+ id: isSet(object.id) ? globalThis.String(object.id) : ""
1977
+ };
1978
+ },
1979
+ toJSON(message) {
1980
+ const obj = {};
1981
+ if (message.tenant !== "") {
1982
+ obj.tenant = message.tenant;
1983
+ }
1984
+ if (message.id !== "") {
1985
+ obj.id = message.id;
1986
+ }
1987
+ return obj;
1988
+ }
1989
+ };
1990
+ var ListTaskPushNotificationConfigsRequest = {
1991
+ fromJSON(object) {
1992
+ return {
1993
+ tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "",
1994
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : isSet(object.task_id) ? globalThis.String(object.task_id) : "",
1995
+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : isSet(object.page_size) ? globalThis.Number(object.page_size) : 0,
1996
+ pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : isSet(object.page_token) ? globalThis.String(object.page_token) : ""
1997
+ };
1998
+ },
1999
+ toJSON(message) {
2000
+ const obj = {};
2001
+ if (message.tenant !== "") {
2002
+ obj.tenant = message.tenant;
2003
+ }
2004
+ if (message.taskId !== "") {
2005
+ obj.taskId = message.taskId;
2006
+ }
2007
+ if (message.pageSize !== 0) {
2008
+ obj.pageSize = Math.round(message.pageSize);
2009
+ }
2010
+ if (message.pageToken !== "") {
2011
+ obj.pageToken = message.pageToken;
2012
+ }
2013
+ return obj;
2014
+ }
2015
+ };
2016
+ var GetExtendedAgentCardRequest = {
2017
+ fromJSON(object) {
2018
+ return { tenant: isSet(object.tenant) ? globalThis.String(object.tenant) : "" };
2019
+ },
2020
+ toJSON(message) {
2021
+ const obj = {};
2022
+ if (message.tenant !== "") {
2023
+ obj.tenant = message.tenant;
2024
+ }
2025
+ return obj;
2026
+ }
2027
+ };
2028
+ var StreamResponse = {
2029
+ fromJSON(object) {
2030
+ return {
2031
+ payload: isSet(object.task) ? { $case: "task", value: Task.fromJSON(object.task) } : isSet(object.message) ? { $case: "message", value: Message.fromJSON(object.message) } : isSet(object.statusUpdate) ? { $case: "statusUpdate", value: TaskStatusUpdateEvent.fromJSON(object.statusUpdate) } : isSet(object.status_update) ? {
2032
+ $case: "statusUpdate",
2033
+ value: TaskStatusUpdateEvent.fromJSON(object.status_update)
2034
+ } : isSet(object.artifactUpdate) ? {
2035
+ $case: "artifactUpdate",
2036
+ value: TaskArtifactUpdateEvent.fromJSON(object.artifactUpdate)
2037
+ } : isSet(object.artifact_update) ? {
2038
+ $case: "artifactUpdate",
2039
+ value: TaskArtifactUpdateEvent.fromJSON(object.artifact_update)
2040
+ } : void 0
2041
+ };
2042
+ },
2043
+ toJSON(message) {
2044
+ const obj = {};
2045
+ if (message.payload?.$case === "task") {
2046
+ obj.task = Task.toJSON(message.payload.value);
2047
+ } else if (message.payload?.$case === "message") {
2048
+ obj.message = Message.toJSON(message.payload.value);
2049
+ } else if (message.payload?.$case === "statusUpdate") {
2050
+ obj.statusUpdate = TaskStatusUpdateEvent.toJSON(message.payload.value);
2051
+ } else if (message.payload?.$case === "artifactUpdate") {
2052
+ obj.artifactUpdate = TaskArtifactUpdateEvent.toJSON(message.payload.value);
2053
+ }
2054
+ return obj;
2055
+ }
2056
+ };
2057
+ var ListTaskPushNotificationConfigsResponse = {
2058
+ fromJSON(object) {
2059
+ return {
2060
+ configs: globalThis.Array.isArray(object?.configs) ? object.configs.map((e) => TaskPushNotificationConfig.fromJSON(e)) : [],
2061
+ nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : isSet(object.next_page_token) ? globalThis.String(object.next_page_token) : ""
2062
+ };
2063
+ },
2064
+ toJSON(message) {
2065
+ const obj = {};
2066
+ if (message.configs?.length) {
2067
+ obj.configs = message.configs.map((e) => TaskPushNotificationConfig.toJSON(e));
2068
+ }
2069
+ if (message.nextPageToken !== "") {
2070
+ obj.nextPageToken = message.nextPageToken;
2071
+ }
2072
+ return obj;
2073
+ }
2074
+ };
2075
+ function bytesFromBase64(b64) {
2076
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
2077
+ }
2078
+ function base64FromBytes(arr) {
2079
+ return globalThis.Buffer.from(arr).toString("base64");
2080
+ }
2081
+ function isObject(value) {
2082
+ return typeof value === "object" && value !== null;
2083
+ }
2084
+ function isSet(value) {
2085
+ return value !== null && value !== void 0;
2086
+ }
2087
+
2088
+ // src/constants.ts
2089
+ var A2A_PROTOCOL_VERSION = "1.0";
2090
+ var A2A_LEGACY_PROTOCOL_VERSION = "0.3";
2091
+ var A2A_CONTENT_TYPE = "application/a2a+json";
2092
+ var DEFAULT_PAGE_SIZE = 50;
2093
+
2094
+ // src/signature.ts
2095
+ var jose = __toESM(require("jose"), 1);
2096
+
2097
+ // src/sse_utils.ts
2098
+ var DEFAULT_MAX_SSE_EVENT_SIZE_BYTES = 4 * 1024 * 1024;
2099
+
2100
+ // src/server/utils.ts
2101
+ var TERMINAL_STATE_LIST = [
2102
+ 3 /* TASK_STATE_COMPLETED */,
2103
+ 4 /* TASK_STATE_FAILED */,
2104
+ 5 /* TASK_STATE_CANCELED */,
2105
+ 7 /* TASK_STATE_REJECTED */
2106
+ ];
2107
+ var VALID_TASK_STATE_LIST = [
2108
+ 0 /* TASK_STATE_UNSPECIFIED */,
2109
+ 1 /* TASK_STATE_SUBMITTED */,
2110
+ 2 /* TASK_STATE_WORKING */,
2111
+ 3 /* TASK_STATE_COMPLETED */,
2112
+ 4 /* TASK_STATE_FAILED */,
2113
+ 5 /* TASK_STATE_CANCELED */,
2114
+ 6 /* TASK_STATE_INPUT_REQUIRED */,
2115
+ 7 /* TASK_STATE_REJECTED */,
2116
+ 8 /* TASK_STATE_AUTH_REQUIRED */
2117
+ ];
2118
+ var INPUT_REQUIRED_STATE_LIST = [6 /* TASK_STATE_INPUT_REQUIRED */];
2119
+ var AUTH_REQUIRED_STATE_LIST = [8 /* TASK_STATE_AUTH_REQUIRED */];
2120
+ var INTERRUPTED_STATE_LIST = [
2121
+ ...INPUT_REQUIRED_STATE_LIST,
2122
+ ...AUTH_REQUIRED_STATE_LIST
2123
+ ];
2124
+ function isTask(result) {
2125
+ return "status" in result;
2126
+ }
2127
+ function callerScope(context, ownerResolver) {
2128
+ return { tenant: context.tenant ?? "", owner: ownerResolver(context) };
2129
+ }
2130
+ function encodePageToken(timestamp, id) {
2131
+ return Buffer.from(`${timestamp}|${id}`).toString("base64");
2132
+ }
2133
+ function decodePageToken(pageToken) {
2134
+ try {
2135
+ const [timestamp, ...idParts] = Buffer.from(pageToken, "base64").toString("utf-8").split("|");
2136
+ if (idParts.length === 0) {
2137
+ throw new RequestMalformedError("Invalid page token format.");
2138
+ }
2139
+ return { timestamp, id: idParts.join("|") };
2140
+ } catch (e) {
2141
+ if (e instanceof RequestMalformedError) throw e;
2142
+ throw new RequestMalformedError("Token is not a valid base64-encoded cursor.");
2143
+ }
2144
+ }
2145
+ var ScopedStore = class {
2146
+ _store = /* @__PURE__ */ new Map();
2147
+ _ownerResolver;
2148
+ constructor(ownerResolver) {
2149
+ this._ownerResolver = ownerResolver;
2150
+ }
2151
+ /** Returns the owner-scoped bucket, or `undefined` if absent. */
2152
+ getBucket(context) {
2153
+ const { tenant, owner } = callerScope(context, this._ownerResolver);
2154
+ return this._store.get(tenant)?.get(owner);
2155
+ }
2156
+ /** Returns the owner-scoped bucket, creating intermediate maps as needed. */
2157
+ getOrCreateBucket(context) {
2158
+ const { tenant, owner } = callerScope(context, this._ownerResolver);
2159
+ let tenantBucket = this._store.get(tenant);
2160
+ if (!tenantBucket) {
2161
+ tenantBucket = /* @__PURE__ */ new Map();
2162
+ this._store.set(tenant, tenantBucket);
2163
+ }
2164
+ let ownerBucket = tenantBucket.get(owner);
2165
+ if (!ownerBucket) {
2166
+ ownerBucket = /* @__PURE__ */ new Map();
2167
+ tenantBucket.set(owner, ownerBucket);
2168
+ }
2169
+ return ownerBucket;
2170
+ }
2171
+ };
2172
+
2173
+ // src/server/events/execution_event_bus_manager.ts
2174
+ var UNSCOPED_CONTEXT = new ServerCallContext();
2175
+ var DefaultExecutionEventBusManager = class {
2176
+ _scopedBuses;
2177
+ constructor(ownerResolver = resolveUserScope) {
2178
+ this._scopedBuses = new ScopedStore(ownerResolver);
2179
+ }
2180
+ createOrGetByTaskId(taskId, context) {
2181
+ const bucket = this._scopedBuses.getOrCreateBucket(context ?? UNSCOPED_CONTEXT);
2182
+ let bus = bucket.get(taskId);
2183
+ if (!bus) {
2184
+ bus = new DefaultExecutionEventBus();
2185
+ bucket.set(taskId, bus);
2186
+ }
2187
+ return bus;
2188
+ }
2189
+ getByTaskId(taskId, context) {
2190
+ return this._scopedBuses.getBucket(context ?? UNSCOPED_CONTEXT)?.get(taskId);
2191
+ }
2192
+ /** Removes the bus for the task. Call when the execution flow ends. */
2193
+ cleanupByTaskId(taskId, context) {
2194
+ const bucket = this._scopedBuses.getBucket(context ?? UNSCOPED_CONTEXT);
2195
+ bucket?.get(taskId)?.removeAllListeners();
2196
+ bucket?.delete(taskId);
2197
+ }
2198
+ };
2199
+
2200
+ // src/server/events/execution_event_queue.ts
2201
+ var ExecutionEventQueue = class {
2202
+ eventBus;
2203
+ eventQueue = [];
2204
+ resolvePromise;
2205
+ stopped = false;
2206
+ constructor(eventBus) {
2207
+ this.eventBus = eventBus;
2208
+ this.eventBus.on("event", this.handleEvent);
2209
+ this.eventBus.on("finished", this.handleFinished);
2210
+ }
2211
+ handleEvent = (event) => {
2212
+ if (this.stopped) return;
2213
+ this.eventQueue.push(event);
2214
+ if (this.resolvePromise) {
2215
+ this.resolvePromise();
2216
+ this.resolvePromise = void 0;
2217
+ }
2218
+ };
2219
+ handleFinished = () => {
2220
+ this.stop();
2221
+ };
2222
+ /**
2223
+ * Async generator yielding events from the bus. Terminates on Message,
2224
+ * terminal Task status, or INPUT_REQUIRED. AUTH_REQUIRED is deliberately
2225
+ * NOT in the stop set: the executor resumes publishing on the same bus
2226
+ * after the out-of-band credential injection, so the queue must stay
2227
+ * drainable. Blocking callers return a snapshot at AUTH_REQUIRED via a
2228
+ * separate code path and a background consumer keeps draining until a
2229
+ * terminal state is reached.
2230
+ */
2231
+ async *events() {
2232
+ while (!this.stopped || this.eventQueue.length > 0) {
2233
+ if (this.eventQueue.length > 0) {
2234
+ const event = this.eventQueue.shift();
2235
+ yield event;
2236
+ if (event.kind === "message" || event.kind === "statusUpdate" && event.data.status && (TERMINAL_STATE_LIST.includes(event.data.status.state) || INPUT_REQUIRED_STATE_LIST.includes(event.data.status.state))) {
2237
+ this.handleFinished();
2238
+ break;
2239
+ }
2240
+ } else if (!this.stopped) {
2241
+ await new Promise((resolve) => {
2242
+ this.resolvePromise = resolve;
2243
+ });
2244
+ }
2245
+ }
2246
+ }
2247
+ stop() {
2248
+ this.stopped = true;
2249
+ if (this.resolvePromise) {
2250
+ this.resolvePromise();
2251
+ this.resolvePromise = void 0;
2252
+ }
2253
+ this.eventBus.off("event", this.handleEvent);
2254
+ this.eventBus.off("finished", this.handleFinished);
2255
+ }
2256
+ };
2257
+
2258
+ // src/server/result_manager.ts
2259
+ var taskWriteLocks = /* @__PURE__ */ new Map();
2260
+ function lockKey(context, taskId) {
2261
+ const tenant = context.tenant ?? "";
2262
+ const owner = context.user?.userName ?? "";
2263
+ return `${tenant}\0${owner}\0${taskId}`;
2264
+ }
2265
+ async function serializeByScope(key, fn) {
2266
+ const prev = taskWriteLocks.get(key) ?? Promise.resolve();
2267
+ const next = prev.then(fn, fn);
2268
+ taskWriteLocks.set(key, next);
2269
+ const evict = () => {
2270
+ if (taskWriteLocks.get(key) === next) {
2271
+ taskWriteLocks.delete(key);
2272
+ }
2273
+ };
2274
+ void next.then(evict, evict);
2275
+ return next;
2276
+ }
2277
+ var ResultManager = class {
2278
+ taskStore;
2279
+ serverCallContext;
2280
+ currentTask;
2281
+ latestUserMessage;
2282
+ finalMessageResult;
2283
+ // taskId of the last event processed under the lock, used to warn if
2284
+ // an executor switches tasks mid-stream on the same RM.
2285
+ lastSeenTaskId;
2286
+ constructor(taskStore, serverCallContext) {
2287
+ this.taskStore = taskStore;
2288
+ this.serverCallContext = serverCallContext;
2289
+ }
2290
+ setContext(latestUserMessage) {
2291
+ this.latestUserMessage = structuredClone(latestUserMessage);
2292
+ }
2293
+ /**
2294
+ * Processes an agent execution event and updates the task store.
2295
+ * Store-touching branches run under a per-(tenant, owner, taskId) lock
2296
+ * so concurrent RMs linearize their load-merge-save sequences. The
2297
+ * `message` branch is in-memory only and intentionally unlocked.
2298
+ */
2299
+ async processEvent(event) {
2300
+ switch (event.kind) {
2301
+ case "message": {
2302
+ this.finalMessageResult = structuredClone(event.data);
2303
+ break;
2304
+ }
2305
+ case "task": {
2306
+ const taskEvent = event.data;
2307
+ if (!taskEvent.id) {
2308
+ await this.processTaskEventLocked(taskEvent);
2309
+ break;
2310
+ }
2311
+ await serializeByScope(
2312
+ lockKey(this.serverCallContext, taskEvent.id),
2313
+ () => this.processTaskEventLocked(taskEvent)
2314
+ );
2315
+ break;
2316
+ }
2317
+ case "statusUpdate": {
2318
+ const updateEvent = event.data;
2319
+ if (!updateEvent.taskId) {
2320
+ await this.applyStatusUpdate(updateEvent);
2321
+ break;
2322
+ }
2323
+ await serializeByScope(
2324
+ lockKey(this.serverCallContext, updateEvent.taskId),
2325
+ () => this.applyStatusUpdate(updateEvent)
2326
+ );
2327
+ break;
2328
+ }
2329
+ case "artifactUpdate": {
2330
+ const artifactEvent = event.data;
2331
+ if (!artifactEvent.taskId) {
2332
+ await this.applyArtifactUpdate(artifactEvent);
2333
+ break;
2334
+ }
2335
+ await serializeByScope(
2336
+ lockKey(this.serverCallContext, artifactEvent.taskId),
2337
+ () => this.applyArtifactUpdate(artifactEvent)
2338
+ );
2339
+ break;
2340
+ }
2341
+ default:
2342
+ assertUnreachableEvent(event);
2343
+ }
2344
+ }
2345
+ /**
2346
+ * Warns when the executor publishes an event for a different `taskId`
2347
+ * than the previous event this RM observed. A single RM is scoped to
2348
+ * one request, so a mismatch indicates an executor bug.
2349
+ */
2350
+ notePersistedTaskId(taskId) {
2351
+ if (!taskId) return;
2352
+ if (this.lastSeenTaskId && this.lastSeenTaskId !== taskId) {
2353
+ console.warn(
2354
+ `ResultManager: event for task ${taskId} arrived after processing events for ${this.lastSeenTaskId}. This indicates the executor switched tasks mid-stream, which is not expected in normal operation.`
2355
+ );
2356
+ }
2357
+ this.lastSeenTaskId = taskId;
2358
+ }
2359
+ /**
2360
+ * Handles a `task` event under the per-taskId write lock. Always
2361
+ * re-loads from the store (no cached state) so a sibling RM's write
2362
+ * between our previous event and this one is observed by our merge.
2363
+ */
2364
+ async processTaskEventLocked(taskEvent) {
2365
+ this.notePersistedTaskId(taskEvent.id);
2366
+ const persistedTask = taskEvent.id ? await this.taskStore.load(taskEvent.id, this.serverCallContext) : void 0;
2367
+ const mergedTask = structuredClone(taskEvent);
2368
+ if (persistedTask && persistedTask.id === taskEvent.id) {
2369
+ if ((!mergedTask.history || mergedTask.history.length === 0) && persistedTask.history) {
2370
+ mergedTask.history = structuredClone(persistedTask.history);
2371
+ }
2372
+ mergedTask.artifacts = this.mergeArtifacts(persistedTask.artifacts, taskEvent.artifacts);
2373
+ if (persistedTask.metadata || taskEvent.metadata) {
2374
+ mergedTask.metadata = {
2375
+ ...structuredClone(persistedTask.metadata ?? {}),
2376
+ ...structuredClone(taskEvent.metadata ?? {})
2377
+ };
2378
+ }
2379
+ }
2380
+ if (this.latestUserMessage) {
2381
+ const latest = this.latestUserMessage;
2382
+ if (!mergedTask.history?.find((msg) => msg.messageId === latest.messageId)) {
2383
+ mergedTask.history = [structuredClone(latest), ...mergedTask.history || []];
2384
+ }
2385
+ }
2386
+ this.currentTask = mergedTask;
2387
+ await this.saveCurrentTask();
2388
+ }
2389
+ /**
2390
+ * Loads the task fresh from the store, warning if it doesn't exist.
2391
+ * Doesn't mutate `this.currentTask` so callers retain TypeScript
2392
+ * flow-narrowing on the result.
2393
+ */
2394
+ async loadPersistedTask(taskId, eventName) {
2395
+ if (!taskId) return void 0;
2396
+ const loaded = await this.taskStore.load(taskId, this.serverCallContext);
2397
+ if (!loaded) {
2398
+ console.warn(`ResultManager: Received ${eventName} for unknown task ${taskId}`);
2399
+ }
2400
+ return loaded;
2401
+ }
2402
+ async applyStatusUpdate(updateEvent) {
2403
+ this.notePersistedTaskId(updateEvent.taskId);
2404
+ const task = await this.loadPersistedTask(updateEvent.taskId, "status update");
2405
+ if (!task || task.id !== updateEvent.taskId) {
2406
+ this.currentTask = task;
2407
+ return;
2408
+ }
2409
+ const persistedState = task.status?.state;
2410
+ if (persistedState !== void 0 && TERMINAL_STATE_LIST.includes(persistedState) && updateEvent.status?.state !== persistedState) {
2411
+ console.warn(
2412
+ `ResultManager: ignoring status update ${updateEvent.status?.state} for terminal task ${task.id} (${persistedState})`
2413
+ );
2414
+ this.currentTask = task;
2415
+ return;
2416
+ }
2417
+ task.status = structuredClone(updateEvent.status);
2418
+ if (updateEvent.metadata) {
2419
+ task.metadata = {
2420
+ ...task.metadata,
2421
+ ...structuredClone(updateEvent.metadata)
2422
+ };
2423
+ }
2424
+ const update = updateEvent.status?.message;
2425
+ if (update) {
2426
+ if (!task.history?.find((msg) => msg.messageId === update.messageId)) {
2427
+ task.history = [...task.history || [], structuredClone(update)];
2428
+ }
2429
+ }
2430
+ this.currentTask = task;
2431
+ await this.saveCurrentTask();
2432
+ }
2433
+ async applyArtifactUpdate(artifactEvent) {
2434
+ const artifact = artifactEvent.artifact;
2435
+ if (!artifact) return;
2436
+ this.notePersistedTaskId(artifactEvent.taskId);
2437
+ const task = await this.loadPersistedTask(artifactEvent.taskId, "artifact update");
2438
+ if (!task || task.id !== artifactEvent.taskId) {
2439
+ this.currentTask = task;
2440
+ return;
2441
+ }
2442
+ if (!task.artifacts) {
2443
+ task.artifacts = [];
2444
+ }
2445
+ const existingArtifactIndex = task.artifacts.findIndex(
2446
+ (art) => art.artifactId === artifact.artifactId
2447
+ );
2448
+ if (existingArtifactIndex !== -1) {
2449
+ if (artifactEvent.append) {
2450
+ const existingArtifact = task.artifacts[existingArtifactIndex];
2451
+ existingArtifact.parts = [
2452
+ ...existingArtifact.parts || [],
2453
+ ...structuredClone(artifact.parts || [])
2454
+ ];
2455
+ if (artifact.description) existingArtifact.description = artifact.description;
2456
+ if (artifact.name) existingArtifact.name = artifact.name;
2457
+ if (artifact.metadata)
2458
+ existingArtifact.metadata = {
2459
+ ...existingArtifact.metadata,
2460
+ ...structuredClone(artifact.metadata)
2461
+ };
2462
+ } else {
2463
+ task.artifacts[existingArtifactIndex] = structuredClone(artifact);
2464
+ }
2465
+ } else {
2466
+ task.artifacts.push(structuredClone(artifact));
2467
+ }
2468
+ if (artifactEvent.metadata) {
2469
+ task.metadata = {
2470
+ ...task.metadata,
2471
+ ...structuredClone(artifactEvent.metadata)
2472
+ };
2473
+ }
2474
+ this.currentTask = task;
2475
+ await this.saveCurrentTask();
2476
+ }
2477
+ /**
2478
+ * Merges artifact arrays, deduplicating by `artifactId`. Persisted
2479
+ * artifacts are retained and overlaid by any incoming artifact with
2480
+ * the same id; artifacts only in the incoming list are appended.
2481
+ * Every entry in the returned array is a fresh deep copy.
2482
+ */
2483
+ mergeArtifacts(persisted, incoming) {
2484
+ if (!persisted || persisted.length === 0) {
2485
+ return incoming ? structuredClone(incoming) : [];
2486
+ }
2487
+ if (!incoming || incoming.length === 0) {
2488
+ return structuredClone(persisted);
2489
+ }
2490
+ const incomingById = /* @__PURE__ */ new Map();
2491
+ for (const art of incoming) {
2492
+ incomingById.set(art.artifactId, art);
2493
+ }
2494
+ const merged = persisted.map(
2495
+ (art) => structuredClone(incomingById.get(art.artifactId) ?? art)
2496
+ );
2497
+ const seenIds = new Set(persisted.map((art) => art.artifactId));
2498
+ for (const art of incoming) {
2499
+ if (!seenIds.has(art.artifactId)) {
2500
+ merged.push(structuredClone(art));
2501
+ }
2502
+ }
2503
+ return merged;
2504
+ }
2505
+ async saveCurrentTask() {
2506
+ if (this.currentTask) {
2507
+ await this.taskStore.save(this.currentTask, this.serverCallContext);
2508
+ }
2509
+ }
2510
+ /**
2511
+ * Returns the final result (Message or Task) after the event stream
2512
+ * has been fully processed. Returns the internally-tracked object
2513
+ * directly (not a clone) so downstream callers can apply in-place
2514
+ * edits; safe because RMs are scoped to a single request and discarded
2515
+ * immediately after.
2516
+ */
2517
+ getFinalResult() {
2518
+ if (this.finalMessageResult) {
2519
+ return this.finalMessageResult;
2520
+ }
2521
+ return this.currentTask;
2522
+ }
2523
+ /**
2524
+ * Returns the task currently being managed (created during, or started
2525
+ * with, agent execution). See {@link getFinalResult} for why this is
2526
+ * the internal reference rather than a clone.
2527
+ */
2528
+ getCurrentTask() {
2529
+ return this.currentTask;
2530
+ }
2531
+ };
2532
+
2533
+ // src/server/push_notification/push_notification_store.ts
2534
+ var InMemoryPushNotificationStore = class {
2535
+ _scopedStore;
2536
+ constructor(ownerResolver = resolveUserScope) {
2537
+ this._scopedStore = new ScopedStore(ownerResolver);
2538
+ }
2539
+ async save(taskId, context, pushNotificationConfig) {
2540
+ const bucket = this._scopedStore.getOrCreateBucket(context);
2541
+ const entries = bucket.get(taskId) || [];
2542
+ if (!pushNotificationConfig.id) {
2543
+ pushNotificationConfig.id = crypto.randomUUID();
2544
+ }
2545
+ const wireVersion = context.requestedVersion || A2A_LEGACY_PROTOCOL_VERSION;
2546
+ const existingIndex = entries.findIndex(
2547
+ (entry) => entry.config.id === pushNotificationConfig.id
2548
+ );
2549
+ if (existingIndex !== -1) {
2550
+ entries.splice(existingIndex, 1);
2551
+ }
2552
+ entries.push({ config: structuredClone(pushNotificationConfig), wireVersion });
2553
+ bucket.set(taskId, entries);
2554
+ }
2555
+ async load(taskId, context) {
2556
+ const entries = this._scopedStore.getBucket(context)?.get(taskId);
2557
+ return entries ? entries.map((e) => structuredClone(e.config)) : [];
2558
+ }
2559
+ async loadWithMetadata(taskId, context) {
2560
+ const entries = this._scopedStore.getBucket(context)?.get(taskId);
2561
+ return entries ? entries.map((e) => structuredClone(e)) : [];
2562
+ }
2563
+ async delete(taskId, context, configId) {
2564
+ if (configId === void 0) {
2565
+ configId = taskId;
2566
+ }
2567
+ const bucket = this._scopedStore.getBucket(context);
2568
+ if (!bucket) {
2569
+ return;
2570
+ }
2571
+ const entries = bucket.get(taskId);
2572
+ if (!entries) {
2573
+ return;
2574
+ }
2575
+ const entryIndex = entries.findIndex((entry) => entry.config.id === configId);
2576
+ if (entryIndex !== -1) {
2577
+ entries.splice(entryIndex, 1);
2578
+ }
2579
+ if (entries.length === 0) {
2580
+ bucket.delete(taskId);
2581
+ }
2582
+ }
2583
+ };
2584
+
2585
+ // src/server/push_notification/push_notification_serializer.ts
2586
+ var V1PushNotificationSerializer = class {
2587
+ serialize(streamResponse, _task) {
2588
+ return {
2589
+ body: JSON.stringify(StreamResponse.toJSON(streamResponse)),
2590
+ contentType: A2A_CONTENT_TYPE
2591
+ };
2592
+ }
2593
+ };
2594
+
2595
+ // src/server/push_notification/default_push_notification_sender.ts
2596
+ var DefaultPushNotificationSender = class {
2597
+ pushNotificationStore;
2598
+ notificationChain;
2599
+ options;
2600
+ serializers;
2601
+ fallbackSerializer;
2602
+ // Avoid log spam when many notifications target the same unknown version.
2603
+ warnedMissingSerializers = /* @__PURE__ */ new Set();
2604
+ constructor(pushNotificationStore, options = {}) {
2605
+ this.pushNotificationStore = pushNotificationStore;
2606
+ this.notificationChain = /* @__PURE__ */ new Map();
2607
+ this.options = {
2608
+ timeout: options.timeout ?? 5e3,
2609
+ tokenHeaderName: options.tokenHeaderName ?? "X-A2A-Notification-Token"
2610
+ };
2611
+ const builtinV1 = new V1PushNotificationSerializer();
2612
+ this.serializers = /* @__PURE__ */ new Map([
2613
+ ["1.0" /* V1_0 */, builtinV1]
2614
+ ]);
2615
+ if (options.serializers) {
2616
+ for (const [version, serializer] of Object.entries(options.serializers)) {
2617
+ if (serializer) {
2618
+ this.serializers.set(version, serializer);
2619
+ }
2620
+ }
2621
+ }
2622
+ this.fallbackSerializer = this.serializers.get("1.0" /* V1_0 */) ?? builtinV1;
2623
+ }
2624
+ async send(streamResponse, context, task) {
2625
+ const taskId = this._getTaskId(streamResponse);
2626
+ if (!taskId) {
2627
+ return;
2628
+ }
2629
+ const storedConfigs = await this._loadStoredConfigs(taskId, context);
2630
+ if (!storedConfigs || storedConfigs.length === 0) {
2631
+ return;
2632
+ }
2633
+ const lastPromise = this.notificationChain.get(taskId) ?? Promise.resolve();
2634
+ const newPromise = lastPromise.catch(() => {
2635
+ }).then(async () => {
2636
+ const dispatches = storedConfigs.map(async (storedConfig) => {
2637
+ try {
2638
+ await this._dispatchNotification(streamResponse, storedConfig, taskId, task);
2639
+ } catch (error) {
2640
+ console.error(
2641
+ `Error sending push notification for task_id=${taskId} to URL: ${storedConfig.config.url}. Error:`,
2642
+ error
2643
+ );
2644
+ }
2645
+ });
2646
+ await Promise.all(dispatches);
2647
+ });
2648
+ this.notificationChain.set(taskId, newPromise);
2649
+ return newPromise.finally(() => {
2650
+ if (this.notificationChain.get(taskId) === newPromise) {
2651
+ this.notificationChain.delete(taskId);
2652
+ }
2653
+ });
2654
+ }
2655
+ /**
2656
+ * Returns the task id associated with a {@link StreamResponse}.
2657
+ * Returns an empty string for stand-alone messages with no task
2658
+ * association; the sender skips dispatch in that case.
2659
+ */
2660
+ _getTaskId(streamResponse) {
2661
+ const payload = streamResponse.payload;
2662
+ if (!payload) {
2663
+ throw new Error("StreamResponse payload is undefined");
2664
+ }
2665
+ switch (payload.$case) {
2666
+ case "task":
2667
+ return payload.value.id;
2668
+ case "statusUpdate":
2669
+ case "artifactUpdate":
2670
+ case "message":
2671
+ return payload.value.taskId;
2672
+ default: {
2673
+ const _exhaustive = payload;
2674
+ throw new Error(`Unknown payload case: ${_exhaustive.$case}`);
2675
+ }
2676
+ }
2677
+ }
2678
+ /**
2679
+ * Resolves stored configs from the {@link PushNotificationStore},
2680
+ * preferring the wire-version-aware
2681
+ * {@link PushNotificationStore.loadWithMetadata} when available.
2682
+ *
2683
+ * Stores that only implement the canonical {@link PushNotificationStore.load}
2684
+ * are silently lifted into the wrapped shape by tagging every entry
2685
+ * with the wire version of the *triggering* request. See
2686
+ * `src/compat/v0_3/README.md` for the implication on v1.0 deployments
2687
+ * with v0.3 compat opted in.
2688
+ */
2689
+ async _loadStoredConfigs(taskId, context) {
2690
+ if (this.pushNotificationStore.loadWithMetadata) {
2691
+ return await this.pushNotificationStore.loadWithMetadata(taskId, context);
2692
+ }
2693
+ const plain = await this.pushNotificationStore.load(taskId, context);
2694
+ const fallbackVersion = context.requestedVersion || A2A_LEGACY_PROTOCOL_VERSION;
2695
+ return plain.map((config) => ({ config, wireVersion: fallbackVersion }));
2696
+ }
2697
+ /**
2698
+ * Resolves the serializer registered for the given wire version,
2699
+ * falling back to v1.0 (with a one-time warning) when no entry is
2700
+ * registered.
2701
+ */
2702
+ _resolveSerializer(wireVersion) {
2703
+ const serializer = this.serializers.get(wireVersion);
2704
+ if (serializer) {
2705
+ return serializer;
2706
+ }
2707
+ if (!this.warnedMissingSerializers.has(wireVersion)) {
2708
+ this.warnedMissingSerializers.add(wireVersion);
2709
+ console.warn(
2710
+ `No push notification serializer registered for wire version '${wireVersion}'; falling back to '${A2A_PROTOCOL_VERSION}'. Register one via DefaultPushNotificationSenderOptions.serializers to silence this warning.`
2711
+ );
2712
+ }
2713
+ return this.fallbackSerializer;
2714
+ }
2715
+ /**
2716
+ * Builds the auth headers for a push notification request. Priority:
2717
+ * `pushConfig.authentication` (scheme + credentials) → `Authorization`
2718
+ * header; otherwise `pushConfig.token` → legacy token header.
2719
+ */
2720
+ _buildAuthHeaders(pushConfig) {
2721
+ const headers = {};
2722
+ if (pushConfig.authentication?.scheme && pushConfig.authentication?.credentials) {
2723
+ headers["Authorization"] = `${pushConfig.authentication.scheme} ${pushConfig.authentication.credentials}`;
2724
+ } else if (pushConfig.token) {
2725
+ headers[this.options.tokenHeaderName] = pushConfig.token;
2726
+ }
2727
+ return headers;
2728
+ }
2729
+ async _dispatchNotification(streamResponse, storedConfig, taskId, task) {
2730
+ const { config: pushConfig, wireVersion } = storedConfig;
2731
+ const url = pushConfig.url;
2732
+ const controller = new AbortController();
2733
+ const timeoutId = setTimeout(() => controller.abort(), this.options.timeout);
2734
+ try {
2735
+ const serializer = this._resolveSerializer(wireVersion);
2736
+ const { body, contentType } = serializer.serialize(streamResponse, task);
2737
+ const response = await fetch(url, {
2738
+ method: "POST",
2739
+ headers: {
2740
+ "Content-Type": contentType,
2741
+ ...this._buildAuthHeaders(pushConfig)
2742
+ },
2743
+ body,
2744
+ signal: controller.signal
2745
+ });
2746
+ if (!response.ok) {
2747
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
2748
+ }
2749
+ console.info(`Push notification sent for task_id=${taskId} to URL: ${url}`);
2750
+ } finally {
2751
+ clearTimeout(timeoutId);
2752
+ }
2753
+ }
2754
+ };
2755
+
2756
+ // src/server/request_handler/default_request_handler.ts
2757
+ var DefaultRequestHandler = class {
2758
+ agentCard;
2759
+ taskStore;
2760
+ agentExecutor;
2761
+ eventBusManager;
2762
+ pushNotificationStore;
2763
+ pushNotificationSender;
2764
+ extendedAgentCardProvider;
2765
+ agentCardSignatureGenerator;
2766
+ keepBusAliveStates;
2767
+ validateInputModes;
2768
+ constructor(agentCard, taskStore, agentExecutor, eventBusManager = new DefaultExecutionEventBusManager(), pushNotificationStore, pushNotificationSender, extendedAgentCardProvider, agentCardSignatureGenerator, options = {}) {
2769
+ this.agentCard = agentCard;
2770
+ this.taskStore = taskStore;
2771
+ this.agentExecutor = agentExecutor;
2772
+ this.eventBusManager = eventBusManager;
2773
+ this.extendedAgentCardProvider = extendedAgentCardProvider;
2774
+ this.agentCardSignatureGenerator = agentCardSignatureGenerator;
2775
+ this.keepBusAliveStates = new Set(options.keepBusAliveStates ?? INTERRUPTED_STATE_LIST);
2776
+ this.validateInputModes = options.validateInputModes ?? false;
2777
+ if (agentCard.capabilities?.pushNotifications) {
2778
+ this.pushNotificationStore = pushNotificationStore || new InMemoryPushNotificationStore();
2779
+ this.pushNotificationSender = pushNotificationSender || new DefaultPushNotificationSender(this.pushNotificationStore);
2780
+ }
2781
+ }
2782
+ async getAgentCard() {
2783
+ if (this.agentCardSignatureGenerator) {
2784
+ return this.agentCardSignatureGenerator(this.agentCard);
2785
+ }
2786
+ return this.agentCard;
2787
+ }
2788
+ async getAuthenticatedExtendedAgentCard(_params, context) {
2789
+ if (!this.agentCard.capabilities?.extendedAgentCard) {
2790
+ throw new UnsupportedOperationError("Agent does not support authenticated extended card.");
2791
+ }
2792
+ if (!this.extendedAgentCardProvider) {
2793
+ throw new ExtendedAgentCardNotConfiguredError();
2794
+ }
2795
+ let agentCard;
2796
+ if (typeof this.extendedAgentCardProvider === "function") {
2797
+ agentCard = await this.extendedAgentCardProvider(context);
2798
+ } else if (context.user?.isAuthenticated) {
2799
+ agentCard = this.extendedAgentCardProvider;
2800
+ } else {
2801
+ agentCard = this.agentCard;
2802
+ }
2803
+ if (this.agentCardSignatureGenerator) {
2804
+ return this.agentCardSignatureGenerator(agentCard);
2805
+ }
2806
+ return agentCard;
2807
+ }
2808
+ _validateInputModes(message, agentCard) {
2809
+ const supportedModes = agentCard.defaultInputModes ?? [];
2810
+ if (!this.validateInputModes || supportedModes.length === 0) {
2811
+ return;
2812
+ }
2813
+ for (const part of message.parts ?? []) {
2814
+ if (part.mediaType && !supportedModes.includes(part.mediaType)) {
2815
+ throw new ContentTypeNotSupportedError(
2816
+ `Media type '${part.mediaType}' is not supported. Supported media types: ${supportedModes.join(", ")}.`
2817
+ );
2818
+ }
2819
+ }
2820
+ }
2821
+ async _createRequestContext(request, context) {
2822
+ const incomingMessage = request.message;
2823
+ if (!incomingMessage) {
2824
+ throw new RequestMalformedError("request.message is required.");
2825
+ }
2826
+ let task;
2827
+ let referenceTasks;
2828
+ const agentCard = await this.getAgentCard();
2829
+ this._validateInputModes(incomingMessage, agentCard);
2830
+ const agentExtensions = agentCard.capabilities?.extensions ?? [];
2831
+ const requestedSet = new Set(context.requestedExtensions ?? []);
2832
+ const missingRequired = agentExtensions.filter((ext) => ext.required && !requestedSet.has(ext.uri)).map((ext) => ext.uri);
2833
+ if (missingRequired.length > 0) {
2834
+ throw new ExtensionSupportRequiredError(
2835
+ `Client must declare support for required extensions: ${missingRequired.join(", ")}`
2836
+ );
2837
+ }
2838
+ if (incomingMessage.taskId) {
2839
+ this._requireValidTaskId(incomingMessage.taskId);
2840
+ task = await this.taskStore.load(incomingMessage.taskId, context);
2841
+ if (!task) {
2842
+ throw new TaskNotFoundError(`Task not found: ${incomingMessage.taskId}`);
2843
+ }
2844
+ if (task.status?.state !== void 0 && TERMINAL_STATE_LIST.includes(task.status.state)) {
2845
+ throw new UnsupportedOperationError(
2846
+ `Task ${task.id} is in a terminal state (${task.status.state}) and cannot be modified.`
2847
+ );
2848
+ }
2849
+ if (incomingMessage.contextId && task.contextId && incomingMessage.contextId !== task.contextId) {
2850
+ throw new RequestMalformedError(
2851
+ `contextId mismatch: message contextId '${incomingMessage.contextId}' does not match task '${task.id}' contextId '${task.contextId}'`
2852
+ );
2853
+ }
2854
+ task.history = [...task.history || [], incomingMessage];
2855
+ await this.taskStore.save(task, context);
2856
+ }
2857
+ const taskId = incomingMessage.taskId || crypto.randomUUID();
2858
+ const referenceTaskIds = incomingMessage.referenceTaskIds || [];
2859
+ if (referenceTaskIds.length > 0) {
2860
+ referenceTasks = [];
2861
+ for (const refId of referenceTaskIds) {
2862
+ const refTask = await this.taskStore.load(refId, context);
2863
+ if (refTask) {
2864
+ referenceTasks.push(refTask);
2865
+ } else {
2866
+ console.warn(`Reference task ${refId} not found.`);
2867
+ }
2868
+ }
2869
+ }
2870
+ const contextId = incomingMessage.contextId || task?.contextId || crypto.randomUUID();
2871
+ if (context.requestedExtensions) {
2872
+ const exposedExtensions = new Set(agentExtensions.map((ext) => ext.uri));
2873
+ context.setRequestedExtensions(
2874
+ context.requestedExtensions.filter((extension) => exposedExtensions.has(extension))
2875
+ );
2876
+ }
2877
+ const messageForContext = {
2878
+ ...incomingMessage,
2879
+ contextId,
2880
+ taskId
2881
+ };
2882
+ const resolvedRequest = {
2883
+ ...request,
2884
+ message: messageForContext
2885
+ };
2886
+ return new RequestContext(resolvedRequest, taskId, contextId, context, task, referenceTasks);
2887
+ }
2888
+ async _processEvents(taskId, resultManager, eventQueue, context, options) {
2889
+ let firstResultSent = false;
2890
+ let authRequiredSnapshotSent = false;
2891
+ try {
2892
+ for await (const event of eventQueue.events()) {
2893
+ await resultManager.processEvent(event);
2894
+ try {
2895
+ const streamResponse = await this._mapEventToStreamResponse(event, context);
2896
+ await this._sendPushNotificationIfNeeded(
2897
+ context,
2898
+ streamResponse,
2899
+ structuredClone(resultManager.getCurrentTask())
2900
+ );
2901
+ } catch (error) {
2902
+ console.error(`Error sending push notification: ${error}`);
2903
+ }
2904
+ if (options?.firstResultResolver && !firstResultSent) {
2905
+ let firstResult;
2906
+ if (event.kind === "message") {
2907
+ firstResult = event.data;
2908
+ } else if (event.kind === "task") {
2909
+ firstResult = event.data;
2910
+ } else {
2911
+ const finalResult = resultManager.getFinalResult();
2912
+ if (finalResult && ("messageId" in finalResult || "id" in finalResult)) {
2913
+ firstResult = finalResult;
2914
+ }
2915
+ }
2916
+ if (firstResult) {
2917
+ options.firstResultResolver(firstResult);
2918
+ firstResultSent = true;
2919
+ }
2920
+ }
2921
+ if (options?.authRequiredSnapshotResolver && !authRequiredSnapshotSent && event.kind === "statusUpdate" && event.data.status && AUTH_REQUIRED_STATE_LIST.includes(event.data.status.state)) {
2922
+ const currentTask = resultManager.getCurrentTask();
2923
+ if (currentTask) {
2924
+ options.authRequiredSnapshotResolver(structuredClone(currentTask));
2925
+ authRequiredSnapshotSent = true;
2926
+ firstResultSent = true;
2927
+ }
2928
+ }
2929
+ }
2930
+ if (options?.firstResultResolver && options?.firstResultRejector && !firstResultSent) {
2931
+ options.firstResultRejector(
2932
+ new RequestMalformedError("Execution finished before a message or task was produced.")
2933
+ );
2934
+ }
2935
+ } catch (error) {
2936
+ console.error(`Event processing loop failed for task ${taskId}:`, error);
2937
+ await this._handleProcessingError(
2938
+ error,
2939
+ resultManager,
2940
+ firstResultSent,
2941
+ taskId,
2942
+ options?.firstResultRejector
2943
+ );
2944
+ } finally {
2945
+ eventQueue.stop();
2946
+ }
2947
+ }
2948
+ /**
2949
+ * Background drain helper used by the blocking `sendMessage` path
2950
+ * after an AUTH_REQUIRED snapshot has been returned to the caller.
2951
+ * Attaches a `.catch` so a thrown error in the unattended drain is
2952
+ * logged instead of surfacing as a Node `unhandledRejection`.
2953
+ */
2954
+ _continueDraining(taskId, pending) {
2955
+ pending.catch((error) => {
2956
+ console.error(
2957
+ `Background AUTH_REQUIRED drain failed for task ${taskId}:`,
2958
+ error instanceof Error ? error.message : error
2959
+ );
2960
+ });
2961
+ }
2962
+ /**
2963
+ * Runs the executor for a blocking `sendMessage` call and ties the
2964
+ * event bus lifecycle to the executor's settlement. On rejection,
2965
+ * publishes a synthetic Task + statusUpdate(FAILED) so the consumer's
2966
+ * event loop terminates with a usable final result and any concurrent
2967
+ * resubscribers see the failure on the same wire.
2968
+ */
2969
+ _runExecutor(taskId, eventBus, requestContext, finalMessageForAgent) {
2970
+ const stateTracker = trackLatestTaskState(eventBus);
2971
+ this.agentExecutor.execute(requestContext, eventBus).catch((err) => {
2972
+ const errorMessage = extractErrorMessage(err);
2973
+ console.error(`Agent execution failed for message ${finalMessageForAgent.messageId}:`, err);
2974
+ const errorTask = {
2975
+ id: requestContext.taskId,
2976
+ contextId: finalMessageForAgent.contextId,
2977
+ status: {
2978
+ state: 4 /* TASK_STATE_FAILED */,
2979
+ message: {
2980
+ role: 2 /* ROLE_AGENT */,
2981
+ messageId: crypto.randomUUID(),
2982
+ taskId: requestContext.taskId,
2983
+ contextId: finalMessageForAgent.contextId,
2984
+ parts: [
2985
+ {
2986
+ content: { $case: "text", value: `Agent execution error: ${errorMessage}` },
2987
+ mediaType: "text/plain",
2988
+ filename: "",
2989
+ metadata: {}
2990
+ }
2991
+ ],
2992
+ metadata: {},
2993
+ extensions: [],
2994
+ referenceTaskIds: []
2995
+ },
2996
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
2997
+ },
2998
+ artifacts: [],
2999
+ history: requestContext.task?.history ? [...requestContext.task.history] : [],
3000
+ metadata: {}
3001
+ };
3002
+ if (finalMessageForAgent && !errorTask.history?.find((m) => m.messageId === finalMessageForAgent.messageId)) {
3003
+ errorTask.history?.push(finalMessageForAgent);
3004
+ }
3005
+ eventBus.publish(AgentEvent.task(errorTask));
3006
+ eventBus.publish(
3007
+ AgentEvent.statusUpdate({
3008
+ taskId: errorTask.id,
3009
+ contextId: errorTask.contextId,
3010
+ status: errorTask.status,
3011
+ metadata: {}
3012
+ })
3013
+ );
3014
+ }).finally(() => {
3015
+ this._settleBus(taskId, eventBus, stateTracker(), requestContext.context);
3016
+ });
3017
+ }
3018
+ /**
3019
+ * Settles the event bus once the executor returns. Terminal states
3020
+ * (and the bare-Message stream pattern) close the bus immediately;
3021
+ * states configured in `keepBusAliveStates` keep it alive so follow-up
3022
+ * sends and resubscribers can still attach.
3023
+ *
3024
+ * A bus manager implementing
3025
+ * {@link ExecutionEventBusManager.settleByTaskId} is offered the decision
3026
+ * first and takes ownership of the bus by returning `true`, in which case we
3027
+ * do nothing further. That seam exists for buses whose delivery is deferred,
3028
+ * where `lastState` is still `undefined` when the executor returns and no
3029
+ * state-based policy can work. A manager that declines — or has no opinion
3030
+ * on this particular task — returns `false`, and the policy below applies as
3031
+ * usual.
3032
+ */
3033
+ _settleBus(taskId, eventBus, lastState, context) {
3034
+ if (this.eventBusManager.settleByTaskId?.(taskId, eventBus, lastState, context)) {
3035
+ return;
3036
+ }
3037
+ if (lastState !== void 0 && this.keepBusAliveStates.has(lastState)) {
3038
+ return;
3039
+ }
3040
+ eventBus.finished();
3041
+ this.eventBusManager.cleanupByTaskId(taskId, context);
3042
+ }
3043
+ /**
3044
+ * Streaming variant of {@link _runExecutor}. If the executor threw
3045
+ * before publishing any Task event, synthesizes both the Task and a
3046
+ * statusUpdate(FAILED) so the SSE consumer sees a well-formed
3047
+ * task-lifecycle stream that terminates in FAILED. If a Task was
3048
+ * already published, only the statusUpdate is synthesized to avoid
3049
+ * violating the task-lifecycle ordering.
3050
+ */
3051
+ _runStreamExecutor(taskId, eventBus, requestContext) {
3052
+ const finalMessageForAgent = requestContext.userMessage;
3053
+ const snapshotTracker = trackLatestTaskAndState(eventBus);
3054
+ this.agentExecutor.execute(requestContext, eventBus).catch((err) => {
3055
+ const errorMessage = extractErrorMessage(err);
3056
+ console.error(
3057
+ `Agent execution failed for stream message ${finalMessageForAgent.messageId}:`,
3058
+ err
3059
+ );
3060
+ const latestTask = snapshotTracker().task;
3061
+ const errorTaskId = latestTask?.id ?? requestContext.taskId;
3062
+ const errorContextId = latestTask?.contextId ?? finalMessageForAgent.contextId;
3063
+ if (!latestTask) {
3064
+ const errorTask = {
3065
+ id: requestContext.taskId,
3066
+ contextId: finalMessageForAgent.contextId,
3067
+ status: {
3068
+ state: 4 /* TASK_STATE_FAILED */,
3069
+ message: {
3070
+ role: 2 /* ROLE_AGENT */,
3071
+ messageId: crypto.randomUUID(),
3072
+ taskId: requestContext.taskId,
3073
+ contextId: finalMessageForAgent.contextId,
3074
+ parts: [
3075
+ {
3076
+ content: { $case: "text", value: `Agent execution error: ${errorMessage}` },
3077
+ mediaType: "text/plain",
3078
+ filename: "",
3079
+ metadata: {}
3080
+ }
3081
+ ],
3082
+ metadata: {},
3083
+ extensions: [],
3084
+ referenceTaskIds: []
3085
+ },
3086
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
3087
+ },
3088
+ artifacts: [],
3089
+ history: requestContext.task?.history ? [...requestContext.task.history] : [],
3090
+ metadata: {}
3091
+ };
3092
+ if (finalMessageForAgent && !errorTask.history?.find((m) => m.messageId === finalMessageForAgent.messageId)) {
3093
+ errorTask.history?.push(finalMessageForAgent);
3094
+ }
3095
+ eventBus.publish(AgentEvent.task(errorTask));
3096
+ }
3097
+ const errorTaskStatus = {
3098
+ taskId: errorTaskId,
3099
+ contextId: errorContextId,
3100
+ status: {
3101
+ state: 4 /* TASK_STATE_FAILED */,
3102
+ message: {
3103
+ role: 2 /* ROLE_AGENT */,
3104
+ messageId: crypto.randomUUID(),
3105
+ taskId: errorTaskId,
3106
+ contextId: errorContextId,
3107
+ parts: [
3108
+ {
3109
+ content: { $case: "text", value: `Agent execution error: ${errorMessage}` },
3110
+ mediaType: "text/plain",
3111
+ filename: "",
3112
+ metadata: {}
3113
+ }
3114
+ ],
3115
+ metadata: {},
3116
+ extensions: [],
3117
+ referenceTaskIds: []
3118
+ },
3119
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
3120
+ },
3121
+ metadata: {}
3122
+ };
3123
+ eventBus.publish(AgentEvent.statusUpdate(errorTaskStatus));
3124
+ }).finally(() => {
3125
+ this._settleBus(taskId, eventBus, snapshotTracker().state, requestContext.context);
3126
+ });
3127
+ }
3128
+ async sendMessage(params, context) {
3129
+ const incomingMessage = params.message;
3130
+ if (!incomingMessage?.messageId) {
3131
+ throw new RequestMalformedError("message.messageId is required.");
3132
+ }
3133
+ const isBlocking = params.configuration?.returnImmediately !== true;
3134
+ const resultManager = new ResultManager(this.taskStore, context);
3135
+ resultManager.setContext(incomingMessage);
3136
+ const requestContext = await this._createRequestContext(params, context);
3137
+ const taskId = requestContext.taskId;
3138
+ const finalMessageForAgent = requestContext.userMessage;
3139
+ if (params.configuration?.taskPushNotificationConfig && this.agentCard.capabilities?.pushNotifications) {
3140
+ const pushConfig = structuredClone(params.configuration.taskPushNotificationConfig);
3141
+ pushConfig.taskId = taskId;
3142
+ await this.pushNotificationStore?.save(taskId, context, pushConfig);
3143
+ }
3144
+ const eventBus = this.eventBusManager.createOrGetByTaskId(taskId, context);
3145
+ const eventQueue = new ExecutionEventQueue(eventBus);
3146
+ this._runExecutor(taskId, eventBus, requestContext, finalMessageForAgent);
3147
+ const historyLengthConfig = params.configuration;
3148
+ if (isBlocking) {
3149
+ return new Promise((resolve, reject) => {
3150
+ const pending = this._processEvents(taskId, resultManager, eventQueue, context, {
3151
+ authRequiredSnapshotResolver: (snapshot) => {
3152
+ this._applyHistoryLengthSemantics(snapshot, historyLengthConfig ?? {});
3153
+ resolve(snapshot);
3154
+ this._continueDraining(taskId, pending);
3155
+ },
3156
+ // Pre-AUTH_REQUIRED drain errors reject the outer promise so
3157
+ // `await sendMessage(...)` throws. Post-AUTH_REQUIRED drain
3158
+ // errors fall into `_handleProcessingError`'s "first result
3159
+ // already sent" branch (persisting FAILED via ResultManager)
3160
+ // and the `reject` call here becomes a no-op because Promise
3161
+ // settlement is one-shot.
3162
+ firstResultRejector: reject
3163
+ });
3164
+ pending.then(() => {
3165
+ const finalResult = resultManager.getFinalResult();
3166
+ if (!finalResult) {
3167
+ reject(
3168
+ new A2AError(
3169
+ "Agent execution finished without a result, and no task context found."
3170
+ )
3171
+ );
3172
+ return;
3173
+ }
3174
+ if (isTask(finalResult)) {
3175
+ this._applyHistoryLengthSemantics(finalResult, historyLengthConfig ?? {});
3176
+ }
3177
+ resolve(finalResult);
3178
+ }).catch(reject);
3179
+ });
3180
+ } else {
3181
+ return new Promise((resolve, reject) => {
3182
+ this._processEvents(taskId, resultManager, eventQueue, context, {
3183
+ firstResultResolver: (result) => {
3184
+ if (isTask(result)) {
3185
+ this._applyHistoryLengthSemantics(result, historyLengthConfig ?? {});
3186
+ }
3187
+ resolve(result);
3188
+ },
3189
+ firstResultRejector: reject
3190
+ });
3191
+ });
3192
+ }
3193
+ }
3194
+ async *sendMessageStream(params, context) {
3195
+ if (!this.agentCard.capabilities?.streaming) {
3196
+ throw new UnsupportedOperationError("Streaming is not supported.");
3197
+ }
3198
+ const incomingMessage = params.message;
3199
+ if (!incomingMessage?.messageId) {
3200
+ throw new RequestMalformedError("message.messageId is required for streaming.");
3201
+ }
3202
+ const resultManager = new ResultManager(this.taskStore, context);
3203
+ resultManager.setContext(incomingMessage);
3204
+ const requestContext = await this._createRequestContext(params, context);
3205
+ const taskId = requestContext.taskId;
3206
+ const eventBus = this.eventBusManager.createOrGetByTaskId(taskId, context);
3207
+ const eventQueue = new ExecutionEventQueue(eventBus);
3208
+ if (params.configuration?.taskPushNotificationConfig && this.agentCard.capabilities?.pushNotifications) {
3209
+ const pushConfig = structuredClone(params.configuration.taskPushNotificationConfig);
3210
+ pushConfig.taskId = taskId;
3211
+ await this.pushNotificationStore?.save(taskId, context, pushConfig);
3212
+ }
3213
+ this._runStreamExecutor(taskId, eventBus, requestContext);
3214
+ let streamPattern = "undetermined" /* UNDETERMINED */;
3215
+ try {
3216
+ for await (const event of eventQueue.events()) {
3217
+ streamPattern = this._advanceStreamPattern(event, streamPattern);
3218
+ await resultManager.processEvent(event);
3219
+ const streamResponse = await this._mapEventToStreamResponse(event, context);
3220
+ if (streamResponse.payload?.$case === "task") {
3221
+ this._applyHistoryLengthSemantics(
3222
+ streamResponse.payload.value,
3223
+ params.configuration ?? {}
3224
+ );
3225
+ }
3226
+ await this._sendPushNotificationIfNeeded(
3227
+ context,
3228
+ streamResponse,
3229
+ resultManager.getCurrentTask()
3230
+ );
3231
+ yield streamResponse;
3232
+ }
3233
+ } finally {
3234
+ eventQueue.stop();
3235
+ }
3236
+ }
3237
+ async getTask(params, context) {
3238
+ const taskId = params.id;
3239
+ this._requireValidTaskId(taskId);
3240
+ const task = await this.taskStore.load(taskId, context);
3241
+ if (!task) {
3242
+ throw new TaskNotFoundError(`Task not found: ${params.id}`);
3243
+ }
3244
+ this._applyHistoryLengthSemantics(task, params);
3245
+ return task;
3246
+ }
3247
+ async listTasks(params, context) {
3248
+ const pageSize = params.pageSize ?? DEFAULT_PAGE_SIZE;
3249
+ if (!Number.isInteger(pageSize) || pageSize < 1 || pageSize > 100) {
3250
+ throw new RequestMalformedError("pageSize must be between 1 and 100");
3251
+ }
3252
+ if (params.status !== void 0 && !VALID_TASK_STATE_LIST.includes(params.status)) {
3253
+ throw new RequestMalformedError(`Invalid status filter: ${String(params.status)}`);
3254
+ }
3255
+ if (params.statusTimestampAfter && isNaN(Date.parse(params.statusTimestampAfter))) {
3256
+ throw new RequestMalformedError("statusTimestampAfter must be a valid ISO 8601 date string");
3257
+ }
3258
+ const response = await this.taskStore.list({ ...params, pageSize }, context);
3259
+ for (const task of response.tasks) {
3260
+ this._applyHistoryLengthSemantics(task, params);
3261
+ }
3262
+ return response;
3263
+ }
3264
+ async cancelTask(params, context) {
3265
+ const taskId = params.id;
3266
+ this._requireValidTaskId(taskId);
3267
+ const task = await this.taskStore.load(taskId, context);
3268
+ if (!task) {
3269
+ throw new TaskNotFoundError(`Task not found: ${params.id}`);
3270
+ }
3271
+ const currentState = task.status?.state;
3272
+ if (currentState === 5 /* TASK_STATE_CANCELED */) {
3273
+ return task;
3274
+ }
3275
+ if (currentState !== void 0 && TERMINAL_STATE_LIST.includes(currentState)) {
3276
+ throw new TaskNotCancelableError(`Task not cancelable: ${params.id}`);
3277
+ }
3278
+ const eventBus = this.eventBusManager.getByTaskId(taskId, context);
3279
+ if (eventBus) {
3280
+ const eventQueue = new ExecutionEventQueue(eventBus);
3281
+ await this.agentExecutor.cancelTask(taskId, eventBus);
3282
+ await this._processEvents(
3283
+ taskId,
3284
+ new ResultManager(this.taskStore, context),
3285
+ eventQueue,
3286
+ context
3287
+ );
3288
+ } else {
3289
+ const cancelMessage = {
3290
+ role: 2 /* ROLE_AGENT */,
3291
+ messageId: crypto.randomUUID(),
3292
+ taskId: task.id,
3293
+ contextId: task.contextId,
3294
+ parts: [
3295
+ {
3296
+ content: { $case: "text", value: "Task cancellation requested by user." },
3297
+ mediaType: "text/plain",
3298
+ filename: "",
3299
+ metadata: {}
3300
+ }
3301
+ ],
3302
+ metadata: {},
3303
+ extensions: [],
3304
+ referenceTaskIds: []
3305
+ };
3306
+ await new ResultManager(this.taskStore, context).processEvent(
3307
+ AgentEvent.statusUpdate({
3308
+ taskId: task.id,
3309
+ contextId: task.contextId,
3310
+ status: {
3311
+ state: 5 /* TASK_STATE_CANCELED */,
3312
+ message: cancelMessage,
3313
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
3314
+ },
3315
+ metadata: {}
3316
+ })
3317
+ );
3318
+ }
3319
+ const latestTask = await this.taskStore.load(taskId, context);
3320
+ if (!latestTask) {
3321
+ throw new A2AError(`Task ${params.id} not found after cancellation.`);
3322
+ }
3323
+ if (latestTask.status.state != 5 /* TASK_STATE_CANCELED */) {
3324
+ throw new TaskNotCancelableError(`Task not cancelable: ${params.id}`);
3325
+ }
3326
+ return latestTask;
3327
+ }
3328
+ async createTaskPushNotificationConfig(params, context) {
3329
+ if (!this.agentCard.capabilities?.pushNotifications) {
3330
+ throw new PushNotificationNotSupportedError();
3331
+ }
3332
+ const taskId = params.taskId;
3333
+ this._requireValidTaskId(taskId);
3334
+ const task = await this.taskStore.load(taskId, context);
3335
+ if (!task) {
3336
+ throw new TaskNotFoundError(`Task not found: ${taskId}`);
3337
+ }
3338
+ await this.pushNotificationStore?.save(taskId, context, params);
3339
+ return structuredClone(params);
3340
+ }
3341
+ async getTaskPushNotificationConfig(params, context) {
3342
+ if (!this.agentCard.capabilities?.pushNotifications) {
3343
+ throw new PushNotificationNotSupportedError();
3344
+ }
3345
+ const taskId = params.taskId;
3346
+ this._requireValidTaskId(taskId);
3347
+ const task = await this.taskStore.load(taskId, context);
3348
+ if (!task) {
3349
+ throw new TaskNotFoundError(`Task not found: ${taskId}`);
3350
+ }
3351
+ const configs = await this.pushNotificationStore?.load(taskId, context) || [];
3352
+ if (configs.length === 0) {
3353
+ throw new TaskNotFoundError(`Push notification config not found for task ${taskId}.`);
3354
+ }
3355
+ const config = configs.find((c) => c.id === params.id);
3356
+ if (!config) {
3357
+ throw new TaskNotFoundError(
3358
+ `Push notification config with id '${params.id}' not found for task ${taskId}.`
3359
+ );
3360
+ }
3361
+ return config;
3362
+ }
3363
+ async listTaskPushNotificationConfigs(params, context) {
3364
+ if (!this.agentCard.capabilities?.pushNotifications) {
3365
+ throw new PushNotificationNotSupportedError();
3366
+ }
3367
+ const taskId = params.taskId;
3368
+ this._requireValidTaskId(taskId);
3369
+ const task = await this.taskStore.load(taskId, context);
3370
+ if (!task) {
3371
+ throw new TaskNotFoundError(`Task not found: ${taskId}`);
3372
+ }
3373
+ return {
3374
+ configs: await this.pushNotificationStore?.load(taskId, context) || [],
3375
+ nextPageToken: ""
3376
+ };
3377
+ }
3378
+ async deleteTaskPushNotificationConfig(params, context) {
3379
+ if (!this.agentCard.capabilities?.pushNotifications) {
3380
+ throw new PushNotificationNotSupportedError();
3381
+ }
3382
+ const taskId = params.taskId;
3383
+ this._requireValidTaskId(taskId);
3384
+ const task = await this.taskStore.load(taskId, context);
3385
+ if (!task) {
3386
+ throw new TaskNotFoundError(`Task not found: ${taskId}`);
3387
+ }
3388
+ await this.pushNotificationStore?.delete(taskId, context, params.id);
3389
+ }
3390
+ async *resubscribe(params, context) {
3391
+ if (!this.agentCard.capabilities?.streaming) {
3392
+ throw new UnsupportedOperationError("Streaming (and thus resubscription) is not supported.");
3393
+ }
3394
+ const taskId = params.id;
3395
+ this._requireValidTaskId(taskId);
3396
+ const eventBus = this.eventBusManager.getByTaskId(taskId, context);
3397
+ const eventQueue = eventBus ? new ExecutionEventQueue(eventBus) : void 0;
3398
+ try {
3399
+ const task = await this.taskStore.load(taskId, context);
3400
+ if (!task) {
3401
+ throw new TaskNotFoundError(`Task not found: ${taskId}`);
3402
+ }
3403
+ if (task.status?.state !== void 0 && TERMINAL_STATE_LIST.includes(task.status.state)) {
3404
+ throw new UnsupportedOperationError(
3405
+ `Task ${taskId} is in a terminal state (${task.status.state}) and cannot be subscribed to.`
3406
+ );
3407
+ }
3408
+ yield { payload: { $case: "task", value: task } };
3409
+ if (!eventQueue) {
3410
+ return;
3411
+ }
3412
+ for await (const event of eventQueue.events()) {
3413
+ switch (event.kind) {
3414
+ case "statusUpdate":
3415
+ if (event.data.taskId === taskId) {
3416
+ yield { payload: { $case: "statusUpdate", value: event.data } };
3417
+ }
3418
+ break;
3419
+ case "artifactUpdate":
3420
+ if (event.data.taskId === taskId) {
3421
+ yield { payload: { $case: "artifactUpdate", value: event.data } };
3422
+ }
3423
+ break;
3424
+ case "task":
3425
+ if (event.data.id === taskId) {
3426
+ yield { payload: { $case: "task", value: event.data } };
3427
+ }
3428
+ break;
3429
+ case "message":
3430
+ break;
3431
+ default:
3432
+ assertUnreachableEvent(event);
3433
+ }
3434
+ }
3435
+ } finally {
3436
+ eventQueue?.stop();
3437
+ }
3438
+ }
3439
+ /**
3440
+ * Maps an {@link AgentExecutionEvent} to a `StreamResponse`. For Task
3441
+ * events the full task is loaded from the store to include accumulated
3442
+ * history and artifacts.
3443
+ */
3444
+ async _mapEventToStreamResponse(event, context) {
3445
+ switch (event.kind) {
3446
+ case "task": {
3447
+ const taskId = event.data.id;
3448
+ const fullTask = await this.taskStore.load(taskId, context).catch((error) => {
3449
+ console.warn("Failed to load full task from store, falling back to event data:", error);
3450
+ return null;
3451
+ });
3452
+ return { payload: { $case: "task", value: fullTask || event.data } };
3453
+ }
3454
+ case "message":
3455
+ return { payload: { $case: "message", value: event.data } };
3456
+ case "statusUpdate":
3457
+ return { payload: { $case: "statusUpdate", value: event.data } };
3458
+ case "artifactUpdate":
3459
+ return { payload: { $case: "artifactUpdate", value: event.data } };
3460
+ default:
3461
+ assertUnreachableEvent(event);
3462
+ }
3463
+ }
3464
+ /**
3465
+ * Fire-and-forget push notification dispatch. Delivery must not block
3466
+ * the stream or response; errors are logged but do not propagate. The
3467
+ * sender silently skips stand-alone Messages that carry no task
3468
+ * association (no push config can be registered for them).
3469
+ */
3470
+ async _sendPushNotificationIfNeeded(context, streamResponse, task) {
3471
+ if (this.agentCard.capabilities?.pushNotifications && this.pushNotificationSender) {
3472
+ this.pushNotificationSender.send(streamResponse, context, task).catch((error) => {
3473
+ console.error(`Failed to send push notification:`, error);
3474
+ });
3475
+ }
3476
+ }
3477
+ async _handleProcessingError(error, resultManager, firstResultSent, taskId, firstResultRejector) {
3478
+ if (firstResultRejector && !firstResultSent) {
3479
+ firstResultRejector(error);
3480
+ return;
3481
+ }
3482
+ if (!firstResultRejector) {
3483
+ throw error;
3484
+ }
3485
+ const currentTask = resultManager.getCurrentTask();
3486
+ const errorMessage = error instanceof Error && error.message || "Unknown error";
3487
+ if (currentTask) {
3488
+ const statusUpdateFailed = {
3489
+ taskId: currentTask.id,
3490
+ contextId: currentTask.contextId,
3491
+ status: {
3492
+ state: 4 /* TASK_STATE_FAILED */,
3493
+ message: {
3494
+ role: 2 /* ROLE_AGENT */,
3495
+ messageId: crypto.randomUUID(),
3496
+ taskId: currentTask.id,
3497
+ contextId: currentTask.contextId,
3498
+ parts: [
3499
+ {
3500
+ content: { $case: "text", value: `Event processing loop failed: ${errorMessage}` },
3501
+ mediaType: "text/plain",
3502
+ filename: "",
3503
+ metadata: {}
3504
+ }
3505
+ ],
3506
+ metadata: {},
3507
+ extensions: [],
3508
+ referenceTaskIds: []
3509
+ },
3510
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
3511
+ },
3512
+ metadata: {}
3513
+ };
3514
+ try {
3515
+ await resultManager.processEvent(AgentEvent.statusUpdate(statusUpdateFailed));
3516
+ } catch (error2) {
3517
+ console.error(
3518
+ `Event processing loop failed for task ${taskId}: ${error2 instanceof Error && error2.message || "Unknown error"}`
3519
+ );
3520
+ }
3521
+ } else {
3522
+ console.error(`Event processing loop failed for task ${taskId}: ${errorMessage}`);
3523
+ }
3524
+ }
3525
+ /**
3526
+ * Advances the stream pattern state based on the incoming event.
3527
+ * Returns the (possibly transitioned) pattern; throws on invalid
3528
+ * transitions.
3529
+ */
3530
+ _advanceStreamPattern(event, currentPattern) {
3531
+ switch (currentPattern) {
3532
+ case "undetermined" /* UNDETERMINED */:
3533
+ if (event.kind === "message") return "message-only" /* MESSAGE_ONLY */;
3534
+ if (event.kind === "task") return "task-lifecycle" /* TASK_LIFECYCLE */;
3535
+ throw new UnsupportedOperationError(
3536
+ `Received ${event.kind} before initial 'Message'/'Task' event.`
3537
+ );
3538
+ case "message-only" /* MESSAGE_ONLY */:
3539
+ throw new UnsupportedOperationError(`Received ${event.kind} after message-only response.`);
3540
+ case "task-lifecycle" /* TASK_LIFECYCLE */:
3541
+ if (event.kind !== "statusUpdate" && event.kind !== "artifactUpdate")
3542
+ throw new UnsupportedOperationError(
3543
+ `Stream ordering violation: received ${event.kind} in task lifecycle stream.`
3544
+ );
3545
+ return currentPattern;
3546
+ }
3547
+ }
3548
+ /**
3549
+ * A missing or whitespace-only task ID is malformed input: reject it
3550
+ * with `RequestMalformedError` (-32602 / HTTP 400) instead of letting
3551
+ * the task store surface `TaskNotFoundError` (-32001 / HTTP 404).
3552
+ */
3553
+ _requireValidTaskId(taskId) {
3554
+ if (!taskId || taskId.trim() === "") {
3555
+ throw new RequestMalformedError("Task ID is required");
3556
+ }
3557
+ }
3558
+ /**
3559
+ * Applies `historyLength` semantics:
3560
+ * - undefined: return all history
3561
+ * - 0: omit history
3562
+ * - N > 0: return at most N most recent messages
3563
+ */
3564
+ _applyHistoryLengthSemantics(task, params) {
3565
+ if (params.historyLength !== void 0) {
3566
+ if (params.historyLength <= 0) {
3567
+ task.history = [];
3568
+ } else {
3569
+ task.history = (task.history ?? []).slice(-params.historyLength);
3570
+ }
3571
+ }
3572
+ }
3573
+ };
3574
+ function trackLatestTaskState(bus) {
3575
+ let lastState;
3576
+ const listener = (event) => {
3577
+ if (event.kind === "task" && event.data.status?.state !== void 0) {
3578
+ lastState = event.data.status.state;
3579
+ } else if (event.kind === "statusUpdate" && event.data.status?.state !== void 0) {
3580
+ lastState = event.data.status.state;
3581
+ }
3582
+ };
3583
+ bus.on("event", listener);
3584
+ return () => {
3585
+ bus.off("event", listener);
3586
+ return lastState;
3587
+ };
3588
+ }
3589
+ function trackLatestTaskAndState(bus) {
3590
+ let lastTask;
3591
+ let lastState;
3592
+ const listener = (event) => {
3593
+ if (event.kind === "task") {
3594
+ lastTask = event.data;
3595
+ if (event.data.status?.state !== void 0) {
3596
+ lastState = event.data.status.state;
3597
+ }
3598
+ } else if (event.kind === "statusUpdate" && event.data.status?.state !== void 0) {
3599
+ lastState = event.data.status.state;
3600
+ }
3601
+ };
3602
+ bus.on("event", listener);
3603
+ return () => {
3604
+ bus.off("event", listener);
3605
+ return { task: lastTask, state: lastState };
3606
+ };
3607
+ }
3608
+
3609
+ // src/server/store.ts
3610
+ var InMemoryTaskStore = class {
3611
+ _scopedStore;
3612
+ constructor(ownerResolver = resolveUserScope) {
3613
+ this._scopedStore = new ScopedStore(ownerResolver);
3614
+ }
3615
+ async load(taskId, context) {
3616
+ const entry = this._scopedStore.getBucket(context)?.get(taskId);
3617
+ return entry ? structuredClone(entry) : void 0;
3618
+ }
3619
+ async save(task, context) {
3620
+ this._scopedStore.getOrCreateBucket(context).set(task.id, structuredClone(task));
3621
+ }
3622
+ async list(params, context) {
3623
+ const {
3624
+ contextId,
3625
+ status,
3626
+ pageSize = DEFAULT_PAGE_SIZE,
3627
+ pageToken,
3628
+ statusTimestampAfter,
3629
+ includeArtifacts = false
3630
+ } = params;
3631
+ const bucket = this._scopedStore.getBucket(context);
3632
+ let tasks = bucket ? Array.from(bucket.values()) : [];
3633
+ if (contextId) {
3634
+ tasks = tasks.filter((task) => task.contextId === contextId);
3635
+ }
3636
+ if (status !== void 0 && status !== 0 /* TASK_STATE_UNSPECIFIED */) {
3637
+ tasks = tasks.filter((task) => task.status?.state === status);
3638
+ }
3639
+ if (statusTimestampAfter) {
3640
+ const filterTime = new Date(statusTimestampAfter).getTime();
3641
+ tasks = tasks.filter(
3642
+ (task) => task.status?.timestamp && new Date(task.status.timestamp).getTime() > filterTime
3643
+ );
3644
+ }
3645
+ tasks.sort((taskA, taskB) => {
3646
+ const timeA = taskA.status?.timestamp || "";
3647
+ const timeB = taskB.status?.timestamp || "";
3648
+ if (timeB !== timeA) {
3649
+ return timeB.localeCompare(timeA);
3650
+ }
3651
+ return taskB.id.localeCompare(taskA.id);
3652
+ });
3653
+ const totalSize = tasks.length;
3654
+ if (pageToken) {
3655
+ const cursor = decodePageToken(pageToken);
3656
+ const cursorIndex = tasks.findIndex(
3657
+ (task) => (task.status?.timestamp || "") === cursor.timestamp && task.id === cursor.id
3658
+ );
3659
+ if (cursorIndex !== -1) {
3660
+ tasks = tasks.slice(cursorIndex + 1);
3661
+ } else {
3662
+ tasks = [];
3663
+ }
3664
+ }
3665
+ const paginatedTasks = tasks.slice(0, pageSize);
3666
+ const resultTasks = paginatedTasks.map((task) => {
3667
+ const taskCopy = structuredClone(task);
3668
+ if (!includeArtifacts) {
3669
+ taskCopy.artifacts = [];
3670
+ }
3671
+ return taskCopy;
3672
+ });
3673
+ let nextPageToken = "";
3674
+ if (paginatedTasks.length > 0 && tasks.length > paginatedTasks.length) {
3675
+ const lastTask = paginatedTasks[paginatedTasks.length - 1];
3676
+ nextPageToken = encodePageToken(lastTask.status?.timestamp || "", lastTask.id);
3677
+ }
3678
+ return {
3679
+ tasks: resultTasks,
3680
+ nextPageToken,
3681
+ pageSize,
3682
+ totalSize
3683
+ };
3684
+ }
3685
+ };
3686
+
3687
+ // src/server/transports/list_tasks_serializer.ts
3688
+ function serializeListTasksResponse(response, options) {
3689
+ const serialized = ListTasksResponse.toJSON(response);
3690
+ const { tasks, nextPageToken, pageSize, totalSize, ...rest } = serialized;
3691
+ const serializedTasks = tasks ?? [];
3692
+ return {
3693
+ tasks: options?.includeArtifacts ? serializedTasks.map(withMaterializedArtifacts) : serializedTasks,
3694
+ nextPageToken: nextPageToken ?? "",
3695
+ pageSize: pageSize ?? 0,
3696
+ totalSize: totalSize ?? 0,
3697
+ ...rest
3698
+ };
3699
+ }
3700
+ function withMaterializedArtifacts(task) {
3701
+ if (typeof task !== "object" || task === null) {
3702
+ return task;
3703
+ }
3704
+ const serializedTask = task;
3705
+ if (serializedTask.artifacts !== void 0) {
3706
+ return serializedTask;
3707
+ }
3708
+ return { ...serializedTask, artifacts: [] };
3709
+ }
3710
+
3711
+ // src/server/transports/jsonrpc/jsonrpc_transport_handler.ts
3712
+ var JsonRpcTransportHandler = class _JsonRpcTransportHandler {
3713
+ requestHandler;
3714
+ constructor(requestHandler) {
3715
+ this.requestHandler = requestHandler;
3716
+ }
3717
+ async handle(requestBody, context) {
3718
+ let rpcRequest = { jsonrpc: "2.0", method: "" };
3719
+ try {
3720
+ if (typeof requestBody === "string") {
3721
+ rpcRequest = JSON.parse(requestBody);
3722
+ } else if (typeof requestBody === "object" && requestBody !== null) {
3723
+ rpcRequest = requestBody;
3724
+ } else {
3725
+ throw new RequestMalformedError("Invalid request body type.");
3726
+ }
3727
+ if (!this.isRequestValid(rpcRequest)) {
3728
+ throw new RequestMalformedError("Invalid JSON-RPC Request.");
3729
+ }
3730
+ } catch (error) {
3731
+ const mappedError = _JsonRpcTransportHandler.mapToJSONRPCError(
3732
+ error instanceof SyntaxError ? new RequestMalformedError(error.message || "Failed to parse JSON request.") : error
3733
+ );
3734
+ return {
3735
+ jsonrpc: "2.0",
3736
+ id: rpcRequest.id ?? null,
3737
+ error: mappedError
3738
+ };
3739
+ }
3740
+ const { method, id: requestId = null } = rpcRequest;
3741
+ try {
3742
+ if (method !== "GetExtendedAgentCard" && !this.paramsAreValid(rpcRequest.params)) {
3743
+ throw new RequestMalformedError(`Invalid method parameters.`);
3744
+ }
3745
+ const paramsTenant = rpcRequest.params?.tenant;
3746
+ if (paramsTenant) {
3747
+ context.setTenant(paramsTenant);
3748
+ }
3749
+ if (method === "SendStreamingMessage" || method === "SubscribeToTask") {
3750
+ const params = rpcRequest.params;
3751
+ const agentEventStream = method === "SendStreamingMessage" ? this.requestHandler.sendMessageStream(SendMessageRequest.fromJSON(params), context) : this.requestHandler.resubscribe(SubscribeToTaskRequest.fromJSON(params), context);
3752
+ return (async function* jsonRpcEventStream() {
3753
+ for await (const event of agentEventStream) {
3754
+ yield {
3755
+ jsonrpc: "2.0",
3756
+ id: requestId,
3757
+ result: StreamResponse.toJSON(event)
3758
+ };
3759
+ }
3760
+ })();
3761
+ } else {
3762
+ let result;
3763
+ switch (method) {
3764
+ case "SendMessage": {
3765
+ const messageOrTask = await this.requestHandler.sendMessage(
3766
+ SendMessageRequest.fromJSON(rpcRequest.params),
3767
+ context
3768
+ );
3769
+ result = "messageId" in messageOrTask ? { message: Message.toJSON(messageOrTask) } : { task: Task.toJSON(messageOrTask) };
3770
+ break;
3771
+ }
3772
+ case "GetTask":
3773
+ result = Task.toJSON(
3774
+ await this.requestHandler.getTask(GetTaskRequest.fromJSON(rpcRequest.params), context)
3775
+ );
3776
+ break;
3777
+ case "ListTasks": {
3778
+ const listTasksRequest = ListTasksRequest.fromJSON(rpcRequest.params);
3779
+ result = serializeListTasksResponse(
3780
+ await this.requestHandler.listTasks(listTasksRequest, context),
3781
+ { includeArtifacts: listTasksRequest.includeArtifacts }
3782
+ );
3783
+ break;
3784
+ }
3785
+ case "CancelTask":
3786
+ result = Task.toJSON(
3787
+ await this.requestHandler.cancelTask(
3788
+ CancelTaskRequest.fromJSON(rpcRequest.params),
3789
+ context
3790
+ )
3791
+ );
3792
+ break;
3793
+ case "CreateTaskPushNotificationConfig": {
3794
+ result = TaskPushNotificationConfig.toJSON(
3795
+ await this.requestHandler.createTaskPushNotificationConfig(
3796
+ TaskPushNotificationConfig.fromJSON(rpcRequest.params),
3797
+ context
3798
+ )
3799
+ );
3800
+ break;
3801
+ }
3802
+ case "GetTaskPushNotificationConfig":
3803
+ result = TaskPushNotificationConfig.toJSON(
3804
+ await this.requestHandler.getTaskPushNotificationConfig(
3805
+ GetTaskPushNotificationConfigRequest.fromJSON(rpcRequest.params),
3806
+ context
3807
+ )
3808
+ );
3809
+ break;
3810
+ case "DeleteTaskPushNotificationConfig":
3811
+ await this.requestHandler.deleteTaskPushNotificationConfig(
3812
+ DeleteTaskPushNotificationConfigRequest.fromJSON(rpcRequest.params),
3813
+ context
3814
+ );
3815
+ result = null;
3816
+ break;
3817
+ case "ListTaskPushNotificationConfigs":
3818
+ result = ListTaskPushNotificationConfigsResponse.toJSON(
3819
+ await this.requestHandler.listTaskPushNotificationConfigs(
3820
+ ListTaskPushNotificationConfigsRequest.fromJSON(rpcRequest.params),
3821
+ context
3822
+ )
3823
+ );
3824
+ break;
3825
+ case "GetExtendedAgentCard":
3826
+ result = AgentCard.toJSON(
3827
+ await this.requestHandler.getAuthenticatedExtendedAgentCard(
3828
+ GetExtendedAgentCardRequest.fromJSON(rpcRequest.params ?? {}),
3829
+ context
3830
+ )
3831
+ );
3832
+ break;
3833
+ default:
3834
+ return {
3835
+ jsonrpc: "2.0",
3836
+ id: requestId,
3837
+ error: { code: A2A_ERROR_CODE.METHOD_NOT_FOUND, message: "Invalid method." }
3838
+ };
3839
+ }
3840
+ return {
3841
+ jsonrpc: "2.0",
3842
+ id: requestId,
3843
+ result
3844
+ };
3845
+ }
3846
+ } catch (error) {
3847
+ return {
3848
+ jsonrpc: "2.0",
3849
+ id: requestId,
3850
+ error: _JsonRpcTransportHandler.mapToJSONRPCError(error)
3851
+ };
3852
+ }
3853
+ }
3854
+ isRequestValid(rpcRequest) {
3855
+ if (rpcRequest.jsonrpc !== "2.0") {
3856
+ return false;
3857
+ }
3858
+ if ("id" in rpcRequest) {
3859
+ const id = rpcRequest.id;
3860
+ const isString = typeof id === "string";
3861
+ const isInteger = typeof id === "number" && Number.isInteger(id);
3862
+ const isNull = id === null;
3863
+ if (!isString && !isInteger && !isNull) {
3864
+ return false;
3865
+ }
3866
+ }
3867
+ if (!rpcRequest.method || typeof rpcRequest.method !== "string") {
3868
+ return false;
3869
+ }
3870
+ return true;
3871
+ }
3872
+ paramsAreValid(params) {
3873
+ if (typeof params !== "object" || params === null || Array.isArray(params)) {
3874
+ return false;
3875
+ }
3876
+ for (const key of Object.keys(params)) {
3877
+ if (key === "") {
3878
+ return false;
3879
+ }
3880
+ }
3881
+ return true;
3882
+ }
3883
+ static mapToJSONRPCError(error) {
3884
+ return toJsonRpcError(error);
3885
+ }
3886
+ };
3887
+
3888
+ // src/server/version.ts
3889
+ function getSupportedVersions(agentCard, protocolBinding) {
3890
+ const versions = /* @__PURE__ */ new Set();
3891
+ for (const agentInterface of agentCard.supportedInterfaces ?? []) {
3892
+ if (protocolBinding && agentInterface.protocolBinding !== protocolBinding) {
3893
+ continue;
3894
+ }
3895
+ if (agentInterface.protocolVersion) {
3896
+ versions.add(agentInterface.protocolVersion);
3897
+ }
3898
+ }
3899
+ return versions;
3900
+ }
3901
+ function validateVersion(requestedVersion, agentCard, protocolBinding) {
3902
+ const supported = getSupportedVersions(agentCard, protocolBinding);
3903
+ if (!supported.has(requestedVersion)) {
3904
+ throw new VersionNotSupportedError(
3905
+ `The requested A2A protocol version '${requestedVersion}' is not supported. Supported versions: ${[...supported].join(", ")}`
3906
+ );
3907
+ }
3908
+ }
3909
+
3910
+ // src/server/authentication/user.ts
3911
+ var UnauthenticatedUser = class {
3912
+ get isAuthenticated() {
3913
+ return false;
3914
+ }
3915
+ get userName() {
3916
+ return "";
3917
+ }
3918
+ };
3919
+ // Annotate the CommonJS export names for ESM import in node:
3920
+ 0 && (module.exports = {
3921
+ AgentEvent,
3922
+ DefaultExecutionEventBus,
3923
+ DefaultExecutionEventBusManager,
3924
+ DefaultPushNotificationSender,
3925
+ DefaultRequestHandler,
3926
+ ExecutionEventQueue,
3927
+ InMemoryPushNotificationStore,
3928
+ InMemoryTaskStore,
3929
+ JsonRpcTransportHandler,
3930
+ RequestContext,
3931
+ ResultManager,
3932
+ STATE_HEADERS_KEY,
3933
+ ServerCallContext,
3934
+ UnauthenticatedUser,
3935
+ V1PushNotificationSerializer,
3936
+ assertUnreachableEvent,
3937
+ defaultServerCallContextBuilder,
3938
+ getSupportedVersions,
3939
+ resolveUserScope,
3940
+ validateVersion
3941
+ });