@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
@@ -8,7 +8,7 @@ import type { ReconcileResult } from "../git/reconcile.js";
8
8
  import { type RepositoryScope } from "../protocol/operations.js";
9
9
  import { type ProtocolProgress } from "../protocol/progress.js";
10
10
  import { type SettlementReport } from "../settlement/settle.js";
11
- import { InvocationAccumulator } from "./invocation.js";
11
+ import type { InvocationAccumulator } from "./invocation.js";
12
12
  export { reconcileLagScope, reconcileLagIsFailure, reconciliationLagSchema } from "./outcome.js";
13
13
  export type { ReconcileLagScope } from "./outcome.js";
14
14
  declare const reconcileEffectSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
@@ -57,59 +57,97 @@ declare const contractReconcileSchema: z.ZodReadonly<z.ZodObject<{
57
57
  kind: z.ZodLiteral<"debt-settled">;
58
58
  debtId: z.ZodString;
59
59
  }, z.core.$strict>>]>>>>;
60
- issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
61
- kind: z.ZodLiteral<"worktree-retained">;
62
- path: z.ZodString;
63
- diagnostic: z.ZodExactOptional<z.ZodString>;
64
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
65
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
66
- kind: z.ZodLiteral<"unsealed-bytes">;
60
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
61
+ kind: z.ZodLiteral<"worktree-hook-failed">;
62
+ phase: z.ZodEnum<{
63
+ create: "create";
64
+ destroy: "destroy";
65
+ }>;
67
66
  path: z.ZodString;
67
+ name: z.ZodString;
68
+ diagnostic: z.ZodString;
69
+ severity: z.ZodEnum<{
70
+ optional: "optional";
71
+ required: "required";
72
+ }>;
68
73
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
69
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
70
- kind: z.ZodLiteral<"target-checkout-retained">;
71
- path: z.ZodString;
72
- target: z.ZodString;
74
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
75
+ kind: z.ZodLiteral<"reconcile-failed">;
73
76
  diagnostic: z.ZodString;
77
+ severity: z.ZodEnum<{
78
+ optional: "optional";
79
+ required: "required";
80
+ }>;
74
81
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
75
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
82
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
76
83
  kind: z.ZodLiteral<"target-workspace-retained">;
77
84
  targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
78
85
  reason: z.ZodEnum<{
79
- missing: "missing";
80
- replaced: "replaced";
81
86
  unappointed: "unappointed";
87
+ missing: "missing";
82
88
  association: "association";
89
+ replaced: "replaced";
83
90
  attached: "attached";
84
91
  uncommitted: "uncommitted";
85
92
  operation: "operation";
86
93
  }>;
87
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
88
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
89
- kind: z.ZodLiteral<"worktree-hook-failed">;
90
- phase: z.ZodEnum<{
91
- destroy: "destroy";
92
- create: "create";
94
+ severity: z.ZodEnum<{
95
+ optional: "optional";
96
+ required: "required";
93
97
  }>;
98
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
99
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
100
+ kind: z.ZodLiteral<"target-checkout-retained">;
94
101
  path: z.ZodString;
95
- name: z.ZodString;
102
+ target: z.ZodString;
96
103
  diagnostic: z.ZodString;
104
+ severity: z.ZodEnum<{
105
+ optional: "optional";
106
+ required: "required";
107
+ }>;
97
108
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
98
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
99
- kind: z.ZodLiteral<"reconcile-failed">;
100
- diagnostic: z.ZodString;
109
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
110
+ kind: z.ZodLiteral<"unsealed-bytes">;
111
+ path: z.ZodString;
112
+ severity: z.ZodEnum<{
113
+ optional: "optional";
114
+ required: "required";
115
+ }>;
101
116
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
102
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
117
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
118
+ kind: z.ZodLiteral<"worktree-retained">;
119
+ path: z.ZodString;
120
+ diagnostic: z.ZodExactOptional<z.ZodString>;
121
+ severity: z.ZodEnum<{
122
+ optional: "optional";
123
+ required: "required";
124
+ }>;
125
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
126
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
103
127
  kind: z.ZodLiteral<"contract-file-failed">;
104
128
  path: z.ZodString;
105
129
  diagnostic: z.ZodString;
130
+ severity: z.ZodEnum<{
131
+ optional: "optional";
132
+ required: "required";
133
+ }>;
106
134
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
107
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
108
- kind: z.ZodLiteral<"private-state-seat-close">;
135
+ }, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
136
+ kind: z.ZodLiteral<"diagnostic">;
137
+ severity: z.ZodEnum<{
138
+ optional: "optional";
139
+ required: "required";
140
+ }>;
109
141
  diagnostic: z.ZodString;
142
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
143
+ requirement: z.ZodExactOptional<z.ZodString>;
144
+ index: z.ZodExactOptional<z.ZodNumber>;
145
+ name: z.ZodExactOptional<z.ZodString>;
146
+ path: z.ZodExactOptional<z.ZodString>;
110
147
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
111
148
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
112
149
  kind: z.ZodLiteral<"settlement-failed">;
150
+ severity: z.ZodLiteral<"required">;
113
151
  debtId: z.ZodExactOptional<z.ZodString>;
114
152
  diagnostic: z.ZodString;
115
153
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
@@ -139,59 +177,97 @@ export declare const reconcileCompletionSchema: z.ZodUnion<readonly [z.ZodReadon
139
177
  kind: z.ZodLiteral<"debt-settled">;
140
178
  debtId: z.ZodString;
141
179
  }, z.core.$strict>>]>>>>;
142
- issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
143
- kind: z.ZodLiteral<"worktree-retained">;
144
- path: z.ZodString;
145
- diagnostic: z.ZodExactOptional<z.ZodString>;
146
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
147
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
148
- kind: z.ZodLiteral<"unsealed-bytes">;
180
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
181
+ kind: z.ZodLiteral<"worktree-hook-failed">;
182
+ phase: z.ZodEnum<{
183
+ create: "create";
184
+ destroy: "destroy";
185
+ }>;
149
186
  path: z.ZodString;
187
+ name: z.ZodString;
188
+ diagnostic: z.ZodString;
189
+ severity: z.ZodEnum<{
190
+ optional: "optional";
191
+ required: "required";
192
+ }>;
150
193
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
151
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
152
- kind: z.ZodLiteral<"target-checkout-retained">;
153
- path: z.ZodString;
154
- target: z.ZodString;
194
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
195
+ kind: z.ZodLiteral<"reconcile-failed">;
155
196
  diagnostic: z.ZodString;
197
+ severity: z.ZodEnum<{
198
+ optional: "optional";
199
+ required: "required";
200
+ }>;
156
201
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
157
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
202
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
158
203
  kind: z.ZodLiteral<"target-workspace-retained">;
159
204
  targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
160
205
  reason: z.ZodEnum<{
161
- missing: "missing";
162
- replaced: "replaced";
163
206
  unappointed: "unappointed";
207
+ missing: "missing";
164
208
  association: "association";
209
+ replaced: "replaced";
165
210
  attached: "attached";
166
211
  uncommitted: "uncommitted";
167
212
  operation: "operation";
168
213
  }>;
169
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
170
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
171
- kind: z.ZodLiteral<"worktree-hook-failed">;
172
- phase: z.ZodEnum<{
173
- destroy: "destroy";
174
- create: "create";
214
+ severity: z.ZodEnum<{
215
+ optional: "optional";
216
+ required: "required";
175
217
  }>;
218
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
219
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
220
+ kind: z.ZodLiteral<"target-checkout-retained">;
176
221
  path: z.ZodString;
177
- name: z.ZodString;
222
+ target: z.ZodString;
178
223
  diagnostic: z.ZodString;
224
+ severity: z.ZodEnum<{
225
+ optional: "optional";
226
+ required: "required";
227
+ }>;
179
228
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
180
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
181
- kind: z.ZodLiteral<"reconcile-failed">;
182
- diagnostic: z.ZodString;
229
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
230
+ kind: z.ZodLiteral<"unsealed-bytes">;
231
+ path: z.ZodString;
232
+ severity: z.ZodEnum<{
233
+ optional: "optional";
234
+ required: "required";
235
+ }>;
183
236
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
184
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
237
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
238
+ kind: z.ZodLiteral<"worktree-retained">;
239
+ path: z.ZodString;
240
+ diagnostic: z.ZodExactOptional<z.ZodString>;
241
+ severity: z.ZodEnum<{
242
+ optional: "optional";
243
+ required: "required";
244
+ }>;
245
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
246
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
185
247
  kind: z.ZodLiteral<"contract-file-failed">;
186
248
  path: z.ZodString;
187
249
  diagnostic: z.ZodString;
250
+ severity: z.ZodEnum<{
251
+ optional: "optional";
252
+ required: "required";
253
+ }>;
188
254
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
189
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
190
- kind: z.ZodLiteral<"private-state-seat-close">;
255
+ }, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
256
+ kind: z.ZodLiteral<"diagnostic">;
257
+ severity: z.ZodEnum<{
258
+ optional: "optional";
259
+ required: "required";
260
+ }>;
191
261
  diagnostic: z.ZodString;
262
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
263
+ requirement: z.ZodExactOptional<z.ZodString>;
264
+ index: z.ZodExactOptional<z.ZodNumber>;
265
+ name: z.ZodExactOptional<z.ZodString>;
266
+ path: z.ZodExactOptional<z.ZodString>;
192
267
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
193
268
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
194
269
  kind: z.ZodLiteral<"settlement-failed">;
270
+ severity: z.ZodLiteral<"required">;
195
271
  debtId: z.ZodExactOptional<z.ZodString>;
196
272
  diagnostic: z.ZodString;
197
273
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
@@ -227,59 +303,97 @@ export declare const repoReconcileReportSchema: z.ZodUnion<readonly [z.ZodReadon
227
303
  kind: z.ZodLiteral<"debt-settled">;
228
304
  debtId: z.ZodString;
229
305
  }, z.core.$strict>>]>>>>;
230
- issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
231
- kind: z.ZodLiteral<"worktree-retained">;
232
- path: z.ZodString;
233
- diagnostic: z.ZodExactOptional<z.ZodString>;
234
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
235
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
236
- kind: z.ZodLiteral<"unsealed-bytes">;
306
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
307
+ kind: z.ZodLiteral<"worktree-hook-failed">;
308
+ phase: z.ZodEnum<{
309
+ create: "create";
310
+ destroy: "destroy";
311
+ }>;
237
312
  path: z.ZodString;
313
+ name: z.ZodString;
314
+ diagnostic: z.ZodString;
315
+ severity: z.ZodEnum<{
316
+ optional: "optional";
317
+ required: "required";
318
+ }>;
238
319
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
239
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
240
- kind: z.ZodLiteral<"target-checkout-retained">;
241
- path: z.ZodString;
242
- target: z.ZodString;
320
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
321
+ kind: z.ZodLiteral<"reconcile-failed">;
243
322
  diagnostic: z.ZodString;
323
+ severity: z.ZodEnum<{
324
+ optional: "optional";
325
+ required: "required";
326
+ }>;
244
327
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
245
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
328
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
246
329
  kind: z.ZodLiteral<"target-workspace-retained">;
247
330
  targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
248
331
  reason: z.ZodEnum<{
249
- missing: "missing";
250
- replaced: "replaced";
251
332
  unappointed: "unappointed";
333
+ missing: "missing";
252
334
  association: "association";
335
+ replaced: "replaced";
253
336
  attached: "attached";
254
337
  uncommitted: "uncommitted";
255
338
  operation: "operation";
256
339
  }>;
257
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
258
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
259
- kind: z.ZodLiteral<"worktree-hook-failed">;
260
- phase: z.ZodEnum<{
261
- destroy: "destroy";
262
- create: "create";
340
+ severity: z.ZodEnum<{
341
+ optional: "optional";
342
+ required: "required";
263
343
  }>;
344
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
345
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
346
+ kind: z.ZodLiteral<"target-checkout-retained">;
264
347
  path: z.ZodString;
265
- name: z.ZodString;
348
+ target: z.ZodString;
266
349
  diagnostic: z.ZodString;
350
+ severity: z.ZodEnum<{
351
+ optional: "optional";
352
+ required: "required";
353
+ }>;
267
354
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
268
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
269
- kind: z.ZodLiteral<"reconcile-failed">;
270
- diagnostic: z.ZodString;
355
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
356
+ kind: z.ZodLiteral<"unsealed-bytes">;
357
+ path: z.ZodString;
358
+ severity: z.ZodEnum<{
359
+ optional: "optional";
360
+ required: "required";
361
+ }>;
271
362
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
272
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
363
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
364
+ kind: z.ZodLiteral<"worktree-retained">;
365
+ path: z.ZodString;
366
+ diagnostic: z.ZodExactOptional<z.ZodString>;
367
+ severity: z.ZodEnum<{
368
+ optional: "optional";
369
+ required: "required";
370
+ }>;
371
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
372
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
273
373
  kind: z.ZodLiteral<"contract-file-failed">;
274
374
  path: z.ZodString;
275
375
  diagnostic: z.ZodString;
376
+ severity: z.ZodEnum<{
377
+ optional: "optional";
378
+ required: "required";
379
+ }>;
276
380
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
277
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
278
- kind: z.ZodLiteral<"private-state-seat-close">;
381
+ }, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
382
+ kind: z.ZodLiteral<"diagnostic">;
383
+ severity: z.ZodEnum<{
384
+ optional: "optional";
385
+ required: "required";
386
+ }>;
279
387
  diagnostic: z.ZodString;
388
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
389
+ requirement: z.ZodExactOptional<z.ZodString>;
390
+ index: z.ZodExactOptional<z.ZodNumber>;
391
+ name: z.ZodExactOptional<z.ZodString>;
392
+ path: z.ZodExactOptional<z.ZodString>;
280
393
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
281
394
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
282
395
  kind: z.ZodLiteral<"settlement-failed">;
396
+ severity: z.ZodLiteral<"required">;
283
397
  debtId: z.ZodExactOptional<z.ZodString>;
284
398
  diagnostic: z.ZodString;
285
399
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
@@ -313,59 +427,97 @@ export declare const reconcileResultSchema: z.ZodUnion<readonly [z.ZodUnion<read
313
427
  kind: z.ZodLiteral<"debt-settled">;
314
428
  debtId: z.ZodString;
315
429
  }, z.core.$strict>>]>>>>;
316
- issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
317
- kind: z.ZodLiteral<"worktree-retained">;
318
- path: z.ZodString;
319
- diagnostic: z.ZodExactOptional<z.ZodString>;
320
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
321
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
322
- kind: z.ZodLiteral<"unsealed-bytes">;
430
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
431
+ kind: z.ZodLiteral<"worktree-hook-failed">;
432
+ phase: z.ZodEnum<{
433
+ create: "create";
434
+ destroy: "destroy";
435
+ }>;
323
436
  path: z.ZodString;
437
+ name: z.ZodString;
438
+ diagnostic: z.ZodString;
439
+ severity: z.ZodEnum<{
440
+ optional: "optional";
441
+ required: "required";
442
+ }>;
324
443
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
325
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
326
- kind: z.ZodLiteral<"target-checkout-retained">;
327
- path: z.ZodString;
328
- target: z.ZodString;
444
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
445
+ kind: z.ZodLiteral<"reconcile-failed">;
329
446
  diagnostic: z.ZodString;
447
+ severity: z.ZodEnum<{
448
+ optional: "optional";
449
+ required: "required";
450
+ }>;
330
451
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
331
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
452
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
332
453
  kind: z.ZodLiteral<"target-workspace-retained">;
333
454
  targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
334
455
  reason: z.ZodEnum<{
335
- missing: "missing";
336
- replaced: "replaced";
337
456
  unappointed: "unappointed";
457
+ missing: "missing";
338
458
  association: "association";
459
+ replaced: "replaced";
339
460
  attached: "attached";
340
461
  uncommitted: "uncommitted";
341
462
  operation: "operation";
342
463
  }>;
343
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
344
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
345
- kind: z.ZodLiteral<"worktree-hook-failed">;
346
- phase: z.ZodEnum<{
347
- destroy: "destroy";
348
- create: "create";
464
+ severity: z.ZodEnum<{
465
+ optional: "optional";
466
+ required: "required";
349
467
  }>;
468
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
469
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
470
+ kind: z.ZodLiteral<"target-checkout-retained">;
350
471
  path: z.ZodString;
351
- name: z.ZodString;
472
+ target: z.ZodString;
352
473
  diagnostic: z.ZodString;
474
+ severity: z.ZodEnum<{
475
+ optional: "optional";
476
+ required: "required";
477
+ }>;
353
478
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
354
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
355
- kind: z.ZodLiteral<"reconcile-failed">;
356
- diagnostic: z.ZodString;
479
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
480
+ kind: z.ZodLiteral<"unsealed-bytes">;
481
+ path: z.ZodString;
482
+ severity: z.ZodEnum<{
483
+ optional: "optional";
484
+ required: "required";
485
+ }>;
357
486
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
358
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
487
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
488
+ kind: z.ZodLiteral<"worktree-retained">;
489
+ path: z.ZodString;
490
+ diagnostic: z.ZodExactOptional<z.ZodString>;
491
+ severity: z.ZodEnum<{
492
+ optional: "optional";
493
+ required: "required";
494
+ }>;
495
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
496
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
359
497
  kind: z.ZodLiteral<"contract-file-failed">;
360
498
  path: z.ZodString;
361
499
  diagnostic: z.ZodString;
500
+ severity: z.ZodEnum<{
501
+ optional: "optional";
502
+ required: "required";
503
+ }>;
362
504
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
363
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
364
- kind: z.ZodLiteral<"private-state-seat-close">;
505
+ }, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
506
+ kind: z.ZodLiteral<"diagnostic">;
507
+ severity: z.ZodEnum<{
508
+ optional: "optional";
509
+ required: "required";
510
+ }>;
365
511
  diagnostic: z.ZodString;
512
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
513
+ requirement: z.ZodExactOptional<z.ZodString>;
514
+ index: z.ZodExactOptional<z.ZodNumber>;
515
+ name: z.ZodExactOptional<z.ZodString>;
516
+ path: z.ZodExactOptional<z.ZodString>;
366
517
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
367
518
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
368
519
  kind: z.ZodLiteral<"settlement-failed">;
520
+ severity: z.ZodLiteral<"required">;
369
521
  debtId: z.ZodExactOptional<z.ZodString>;
370
522
  diagnostic: z.ZodString;
371
523
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
@@ -400,59 +552,97 @@ export declare const reconcileResultSchema: z.ZodUnion<readonly [z.ZodUnion<read
400
552
  kind: z.ZodLiteral<"debt-settled">;
401
553
  debtId: z.ZodString;
402
554
  }, z.core.$strict>>]>>>>;
403
- issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
404
- kind: z.ZodLiteral<"worktree-retained">;
405
- path: z.ZodString;
406
- diagnostic: z.ZodExactOptional<z.ZodString>;
407
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
408
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
409
- kind: z.ZodLiteral<"unsealed-bytes">;
555
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
556
+ kind: z.ZodLiteral<"worktree-hook-failed">;
557
+ phase: z.ZodEnum<{
558
+ create: "create";
559
+ destroy: "destroy";
560
+ }>;
410
561
  path: z.ZodString;
562
+ name: z.ZodString;
563
+ diagnostic: z.ZodString;
564
+ severity: z.ZodEnum<{
565
+ optional: "optional";
566
+ required: "required";
567
+ }>;
411
568
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
412
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
413
- kind: z.ZodLiteral<"target-checkout-retained">;
414
- path: z.ZodString;
415
- target: z.ZodString;
569
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
570
+ kind: z.ZodLiteral<"reconcile-failed">;
416
571
  diagnostic: z.ZodString;
572
+ severity: z.ZodEnum<{
573
+ optional: "optional";
574
+ required: "required";
575
+ }>;
417
576
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
418
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
577
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
419
578
  kind: z.ZodLiteral<"target-workspace-retained">;
420
579
  targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
421
580
  reason: z.ZodEnum<{
422
- missing: "missing";
423
- replaced: "replaced";
424
581
  unappointed: "unappointed";
582
+ missing: "missing";
425
583
  association: "association";
584
+ replaced: "replaced";
426
585
  attached: "attached";
427
586
  uncommitted: "uncommitted";
428
587
  operation: "operation";
429
588
  }>;
430
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
431
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
432
- kind: z.ZodLiteral<"worktree-hook-failed">;
433
- phase: z.ZodEnum<{
434
- destroy: "destroy";
435
- create: "create";
589
+ severity: z.ZodEnum<{
590
+ optional: "optional";
591
+ required: "required";
436
592
  }>;
593
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
594
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
595
+ kind: z.ZodLiteral<"target-checkout-retained">;
437
596
  path: z.ZodString;
438
- name: z.ZodString;
597
+ target: z.ZodString;
439
598
  diagnostic: z.ZodString;
599
+ severity: z.ZodEnum<{
600
+ optional: "optional";
601
+ required: "required";
602
+ }>;
440
603
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
441
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
442
- kind: z.ZodLiteral<"reconcile-failed">;
443
- diagnostic: z.ZodString;
604
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
605
+ kind: z.ZodLiteral<"unsealed-bytes">;
606
+ path: z.ZodString;
607
+ severity: z.ZodEnum<{
608
+ optional: "optional";
609
+ required: "required";
610
+ }>;
444
611
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
445
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
612
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
613
+ kind: z.ZodLiteral<"worktree-retained">;
614
+ path: z.ZodString;
615
+ diagnostic: z.ZodExactOptional<z.ZodString>;
616
+ severity: z.ZodEnum<{
617
+ optional: "optional";
618
+ required: "required";
619
+ }>;
620
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
621
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
446
622
  kind: z.ZodLiteral<"contract-file-failed">;
447
623
  path: z.ZodString;
448
624
  diagnostic: z.ZodString;
625
+ severity: z.ZodEnum<{
626
+ optional: "optional";
627
+ required: "required";
628
+ }>;
449
629
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
450
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
451
- kind: z.ZodLiteral<"private-state-seat-close">;
630
+ }, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
631
+ kind: z.ZodLiteral<"diagnostic">;
632
+ severity: z.ZodEnum<{
633
+ optional: "optional";
634
+ required: "required";
635
+ }>;
452
636
  diagnostic: z.ZodString;
637
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
638
+ requirement: z.ZodExactOptional<z.ZodString>;
639
+ index: z.ZodExactOptional<z.ZodNumber>;
640
+ name: z.ZodExactOptional<z.ZodString>;
641
+ path: z.ZodExactOptional<z.ZodString>;
453
642
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
454
643
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
455
644
  kind: z.ZodLiteral<"settlement-failed">;
645
+ severity: z.ZodLiteral<"required">;
456
646
  debtId: z.ZodExactOptional<z.ZodString>;
457
647
  diagnostic: z.ZodString;
458
648
  contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
@@ -463,10 +653,8 @@ export declare const reconcileResultSchema: z.ZodUnion<readonly [z.ZodUnion<read
463
653
  diagnostic: z.ZodString;
464
654
  }, z.core.$strict>>]>]>;
465
655
  export type MeaningfulEffect = z.output<typeof reconcileEffectSchema>;
466
- export type TopologyEffect = MeaningfulEffect;
467
656
  export type ReconcileCompletion = z.output<typeof reconcileCompletionSchema>;
468
657
  export type RepoContractReconcileReport = z.output<typeof contractReconcileSchema>;
469
- export type ReconcileReport = RepoContractReconcileReport;
470
658
  export type RepoReconcileReport = z.output<typeof repoReconcileReportSchema>;
471
659
  type ReconcileProgress = ProtocolProgress & Readonly<{
472
660
  recordSettlement(contractId: ContractId, report: SettlementReport): void;
@@ -480,7 +668,7 @@ type ReconcileOptions = Readonly<{
480
668
  channel: GitDecodeChannel;
481
669
  hooks: WorktreeHooks;
482
670
  retryHooks: boolean;
483
- progress?: ReconcileProgress;
671
+ progress: ReconcileProgress;
484
672
  }>;
485
673
  /**
486
674
  * The one post-admission reconciliation walk: every affected Contract is observed afresh, and an
@@ -489,10 +677,10 @@ type ReconcileOptions = Readonly<{
489
677
  export declare function reconcileAffectedContracts(accumulator: InvocationAccumulator, contractId: ContractId, scope: RepositoryScope, channel: GitDecodeChannel, hooks: WorktreeHooks): Promise<void>;
490
678
  export declare function observedReconcileContracts(accumulator: InvocationAccumulator): readonly RepoContractReconcileReport[];
491
679
  export declare function reconcileException(error: unknown, accumulator: InvocationAccumulator, contractId?: ContractId): never;
492
- export declare function completeReconcile(input: ReconcileOptions & Readonly<{
680
+ export declare function completeReconcile(input: Omit<ReconcileOptions, "progress"> & Readonly<{
493
681
  contractId: ContractId;
494
- accumulator?: InvocationAccumulator;
682
+ accumulator: InvocationAccumulator;
495
683
  }>): Promise<ReconcileCompletion>;
496
- export declare function completeRepoReconcile(input: ReconcileOptions & Readonly<{
497
- accumulator?: InvocationAccumulator;
684
+ export declare function completeRepoReconcile(input: Omit<ReconcileOptions, "progress"> & Readonly<{
685
+ accumulator: InvocationAccumulator;
498
686
  }>): Promise<RepoReconcileReport>;