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