@moltzap/client 2026.1002.0 → 2026.1004.0

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 (492) hide show
  1. package/README.md +2 -2
  2. package/bin/moltzapd +2 -2
  3. package/dist/{harness-mcp-contract.d.ts → delivery/history-export.d.ts} +94 -133
  4. package/dist/delivery/history-export.d.ts.map +1 -0
  5. package/dist/{daemon/runtime → delivery}/history-export.js +36 -3
  6. package/dist/delivery/history-export.js.map +1 -0
  7. package/dist/delivery/host-delivery.d.ts +51 -0
  8. package/dist/delivery/host-delivery.d.ts.map +1 -0
  9. package/dist/delivery/host-delivery.js +109 -0
  10. package/dist/delivery/host-delivery.js.map +1 -0
  11. package/dist/delivery/inbox.d.ts +141 -0
  12. package/dist/delivery/inbox.d.ts.map +1 -0
  13. package/dist/delivery/inbox.js +129 -0
  14. package/dist/delivery/inbox.js.map +1 -0
  15. package/dist/delivery/index.d.ts +4 -0
  16. package/dist/delivery/index.d.ts.map +1 -0
  17. package/dist/delivery/index.js +4 -0
  18. package/dist/delivery/index.js.map +1 -0
  19. package/dist/delivery/operations.d.ts +789 -0
  20. package/dist/delivery/operations.d.ts.map +1 -0
  21. package/dist/delivery/operations.js +162 -0
  22. package/dist/delivery/operations.js.map +1 -0
  23. package/dist/delivery/pass.d.ts +91 -0
  24. package/dist/delivery/pass.d.ts.map +1 -0
  25. package/dist/{daemon/runtime/pending-delivery.js → delivery/pass.js} +61 -34
  26. package/dist/delivery/pass.js.map +1 -0
  27. package/dist/delivery/send-invocations.d.ts +106 -0
  28. package/dist/delivery/send-invocations.d.ts.map +1 -0
  29. package/dist/delivery/send-invocations.js +109 -0
  30. package/dist/delivery/send-invocations.js.map +1 -0
  31. package/dist/endpoint/harness-endpoint/capability.d.ts +39 -0
  32. package/dist/endpoint/harness-endpoint/capability.d.ts.map +1 -0
  33. package/dist/endpoint/harness-endpoint/capability.js +9 -0
  34. package/dist/endpoint/harness-endpoint/capability.js.map +1 -0
  35. package/dist/endpoint/harness-endpoint/events.d.ts +12 -0
  36. package/dist/endpoint/harness-endpoint/events.d.ts.map +1 -0
  37. package/dist/endpoint/harness-endpoint/events.js +199 -0
  38. package/dist/endpoint/harness-endpoint/events.js.map +1 -0
  39. package/dist/{client-runtime.d.ts → endpoint/harness-endpoint/index.d.ts} +4 -2
  40. package/dist/endpoint/harness-endpoint/index.d.ts.map +1 -0
  41. package/dist/{client-runtime.js → endpoint/harness-endpoint/index.js} +115 -115
  42. package/dist/endpoint/harness-endpoint/index.js.map +1 -0
  43. package/dist/endpoint/implementation.d.ts +4 -0
  44. package/dist/endpoint/implementation.d.ts.map +1 -0
  45. package/dist/endpoint/implementation.js +5 -0
  46. package/dist/endpoint/implementation.js.map +1 -0
  47. package/dist/endpoint/mcp/auth.d.ts +31 -0
  48. package/dist/endpoint/mcp/auth.d.ts.map +1 -0
  49. package/dist/endpoint/mcp/auth.js +42 -0
  50. package/dist/endpoint/mcp/auth.js.map +1 -0
  51. package/dist/endpoint/mcp/event-schemas.d.ts +151 -0
  52. package/dist/endpoint/mcp/event-schemas.d.ts.map +1 -0
  53. package/dist/endpoint/mcp/event-schemas.js +72 -0
  54. package/dist/endpoint/mcp/event-schemas.js.map +1 -0
  55. package/dist/endpoint/mcp/event-signing.d.ts +62 -0
  56. package/dist/endpoint/mcp/event-signing.d.ts.map +1 -0
  57. package/dist/endpoint/mcp/event-signing.js +185 -0
  58. package/dist/endpoint/mcp/event-signing.js.map +1 -0
  59. package/dist/endpoint/mcp/events.d.ts +45 -0
  60. package/dist/endpoint/mcp/events.d.ts.map +1 -0
  61. package/dist/endpoint/mcp/events.js +296 -0
  62. package/dist/endpoint/mcp/events.js.map +1 -0
  63. package/dist/{harness-mcp-http.d.ts → endpoint/mcp/http.d.ts} +1 -1
  64. package/dist/endpoint/mcp/http.d.ts.map +1 -0
  65. package/dist/{harness-mcp-http.js → endpoint/mcp/http.js} +1 -1
  66. package/dist/endpoint/mcp/http.js.map +1 -0
  67. package/dist/endpoint/mcp/index.d.ts +10 -0
  68. package/dist/endpoint/mcp/index.d.ts.map +1 -0
  69. package/dist/endpoint/mcp/index.js +8 -0
  70. package/dist/endpoint/mcp/index.js.map +1 -0
  71. package/dist/{management-runtime.d.ts → endpoint/mcp/owner-tools.d.ts} +7 -7
  72. package/dist/endpoint/mcp/owner-tools.d.ts.map +1 -0
  73. package/dist/{management-runtime.js → endpoint/mcp/owner-tools.js} +3 -4
  74. package/dist/endpoint/mcp/owner-tools.js.map +1 -0
  75. package/dist/endpoint/mcp/schemas.d.ts +60 -0
  76. package/dist/endpoint/mcp/schemas.d.ts.map +1 -0
  77. package/dist/endpoint/mcp/schemas.js +116 -0
  78. package/dist/endpoint/mcp/schemas.js.map +1 -0
  79. package/dist/{harness-mcp-wire.d.ts → endpoint/mcp/tools.d.ts} +17 -14
  80. package/dist/endpoint/mcp/tools.d.ts.map +1 -0
  81. package/dist/{harness-mcp-wire.js → endpoint/mcp/tools.js} +229 -110
  82. package/dist/endpoint/mcp/tools.js.map +1 -0
  83. package/dist/endpoint/mcp/webhook.d.ts +15 -0
  84. package/dist/endpoint/mcp/webhook.d.ts.map +1 -0
  85. package/dist/endpoint/mcp/webhook.js +359 -0
  86. package/dist/endpoint/mcp/webhook.js.map +1 -0
  87. package/dist/identity/credentials.d.ts +46 -0
  88. package/dist/identity/credentials.d.ts.map +1 -0
  89. package/dist/identity/credentials.js +55 -0
  90. package/dist/identity/credentials.js.map +1 -0
  91. package/dist/identity/index.d.ts +4 -0
  92. package/dist/identity/index.d.ts.map +1 -0
  93. package/dist/identity/index.js +4 -0
  94. package/dist/identity/index.js.map +1 -0
  95. package/dist/index.d.ts +19 -4
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +21 -5
  98. package/dist/index.js.map +1 -1
  99. package/dist/{contract.types-check.d.ts → index.types-check.d.ts} +8 -4
  100. package/dist/index.types-check.d.ts.map +1 -0
  101. package/dist/{contract.types-check.js → index.types-check.js} +4 -3
  102. package/dist/index.types-check.js.map +1 -0
  103. package/dist/{daemon/runtime → service}/activation.d.ts +9 -12
  104. package/dist/service/activation.d.ts.map +1 -0
  105. package/dist/{daemon/runtime → service}/activation.js +3 -3
  106. package/dist/service/activation.js.map +1 -0
  107. package/dist/{daemon → service}/configuration.d.ts +8 -7
  108. package/dist/service/configuration.d.ts.map +1 -0
  109. package/dist/{daemon → service}/configuration.js +30 -28
  110. package/dist/service/configuration.js.map +1 -0
  111. package/dist/{daemon/runtime → service}/controller.d.ts +8 -6
  112. package/dist/service/controller.d.ts.map +1 -0
  113. package/dist/service/controller.js +106 -0
  114. package/dist/service/controller.js.map +1 -0
  115. package/dist/{server.d.ts → service/index.d.ts} +7 -4
  116. package/dist/service/index.d.ts.map +1 -0
  117. package/dist/{server.js → service/index.js} +17 -15
  118. package/dist/service/index.js.map +1 -0
  119. package/dist/{server.types-check.d.ts → service/index.types-check.d.ts} +7 -7
  120. package/dist/service/index.types-check.d.ts.map +1 -0
  121. package/dist/{server.types-check.js → service/index.types-check.js} +1 -1
  122. package/dist/service/index.types-check.js.map +1 -0
  123. package/dist/{daemon/runtime/index.d.ts → service/lifecycle.d.ts} +3 -3
  124. package/dist/service/lifecycle.d.ts.map +1 -0
  125. package/dist/{daemon/runtime/index.js → service/lifecycle.js} +28 -25
  126. package/dist/service/lifecycle.js.map +1 -0
  127. package/dist/{daemon → service}/management.d.ts +2 -2
  128. package/dist/service/management.d.ts.map +1 -0
  129. package/dist/{daemon → service}/management.js +2 -13
  130. package/dist/service/management.js.map +1 -0
  131. package/dist/{daemon → service}/registration.d.ts +1 -1
  132. package/dist/service/registration.d.ts.map +1 -0
  133. package/dist/{daemon → service}/registration.js +1 -2
  134. package/dist/service/registration.js.map +1 -0
  135. package/dist/{daemon/runtime/protocol.d.ts → service/supervision.d.ts} +16 -24
  136. package/dist/service/supervision.d.ts.map +1 -0
  137. package/dist/{daemon/runtime/protocol.js → service/supervision.js} +33 -36
  138. package/dist/service/supervision.js.map +1 -0
  139. package/dist/store/anchors.d.ts.map +1 -0
  140. package/dist/store/anchors.js.map +1 -0
  141. package/dist/store/database/index.d.ts.map +1 -0
  142. package/dist/store/database/index.js.map +1 -0
  143. package/dist/store/database/schema.d.ts.map +1 -0
  144. package/dist/{endpoint/store → store}/database/schema.js +42 -6
  145. package/dist/store/database/schema.js.map +1 -0
  146. package/dist/store/database/values.d.ts.map +1 -0
  147. package/dist/store/database/values.js.map +1 -0
  148. package/dist/{endpoint/store → store}/deliveries.d.ts +8 -0
  149. package/dist/store/deliveries.d.ts.map +1 -0
  150. package/dist/{endpoint/store → store}/deliveries.js +16 -0
  151. package/dist/store/deliveries.js.map +1 -0
  152. package/dist/store/dissemination.d.ts.map +1 -0
  153. package/dist/store/dissemination.js.map +1 -0
  154. package/dist/store/inbox.d.ts +86 -0
  155. package/dist/store/inbox.d.ts.map +1 -0
  156. package/dist/store/inbox.js +269 -0
  157. package/dist/store/inbox.js.map +1 -0
  158. package/dist/store/index.d.ts +12 -0
  159. package/dist/store/index.d.ts.map +1 -0
  160. package/dist/store/index.js +8 -0
  161. package/dist/store/index.js.map +1 -0
  162. package/dist/store/outbound.d.ts.map +1 -0
  163. package/dist/store/outbound.js.map +1 -0
  164. package/dist/{endpoint/store/management.d.ts → store/reads.d.ts} +1 -1
  165. package/dist/store/reads.d.ts.map +1 -0
  166. package/dist/{endpoint/store/management.js → store/reads.js} +1 -1
  167. package/dist/store/reads.js.map +1 -0
  168. package/dist/store/records.d.ts.map +1 -0
  169. package/dist/store/records.js.map +1 -0
  170. package/dist/store/rows/index.d.ts.map +1 -0
  171. package/dist/store/rows/index.js.map +1 -0
  172. package/dist/store/runtime-codec.d.ts +17 -0
  173. package/dist/store/runtime-codec.d.ts.map +1 -0
  174. package/dist/store/runtime-codec.js +32 -0
  175. package/dist/store/runtime-codec.js.map +1 -0
  176. package/dist/{endpoint/store/index.d.ts → store/store.d.ts} +2 -2
  177. package/dist/store/store.d.ts.map +1 -0
  178. package/dist/{endpoint/store/index.js → store/store.js} +33 -4
  179. package/dist/store/store.js.map +1 -0
  180. package/dist/{endpoint/store → store}/types.d.ts +41 -0
  181. package/dist/store/types.d.ts.map +1 -0
  182. package/dist/store/types.js.map +1 -0
  183. package/dist/transport/collectives/answer-check.d.ts +22 -0
  184. package/dist/transport/collectives/answer-check.d.ts.map +1 -0
  185. package/dist/transport/collectives/answer-check.js +166 -0
  186. package/dist/transport/collectives/answer-check.js.map +1 -0
  187. package/dist/transport/collectives/answer-formats.d.ts +21 -0
  188. package/dist/transport/collectives/answer-formats.d.ts.map +1 -0
  189. package/dist/transport/collectives/answer-formats.js +127 -0
  190. package/dist/transport/collectives/answer-formats.js.map +1 -0
  191. package/dist/transport/collectives/failures.d.ts +34 -0
  192. package/dist/transport/collectives/failures.d.ts.map +1 -0
  193. package/dist/transport/collectives/failures.js +40 -0
  194. package/dist/transport/collectives/failures.js.map +1 -0
  195. package/dist/transport/collectives/form-grammar.d.ts +175 -0
  196. package/dist/transport/collectives/form-grammar.d.ts.map +1 -0
  197. package/dist/transport/collectives/form-grammar.js +226 -0
  198. package/dist/transport/collectives/form-grammar.js.map +1 -0
  199. package/dist/transport/collectives/forms.d.ts +224 -0
  200. package/dist/transport/collectives/forms.d.ts.map +1 -0
  201. package/dist/transport/collectives/forms.js +183 -0
  202. package/dist/transport/collectives/forms.js.map +1 -0
  203. package/dist/transport/collectives/inbound.d.ts +130 -0
  204. package/dist/transport/collectives/inbound.d.ts.map +1 -0
  205. package/dist/transport/collectives/inbound.js +80 -0
  206. package/dist/transport/collectives/inbound.js.map +1 -0
  207. package/dist/transport/collectives/index.d.ts +10 -0
  208. package/dist/transport/collectives/index.d.ts.map +1 -0
  209. package/dist/transport/collectives/index.js +8 -0
  210. package/dist/transport/collectives/index.js.map +1 -0
  211. package/dist/{message-text.d.ts → transport/collectives/message-text.d.ts} +4 -3
  212. package/dist/transport/collectives/message-text.d.ts.map +1 -0
  213. package/dist/{message-text.js → transport/collectives/message-text.js} +4 -6
  214. package/dist/transport/collectives/message-text.js.map +1 -0
  215. package/dist/{endpoint/collective → transport/collectives}/operation.d.ts +17 -11
  216. package/dist/transport/collectives/operation.d.ts.map +1 -0
  217. package/dist/{endpoint/collective → transport/collectives}/operation.js +20 -48
  218. package/dist/transport/collectives/operation.js.map +1 -0
  219. package/dist/{endpoint/collective → transport/collectives}/received-request.d.ts +2 -1
  220. package/dist/transport/collectives/received-request.d.ts.map +1 -0
  221. package/dist/transport/collectives/received-request.js.map +1 -0
  222. package/dist/{endpoint/collective → transport/collectives}/request-sends.d.ts +3 -2
  223. package/dist/transport/collectives/request-sends.d.ts.map +1 -0
  224. package/dist/transport/collectives/request-sends.js.map +1 -0
  225. package/dist/{endpoint/collective → transport/collectives}/shared-answers.d.ts +3 -2
  226. package/dist/transport/collectives/shared-answers.d.ts.map +1 -0
  227. package/dist/transport/collectives/shared-answers.js.map +1 -0
  228. package/dist/{endpoint/collective → transport/collectives}/validation.d.ts +8 -10
  229. package/dist/transport/collectives/validation.d.ts.map +1 -0
  230. package/dist/{endpoint/collective → transport/collectives}/validation.js +10 -19
  231. package/dist/transport/collectives/validation.js.map +1 -0
  232. package/dist/{endpoint/collective → transport/collectives}/wire.d.ts +14 -9
  233. package/dist/transport/collectives/wire.d.ts.map +1 -0
  234. package/dist/{endpoint/collective → transport/collectives}/wire.js +11 -99
  235. package/dist/transport/collectives/wire.js.map +1 -0
  236. package/dist/{endpoint/addressing/index.d.ts → transport/messaging/address.d.ts} +38 -5
  237. package/dist/transport/messaging/address.d.ts.map +1 -0
  238. package/dist/{endpoint/addressing/index.js → transport/messaging/address.js} +100 -21
  239. package/dist/transport/messaging/address.js.map +1 -0
  240. package/dist/{endpoint/protocol/index.d.ts → transport/messaging/certification.d.ts} +4 -4
  241. package/dist/transport/messaging/certification.d.ts.map +1 -0
  242. package/dist/{endpoint/protocol/index.js → transport/messaging/certification.js} +7 -5
  243. package/dist/transport/messaging/certification.js.map +1 -0
  244. package/dist/{endpoint/engine-dissemination.d.ts → transport/messaging/dissemination.d.ts} +3 -3
  245. package/dist/transport/messaging/dissemination.d.ts.map +1 -0
  246. package/dist/{endpoint/engine-dissemination.js → transport/messaging/dissemination.js} +5 -5
  247. package/dist/transport/messaging/dissemination.js.map +1 -0
  248. package/dist/{endpoint/engine-durability.d.ts → transport/messaging/durability.d.ts} +4 -4
  249. package/dist/{endpoint/engine-durability.d.ts.map → transport/messaging/durability.d.ts.map} +1 -1
  250. package/dist/{endpoint/engine-durability.js → transport/messaging/durability.js} +4 -13
  251. package/dist/transport/messaging/durability.js.map +1 -0
  252. package/dist/transport/messaging/errors.d.ts +50 -0
  253. package/dist/transport/messaging/errors.d.ts.map +1 -0
  254. package/dist/transport/messaging/errors.js +64 -0
  255. package/dist/transport/messaging/errors.js.map +1 -0
  256. package/dist/{endpoint/protocol → transport/messaging}/evidence.d.ts +3 -3
  257. package/dist/{endpoint/protocol → transport/messaging}/evidence.d.ts.map +1 -1
  258. package/dist/{endpoint/protocol → transport/messaging}/evidence.js +1 -1
  259. package/dist/transport/messaging/evidence.js.map +1 -0
  260. package/dist/{endpoint/engine.d.ts → transport/messaging/index.d.ts} +4 -4
  261. package/dist/transport/messaging/index.d.ts.map +1 -0
  262. package/dist/{endpoint/engine.js → transport/messaging/index.js} +14 -9
  263. package/dist/transport/messaging/index.js.map +1 -0
  264. package/dist/transport/messaging/message.d.ts +112 -0
  265. package/dist/transport/messaging/message.d.ts.map +1 -0
  266. package/dist/transport/messaging/message.js +39 -0
  267. package/dist/transport/messaging/message.js.map +1 -0
  268. package/dist/{endpoint → transport/messaging}/recovery/barrier.d.ts +1 -1
  269. package/dist/transport/messaging/recovery/barrier.d.ts.map +1 -0
  270. package/dist/transport/messaging/recovery/barrier.js.map +1 -0
  271. package/dist/{endpoint/recovery/store-evidence.d.ts → transport/messaging/recovery/evidence.d.ts} +5 -5
  272. package/dist/transport/messaging/recovery/evidence.d.ts.map +1 -0
  273. package/dist/{endpoint/recovery/store-evidence.js → transport/messaging/recovery/evidence.js} +3 -3
  274. package/dist/transport/messaging/recovery/evidence.js.map +1 -0
  275. package/dist/{endpoint → transport/messaging}/recovery/index.d.ts +4 -4
  276. package/dist/transport/messaging/recovery/index.d.ts.map +1 -0
  277. package/dist/{endpoint → transport/messaging}/recovery/index.js +29 -25
  278. package/dist/transport/messaging/recovery/index.js.map +1 -0
  279. package/dist/{endpoint/recovery/store.d.ts → transport/messaging/recovery/persistence.d.ts} +5 -5
  280. package/dist/transport/messaging/recovery/persistence.d.ts.map +1 -0
  281. package/dist/{endpoint/recovery/store.js → transport/messaging/recovery/persistence.js} +4 -4
  282. package/dist/transport/messaging/recovery/persistence.js.map +1 -0
  283. package/dist/{endpoint/recovery/reanchor/empty.d.ts → transport/messaging/recovery/reanchor-empty.d.ts} +6 -6
  284. package/dist/transport/messaging/recovery/reanchor-empty.d.ts.map +1 -0
  285. package/dist/{endpoint/recovery/reanchor/empty.js → transport/messaging/recovery/reanchor-empty.js} +4 -4
  286. package/dist/transport/messaging/recovery/reanchor-empty.js.map +1 -0
  287. package/dist/{endpoint/recovery/reanchor/index.d.ts → transport/messaging/recovery/reanchor.d.ts} +4 -4
  288. package/dist/transport/messaging/recovery/reanchor.d.ts.map +1 -0
  289. package/dist/{endpoint/recovery/reanchor/index.js → transport/messaging/recovery/reanchor.js} +29 -14
  290. package/dist/transport/messaging/recovery/reanchor.js.map +1 -0
  291. package/dist/{endpoint → transport/messaging}/recovery/state.d.ts +5 -5
  292. package/dist/transport/messaging/recovery/state.d.ts.map +1 -0
  293. package/dist/{endpoint → transport/messaging}/recovery/state.js +2 -2
  294. package/dist/transport/messaging/recovery/state.js.map +1 -0
  295. package/dist/{endpoint/engine-send.d.ts → transport/messaging/send.d.ts} +5 -4
  296. package/dist/transport/messaging/send.d.ts.map +1 -0
  297. package/dist/{endpoint/engine-send.js → transport/messaging/send.js} +4 -4
  298. package/dist/transport/messaging/send.js.map +1 -0
  299. package/dist/{endpoint/engine-types.d.ts → transport/messaging/types.d.ts} +7 -5
  300. package/dist/transport/messaging/types.d.ts.map +1 -0
  301. package/dist/{endpoint/engine-types.js → transport/messaging/types.js} +1 -1
  302. package/dist/{endpoint/engine-types.js.map → transport/messaging/types.js.map} +1 -1
  303. package/dist/transport/router/index.d.ts.map +1 -0
  304. package/dist/{endpoint/router-worker → transport/router}/index.js +1 -1
  305. package/dist/transport/router/index.js.map +1 -0
  306. package/dist/transport/router/outage.d.ts.map +1 -0
  307. package/dist/transport/router/outage.js.map +1 -0
  308. package/dist/{endpoint/router-worker → transport/router}/types.d.ts +2 -2
  309. package/dist/transport/router/types.d.ts.map +1 -0
  310. package/dist/transport/router/types.js.map +1 -0
  311. package/dist/{endpoint/representation-canonical.d.ts → transport/wire/canonical.d.ts} +1 -1
  312. package/dist/transport/wire/canonical.d.ts.map +1 -0
  313. package/dist/{endpoint/representation-canonical.js → transport/wire/canonical.js} +1 -1
  314. package/dist/transport/wire/canonical.js.map +1 -0
  315. package/dist/{endpoint/representation-codec.d.ts → transport/wire/codec.d.ts} +5 -6
  316. package/dist/transport/wire/codec.d.ts.map +1 -0
  317. package/dist/{endpoint/representation-codec.js → transport/wire/codec.js} +5 -24
  318. package/dist/transport/wire/codec.js.map +1 -0
  319. package/dist/transport/wire/index.d.ts +7 -0
  320. package/dist/transport/wire/index.d.ts.map +1 -0
  321. package/dist/transport/wire/index.js +10 -0
  322. package/dist/transport/wire/index.js.map +1 -0
  323. package/dist/{endpoint/representation-schemas.d.ts → transport/wire/schemas.d.ts} +76 -98
  324. package/dist/transport/wire/schemas.d.ts.map +1 -0
  325. package/dist/{endpoint/representation-schemas.js → transport/wire/schemas.js} +7 -19
  326. package/dist/transport/wire/schemas.js.map +1 -0
  327. package/dist/transport/wire/values.d.ts +79 -0
  328. package/dist/transport/wire/values.d.ts.map +1 -0
  329. package/dist/transport/wire/values.js +115 -0
  330. package/dist/transport/wire/values.js.map +1 -0
  331. package/dist/{endpoint/representation-verification.d.ts → transport/wire/verification.d.ts} +4 -4
  332. package/dist/transport/wire/verification.d.ts.map +1 -0
  333. package/dist/{endpoint/representation-verification.js → transport/wire/verification.js} +5 -4
  334. package/dist/transport/wire/verification.js.map +1 -0
  335. package/package.json +6 -6
  336. package/dist/client-runtime.d.ts.map +0 -1
  337. package/dist/client-runtime.js.map +0 -1
  338. package/dist/contract.d.ts +0 -721
  339. package/dist/contract.d.ts.map +0 -1
  340. package/dist/contract.js +0 -441
  341. package/dist/contract.js.map +0 -1
  342. package/dist/contract.types-check.d.ts.map +0 -1
  343. package/dist/contract.types-check.js.map +0 -1
  344. package/dist/daemon/configuration.d.ts.map +0 -1
  345. package/dist/daemon/configuration.js.map +0 -1
  346. package/dist/daemon/management.d.ts.map +0 -1
  347. package/dist/daemon/management.js.map +0 -1
  348. package/dist/daemon/registration.d.ts.map +0 -1
  349. package/dist/daemon/registration.js.map +0 -1
  350. package/dist/daemon/runtime/activation.d.ts.map +0 -1
  351. package/dist/daemon/runtime/activation.js.map +0 -1
  352. package/dist/daemon/runtime/controller.d.ts.map +0 -1
  353. package/dist/daemon/runtime/controller.js +0 -138
  354. package/dist/daemon/runtime/controller.js.map +0 -1
  355. package/dist/daemon/runtime/history-export.d.ts +0 -33
  356. package/dist/daemon/runtime/history-export.d.ts.map +0 -1
  357. package/dist/daemon/runtime/history-export.js.map +0 -1
  358. package/dist/daemon/runtime/index.d.ts.map +0 -1
  359. package/dist/daemon/runtime/index.js.map +0 -1
  360. package/dist/daemon/runtime/pending-delivery.d.ts +0 -49
  361. package/dist/daemon/runtime/pending-delivery.d.ts.map +0 -1
  362. package/dist/daemon/runtime/pending-delivery.js.map +0 -1
  363. package/dist/daemon/runtime/protocol.d.ts.map +0 -1
  364. package/dist/daemon/runtime/protocol.js.map +0 -1
  365. package/dist/endpoint/addressing/index.d.ts.map +0 -1
  366. package/dist/endpoint/addressing/index.js.map +0 -1
  367. package/dist/endpoint/collective/operation.d.ts.map +0 -1
  368. package/dist/endpoint/collective/operation.js.map +0 -1
  369. package/dist/endpoint/collective/received-request.d.ts.map +0 -1
  370. package/dist/endpoint/collective/received-request.js.map +0 -1
  371. package/dist/endpoint/collective/request-sends.d.ts.map +0 -1
  372. package/dist/endpoint/collective/request-sends.js.map +0 -1
  373. package/dist/endpoint/collective/shared-answers.d.ts.map +0 -1
  374. package/dist/endpoint/collective/shared-answers.js.map +0 -1
  375. package/dist/endpoint/collective/validation.d.ts.map +0 -1
  376. package/dist/endpoint/collective/validation.js.map +0 -1
  377. package/dist/endpoint/collective/wire.d.ts.map +0 -1
  378. package/dist/endpoint/collective/wire.js.map +0 -1
  379. package/dist/endpoint/engine-dissemination.d.ts.map +0 -1
  380. package/dist/endpoint/engine-dissemination.js.map +0 -1
  381. package/dist/endpoint/engine-durability.js.map +0 -1
  382. package/dist/endpoint/engine-send.d.ts.map +0 -1
  383. package/dist/endpoint/engine-send.js.map +0 -1
  384. package/dist/endpoint/engine-types.d.ts.map +0 -1
  385. package/dist/endpoint/engine.d.ts.map +0 -1
  386. package/dist/endpoint/engine.js.map +0 -1
  387. package/dist/endpoint/protocol/evidence.js.map +0 -1
  388. package/dist/endpoint/protocol/index.d.ts.map +0 -1
  389. package/dist/endpoint/protocol/index.js.map +0 -1
  390. package/dist/endpoint/recovery/barrier.d.ts.map +0 -1
  391. package/dist/endpoint/recovery/barrier.js.map +0 -1
  392. package/dist/endpoint/recovery/index.d.ts.map +0 -1
  393. package/dist/endpoint/recovery/index.js.map +0 -1
  394. package/dist/endpoint/recovery/reanchor/empty.d.ts.map +0 -1
  395. package/dist/endpoint/recovery/reanchor/empty.js.map +0 -1
  396. package/dist/endpoint/recovery/reanchor/index.d.ts.map +0 -1
  397. package/dist/endpoint/recovery/reanchor/index.js.map +0 -1
  398. package/dist/endpoint/recovery/state.d.ts.map +0 -1
  399. package/dist/endpoint/recovery/state.js.map +0 -1
  400. package/dist/endpoint/recovery/store-evidence.d.ts.map +0 -1
  401. package/dist/endpoint/recovery/store-evidence.js.map +0 -1
  402. package/dist/endpoint/recovery/store.d.ts.map +0 -1
  403. package/dist/endpoint/recovery/store.js.map +0 -1
  404. package/dist/endpoint/representation-canonical.d.ts.map +0 -1
  405. package/dist/endpoint/representation-canonical.js.map +0 -1
  406. package/dist/endpoint/representation-codec.d.ts.map +0 -1
  407. package/dist/endpoint/representation-codec.js.map +0 -1
  408. package/dist/endpoint/representation-schemas.d.ts.map +0 -1
  409. package/dist/endpoint/representation-schemas.js.map +0 -1
  410. package/dist/endpoint/representation-verification.d.ts.map +0 -1
  411. package/dist/endpoint/representation-verification.js.map +0 -1
  412. package/dist/endpoint/representation.d.ts +0 -6
  413. package/dist/endpoint/representation.d.ts.map +0 -1
  414. package/dist/endpoint/representation.js +0 -8
  415. package/dist/endpoint/representation.js.map +0 -1
  416. package/dist/endpoint/router-worker/index.d.ts.map +0 -1
  417. package/dist/endpoint/router-worker/index.js.map +0 -1
  418. package/dist/endpoint/router-worker/outage.d.ts.map +0 -1
  419. package/dist/endpoint/router-worker/outage.js.map +0 -1
  420. package/dist/endpoint/router-worker/types.d.ts.map +0 -1
  421. package/dist/endpoint/router-worker/types.js.map +0 -1
  422. package/dist/endpoint/store/anchors.d.ts.map +0 -1
  423. package/dist/endpoint/store/anchors.js.map +0 -1
  424. package/dist/endpoint/store/database/index.d.ts.map +0 -1
  425. package/dist/endpoint/store/database/index.js.map +0 -1
  426. package/dist/endpoint/store/database/schema.d.ts.map +0 -1
  427. package/dist/endpoint/store/database/schema.js.map +0 -1
  428. package/dist/endpoint/store/database/values.d.ts.map +0 -1
  429. package/dist/endpoint/store/database/values.js.map +0 -1
  430. package/dist/endpoint/store/deliveries.d.ts.map +0 -1
  431. package/dist/endpoint/store/deliveries.js.map +0 -1
  432. package/dist/endpoint/store/dissemination.d.ts.map +0 -1
  433. package/dist/endpoint/store/dissemination.js.map +0 -1
  434. package/dist/endpoint/store/index.d.ts.map +0 -1
  435. package/dist/endpoint/store/index.js.map +0 -1
  436. package/dist/endpoint/store/management.d.ts.map +0 -1
  437. package/dist/endpoint/store/management.js.map +0 -1
  438. package/dist/endpoint/store/outbound.d.ts.map +0 -1
  439. package/dist/endpoint/store/outbound.js.map +0 -1
  440. package/dist/endpoint/store/records.d.ts.map +0 -1
  441. package/dist/endpoint/store/records.js.map +0 -1
  442. package/dist/endpoint/store/rows/index.d.ts.map +0 -1
  443. package/dist/endpoint/store/rows/index.js.map +0 -1
  444. package/dist/endpoint/store/types.d.ts.map +0 -1
  445. package/dist/endpoint/store/types.js.map +0 -1
  446. package/dist/endpoint/store.d.ts +0 -10
  447. package/dist/endpoint/store.d.ts.map +0 -1
  448. package/dist/endpoint/store.js +0 -6
  449. package/dist/endpoint/store.js.map +0 -1
  450. package/dist/harness-mcp-contract.d.ts.map +0 -1
  451. package/dist/harness-mcp-contract.js +0 -113
  452. package/dist/harness-mcp-contract.js.map +0 -1
  453. package/dist/harness-mcp-http.d.ts.map +0 -1
  454. package/dist/harness-mcp-http.js.map +0 -1
  455. package/dist/harness-mcp-subscription.d.ts +0 -30
  456. package/dist/harness-mcp-subscription.d.ts.map +0 -1
  457. package/dist/harness-mcp-subscription.js +0 -361
  458. package/dist/harness-mcp-subscription.js.map +0 -1
  459. package/dist/harness-mcp-wire.d.ts.map +0 -1
  460. package/dist/harness-mcp-wire.js.map +0 -1
  461. package/dist/management-runtime.d.ts.map +0 -1
  462. package/dist/management-runtime.js.map +0 -1
  463. package/dist/message-text.d.ts.map +0 -1
  464. package/dist/message-text.js.map +0 -1
  465. package/dist/server.d.ts.map +0 -1
  466. package/dist/server.js.map +0 -1
  467. package/dist/server.types-check.d.ts.map +0 -1
  468. package/dist/server.types-check.js.map +0 -1
  469. /package/dist/{endpoint/store → store}/anchors.d.ts +0 -0
  470. /package/dist/{endpoint/store → store}/anchors.js +0 -0
  471. /package/dist/{endpoint/store → store}/database/index.d.ts +0 -0
  472. /package/dist/{endpoint/store → store}/database/index.js +0 -0
  473. /package/dist/{endpoint/store → store}/database/schema.d.ts +0 -0
  474. /package/dist/{endpoint/store → store}/database/values.d.ts +0 -0
  475. /package/dist/{endpoint/store → store}/database/values.js +0 -0
  476. /package/dist/{endpoint/store → store}/dissemination.d.ts +0 -0
  477. /package/dist/{endpoint/store → store}/dissemination.js +0 -0
  478. /package/dist/{endpoint/store → store}/outbound.d.ts +0 -0
  479. /package/dist/{endpoint/store → store}/outbound.js +0 -0
  480. /package/dist/{endpoint/store → store}/records.d.ts +0 -0
  481. /package/dist/{endpoint/store → store}/records.js +0 -0
  482. /package/dist/{endpoint/store → store}/rows/index.d.ts +0 -0
  483. /package/dist/{endpoint/store → store}/rows/index.js +0 -0
  484. /package/dist/{endpoint/store → store}/types.js +0 -0
  485. /package/dist/{endpoint/collective → transport/collectives}/received-request.js +0 -0
  486. /package/dist/{endpoint/collective → transport/collectives}/request-sends.js +0 -0
  487. /package/dist/{endpoint/collective → transport/collectives}/shared-answers.js +0 -0
  488. /package/dist/{endpoint → transport/messaging}/recovery/barrier.js +0 -0
  489. /package/dist/{endpoint/router-worker → transport/router}/index.d.ts +0 -0
  490. /package/dist/{endpoint/router-worker → transport/router}/outage.d.ts +0 -0
  491. /package/dist/{endpoint/router-worker → transport/router}/outage.js +0 -0
  492. /package/dist/{endpoint/router-worker → transport/router}/types.js +0 -0
@@ -1,721 +0,0 @@
1
- /** @file Public runtime capability for one configured MoltZap endpoint. */
2
- import { type Effect, Schema, type Stream } from "effect";
3
- /** An explicit direct destination using one canonical Registry name. */
4
- export declare const AgentAddress: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
5
- /** A validated direct destination. */
6
- export type AgentAddress = typeof AgentAddress.Type;
7
- /** A complete fixed-member group address in unsigned ASCII name order. */
8
- export declare const GroupAddress: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
9
- /** A validated canonical complete group destination. */
10
- export type GroupAddress = typeof GroupAddress.Type;
11
- /** Either accepted destination input, including noncanonical group order. */
12
- export declare const MessageAddressInput: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
13
- /** A validated explicit destination input. */
14
- export type MessageAddressInput = typeof MessageAddressInput.Type;
15
- /** Opaque identity minted for one addressed-send invocation. */
16
- export declare const PostId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
17
- /** A validated author-scoped post identity. */
18
- export type PostId = typeof PostId.Type;
19
- /** A value accepted by the closed semantic content boundary. */
20
- export type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
21
- readonly [key: string]: JsonValue;
22
- };
23
- /** Runtime validation for the closed recursive JSON value. */
24
- export declare const JsonValue: Schema.Schema<JsonValue>;
25
- /** One exact semantic part of a message. */
26
- export declare const ContentPart: Schema.Union<[Schema.Struct<{
27
- type: Schema.Literal<["text"]>;
28
- text: Schema.filter<typeof Schema.String>;
29
- }>, Schema.Struct<{
30
- type: Schema.Literal<["data"]>;
31
- value: Schema.Schema<JsonValue, JsonValue, never>;
32
- }>]>;
33
- /** A validated semantic message part. */
34
- export type ContentPart = typeof ContentPart.Type;
35
- /** Nonempty semantic content whose canonical JSON is at most 32,768 bytes. */
36
- export declare const Content: Schema.refine<readonly [{
37
- readonly type: "text";
38
- readonly text: string;
39
- } | {
40
- readonly type: "data";
41
- readonly value: JsonValue;
42
- }, ...({
43
- readonly type: "text";
44
- readonly text: string;
45
- } | {
46
- readonly type: "data";
47
- readonly value: JsonValue;
48
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
49
- type: Schema.Literal<["text"]>;
50
- text: Schema.filter<typeof Schema.String>;
51
- }>, Schema.Struct<{
52
- type: Schema.Literal<["data"]>;
53
- value: Schema.Schema<JsonValue, JsonValue, never>;
54
- }>]>>>;
55
- /** Validated nonempty semantic content. */
56
- export type Content = typeof Content.Type;
57
- /**
58
- * Identity of one gather or all_gather, minted by the requesting endpoint.
59
- * The request, each member's answer post, an all_gather's close, the result
60
- * and any failure carry it. An answer that matches no single open request is
61
- * refused under an id minted for the refusal, so its failure is named too.
62
- */
63
- export declare const CollectiveId: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
64
- /** A validated collective operation id. */
65
- export type CollectiveId = typeof CollectiveId.Type;
66
- /**
67
- * The MCP form-mode `requestedSchema` of a collecting operation: a flat object
68
- * of primitive properties. This schema fixes its outline; the sending endpoint
69
- * checks each property against the MCP form-mode grammar before any post.
70
- */
71
- export declare const RequestedSchema: Schema.Struct<{
72
- $schema: Schema.optionalWith<typeof Schema.String, {
73
- exact: true;
74
- }>;
75
- type: Schema.Literal<["object"]>;
76
- properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
77
- required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
78
- exact: true;
79
- }>;
80
- }>;
81
- /** A form-mode schema as stated by its requester. */
82
- export type RequestedSchema = typeof RequestedSchema.Type;
83
- /**
84
- * One answer to a collecting operation, field by field. Its value space is MCP
85
- * `ElicitResult` content's; the request's schema decides which fields apply.
86
- */
87
- export declare const AnswerContent: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
88
- /** A structurally valid answer. */
89
- export type AnswerContent = typeof AnswerContent.Type;
90
- /** The longest deadline a collecting operation may state: 30 days, in seconds. */
91
- export declare const MAXIMUM_DEADLINE_SECONDS = 2592000;
92
- /** A collecting operation's relative deadline: whole seconds, up to 30 days. */
93
- export declare const DeadlineSeconds: Schema.filter<Schema.filter<typeof Schema.Number>>;
94
- /** The collective operation one send performs, discriminated by `op`. */
95
- declare const CollectiveOperation: Schema.Union<[Schema.Struct<{
96
- op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
97
- exact: true;
98
- }>;
99
- }>, Schema.Struct<{
100
- op: Schema.Literal<["gather", "all_gather"]>;
101
- deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
102
- requestedSchema: Schema.Struct<{
103
- $schema: Schema.optionalWith<typeof Schema.String, {
104
- exact: true;
105
- }>;
106
- type: Schema.Literal<["object"]>;
107
- properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
108
- required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
109
- exact: true;
110
- }>;
111
- }>;
112
- }>]>;
113
- /** A validated collective operation. */
114
- export type CollectiveOperation = typeof CollectiveOperation.Type;
115
- /**
116
- * A member's answer to the one request open in the conversation it is sent
117
- * to: the requester's direct conversation for a gather, the group for an
118
- * all_gather. It is MCP's `ElicitResult`; only `accept` carries content,
119
- * valid against the request's schema.
120
- */
121
- declare const CollectiveResponse: Schema.Union<[Schema.Struct<{
122
- action: Schema.Literal<["accept"]>;
123
- content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
124
- }>, Schema.Struct<{
125
- action: Schema.Literal<["decline"]>;
126
- }>]>;
127
- /** A validated collective response. */
128
- export type CollectiveResponse = typeof CollectiveResponse.Type;
129
- /**
130
- * One send to one address: text with its collective operation, multicast
131
- * when `collective` is omitted, or an answer to the request open in that
132
- * address's conversation. `parseMessageText` reads both from a message's
133
- * text.
134
- */
135
- export declare const SendInput: Schema.Union<[Schema.Struct<{
136
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
137
- text: Schema.filter<typeof Schema.String>;
138
- collective: Schema.optionalWith<Schema.Union<[Schema.Struct<{
139
- op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
140
- exact: true;
141
- }>;
142
- }>, Schema.Struct<{
143
- op: Schema.Literal<["gather", "all_gather"]>;
144
- deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
145
- requestedSchema: Schema.Struct<{
146
- $schema: Schema.optionalWith<typeof Schema.String, {
147
- exact: true;
148
- }>;
149
- type: Schema.Literal<["object"]>;
150
- properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
151
- required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
152
- exact: true;
153
- }>;
154
- }>;
155
- }>]>, {
156
- exact: true;
157
- }>;
158
- }>, Schema.Struct<{
159
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
160
- collectiveResponse: Schema.Union<[Schema.Struct<{
161
- action: Schema.Literal<["accept"]>;
162
- content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
163
- }>, Schema.Struct<{
164
- action: Schema.Literal<["decline"]>;
165
- }>]>;
166
- }>]>;
167
- /** Validated input for one send. */
168
- export type SendInput = typeof SendInput.Type;
169
- /**
170
- * Where a refused collecting operation or response reports its error:
171
- * returned to the caller, or emitted as an `operationFailed` item while the
172
- * send completes.
173
- */
174
- export type FailureDelivery = "result" | "inbound";
175
- declare const sendFailure: Schema.Literal<["invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable"]>;
176
- type SendFailure = typeof sendFailure.Type;
177
- /** What a completed send returns: a collecting operation names its id. */
178
- export interface SendResult {
179
- readonly operationId?: CollectiveId;
180
- }
181
- declare const directMessage: Schema.filter<Schema.Struct<{
182
- kind: Schema.Literal<["direct"]>;
183
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
184
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
185
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
186
- content: Schema.refine<readonly [{
187
- readonly type: "text";
188
- readonly text: string;
189
- } | {
190
- readonly type: "data";
191
- readonly value: JsonValue;
192
- }, ...({
193
- readonly type: "text";
194
- readonly text: string;
195
- } | {
196
- readonly type: "data";
197
- readonly value: JsonValue;
198
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
199
- type: Schema.Literal<["text"]>;
200
- text: Schema.filter<typeof Schema.String>;
201
- }>, Schema.Struct<{
202
- type: Schema.Literal<["data"]>;
203
- value: Schema.Schema<JsonValue, JsonValue, never>;
204
- }>]>>>;
205
- }>>;
206
- declare const groupMessage: Schema.filter<Schema.Struct<{
207
- kind: Schema.Literal<["group"]>;
208
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
209
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
210
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
211
- members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
212
- content: Schema.refine<readonly [{
213
- readonly type: "text";
214
- readonly text: string;
215
- } | {
216
- readonly type: "data";
217
- readonly value: JsonValue;
218
- }, ...({
219
- readonly type: "text";
220
- readonly text: string;
221
- } | {
222
- readonly type: "data";
223
- readonly value: JsonValue;
224
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
225
- type: Schema.Literal<["text"]>;
226
- text: Schema.filter<typeof Schema.String>;
227
- }>, Schema.Struct<{
228
- type: Schema.Literal<["data"]>;
229
- value: Schema.Schema<JsonValue, JsonValue, never>;
230
- }>]>>>;
231
- }>>;
232
- /** One certified remote-authored direct message. */
233
- export type DirectMessage = typeof directMessage.Type;
234
- /** One certified remote-authored fixed-group message. */
235
- export type GroupMessage = typeof groupMessage.Type;
236
- /** One certified remote-authored post, direct or to a fixed group. */
237
- export declare const InboundMessage: Schema.Union<[Schema.filter<Schema.Struct<{
238
- kind: Schema.Literal<["direct"]>;
239
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
240
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
241
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
242
- content: Schema.refine<readonly [{
243
- readonly type: "text";
244
- readonly text: string;
245
- } | {
246
- readonly type: "data";
247
- readonly value: JsonValue;
248
- }, ...({
249
- readonly type: "text";
250
- readonly text: string;
251
- } | {
252
- readonly type: "data";
253
- readonly value: JsonValue;
254
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
255
- type: Schema.Literal<["text"]>;
256
- text: Schema.filter<typeof Schema.String>;
257
- }>, Schema.Struct<{
258
- type: Schema.Literal<["data"]>;
259
- value: Schema.Schema<JsonValue, JsonValue, never>;
260
- }>]>>>;
261
- }>>, Schema.filter<Schema.Struct<{
262
- kind: Schema.Literal<["group"]>;
263
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
264
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
265
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
266
- members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
267
- content: Schema.refine<readonly [{
268
- readonly type: "text";
269
- readonly text: string;
270
- } | {
271
- readonly type: "data";
272
- readonly value: JsonValue;
273
- }, ...({
274
- readonly type: "text";
275
- readonly text: string;
276
- } | {
277
- readonly type: "data";
278
- readonly value: JsonValue;
279
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
280
- type: Schema.Literal<["text"]>;
281
- text: Schema.filter<typeof Schema.String>;
282
- }>, Schema.Struct<{
283
- type: Schema.Literal<["data"]>;
284
- value: Schema.Schema<JsonValue, JsonValue, never>;
285
- }>]>>>;
286
- }>>]>;
287
- /** A validated direct or group post. */
288
- export type InboundMessage = typeof InboundMessage.Type;
289
- /**
290
- * One member's outcome in a completed gather or all_gather, discriminated by
291
- * `kind`. `no-answer` covers every member that did not answer: one whose
292
- * request post was refused or not certified in time, and one silent at the
293
- * deadline.
294
- */
295
- declare const memberOutcome: Schema.Union<[Schema.Struct<{
296
- kind: Schema.Literal<["answered"]>;
297
- content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
298
- }>, Schema.Struct<{
299
- kind: Schema.Literal<["declined"]>;
300
- }>, Schema.Struct<{
301
- kind: Schema.Literal<["invalid"]>;
302
- reason: typeof Schema.String;
303
- }>, Schema.Struct<{
304
- kind: Schema.Literal<["no-answer"]>;
305
- }>]>;
306
- /** One member's recorded outcome. */
307
- export type CollectiveMemberOutcome = typeof memberOutcome.Type;
308
- /**
309
- * One inbound item, discriminated by `kind`. The endpoint consumes the
310
- * collective layer's protocol posts, posts whose collective part is malformed
311
- * or duplicated, and multicasts that carry nothing besides that part; every
312
- * other certified post becomes one item, and the endpoint itself emits
313
- * results and failures.
314
- */
315
- export declare const InboundItem: Schema.Union<[Schema.Struct<{
316
- kind: Schema.Literal<["multicast"]>;
317
- message: Schema.Union<[Schema.filter<Schema.Struct<{
318
- kind: Schema.Literal<["direct"]>;
319
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
320
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
321
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
322
- content: Schema.refine<readonly [{
323
- readonly type: "text";
324
- readonly text: string;
325
- } | {
326
- readonly type: "data";
327
- readonly value: JsonValue;
328
- }, ...({
329
- readonly type: "text";
330
- readonly text: string;
331
- } | {
332
- readonly type: "data";
333
- readonly value: JsonValue;
334
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
335
- type: Schema.Literal<["text"]>;
336
- text: Schema.filter<typeof Schema.String>;
337
- }>, Schema.Struct<{
338
- type: Schema.Literal<["data"]>;
339
- value: Schema.Schema<JsonValue, JsonValue, never>;
340
- }>]>>>;
341
- }>>, Schema.filter<Schema.Struct<{
342
- kind: Schema.Literal<["group"]>;
343
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
344
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
345
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
346
- members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
347
- content: Schema.refine<readonly [{
348
- readonly type: "text";
349
- readonly text: string;
350
- } | {
351
- readonly type: "data";
352
- readonly value: JsonValue;
353
- }, ...({
354
- readonly type: "text";
355
- readonly text: string;
356
- } | {
357
- readonly type: "data";
358
- readonly value: JsonValue;
359
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
360
- type: Schema.Literal<["text"]>;
361
- text: Schema.filter<typeof Schema.String>;
362
- }>, Schema.Struct<{
363
- type: Schema.Literal<["data"]>;
364
- value: Schema.Schema<JsonValue, JsonValue, never>;
365
- }>]>>>;
366
- }>>]>;
367
- }>, Schema.Struct<{
368
- kind: Schema.Literal<["collectiveRequest"]>;
369
- id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
370
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
371
- from: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
372
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
373
- question: Schema.filter<typeof Schema.String>;
374
- requestedSchema: Schema.Struct<{
375
- $schema: Schema.optionalWith<typeof Schema.String, {
376
- exact: true;
377
- }>;
378
- type: Schema.Literal<["object"]>;
379
- properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
380
- required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
381
- exact: true;
382
- }>;
383
- }>;
384
- deadlineAt: Schema.filter<Schema.filter<typeof Schema.Number>>;
385
- }>, Schema.Struct<{
386
- kind: Schema.Literal<["collectiveResult"]>;
387
- id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
388
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
389
- question: Schema.filter<typeof Schema.String>;
390
- outcomes: Schema.NonEmptyArray<Schema.Struct<{
391
- member: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
392
- outcome: Schema.Union<[Schema.Struct<{
393
- kind: Schema.Literal<["answered"]>;
394
- content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
395
- }>, Schema.Struct<{
396
- kind: Schema.Literal<["declined"]>;
397
- }>, Schema.Struct<{
398
- kind: Schema.Literal<["invalid"]>;
399
- reason: typeof Schema.String;
400
- }>, Schema.Struct<{
401
- kind: Schema.Literal<["no-answer"]>;
402
- }>]>;
403
- }>>;
404
- closePostId: Schema.optionalWith<Schema.brand<Schema.filter<typeof Schema.String>, "PostId">, {
405
- exact: true;
406
- }>;
407
- }>, Schema.Struct<{
408
- kind: Schema.Literal<["operationFailed"]>;
409
- id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
410
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
411
- error: typeof Schema.String;
412
- }>]>;
413
- /** A validated inbound item. */
414
- export type InboundItem = typeof InboundItem.Type;
415
- /**
416
- * One line of the daemon's optional history export: an item as the daemon
417
- * published it, a completed `send` invocation with its input and outcome, or
418
- * the one line that says the export stopped. Readers decode the file line by
419
- * line with this schema rather than copying its shape.
420
- */
421
- export declare const HistoryExportRecord: Schema.Union<[Schema.Struct<{
422
- kind: Schema.Literal<["inbound"]>;
423
- item: Schema.Union<[Schema.Struct<{
424
- kind: Schema.Literal<["multicast"]>;
425
- message: Schema.Union<[Schema.filter<Schema.Struct<{
426
- kind: Schema.Literal<["direct"]>;
427
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
428
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
429
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
430
- content: Schema.refine<readonly [{
431
- readonly type: "text";
432
- readonly text: string;
433
- } | {
434
- readonly type: "data";
435
- readonly value: JsonValue;
436
- }, ...({
437
- readonly type: "text";
438
- readonly text: string;
439
- } | {
440
- readonly type: "data";
441
- readonly value: JsonValue;
442
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
443
- type: Schema.Literal<["text"]>;
444
- text: Schema.filter<typeof Schema.String>;
445
- }>, Schema.Struct<{
446
- type: Schema.Literal<["data"]>;
447
- value: Schema.Schema<JsonValue, JsonValue, never>;
448
- }>]>>>;
449
- }>>, Schema.filter<Schema.Struct<{
450
- kind: Schema.Literal<["group"]>;
451
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
452
- address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
453
- sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
454
- members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
455
- content: Schema.refine<readonly [{
456
- readonly type: "text";
457
- readonly text: string;
458
- } | {
459
- readonly type: "data";
460
- readonly value: JsonValue;
461
- }, ...({
462
- readonly type: "text";
463
- readonly text: string;
464
- } | {
465
- readonly type: "data";
466
- readonly value: JsonValue;
467
- })[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
468
- type: Schema.Literal<["text"]>;
469
- text: Schema.filter<typeof Schema.String>;
470
- }>, Schema.Struct<{
471
- type: Schema.Literal<["data"]>;
472
- value: Schema.Schema<JsonValue, JsonValue, never>;
473
- }>]>>>;
474
- }>>]>;
475
- }>, Schema.Struct<{
476
- kind: Schema.Literal<["collectiveRequest"]>;
477
- id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
478
- postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
479
- from: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
480
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
481
- question: Schema.filter<typeof Schema.String>;
482
- requestedSchema: Schema.Struct<{
483
- $schema: Schema.optionalWith<typeof Schema.String, {
484
- exact: true;
485
- }>;
486
- type: Schema.Literal<["object"]>;
487
- properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
488
- required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
489
- exact: true;
490
- }>;
491
- }>;
492
- deadlineAt: Schema.filter<Schema.filter<typeof Schema.Number>>;
493
- }>, Schema.Struct<{
494
- kind: Schema.Literal<["collectiveResult"]>;
495
- id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
496
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
497
- question: Schema.filter<typeof Schema.String>;
498
- outcomes: Schema.NonEmptyArray<Schema.Struct<{
499
- member: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
500
- outcome: Schema.Union<[Schema.Struct<{
501
- kind: Schema.Literal<["answered"]>;
502
- content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
503
- }>, Schema.Struct<{
504
- kind: Schema.Literal<["declined"]>;
505
- }>, Schema.Struct<{
506
- kind: Schema.Literal<["invalid"]>;
507
- reason: typeof Schema.String;
508
- }>, Schema.Struct<{
509
- kind: Schema.Literal<["no-answer"]>;
510
- }>]>;
511
- }>>;
512
- closePostId: Schema.optionalWith<Schema.brand<Schema.filter<typeof Schema.String>, "PostId">, {
513
- exact: true;
514
- }>;
515
- }>, Schema.Struct<{
516
- kind: Schema.Literal<["operationFailed"]>;
517
- id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
518
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
519
- error: typeof Schema.String;
520
- }>]>;
521
- at: typeof Schema.DateTimeUtc;
522
- }>, Schema.Struct<{
523
- kind: Schema.Literal<["outbound"]>;
524
- input: Schema.Union<[Schema.Struct<{
525
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
526
- text: Schema.filter<typeof Schema.String>;
527
- collective: Schema.optionalWith<Schema.Union<[Schema.Struct<{
528
- op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
529
- exact: true;
530
- }>;
531
- }>, Schema.Struct<{
532
- op: Schema.Literal<["gather", "all_gather"]>;
533
- deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
534
- requestedSchema: Schema.Struct<{
535
- $schema: Schema.optionalWith<typeof Schema.String, {
536
- exact: true;
537
- }>;
538
- type: Schema.Literal<["object"]>;
539
- properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
540
- required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
541
- exact: true;
542
- }>;
543
- }>;
544
- }>]>, {
545
- exact: true;
546
- }>;
547
- }>, Schema.Struct<{
548
- to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
549
- collectiveResponse: Schema.Union<[Schema.Struct<{
550
- action: Schema.Literal<["accept"]>;
551
- content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
552
- }>, Schema.Struct<{
553
- action: Schema.Literal<["decline"]>;
554
- }>]>;
555
- }>]>;
556
- outcome: Schema.Union<[Schema.Struct<{
557
- kind: Schema.Literal<["sent"]>;
558
- operationId: Schema.optionalWith<Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">, {
559
- exact: true;
560
- }>;
561
- postIds: Schema.Array$<Schema.brand<Schema.filter<typeof Schema.String>, "PostId">>;
562
- }>, Schema.Struct<{
563
- kind: Schema.Literal<["failed"]>;
564
- error: typeof Schema.String;
565
- }>]>;
566
- at: typeof Schema.DateTimeUtc;
567
- }>, Schema.Struct<{
568
- kind: Schema.Literal<["export-failed"]>;
569
- reason: typeof Schema.String;
570
- at: typeof Schema.DateTimeUtc;
571
- }>]>;
572
- /** A validated line of the daemon's history export. */
573
- export type HistoryExportRecord = typeof HistoryExportRecord.Type;
574
- declare const SendError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
575
- readonly _tag: "SendError";
576
- } & Readonly<A>;
577
- /** An addressed send failed before local certification completed. */
578
- export declare class SendError extends SendError_base<{
579
- readonly reason: SendFailure;
580
- }> {
581
- get message(): string;
582
- }
583
- /**
584
- * Why a collective send was refused, discriminated by `kind`: a gather or
585
- * all_gather whose schema is outside the form-mode grammar or whose request
586
- * post some member could not receive, or a response the member's endpoint
587
- * cannot send.
588
- */
589
- declare const collectiveFailure: Schema.Union<[Schema.Struct<{
590
- kind: Schema.Literal<["members-unreachable"]>;
591
- members: Schema.NonEmptyArray<Schema.Struct<{
592
- member: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
593
- reason: Schema.Literal<["invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable"]>;
594
- }>>;
595
- }>, Schema.Struct<{
596
- kind: Schema.Literal<["schema-invalid"]>;
597
- detail: typeof Schema.String;
598
- }>, Schema.Struct<{
599
- kind: Schema.Literal<["answer-invalid"]>;
600
- fields: Schema.NonEmptyArray<Schema.Struct<{
601
- field: typeof Schema.String;
602
- reason: Schema.Literal<["missing", "unexpected", "invalid"]>;
603
- detail: Schema.optionalWith<typeof Schema.String, {
604
- exact: true;
605
- }>;
606
- }>>;
607
- }>, Schema.Struct<{
608
- kind: Schema.Literal<["request-none"]>;
609
- }>, Schema.Struct<{
610
- kind: Schema.Literal<["request-ambiguous"]>;
611
- }>, Schema.Struct<{
612
- kind: Schema.Literal<["request-answered"]>;
613
- }>, Schema.Struct<{
614
- kind: Schema.Literal<["request-expired"]>;
615
- }>]>;
616
- /** A validated collective failure. */
617
- export type CollectiveFailure = typeof collectiveFailure.Type;
618
- /**
619
- * Decode a collective failure carried across the loopback MCP boundary.
620
- * @param value Untrusted failure detail from a refused send's error data.
621
- * @returns The validated failure.
622
- */
623
- export declare const decodeCollectiveFailure: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
624
- readonly kind: "members-unreachable";
625
- readonly members: readonly [{
626
- readonly member: string & import("effect/Brand").Brand<"MessageAddressInput"> & import("effect/Brand").Brand<"AgentAddress">;
627
- readonly reason: "certification-unavailable" | "content-invalid" | "invalid-address" | "membership-invalid" | "network-unavailable" | "not-registered" | "persistence-failed" | "unknown-agent" | "version-mismatch";
628
- }, ...{
629
- readonly member: string & import("effect/Brand").Brand<"MessageAddressInput"> & import("effect/Brand").Brand<"AgentAddress">;
630
- readonly reason: "certification-unavailable" | "content-invalid" | "invalid-address" | "membership-invalid" | "network-unavailable" | "not-registered" | "persistence-failed" | "unknown-agent" | "version-mismatch";
631
- }[]];
632
- } | {
633
- readonly kind: "schema-invalid";
634
- readonly detail: string;
635
- } | {
636
- readonly kind: "answer-invalid";
637
- readonly fields: readonly [{
638
- readonly field: string;
639
- readonly reason: "invalid" | "missing" | "unexpected";
640
- readonly detail?: string | undefined;
641
- }, ...{
642
- readonly field: string;
643
- readonly reason: "invalid" | "missing" | "unexpected";
644
- readonly detail?: string | undefined;
645
- }[]];
646
- } | {
647
- readonly kind: "request-none";
648
- } | {
649
- readonly kind: "request-ambiguous";
650
- } | {
651
- readonly kind: "request-answered";
652
- } | {
653
- readonly kind: "request-expired";
654
- }, import("effect/ParseResult").ParseError, never>;
655
- declare const CollectiveError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
656
- readonly _tag: "CollectiveError";
657
- } & Readonly<A>;
658
- /**
659
- * A gather, all_gather or answer was refused. The message names each
660
- * unreachable member or failing field, so a host can hand it to its model as
661
- * the tool error.
662
- */
663
- export declare class CollectiveError extends CollectiveError_base<{
664
- readonly id: CollectiveId;
665
- readonly failure: CollectiveFailure;
666
- }> {
667
- get message(): string;
668
- }
669
- type ListenFailure = "already-listening" | "incompatible-daemon" | "transport-failed" | "decode-failed";
670
- declare const ListenError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
671
- readonly _tag: "ListenError";
672
- } & Readonly<A>;
673
- /** The endpoint's sole inbound subscription failed. */
674
- export declare class ListenError extends ListenError_base<{
675
- readonly reason: ListenFailure;
676
- }> {
677
- get message(): string;
678
- }
679
- type DeliveryAcknowledgeFailure = "unknown-delivery" | "delivery-conflict" | "persistence-failed" | "transport-failed";
680
- declare const DeliveryAcknowledgeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
681
- readonly _tag: "DeliveryAcknowledgeError";
682
- } & Readonly<A>;
683
- /** Transport acknowledgment could not complete for one delivery. */
684
- export declare class DeliveryAcknowledgeError extends DeliveryAcknowledgeError_base<{
685
- readonly reason: DeliveryAcknowledgeFailure;
686
- }> {
687
- get message(): string;
688
- }
689
- type ConnectFailure = "transport-failed" | "decode-failed" | "incompatible-daemon";
690
- declare const ConnectError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
691
- readonly _tag: "ConnectError";
692
- } & Readonly<A>;
693
- /** Acquiring the endpoint connection failed. */
694
- export declare class ConnectError extends ConnectError_base<{
695
- readonly reason: ConnectFailure;
696
- }> {
697
- get message(): string;
698
- }
699
- /** One inbound item plus its transport-only acknowledgment. */
700
- export interface InboundDelivery {
701
- readonly item: InboundItem;
702
- readonly acknowledge: Effect.Effect<void, DeliveryAcknowledgeError>;
703
- }
704
- /**
705
- * Structural runtime capability owned by one scoped endpoint connection.
706
- * Every send is one operation or one collective response; the stream yields
707
- * inbound items.
708
- *
709
- * A host whose tool returns before the send completes passes
710
- * `failureDelivery: "inbound"`: a refused gather, all_gather or response
711
- * then completes and its error arrives as an `operationFailed` item on the
712
- * stream. A multicast has no operation id, so its failure is always returned.
713
- */
714
- export interface HarnessEndpoint {
715
- readonly send: (input: SendInput, options?: Readonly<{
716
- failureDelivery?: FailureDelivery;
717
- }>) => Effect.Effect<SendResult, SendError | CollectiveError>;
718
- readonly messages: Stream.Stream<InboundDelivery, ListenError>;
719
- }
720
- export {};
721
- //# sourceMappingURL=contract.d.ts.map