@astrosheep/keiyaku 4.6.31 → 4.6.32

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