@astrosheep/keiyaku 4.6.31 → 4.6.33

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 (384) hide show
  1. package/README.md +42 -23
  2. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +24 -15
  3. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +12 -8
  4. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +4 -3
  5. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +17 -17
  6. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +6 -4
  7. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +24 -15
  8. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +12 -8
  9. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +4 -3
  10. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +17 -17
  11. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +6 -4
  12. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +24 -15
  13. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +12 -8
  14. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +4 -3
  15. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +17 -17
  16. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +6 -4
  17. package/build/plugins/pi/README.md +53 -97
  18. package/build/plugins/pi/keiyaku.ts +10 -6
  19. package/build/skills/keiyaku-akuma/SKILL.md +24 -15
  20. package/build/skills/keiyaku-babysit/SKILL.md +12 -8
  21. package/build/skills/keiyaku-bind/SKILL.md +4 -3
  22. package/build/skills/keiyaku-debt/SKILL.md +17 -17
  23. package/build/skills/keiyaku-workflow/SKILL.md +6 -4
  24. package/build/src/akuma/akuma-call.d.ts +3 -5
  25. package/build/src/akuma/akuma-call.js +7 -10
  26. package/build/src/akuma/akuma-errors.d.ts +7 -4
  27. package/build/src/akuma/akuma-errors.js +16 -12
  28. package/build/src/akuma/akuma-instance.d.ts +50 -303
  29. package/build/src/akuma/akuma-instance.js +48 -49
  30. package/build/src/akuma/akuma-observe.d.ts +5 -4
  31. package/build/src/akuma/akuma-observe.js +74 -21
  32. package/build/src/akuma/akuma-owner.d.ts +14 -6
  33. package/build/src/akuma/akuma-owner.js +33 -27
  34. package/build/src/akuma/akuma-selection-execution.d.ts +97 -19
  35. package/build/src/akuma/akuma-selection-execution.js +79 -133
  36. package/build/src/akuma/akuma-wait.d.ts +43 -4
  37. package/build/src/akuma/akuma-wait.js +58 -29
  38. package/build/src/akuma/akuma.d.ts +58 -384
  39. package/build/src/akuma/akuma.js +8 -58
  40. package/build/src/akuma/archetype.d.ts +16 -19
  41. package/build/src/akuma/archetype.js +48 -49
  42. package/build/src/akuma/body.js +44 -44
  43. package/build/src/akuma/call-initial-tell.d.ts +4 -2
  44. package/build/src/akuma/call-initial-tell.js +9 -2
  45. package/build/src/akuma/call-input.d.ts +8 -1
  46. package/build/src/akuma/call-input.js +27 -18
  47. package/build/src/akuma/caller.js +2 -1
  48. package/build/src/akuma/detached-body.js +1 -1
  49. package/build/src/akuma/heart/activity-schema.d.ts +16 -0
  50. package/build/src/akuma/heart/activity-schema.js +7 -0
  51. package/build/src/akuma/heart/facts.d.ts +5 -4
  52. package/build/src/akuma/heart/facts.js +5 -5
  53. package/build/src/akuma/heart/index.d.ts +1 -1
  54. package/build/src/akuma/heart/index.js +9 -1
  55. package/build/src/akuma/heart/soul.js +20 -4
  56. package/build/src/akuma/heart/timeline.js +4 -4
  57. package/build/src/akuma/identity.d.ts +1 -1
  58. package/build/src/akuma/identity.js +9 -4
  59. package/build/src/akuma/index.d.ts +6 -7
  60. package/build/src/akuma/index.js +2 -3
  61. package/build/src/akuma/projection-read.d.ts +4 -2
  62. package/build/src/akuma/projection-read.js +21 -14
  63. package/build/src/akuma/projection.d.ts +97 -2
  64. package/build/src/akuma/projection.js +47 -47
  65. package/build/src/akuma/provider-recipe.js +3 -2
  66. package/build/src/akuma/provider.d.ts +2 -2
  67. package/build/src/akuma/provider.js +27 -20
  68. package/build/src/akuma/providers/acp/config.js +11 -10
  69. package/build/src/akuma/providers/acp/core.js +2 -5
  70. package/build/src/akuma/providers/acp/index.js +2 -1
  71. package/build/src/akuma/providers/codex-app-server/index.js +7 -1
  72. package/build/src/akuma/providers/grok-build/index.js +2 -1
  73. package/build/src/akuma/providers/index.d.ts +0 -1
  74. package/build/src/akuma/providers/index.js +0 -8
  75. package/build/src/akuma/providers/opencode-sdk/events.d.ts +2 -1
  76. package/build/src/akuma/providers/opencode-sdk/events.js +31 -1
  77. package/build/src/akuma/providers/paseo/index.js +7 -4
  78. package/build/src/akuma/providers/pi/index.js +4 -3
  79. package/build/src/akuma/publication.d.ts +1 -2
  80. package/build/src/akuma/publication.js +19 -16
  81. package/build/src/akuma/schema.d.ts +3 -49
  82. package/build/src/akuma/schema.js +6 -147
  83. package/build/src/akuma/selection-observation.d.ts +304 -240
  84. package/build/src/akuma/selection-observation.js +135 -70
  85. package/build/src/akuma/status-projection.d.ts +61 -284
  86. package/build/src/akuma/status-projection.js +216 -138
  87. package/build/src/akuma/turn-drive.js +21 -15
  88. package/build/src/body/amend.js +7 -18
  89. package/build/src/body/arc.js +3 -2
  90. package/build/src/body/criteria.js +4 -3
  91. package/build/src/body/decode.js +13 -2
  92. package/build/src/body/envelope.d.ts +5 -1
  93. package/build/src/body/envelope.js +6 -3
  94. package/build/src/body/region.d.ts +1 -3
  95. package/build/src/body/region.js +3 -8
  96. package/build/src/body/render.js +4 -6
  97. package/build/src/body-host.d.ts +4 -11
  98. package/build/src/body-host.js +5 -4
  99. package/build/src/bounded-list.js +2 -1
  100. package/build/src/cli/commands/akuma-grammar.d.ts +107 -66
  101. package/build/src/cli/commands/akuma-grammar.js +66 -104
  102. package/build/src/cli/commands/akuma.d.ts +7 -3
  103. package/build/src/cli/commands/akuma.js +49 -160
  104. package/build/src/cli/commands/contract-grammar.d.ts +4 -135
  105. package/build/src/cli/commands/contract-grammar.js +126 -223
  106. package/build/src/cli/commands/contract-help.d.ts +26 -22
  107. package/build/src/cli/commands/contract-help.js +52 -38
  108. package/build/src/cli/commands/contract.d.ts +6 -18
  109. package/build/src/cli/commands/contract.js +68 -272
  110. package/build/src/cli/commands/debt-grammar.d.ts +2 -4
  111. package/build/src/cli/commands/debt-grammar.js +23 -193
  112. package/build/src/cli/commands/debt.js +10 -87
  113. package/build/src/cli/commands/report.d.ts +2 -4
  114. package/build/src/cli/coordinates.d.ts +1 -1
  115. package/build/src/cli/coordinates.js +1 -1
  116. package/build/src/cli/main.js +9 -3
  117. package/build/src/cli/parse.d.ts +80 -3
  118. package/build/src/cli/parse.js +76 -19
  119. package/build/src/cli/render/akuma-activity.d.ts +18 -35
  120. package/build/src/cli/render/akuma-activity.js +141 -290
  121. package/build/src/cli/render/akuma.d.ts +2 -8
  122. package/build/src/cli/render/akuma.js +50 -65
  123. package/build/src/cli/render/catalog.d.ts +2 -5
  124. package/build/src/cli/render/catalog.js +3 -37
  125. package/build/src/cli/render/contract-history.js +3 -2
  126. package/build/src/cli/render/contract-observation.d.ts +2 -8
  127. package/build/src/cli/render/contract-observation.js +25 -4
  128. package/build/src/cli/render/contract-wait.d.ts +2 -2
  129. package/build/src/cli/render/contract-wait.js +13 -17
  130. package/build/src/cli/render/contract.d.ts +7 -9
  131. package/build/src/cli/render/contract.js +46 -72
  132. package/build/src/cli/render/debt.d.ts +3 -11
  133. package/build/src/cli/render/debt.js +17 -89
  134. package/build/src/cli/render/delivery-preview.js +4 -4
  135. package/build/src/cli/render/execution-progress.js +1 -3
  136. package/build/src/cli/render/kanshi-akuma.d.ts +5 -3
  137. package/build/src/cli/render/kanshi-akuma.js +23 -20
  138. package/build/src/cli/render/kanshi.d.ts +1 -3
  139. package/build/src/cli/render/kanshi.js +27 -56
  140. package/build/src/cli/render/receipt.d.ts +21 -12
  141. package/build/src/cli/render/receipt.js +78 -68
  142. package/build/src/cli/render/reconcile.js +2 -5
  143. package/build/src/cli/render/refusal.d.ts +4 -3
  144. package/build/src/cli/render/refusal.js +17 -22
  145. package/build/src/cli/render/settings.d.ts +1 -1
  146. package/build/src/cli/render/terminal.d.ts +11 -12
  147. package/build/src/cli/render/terminal.js +53 -44
  148. package/build/src/cli/render/verbs.d.ts +4 -1
  149. package/build/src/cli/render/verbs.js +88 -128
  150. package/build/src/cli/runtime.js +65 -70
  151. package/build/src/cli/streams.d.ts +2 -9
  152. package/build/src/cli/streams.js +8 -1
  153. package/build/src/cli/usage.d.ts +2 -1
  154. package/build/src/cli/usage.js +3 -2
  155. package/build/src/contract-worktree.js +2 -10
  156. package/build/src/core/facts/codec.js +16 -25
  157. package/build/src/core/facts/eligibility.d.ts +4 -4
  158. package/build/src/core/facts/eligibility.js +11 -0
  159. package/build/src/core/facts/errors.d.ts +2 -1
  160. package/build/src/core/facts/errors.js +3 -3
  161. package/build/src/core/facts/fold.js +9 -5
  162. package/build/src/core/facts/gate.d.ts +5 -1
  163. package/build/src/core/facts/gate.js +14 -10
  164. package/build/src/core/facts/types.d.ts +7 -14
  165. package/build/src/core/facts/types.js +8 -6
  166. package/build/src/core/subject.d.ts +4 -1
  167. package/build/src/core/subject.js +10 -2
  168. package/build/src/core/verbs/abandon.d.ts +1 -2
  169. package/build/src/core/verbs/amend.d.ts +16 -6
  170. package/build/src/core/verbs/amend.js +19 -9
  171. package/build/src/core/verbs/arc.d.ts +1 -2
  172. package/build/src/core/verbs/attestation.d.ts +1 -2
  173. package/build/src/core/verbs/bind.d.ts +1 -2
  174. package/build/src/core/verbs/deliver.d.ts +1 -2
  175. package/build/src/core/verbs/placement.d.ts +1 -2
  176. package/build/src/core/verbs/reintegrate.d.ts +1 -2
  177. package/build/src/debt/board.d.ts +14 -94
  178. package/build/src/debt/board.js +25 -160
  179. package/build/src/debt/catalog.d.ts +0 -2
  180. package/build/src/debt/catalog.js +1 -22
  181. package/build/src/debt/document.d.ts +8 -11
  182. package/build/src/debt/document.js +19 -62
  183. package/build/src/debt/identity.d.ts +2 -14
  184. package/build/src/debt/identity.js +19 -49
  185. package/build/src/debt/index.d.ts +81 -220
  186. package/build/src/debt/index.js +61 -115
  187. package/build/src/debt/input.d.ts +21 -6
  188. package/build/src/debt/input.js +56 -180
  189. package/build/src/debt/lifecycle-operations.d.ts +1 -3
  190. package/build/src/debt/lifecycle-operations.js +1 -73
  191. package/build/src/debt/operation-types.d.ts +24 -128
  192. package/build/src/debt/operation-types.js +6 -62
  193. package/build/src/debt/operations.d.ts +8 -17
  194. package/build/src/debt/operations.js +58 -154
  195. package/build/src/debt/store.d.ts +0 -2
  196. package/build/src/debt/store.js +32 -87
  197. package/build/src/dispatch/index.d.ts +0 -17
  198. package/build/src/dispatch/index.js +1 -10
  199. package/build/src/errors.d.ts +28 -0
  200. package/build/src/errors.js +26 -0
  201. package/build/src/git/hooks.d.ts +1 -1
  202. package/build/src/git/identity.js +16 -45
  203. package/build/src/git/nuke.js +13 -23
  204. package/build/src/git/observe.d.ts +6 -0
  205. package/build/src/git/observe.js +40 -24
  206. package/build/src/git/process.js +11 -18
  207. package/build/src/git/read-observation.d.ts +5 -4
  208. package/build/src/git/reconcile.d.ts +3 -16
  209. package/build/src/git/reconcile.js +0 -18
  210. package/build/src/git/repository.d.ts +4 -1
  211. package/build/src/git/repository.js +16 -4
  212. package/build/src/git/scratch.js +2 -14
  213. package/build/src/git/target-placement.d.ts +4 -4
  214. package/build/src/git/target.d.ts +2 -2
  215. package/build/src/git/tender.d.ts +1 -2
  216. package/build/src/git/tender.js +5 -12
  217. package/build/src/git/terminal-reconcile.js +1 -13
  218. package/build/src/identity/coordinates.d.ts +1 -1
  219. package/build/src/identity/coordinates.js +3 -2
  220. package/build/src/identity/normalize.js +2 -1
  221. package/build/src/identity/selector.js +4 -3
  222. package/build/src/index.d.ts +36 -57
  223. package/build/src/index.js +11 -36
  224. package/build/src/kanshi/counts.d.ts +3 -8
  225. package/build/src/kanshi/counts.js +6 -14
  226. package/build/src/kanshi/index.d.ts +21 -7
  227. package/build/src/kanshi/index.js +29 -4
  228. package/build/src/kanshi/read.d.ts +101 -269
  229. package/build/src/kanshi/read.js +41 -200
  230. package/build/src/kanshi/report.d.ts +443 -1628
  231. package/build/src/kanshi/report.js +19 -31
  232. package/build/src/library/address.d.ts +20 -13
  233. package/build/src/library/address.js +48 -55
  234. package/build/src/library/akuma-creation.d.ts +249 -79
  235. package/build/src/library/akuma-creation.js +200 -247
  236. package/build/src/library/akumas.d.ts +24 -5
  237. package/build/src/library/akumas.js +96 -29
  238. package/build/src/library/bind.d.ts +7 -10
  239. package/build/src/library/bind.js +2 -8
  240. package/build/src/library/continuation.d.ts +151 -231
  241. package/build/src/library/continuation.js +22 -31
  242. package/build/src/library/contract-address.d.ts +6 -9
  243. package/build/src/library/contract-address.js +11 -16
  244. package/build/src/library/contract-composition.d.ts +2 -3
  245. package/build/src/library/contract-composition.js +12 -19
  246. package/build/src/library/contract-creation.js +35 -37
  247. package/build/src/library/contract-outcomes.d.ts +1349 -806
  248. package/build/src/library/contract-outcomes.js +12 -37
  249. package/build/src/library/contract-settings.d.ts +1 -2
  250. package/build/src/library/contract-settings.js +5 -7
  251. package/build/src/library/contract-types.d.ts +60 -67
  252. package/build/src/library/contract-types.js +17 -56
  253. package/build/src/library/contract-wait.d.ts +47 -3
  254. package/build/src/library/contract-wait.js +81 -70
  255. package/build/src/library/delivery.d.ts +391 -389
  256. package/build/src/library/delivery.js +5 -25
  257. package/build/src/library/input.d.ts +13 -5
  258. package/build/src/library/input.js +43 -38
  259. package/build/src/library/invocation.d.ts +13 -11
  260. package/build/src/library/invocation.js +69 -58
  261. package/build/src/library/kei.d.ts +16 -8
  262. package/build/src/library/kei.js +484 -25
  263. package/build/src/library/keiyaku-attribution.d.ts +0 -8
  264. package/build/src/library/keiyaku-attribution.js +0 -11
  265. package/build/src/library/keiyaku-classify.d.ts +2 -2
  266. package/build/src/library/keiyaku-classify.js +43 -62
  267. package/build/src/library/keiyaku-coordinates.d.ts +3 -8
  268. package/build/src/library/keiyaku-coordinates.js +6 -26
  269. package/build/src/library/keiyaku-debt.d.ts +21 -93
  270. package/build/src/library/keiyaku-debt.js +9 -159
  271. package/build/src/library/keiyaku-identity.d.ts +3 -3
  272. package/build/src/library/keiyaku-identity.js +16 -10
  273. package/build/src/library/keiyaku-verbs.d.ts +4102 -4889
  274. package/build/src/library/keiyaku-verbs.js +317 -291
  275. package/build/src/library/keiyaku-wait.d.ts +183 -0
  276. package/build/src/library/keiyaku-wait.js +213 -0
  277. package/build/src/library/keiyaku.d.ts +32 -860
  278. package/build/src/library/keiyaku.js +203 -314
  279. package/build/src/library/model-tools.d.ts +556 -0
  280. package/build/src/library/model-tools.js +347 -0
  281. package/build/src/library/nuke.d.ts +4 -2
  282. package/build/src/library/nuke.js +5 -1
  283. package/build/src/library/outcome.d.ts +424 -307
  284. package/build/src/library/outcome.js +166 -362
  285. package/build/src/library/reconcile.d.ts +331 -143
  286. package/build/src/library/reconcile.js +38 -72
  287. package/build/src/library/refusal.d.ts +45 -29
  288. package/build/src/library/refusal.js +5 -16
  289. package/build/src/library/repo.js +4 -3
  290. package/build/src/library/selection.d.ts +44 -21
  291. package/build/src/library/selection.js +63 -88
  292. package/build/src/mcp/adapter.js +37 -51
  293. package/build/src/mcp/description.d.ts +2 -0
  294. package/build/src/mcp/description.js +2 -0
  295. package/build/src/mcp/help.d.ts +1 -1
  296. package/build/src/mcp/help.js +16 -9
  297. package/build/src/pi/index.d.ts +3 -0
  298. package/build/src/pi/index.js +83 -0
  299. package/build/src/plugin/public.d.ts +4 -0
  300. package/build/src/plugin/runtime.d.ts +1 -1
  301. package/build/src/plugin/runtime.js +2 -2
  302. package/build/src/protocol/amend.d.ts +15 -4
  303. package/build/src/protocol/amend.js +114 -47
  304. package/build/src/protocol/bind.d.ts +5 -7
  305. package/build/src/protocol/bind.js +8 -19
  306. package/build/src/protocol/completion.d.ts +188 -195
  307. package/build/src/protocol/completion.js +63 -24
  308. package/build/src/protocol/deliver.d.ts +11 -6
  309. package/build/src/protocol/deliver.js +37 -50
  310. package/build/src/protocol/delivery-preview.d.ts +18 -11
  311. package/build/src/protocol/delivery-preview.js +2 -2
  312. package/build/src/protocol/execution-observation.d.ts +13 -13
  313. package/build/src/protocol/intent.d.ts +7 -9
  314. package/build/src/protocol/intent.js +22 -32
  315. package/build/src/protocol/operations.d.ts +102 -69
  316. package/build/src/protocol/operations.js +33 -56
  317. package/build/src/protocol/outcome.d.ts +3 -1
  318. package/build/src/protocol/placement.d.ts +1 -2
  319. package/build/src/protocol/placement.js +7 -1
  320. package/build/src/protocol/progress.d.ts +1 -0
  321. package/build/src/protocol/progress.js +0 -6
  322. package/build/src/protocol/read/status.d.ts +69 -112
  323. package/build/src/protocol/read/status.js +59 -88
  324. package/build/src/protocol/reintegrate.d.ts +1 -2
  325. package/build/src/protocol/reintegrate.js +2 -3
  326. package/build/src/protocol/result-leaves.d.ts +67 -40
  327. package/build/src/protocol/result-leaves.js +28 -58
  328. package/build/src/protocol/result-reasons.d.ts +6 -6
  329. package/build/src/protocol/review.js +0 -1
  330. package/build/src/protocol/run.js +1 -4
  331. package/build/src/protocol/verify.d.ts +202 -146
  332. package/build/src/protocol/verify.js +61 -47
  333. package/build/src/runtime/proc/windows-launch.exe +0 -0
  334. package/build/src/settings.d.ts +8 -9
  335. package/build/src/settings.js +16 -13
  336. package/build/src/settlement/holder.js +2 -2
  337. package/build/src/settlement/settle.d.ts +0 -6
  338. package/build/src/settlement/settle.js +19 -72
  339. package/build/src/verification/declaration.d.ts +3 -6
  340. package/build/src/verification/declaration.js +3 -5
  341. package/build/src/verification/observation.d.ts +2 -2
  342. package/build/src/world.d.ts +3 -2
  343. package/build/src/world.js +5 -6
  344. package/package.json +7 -3
  345. package/plugins/paseo/plugin/index.server.ts +1 -1
  346. package/plugins/paseo/plugin/server/attach.ts +74 -67
  347. package/plugins/paseo/plugin/server/keiyaku.ts +80 -14
  348. package/plugins/paseo/plugin/server/message.ts +2 -1
  349. package/plugins/paseo/plugin/server/mirror-identity.ts +6 -4
  350. package/plugins/paseo/plugin/server/sdk.ts +9 -11
  351. package/plugins/paseo/plugin/server/transport.ts +24 -1
  352. package/plugins/pi/README.md +53 -97
  353. package/plugins/pi/keiyaku.ts +10 -6
  354. package/skills/keiyaku-akuma/SKILL.md +24 -15
  355. package/skills/keiyaku-babysit/SKILL.md +12 -8
  356. package/skills/keiyaku-bind/SKILL.md +4 -3
  357. package/skills/keiyaku-debt/SKILL.md +17 -17
  358. package/skills/keiyaku-workflow/SKILL.md +6 -4
  359. package/build/plugins/pi/akuma-tools.ts +0 -290
  360. package/build/src/akuma/providers/codex-app-server/configuration.d.ts +0 -5
  361. package/build/src/akuma/providers/codex-app-server/configuration.js +0 -72
  362. package/build/src/body/keys.d.ts +0 -4
  363. package/build/src/body/keys.js +0 -11
  364. package/build/src/cli/commands/debt-query.d.ts +0 -5
  365. package/build/src/cli/commands/debt-query.js +0 -194
  366. package/build/src/cli/render/akuma-tool-command.d.ts +0 -6
  367. package/build/src/cli/render/akuma-tool-command.js +0 -143
  368. package/build/src/cli/render/akuma-tool.d.ts +0 -29
  369. package/build/src/cli/render/akuma-tool.js +0 -225
  370. package/build/src/debt/context.d.ts +0 -28
  371. package/build/src/debt/context.js +0 -102
  372. package/build/src/debt/created-observation.d.ts +0 -26
  373. package/build/src/debt/created-observation.js +0 -38
  374. package/build/src/debt/query.d.ts +0 -80
  375. package/build/src/debt/query.js +0 -283
  376. package/build/src/kanshi/roster.d.ts +0 -2
  377. package/build/src/kanshi/roster.js +0 -2
  378. package/build/src/library/contract-execution.d.ts +0 -28
  379. package/build/src/library/contract-execution.js +0 -506
  380. package/build/src/library/keiyaku-policy.d.ts +0 -27
  381. package/build/src/library/keiyaku-policy.js +0 -44
  382. package/build/src/library/keiyaku-status.d.ts +0 -1487
  383. package/build/src/library/keiyaku-status.js +0 -92
  384. package/plugins/pi/akuma-tools.ts +0 -290
@@ -1,68 +1,68 @@
1
1
  import { z } from "zod";
2
- import type { ChangeId, DeliverData } from "../core/facts/types.js";
3
- import { type CompletionEvidence } from "../protocol/completion.js";
4
- import type { DeliverLeading } from "../protocol/deliver.js";
5
- import { type ContinuationReport } from "./continuation.js";
6
2
  export declare const deliverPlacementSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
7
3
  kind: z.ZodLiteral<"placed">;
8
4
  target: z.ZodExactOptional<z.ZodString>;
9
- predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
5
+ predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
10
6
  }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
11
- kind: z.ZodEnum<{
12
- terminal: "terminal";
13
- "contract-missing": "contract-missing";
14
- }>;
15
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
16
- kind: z.ZodEnum<{
17
- "target-contract-missing": "target-contract-missing";
18
- "target-contract-terminal": "target-contract-terminal";
19
- }>;
20
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
21
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
22
- kind: z.ZodLiteral<"target-workspace-unavailable">;
23
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
24
- reason: z.ZodEnum<{
25
- missing: "missing";
26
- replaced: "replaced";
27
- unappointed: "unappointed";
28
- association: "association";
29
- attached: "attached";
30
- uncommitted: "uncommitted";
31
- operation: "operation";
32
- }>;
33
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
34
- kind: z.ZodEnum<{
35
- "target-missing": "target-missing";
36
- "delivery-missing": "delivery-missing";
37
- }>;
7
+ kind: z.ZodLiteral<"delivery-missing">;
38
8
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
39
9
  kind: z.ZodLiteral<"prerequisites-unsatisfied">;
40
10
  unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
41
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
11
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
42
12
  state: z.ZodEnum<{
43
- active: "active";
44
- abandoned: "abandoned";
45
13
  missing: "missing";
14
+ abandoned: "abandoned";
15
+ active: "active";
46
16
  }>;
47
17
  }, z.core.$strict>>>>;
48
18
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
49
19
  kind: z.ZodLiteral<"gates-unsatisfied">;
50
20
  unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
51
21
  state: z.ZodLiteral<"missing">;
52
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
22
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
53
23
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
54
24
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
55
25
  state: z.ZodLiteral<"unsatisfied">;
56
26
  summary: z.ZodExactOptional<z.ZodString>;
57
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
27
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
58
28
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
59
29
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
60
30
  state: z.ZodLiteral<"stale">;
31
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
32
+ kind: z.ZodLiteral<"snapshot-changed">;
33
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
34
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
35
+ }, z.core.$strict>>>;
61
36
  previousContentId: z.ZodExactOptional<z.ZodString>;
62
37
  currentContentId: z.ZodExactOptional<z.ZodString>;
63
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
38
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
64
39
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
65
40
  }, z.core.$strict>>]>>>;
41
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
42
+ kind: z.ZodEnum<{
43
+ "contract-missing": "contract-missing";
44
+ terminal: "terminal";
45
+ }>;
46
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
47
+ kind: z.ZodEnum<{
48
+ "target-contract-missing": "target-contract-missing";
49
+ "target-contract-terminal": "target-contract-terminal";
50
+ }>;
51
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
52
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
53
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
54
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
55
+ reason: z.ZodEnum<{
56
+ unappointed: "unappointed";
57
+ missing: "missing";
58
+ association: "association";
59
+ replaced: "replaced";
60
+ attached: "attached";
61
+ uncommitted: "uncommitted";
62
+ operation: "operation";
63
+ }>;
64
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
65
+ kind: z.ZodLiteral<"target-missing">;
66
66
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
67
67
  kind: z.ZodLiteral<"checkout-not-followable">;
68
68
  target: z.ZodString;
@@ -73,10 +73,10 @@ export declare const deliverPlacementSchema: z.ZodUnion<readonly [z.ZodReadonly<
73
73
  "not-based-on-target": "not-based-on-target";
74
74
  "unrelated-histories": "unrelated-histories";
75
75
  }>;
76
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
76
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
77
77
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
78
78
  kind: z.ZodLiteral<"integration-conflict">;
79
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
79
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
80
80
  conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
81
81
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
82
82
  kind: z.ZodLiteral<"integration-unsupported">;
@@ -96,79 +96,93 @@ export declare const deliverPlacementSchema: z.ZodUnion<readonly [z.ZodReadonly<
96
96
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
97
97
  kind: z.ZodLiteral<"target-content-identical">;
98
98
  target: z.ZodString;
99
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
100
- observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
99
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
100
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
101
101
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
102
102
  kind: z.ZodLiteral<"target-moved">;
103
103
  target: z.ZodString;
104
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
105
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
104
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
105
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
106
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
107
+ kind: z.ZodLiteral<"execution-stopped">;
108
+ reason: z.ZodEnum<{
109
+ failed: "failed";
110
+ cancelled: "cancelled";
111
+ }>;
112
+ diagnostic: z.ZodString;
113
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
114
+ kind: z.ZodLiteral<"physical-lag">;
106
115
  }, z.core.$strict>>]>]>;
107
116
  export declare const deliveredValueSchema: z.ZodReadonly<z.ZodObject<{
108
- candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
109
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
110
- contentId: z.ZodPipe<z.ZodString, z.ZodTransform<ChangeId, string>>;
117
+ candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
118
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
119
+ contentId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
111
120
  admission: z.ZodExactOptional<z.ZodLiteral<"reused">>;
121
+ previousContentId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>>;
112
122
  placement: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
113
123
  kind: z.ZodLiteral<"placed">;
114
124
  target: z.ZodExactOptional<z.ZodString>;
115
- predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
125
+ predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
116
126
  }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
117
- kind: z.ZodEnum<{
118
- terminal: "terminal";
119
- "contract-missing": "contract-missing";
120
- }>;
121
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
122
- kind: z.ZodEnum<{
123
- "target-contract-missing": "target-contract-missing";
124
- "target-contract-terminal": "target-contract-terminal";
125
- }>;
126
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
127
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
128
- kind: z.ZodLiteral<"target-workspace-unavailable">;
129
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
130
- reason: z.ZodEnum<{
131
- missing: "missing";
132
- replaced: "replaced";
133
- unappointed: "unappointed";
134
- association: "association";
135
- attached: "attached";
136
- uncommitted: "uncommitted";
137
- operation: "operation";
138
- }>;
139
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
140
- kind: z.ZodEnum<{
141
- "target-missing": "target-missing";
142
- "delivery-missing": "delivery-missing";
143
- }>;
127
+ kind: z.ZodLiteral<"delivery-missing">;
144
128
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
145
129
  kind: z.ZodLiteral<"prerequisites-unsatisfied">;
146
130
  unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
147
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
131
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
148
132
  state: z.ZodEnum<{
149
- active: "active";
150
- abandoned: "abandoned";
151
133
  missing: "missing";
134
+ abandoned: "abandoned";
135
+ active: "active";
152
136
  }>;
153
137
  }, z.core.$strict>>>>;
154
138
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
155
139
  kind: z.ZodLiteral<"gates-unsatisfied">;
156
140
  unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
157
141
  state: z.ZodLiteral<"missing">;
158
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
142
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
159
143
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
160
144
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
161
145
  state: z.ZodLiteral<"unsatisfied">;
162
146
  summary: z.ZodExactOptional<z.ZodString>;
163
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
147
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
164
148
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
165
149
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
166
150
  state: z.ZodLiteral<"stale">;
151
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
152
+ kind: z.ZodLiteral<"snapshot-changed">;
153
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
154
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
155
+ }, z.core.$strict>>>;
167
156
  previousContentId: z.ZodExactOptional<z.ZodString>;
168
157
  currentContentId: z.ZodExactOptional<z.ZodString>;
169
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
158
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
170
159
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
171
160
  }, z.core.$strict>>]>>>;
161
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
162
+ kind: z.ZodEnum<{
163
+ "contract-missing": "contract-missing";
164
+ terminal: "terminal";
165
+ }>;
166
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
167
+ kind: z.ZodEnum<{
168
+ "target-contract-missing": "target-contract-missing";
169
+ "target-contract-terminal": "target-contract-terminal";
170
+ }>;
171
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
172
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
173
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
174
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
175
+ reason: z.ZodEnum<{
176
+ unappointed: "unappointed";
177
+ missing: "missing";
178
+ association: "association";
179
+ replaced: "replaced";
180
+ attached: "attached";
181
+ uncommitted: "uncommitted";
182
+ operation: "operation";
183
+ }>;
184
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
185
+ kind: z.ZodLiteral<"target-missing">;
172
186
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
173
187
  kind: z.ZodLiteral<"checkout-not-followable">;
174
188
  target: z.ZodString;
@@ -179,10 +193,10 @@ export declare const deliveredValueSchema: z.ZodReadonly<z.ZodObject<{
179
193
  "not-based-on-target": "not-based-on-target";
180
194
  "unrelated-histories": "unrelated-histories";
181
195
  }>;
182
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
196
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
183
197
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
184
198
  kind: z.ZodLiteral<"integration-conflict">;
185
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
199
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
186
200
  conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
187
201
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
188
202
  kind: z.ZodLiteral<"integration-unsupported">;
@@ -202,210 +216,210 @@ export declare const deliveredValueSchema: z.ZodReadonly<z.ZodObject<{
202
216
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
203
217
  kind: z.ZodLiteral<"target-content-identical">;
204
218
  target: z.ZodString;
205
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
206
- observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
219
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
220
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
207
221
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
208
222
  kind: z.ZodLiteral<"target-moved">;
209
223
  target: z.ZodString;
210
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
211
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
224
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
225
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
226
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
227
+ kind: z.ZodLiteral<"execution-stopped">;
228
+ reason: z.ZodEnum<{
229
+ failed: "failed";
230
+ cancelled: "cancelled";
231
+ }>;
232
+ diagnostic: z.ZodString;
233
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
234
+ kind: z.ZodLiteral<"physical-lag">;
212
235
  }, z.core.$strict>>]>]>>;
213
- previousContentId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ChangeId, string>>>;
214
236
  continuation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
215
- claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>>>;
216
- stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<(z.ZodReadonly<z.ZodObject<{
217
- kind: z.ZodLiteral<"target-moved">;
218
- target: z.ZodString;
219
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
220
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
221
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
222
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
223
- kind: z.ZodEnum<{
224
- "already-terminal": "already-terminal";
225
- "physical-lag": "physical-lag";
226
- }>;
227
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
228
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
229
- kind: z.ZodLiteral<"target-content-identical">;
230
- target: z.ZodString;
231
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
232
- observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
233
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
234
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
235
- kind: z.ZodLiteral<"failed">;
236
- diagnostic: z.ZodString;
237
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
238
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
239
- kind: z.ZodLiteral<"gates-unsatisfied">;
240
- unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
241
- state: z.ZodLiteral<"missing">;
242
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
243
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
244
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
245
- state: z.ZodLiteral<"unsatisfied">;
246
- summary: z.ZodExactOptional<z.ZodString>;
247
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
248
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
249
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
250
- state: z.ZodLiteral<"stale">;
251
- previousContentId: z.ZodExactOptional<z.ZodString>;
252
- currentContentId: z.ZodExactOptional<z.ZodString>;
253
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
254
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
255
- }, z.core.$strict>>]>>>;
256
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
257
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
258
- kind: z.ZodLiteral<"prerequisites-unsatisfied">;
259
- unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
260
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
261
- state: z.ZodEnum<{
262
- active: "active";
263
- abandoned: "abandoned";
237
+ claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>>;
238
+ stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
239
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
240
+ stop: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
241
+ kind: z.ZodLiteral<"delivery-missing">;
242
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
243
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
244
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
245
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
246
+ state: z.ZodEnum<{
247
+ missing: "missing";
248
+ abandoned: "abandoned";
249
+ active: "active";
250
+ }>;
251
+ }, z.core.$strict>>>>;
252
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
253
+ kind: z.ZodLiteral<"gates-unsatisfied">;
254
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
255
+ state: z.ZodLiteral<"missing">;
256
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
257
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
258
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
259
+ state: z.ZodLiteral<"unsatisfied">;
260
+ summary: z.ZodExactOptional<z.ZodString>;
261
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
262
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
263
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
264
+ state: z.ZodLiteral<"stale">;
265
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
266
+ kind: z.ZodLiteral<"snapshot-changed">;
267
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
268
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
269
+ }, z.core.$strict>>>;
270
+ previousContentId: z.ZodExactOptional<z.ZodString>;
271
+ currentContentId: z.ZodExactOptional<z.ZodString>;
272
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
273
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
274
+ }, z.core.$strict>>]>>>;
275
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
276
+ kind: z.ZodEnum<{
277
+ "contract-missing": "contract-missing";
278
+ terminal: "terminal";
279
+ }>;
280
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
281
+ kind: z.ZodEnum<{
282
+ "target-contract-missing": "target-contract-missing";
283
+ "target-contract-terminal": "target-contract-terminal";
284
+ }>;
285
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
286
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
287
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
288
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
289
+ reason: z.ZodEnum<{
290
+ unappointed: "unappointed";
264
291
  missing: "missing";
292
+ association: "association";
293
+ replaced: "replaced";
294
+ attached: "attached";
295
+ uncommitted: "uncommitted";
296
+ operation: "operation";
265
297
  }>;
266
- }, z.core.$strict>>>>;
267
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
268
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
269
- kind: z.ZodEnum<{
270
- "target-missing": "target-missing";
271
- "delivery-missing": "delivery-missing";
272
- }>;
273
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
274
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
275
- kind: z.ZodLiteral<"checkout-not-followable">;
276
- target: z.ZodString;
277
- path: z.ZodString;
278
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
279
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
280
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
281
- kind: z.ZodLiteral<"integration-unsupported">;
282
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
283
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
284
- kind: z.ZodLiteral<"integration-conflict">;
285
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
286
- conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
287
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
288
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
289
- kind: z.ZodEnum<{
290
- "not-based-on-target": "not-based-on-target";
291
- "unrelated-histories": "unrelated-histories";
292
- }>;
293
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
294
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
295
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
296
- kind: z.ZodLiteral<"retry">;
297
- reason: z.ZodLiteral<"publication-failed">;
298
- diagnostic: z.ZodString;
299
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
300
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
301
- kind: z.ZodLiteral<"retry">;
302
- reason: z.ZodEnum<{
303
- exhausted: "exhausted";
304
- collision: "collision";
305
- }>;
306
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
307
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
308
- kind: z.ZodLiteral<"target-workspace-unavailable">;
309
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
310
- reason: z.ZodEnum<{
311
- missing: "missing";
312
- replaced: "replaced";
313
- unappointed: "unappointed";
314
- association: "association";
315
- attached: "attached";
316
- uncommitted: "uncommitted";
317
- operation: "operation";
318
- }>;
319
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
320
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
321
- kind: z.ZodEnum<{
322
- "target-contract-missing": "target-contract-missing";
323
- "target-contract-terminal": "target-contract-terminal";
324
- }>;
325
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
326
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
327
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
328
- kind: z.ZodEnum<{
329
- terminal: "terminal";
330
- "contract-missing": "contract-missing";
331
- }>;
332
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
333
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
334
- kind: z.ZodLiteral<"execution-stopped">;
335
- reason: z.ZodEnum<{
336
- failed: "failed";
337
- cancelled: "cancelled";
338
- }>;
339
- diagnostic: z.ZodString;
340
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
341
- }, z.core.$strict>>)[]>>>>;
298
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
299
+ kind: z.ZodLiteral<"target-missing">;
300
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
301
+ kind: z.ZodLiteral<"checkout-not-followable">;
302
+ target: z.ZodString;
303
+ path: z.ZodString;
304
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
305
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
306
+ kind: z.ZodEnum<{
307
+ "not-based-on-target": "not-based-on-target";
308
+ "unrelated-histories": "unrelated-histories";
309
+ }>;
310
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
311
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
312
+ kind: z.ZodLiteral<"integration-conflict">;
313
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
314
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
315
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
316
+ kind: z.ZodLiteral<"integration-unsupported">;
317
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
318
+ kind: z.ZodLiteral<"retry">;
319
+ reason: z.ZodEnum<{
320
+ exhausted: "exhausted";
321
+ collision: "collision";
322
+ }>;
323
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
324
+ kind: z.ZodLiteral<"retry">;
325
+ reason: z.ZodLiteral<"publication-failed">;
326
+ diagnostic: z.ZodString;
327
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
328
+ kind: z.ZodLiteral<"failed">;
329
+ diagnostic: z.ZodString;
330
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
331
+ kind: z.ZodLiteral<"target-content-identical">;
332
+ target: z.ZodString;
333
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
334
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
335
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
336
+ kind: z.ZodLiteral<"target-moved">;
337
+ target: z.ZodString;
338
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
339
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
340
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
341
+ kind: z.ZodLiteral<"execution-stopped">;
342
+ reason: z.ZodEnum<{
343
+ failed: "failed";
344
+ cancelled: "cancelled";
345
+ }>;
346
+ diagnostic: z.ZodString;
347
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
348
+ kind: z.ZodLiteral<"physical-lag">;
349
+ }, z.core.$strict>>]>;
350
+ }, z.core.$strict>>>>>;
342
351
  }, z.core.$strict>>>;
343
352
  }, z.core.$strict>>;
344
353
  export declare const deliverySchema: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
345
- candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
346
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
347
- contentId: z.ZodPipe<z.ZodString, z.ZodTransform<ChangeId, string>>;
354
+ candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
355
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
356
+ contentId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
348
357
  admission: z.ZodExactOptional<z.ZodLiteral<"reused">>;
358
+ previousContentId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>>;
349
359
  placement: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
350
360
  kind: z.ZodLiteral<"placed">;
351
361
  target: z.ZodExactOptional<z.ZodString>;
352
- predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
362
+ predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
353
363
  }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
354
- kind: z.ZodEnum<{
355
- terminal: "terminal";
356
- "contract-missing": "contract-missing";
357
- }>;
358
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
359
- kind: z.ZodEnum<{
360
- "target-contract-missing": "target-contract-missing";
361
- "target-contract-terminal": "target-contract-terminal";
362
- }>;
363
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
364
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
365
- kind: z.ZodLiteral<"target-workspace-unavailable">;
366
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
367
- reason: z.ZodEnum<{
368
- missing: "missing";
369
- replaced: "replaced";
370
- unappointed: "unappointed";
371
- association: "association";
372
- attached: "attached";
373
- uncommitted: "uncommitted";
374
- operation: "operation";
375
- }>;
376
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
377
- kind: z.ZodEnum<{
378
- "target-missing": "target-missing";
379
- "delivery-missing": "delivery-missing";
380
- }>;
364
+ kind: z.ZodLiteral<"delivery-missing">;
381
365
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
382
366
  kind: z.ZodLiteral<"prerequisites-unsatisfied">;
383
367
  unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
384
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
368
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
385
369
  state: z.ZodEnum<{
386
- active: "active";
387
- abandoned: "abandoned";
388
370
  missing: "missing";
371
+ abandoned: "abandoned";
372
+ active: "active";
389
373
  }>;
390
374
  }, z.core.$strict>>>>;
391
375
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
392
376
  kind: z.ZodLiteral<"gates-unsatisfied">;
393
377
  unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
394
378
  state: z.ZodLiteral<"missing">;
395
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
379
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
396
380
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
397
381
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
398
382
  state: z.ZodLiteral<"unsatisfied">;
399
383
  summary: z.ZodExactOptional<z.ZodString>;
400
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
384
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
401
385
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
402
386
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
403
387
  state: z.ZodLiteral<"stale">;
388
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
389
+ kind: z.ZodLiteral<"snapshot-changed">;
390
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
391
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
392
+ }, z.core.$strict>>>;
404
393
  previousContentId: z.ZodExactOptional<z.ZodString>;
405
394
  currentContentId: z.ZodExactOptional<z.ZodString>;
406
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
395
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
407
396
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
408
397
  }, z.core.$strict>>]>>>;
398
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
399
+ kind: z.ZodEnum<{
400
+ "contract-missing": "contract-missing";
401
+ terminal: "terminal";
402
+ }>;
403
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
404
+ kind: z.ZodEnum<{
405
+ "target-contract-missing": "target-contract-missing";
406
+ "target-contract-terminal": "target-contract-terminal";
407
+ }>;
408
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
409
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
410
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
411
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
412
+ reason: z.ZodEnum<{
413
+ unappointed: "unappointed";
414
+ missing: "missing";
415
+ association: "association";
416
+ replaced: "replaced";
417
+ attached: "attached";
418
+ uncommitted: "uncommitted";
419
+ operation: "operation";
420
+ }>;
421
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
422
+ kind: z.ZodLiteral<"target-missing">;
409
423
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
410
424
  kind: z.ZodLiteral<"checkout-not-followable">;
411
425
  target: z.ZodString;
@@ -416,10 +430,10 @@ export declare const deliverySchema: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
416
430
  "not-based-on-target": "not-based-on-target";
417
431
  "unrelated-histories": "unrelated-histories";
418
432
  }>;
419
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
433
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
420
434
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
421
435
  kind: z.ZodLiteral<"integration-conflict">;
422
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
436
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
423
437
  conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
424
438
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
425
439
  kind: z.ZodLiteral<"integration-unsupported">;
@@ -439,151 +453,139 @@ export declare const deliverySchema: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
439
453
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
440
454
  kind: z.ZodLiteral<"target-content-identical">;
441
455
  target: z.ZodString;
442
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
443
- observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
456
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
457
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
444
458
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
445
459
  kind: z.ZodLiteral<"target-moved">;
446
460
  target: z.ZodString;
447
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
448
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
461
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
462
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
463
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
464
+ kind: z.ZodLiteral<"execution-stopped">;
465
+ reason: z.ZodEnum<{
466
+ failed: "failed";
467
+ cancelled: "cancelled";
468
+ }>;
469
+ diagnostic: z.ZodString;
470
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
471
+ kind: z.ZodLiteral<"physical-lag">;
449
472
  }, z.core.$strict>>]>]>>;
450
- previousContentId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ChangeId, string>>>;
451
473
  continuation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
452
- claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>>>;
453
- stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<(z.ZodReadonly<z.ZodObject<{
454
- kind: z.ZodLiteral<"target-moved">;
455
- target: z.ZodString;
456
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
457
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
458
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
459
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
460
- kind: z.ZodEnum<{
461
- "already-terminal": "already-terminal";
462
- "physical-lag": "physical-lag";
463
- }>;
464
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
465
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
466
- kind: z.ZodLiteral<"target-content-identical">;
467
- target: z.ZodString;
468
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
469
- observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
470
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
471
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
472
- kind: z.ZodLiteral<"failed">;
473
- diagnostic: z.ZodString;
474
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
475
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
476
- kind: z.ZodLiteral<"gates-unsatisfied">;
477
- unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
478
- state: z.ZodLiteral<"missing">;
479
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
480
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
481
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
482
- state: z.ZodLiteral<"unsatisfied">;
483
- summary: z.ZodExactOptional<z.ZodString>;
484
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
485
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
486
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
487
- state: z.ZodLiteral<"stale">;
488
- previousContentId: z.ZodExactOptional<z.ZodString>;
489
- currentContentId: z.ZodExactOptional<z.ZodString>;
490
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
491
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
492
- }, z.core.$strict>>]>>>;
493
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
494
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
495
- kind: z.ZodLiteral<"prerequisites-unsatisfied">;
496
- unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
497
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
498
- state: z.ZodEnum<{
499
- active: "active";
500
- abandoned: "abandoned";
474
+ claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>>;
475
+ stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
476
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
477
+ stop: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
478
+ kind: z.ZodLiteral<"delivery-missing">;
479
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
480
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
481
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
482
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
483
+ state: z.ZodEnum<{
484
+ missing: "missing";
485
+ abandoned: "abandoned";
486
+ active: "active";
487
+ }>;
488
+ }, z.core.$strict>>>>;
489
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
490
+ kind: z.ZodLiteral<"gates-unsatisfied">;
491
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
492
+ state: z.ZodLiteral<"missing">;
493
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
494
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
495
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
496
+ state: z.ZodLiteral<"unsatisfied">;
497
+ summary: z.ZodExactOptional<z.ZodString>;
498
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
499
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
500
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
501
+ state: z.ZodLiteral<"stale">;
502
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
503
+ kind: z.ZodLiteral<"snapshot-changed">;
504
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
505
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
506
+ }, z.core.$strict>>>;
507
+ previousContentId: z.ZodExactOptional<z.ZodString>;
508
+ currentContentId: z.ZodExactOptional<z.ZodString>;
509
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
510
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
511
+ }, z.core.$strict>>]>>>;
512
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
513
+ kind: z.ZodEnum<{
514
+ "contract-missing": "contract-missing";
515
+ terminal: "terminal";
516
+ }>;
517
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
518
+ kind: z.ZodEnum<{
519
+ "target-contract-missing": "target-contract-missing";
520
+ "target-contract-terminal": "target-contract-terminal";
521
+ }>;
522
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
523
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
524
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
525
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
526
+ reason: z.ZodEnum<{
527
+ unappointed: "unappointed";
501
528
  missing: "missing";
529
+ association: "association";
530
+ replaced: "replaced";
531
+ attached: "attached";
532
+ uncommitted: "uncommitted";
533
+ operation: "operation";
502
534
  }>;
503
- }, z.core.$strict>>>>;
504
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
505
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
506
- kind: z.ZodEnum<{
507
- "target-missing": "target-missing";
508
- "delivery-missing": "delivery-missing";
509
- }>;
510
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
511
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
512
- kind: z.ZodLiteral<"checkout-not-followable">;
513
- target: z.ZodString;
514
- path: z.ZodString;
515
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
516
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
517
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
518
- kind: z.ZodLiteral<"integration-unsupported">;
519
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
520
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
521
- kind: z.ZodLiteral<"integration-conflict">;
522
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
523
- conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
524
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
525
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
526
- kind: z.ZodEnum<{
527
- "not-based-on-target": "not-based-on-target";
528
- "unrelated-histories": "unrelated-histories";
529
- }>;
530
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
531
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
532
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
533
- kind: z.ZodLiteral<"retry">;
534
- reason: z.ZodLiteral<"publication-failed">;
535
- diagnostic: z.ZodString;
536
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
537
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
538
- kind: z.ZodLiteral<"retry">;
539
- reason: z.ZodEnum<{
540
- exhausted: "exhausted";
541
- collision: "collision";
542
- }>;
543
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
544
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
545
- kind: z.ZodLiteral<"target-workspace-unavailable">;
546
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
547
- reason: z.ZodEnum<{
548
- missing: "missing";
549
- replaced: "replaced";
550
- unappointed: "unappointed";
551
- association: "association";
552
- attached: "attached";
553
- uncommitted: "uncommitted";
554
- operation: "operation";
555
- }>;
556
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
557
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
558
- kind: z.ZodEnum<{
559
- "target-contract-missing": "target-contract-missing";
560
- "target-contract-terminal": "target-contract-terminal";
561
- }>;
562
- targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
563
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
564
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
565
- kind: z.ZodEnum<{
566
- terminal: "terminal";
567
- "contract-missing": "contract-missing";
568
- }>;
569
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
570
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
571
- kind: z.ZodLiteral<"execution-stopped">;
572
- reason: z.ZodEnum<{
573
- failed: "failed";
574
- cancelled: "cancelled";
575
- }>;
576
- diagnostic: z.ZodString;
577
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
578
- }, z.core.$strict>>)[]>>>>;
535
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
536
+ kind: z.ZodLiteral<"target-missing">;
537
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
538
+ kind: z.ZodLiteral<"checkout-not-followable">;
539
+ target: z.ZodString;
540
+ path: z.ZodString;
541
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
542
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
543
+ kind: z.ZodEnum<{
544
+ "not-based-on-target": "not-based-on-target";
545
+ "unrelated-histories": "unrelated-histories";
546
+ }>;
547
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
548
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
549
+ kind: z.ZodLiteral<"integration-conflict">;
550
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
551
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
552
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
553
+ kind: z.ZodLiteral<"integration-unsupported">;
554
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
555
+ kind: z.ZodLiteral<"retry">;
556
+ reason: z.ZodEnum<{
557
+ exhausted: "exhausted";
558
+ collision: "collision";
559
+ }>;
560
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
561
+ kind: z.ZodLiteral<"retry">;
562
+ reason: z.ZodLiteral<"publication-failed">;
563
+ diagnostic: z.ZodString;
564
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
565
+ kind: z.ZodLiteral<"failed">;
566
+ diagnostic: z.ZodString;
567
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
568
+ kind: z.ZodLiteral<"target-content-identical">;
569
+ target: z.ZodString;
570
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
571
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
572
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
573
+ kind: z.ZodLiteral<"target-moved">;
574
+ target: z.ZodString;
575
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
576
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>>;
577
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
578
+ kind: z.ZodLiteral<"execution-stopped">;
579
+ reason: z.ZodEnum<{
580
+ failed: "failed";
581
+ cancelled: "cancelled";
582
+ }>;
583
+ diagnostic: z.ZodString;
584
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
585
+ kind: z.ZodLiteral<"physical-lag">;
586
+ }, z.core.$strict>>]>;
587
+ }, z.core.$strict>>>>>;
579
588
  }, z.core.$strict>>>;
580
589
  }, z.core.$strict>>>;
581
590
  export type DeliveryValue = z.output<typeof deliveredValueSchema>;
582
591
  export type Delivery = DeliveryValue;
583
- /** Protocol custody only; ordinary public delivery results never expose this carrier. */
584
- export type RawDeliveryValue = DeliverData & CompletionEvidence & Readonly<{
585
- leading: DeliverLeading;
586
- previousContentId?: ChangeId;
587
- continuation?: ContinuationReport;
588
- }>;
589
- export declare function compactDelivery(delivery: DeliverData & CompletionEvidence & Partial<Pick<RawDeliveryValue, "leading" | "previousContentId" | "continuation">>): DeliveryValue;