@astrosheep/keiyaku 4.6.30 → 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 (464) hide show
  1. package/README.md +39 -22
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku/SKILL.md +12 -12
  4. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +27 -22
  5. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +14 -14
  6. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +15 -13
  7. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +18 -17
  8. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +30 -30
  9. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +24 -23
  10. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  11. package/build/plugins/codex/skills/keiyaku/SKILL.md +12 -12
  12. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +27 -22
  13. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +14 -14
  14. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +15 -13
  15. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +18 -17
  16. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +30 -30
  17. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +24 -23
  18. package/build/plugins/opencode/package.json +1 -1
  19. package/build/plugins/opencode/skills/keiyaku/SKILL.md +12 -12
  20. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +27 -22
  21. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +14 -14
  22. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +15 -13
  23. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +18 -17
  24. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +30 -30
  25. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +24 -23
  26. package/build/plugins/pi/README.md +20 -22
  27. package/build/plugins/pi/akuma-tools.ts +43 -56
  28. package/build/plugins/pi/keiyaku.ts +15 -4
  29. package/build/skills/keiyaku/SKILL.md +12 -12
  30. package/build/skills/keiyaku-akuma/SKILL.md +27 -22
  31. package/build/skills/keiyaku-akuma/references/automation.md +14 -14
  32. package/build/skills/keiyaku-babysit/SKILL.md +15 -13
  33. package/build/skills/keiyaku-bind/SKILL.md +18 -17
  34. package/build/skills/keiyaku-debt/SKILL.md +30 -30
  35. package/build/skills/keiyaku-workflow/SKILL.md +24 -23
  36. package/build/src/akuma/akuma-call.d.ts +4 -6
  37. package/build/src/akuma/akuma-call.js +12 -15
  38. package/build/src/akuma/akuma-errors.d.ts +12 -9
  39. package/build/src/akuma/akuma-errors.js +16 -12
  40. package/build/src/akuma/akuma-instance.d.ts +102 -23
  41. package/build/src/akuma/akuma-instance.js +66 -66
  42. package/build/src/akuma/akuma-observe.d.ts +15 -15
  43. package/build/src/akuma/akuma-observe.js +34 -32
  44. package/build/src/akuma/akuma-owner.d.ts +46 -17
  45. package/build/src/akuma/akuma-owner.js +68 -43
  46. package/build/src/akuma/akuma-probe.d.ts +3 -3
  47. package/build/src/akuma/akuma-probe.js +2 -2
  48. package/build/src/akuma/akuma-selection-execution.d.ts +992 -5
  49. package/build/src/akuma/akuma-selection-execution.js +96 -125
  50. package/build/src/akuma/akuma-stream.d.ts +2 -2
  51. package/build/src/akuma/akuma-stream.js +1 -1
  52. package/build/src/akuma/akuma-wait.d.ts +7 -7
  53. package/build/src/akuma/akuma-wait.js +52 -14
  54. package/build/src/akuma/akuma.d.ts +88 -451
  55. package/build/src/akuma/akuma.js +58 -56
  56. package/build/src/akuma/archetype.d.ts +31 -21
  57. package/build/src/akuma/archetype.js +67 -52
  58. package/build/src/akuma/body-launch.d.ts +2 -2
  59. package/build/src/akuma/body.js +35 -30
  60. package/build/src/akuma/call-initial-tell.d.ts +63 -44
  61. package/build/src/akuma/call-initial-tell.js +50 -3
  62. package/build/src/akuma/call-input.d.ts +8 -1
  63. package/build/src/akuma/call-input.js +27 -18
  64. package/build/src/akuma/caller.d.ts +26 -17
  65. package/build/src/akuma/caller.js +24 -10
  66. package/build/src/akuma/coordinate.d.ts +9 -0
  67. package/build/src/akuma/coordinate.js +13 -0
  68. package/build/src/akuma/detached-body.js +3 -3
  69. package/build/src/akuma/dispatch-association.d.ts +4 -4
  70. package/build/src/akuma/dispatch-association.js +12 -3
  71. package/build/src/akuma/execution-instructions.js +2 -2
  72. package/build/src/akuma/heart/facts.d.ts +32 -9
  73. package/build/src/akuma/heart/facts.js +18 -5
  74. package/build/src/akuma/heart/index.d.ts +0 -3
  75. package/build/src/akuma/heart/index.js +3 -6
  76. package/build/src/akuma/heart/rows.js +2 -2
  77. package/build/src/akuma/heart/soul.js +25 -9
  78. package/build/src/akuma/identity.d.ts +18 -17
  79. package/build/src/akuma/identity.js +29 -23
  80. package/build/src/akuma/index.d.ts +7 -9
  81. package/build/src/akuma/index.js +2 -3
  82. package/build/src/akuma/lineage-cache.d.ts +4 -4
  83. package/build/src/akuma/lineage-cache.js +10 -10
  84. package/build/src/akuma/projection-read.d.ts +2 -5
  85. package/build/src/akuma/projection-read.js +34 -47
  86. package/build/src/akuma/projection.d.ts +662 -569
  87. package/build/src/akuma/projection.js +203 -94
  88. package/build/src/akuma/provider-recipe.js +3 -2
  89. package/build/src/akuma/providers/acp/config.js +11 -10
  90. package/build/src/akuma/providers/acp/index.js +3 -2
  91. package/build/src/akuma/providers/codex-app-server/index.js +7 -1
  92. package/build/src/akuma/providers/execution-environment.d.ts +1 -3
  93. package/build/src/akuma/providers/execution-environment.js +0 -4
  94. package/build/src/akuma/providers/grok-build/index.js +2 -1
  95. package/build/src/akuma/providers/index.d.ts +0 -1
  96. package/build/src/akuma/providers/index.js +0 -8
  97. package/build/src/akuma/providers/paseo/index.js +7 -4
  98. package/build/src/akuma/providers/pi/index.js +4 -3
  99. package/build/src/akuma/publication.d.ts +3 -4
  100. package/build/src/akuma/publication.js +19 -17
  101. package/build/src/akuma/retention.js +2 -2
  102. package/build/src/akuma/schema.d.ts +3 -49
  103. package/build/src/akuma/schema.js +6 -147
  104. package/build/src/akuma/selection-observation.d.ts +559 -54
  105. package/build/src/akuma/selection-observation.js +207 -1
  106. package/build/src/akuma/status-projection.d.ts +52 -0
  107. package/build/src/akuma/status-projection.js +194 -0
  108. package/build/src/akuma/turn-drive.js +0 -3
  109. package/build/src/alias/index.d.ts +9 -4
  110. package/build/src/alias/index.js +11 -9
  111. package/build/src/body/amend.js +2 -1
  112. package/build/src/body/arc.js +3 -2
  113. package/build/src/body/criteria.js +4 -3
  114. package/build/src/body/decode.js +2 -1
  115. package/build/src/body/envelope.js +2 -1
  116. package/build/src/body/region.d.ts +1 -3
  117. package/build/src/body/region.js +3 -8
  118. package/build/src/body-host.d.ts +4 -11
  119. package/build/src/body-host.js +5 -4
  120. package/build/src/bounded-list.d.ts +8 -0
  121. package/build/src/bounded-list.js +11 -1
  122. package/build/src/cli/commands/akuma-grammar.d.ts +109 -66
  123. package/build/src/cli/commands/akuma-grammar.js +90 -110
  124. package/build/src/cli/commands/akuma.d.ts +8 -4
  125. package/build/src/cli/commands/akuma.js +92 -287
  126. package/build/src/cli/commands/contract-grammar.d.ts +3 -134
  127. package/build/src/cli/commands/contract-grammar.js +127 -203
  128. package/build/src/cli/commands/contract-help.d.ts +26 -21
  129. package/build/src/cli/commands/contract-help.js +45 -36
  130. package/build/src/cli/commands/contract.d.ts +6 -15
  131. package/build/src/cli/commands/contract.js +80 -518
  132. package/build/src/cli/commands/debt-grammar.d.ts +2 -4
  133. package/build/src/cli/commands/debt-grammar.js +22 -190
  134. package/build/src/cli/commands/debt.d.ts +2 -3
  135. package/build/src/cli/commands/debt.js +41 -334
  136. package/build/src/cli/commands/report.d.ts +2 -4
  137. package/build/src/cli/commands/report.js +11 -28
  138. package/build/src/cli/commands/whoami.d.ts +3 -43
  139. package/build/src/cli/commands/whoami.js +8 -121
  140. package/build/src/cli/coordinates.d.ts +3 -34
  141. package/build/src/cli/coordinates.js +13 -129
  142. package/build/src/cli/main.js +9 -3
  143. package/build/src/cli/parse.d.ts +78 -7
  144. package/build/src/cli/parse.js +49 -32
  145. package/build/src/cli/render/akuma-activity.d.ts +41 -31
  146. package/build/src/cli/render/akuma-activity.js +262 -349
  147. package/build/src/cli/render/akuma.d.ts +26 -27
  148. package/build/src/cli/render/akuma.js +99 -135
  149. package/build/src/cli/render/catalog.d.ts +3 -9
  150. package/build/src/cli/render/catalog.js +27 -105
  151. package/build/src/cli/render/contract-history.d.ts +3 -1
  152. package/build/src/cli/render/contract-history.js +139 -215
  153. package/build/src/cli/render/contract-observation.d.ts +36 -30
  154. package/build/src/cli/render/contract-observation.js +64 -34
  155. package/build/src/cli/render/contract-wait.js +6 -6
  156. package/build/src/cli/render/contract.d.ts +39 -6
  157. package/build/src/cli/render/contract.js +249 -374
  158. package/build/src/cli/render/debt.d.ts +7 -25
  159. package/build/src/cli/render/debt.js +74 -210
  160. package/build/src/cli/render/delivery-preview.d.ts +4 -3
  161. package/build/src/cli/render/delivery-preview.js +68 -96
  162. package/build/src/cli/render/kanshi-akuma.d.ts +8 -6
  163. package/build/src/cli/render/kanshi-akuma.js +77 -62
  164. package/build/src/cli/render/kanshi.d.ts +2 -4
  165. package/build/src/cli/render/kanshi.js +184 -223
  166. package/build/src/cli/render/marks.d.ts +11 -2
  167. package/build/src/cli/render/marks.js +13 -3
  168. package/build/src/cli/render/nuke.d.ts +3 -3
  169. package/build/src/cli/render/nuke.js +13 -16
  170. package/build/src/cli/render/receipt.d.ts +46 -43
  171. package/build/src/cli/render/receipt.js +318 -236
  172. package/build/src/cli/render/reconcile.d.ts +6 -4
  173. package/build/src/cli/render/reconcile.js +53 -137
  174. package/build/src/cli/render/refusal.d.ts +6 -4
  175. package/build/src/cli/render/refusal.js +82 -65
  176. package/build/src/cli/render/region.d.ts +11 -2
  177. package/build/src/cli/render/region.js +17 -23
  178. package/build/src/cli/render/settings.d.ts +1 -2
  179. package/build/src/cli/render/settings.js +8 -17
  180. package/build/src/cli/render/terminal.d.ts +11 -8
  181. package/build/src/cli/render/terminal.js +48 -32
  182. package/build/src/cli/render/verbs.d.ts +6 -0
  183. package/build/src/cli/render/verbs.js +270 -0
  184. package/build/src/cli/render/whoami.d.ts +1 -1
  185. package/build/src/cli/render/whoami.js +24 -31
  186. package/build/src/cli/runtime.d.ts +3 -11
  187. package/build/src/cli/runtime.js +119 -101
  188. package/build/src/cli/scan.d.ts +1 -1
  189. package/build/src/cli/streams.d.ts +2 -9
  190. package/build/src/cli/streams.js +9 -1
  191. package/build/src/cli/usage.d.ts +2 -1
  192. package/build/src/cli/usage.js +3 -2
  193. package/build/src/contract-guidance.js +2 -2
  194. package/build/src/contract-worktree.d.ts +2 -15
  195. package/build/src/contract-worktree.js +20 -44
  196. package/build/src/core/facts/codec.js +9 -23
  197. package/build/src/core/facts/errors.d.ts +2 -1
  198. package/build/src/core/facts/errors.js +3 -3
  199. package/build/src/core/facts/observation.d.ts +4 -5
  200. package/build/src/core/facts/observation.js +7 -9
  201. package/build/src/core/facts/types.d.ts +2 -13
  202. package/build/src/core/facts/types.js +1 -6
  203. package/build/src/core/verbs/abandon.d.ts +1 -2
  204. package/build/src/core/verbs/amend.d.ts +1 -3
  205. package/build/src/core/verbs/amend.js +3 -3
  206. package/build/src/core/verbs/arc.d.ts +1 -2
  207. package/build/src/core/verbs/attestation.d.ts +1 -2
  208. package/build/src/core/verbs/bind.d.ts +1 -3
  209. package/build/src/core/verbs/bind.js +5 -5
  210. package/build/src/core/verbs/deliver.d.ts +4 -4
  211. package/build/src/core/verbs/deliver.js +2 -2
  212. package/build/src/core/verbs/placement.d.ts +1 -7
  213. package/build/src/core/verbs/placement.js +4 -6
  214. package/build/src/core/verbs/reintegrate.d.ts +1 -3
  215. package/build/src/core/verbs/reintegrate.js +2 -2
  216. package/build/src/debt/board.d.ts +70 -134
  217. package/build/src/debt/board.js +99 -190
  218. package/build/src/debt/catalog.d.ts +4 -6
  219. package/build/src/debt/catalog.js +3 -40
  220. package/build/src/debt/document.d.ts +23 -21
  221. package/build/src/debt/document.js +32 -58
  222. package/build/src/debt/identity.d.ts +2 -14
  223. package/build/src/debt/identity.js +19 -49
  224. package/build/src/debt/index.d.ts +239 -54
  225. package/build/src/debt/index.js +85 -88
  226. package/build/src/debt/input.d.ts +21 -6
  227. package/build/src/debt/input.js +57 -169
  228. package/build/src/debt/lifecycle-operations.d.ts +1 -3
  229. package/build/src/debt/lifecycle-operations.js +6 -86
  230. package/build/src/debt/operation-types.d.ts +97 -79
  231. package/build/src/debt/operation-types.js +57 -1
  232. package/build/src/debt/operations.d.ts +11 -19
  233. package/build/src/debt/operations.js +70 -191
  234. package/build/src/debt/store.d.ts +4 -4
  235. package/build/src/debt/store.js +40 -95
  236. package/build/src/debt/view.d.ts +0 -3
  237. package/build/src/debt/view.js +0 -4
  238. package/build/src/dispatch/index.d.ts +22 -5
  239. package/build/src/dispatch/index.js +46 -37
  240. package/build/src/errors.d.ts +28 -0
  241. package/build/src/errors.js +26 -0
  242. package/build/src/git/admission.d.ts +2 -2
  243. package/build/src/git/admission.js +2 -1
  244. package/build/src/git/hooks.d.ts +15 -36
  245. package/build/src/git/hooks.js +45 -25
  246. package/build/src/git/integration.d.ts +6 -24
  247. package/build/src/git/integration.js +10 -16
  248. package/build/src/git/observe.d.ts +3 -0
  249. package/build/src/git/observe.js +19 -5
  250. package/build/src/git/private-state-seat.d.ts +2 -2
  251. package/build/src/git/private-state-seat.js +2 -1
  252. package/build/src/git/reconcile.d.ts +20 -95
  253. package/build/src/git/reconcile.js +37 -70
  254. package/build/src/git/repository.d.ts +2 -1
  255. package/build/src/git/repository.js +3 -3
  256. package/build/src/git/scratch.d.ts +3 -3
  257. package/build/src/git/scratch.js +4 -1
  258. package/build/src/git/target-placement.d.ts +27 -35
  259. package/build/src/git/target-placement.js +42 -27
  260. package/build/src/git/target.d.ts +4 -4
  261. package/build/src/git/target.js +2 -1
  262. package/build/src/git/tender.d.ts +8 -41
  263. package/build/src/git/tender.js +26 -66
  264. package/build/src/git/terminal-reconcile.js +15 -18
  265. package/build/src/git/terminal-seal.d.ts +2 -4
  266. package/build/src/git/terminal-seal.js +7 -33
  267. package/build/src/git/workspace.d.ts +65 -41
  268. package/build/src/git/workspace.js +45 -14
  269. package/build/src/identity/coordinates.d.ts +1 -1
  270. package/build/src/identity/coordinates.js +3 -2
  271. package/build/src/identity/normalize.js +2 -1
  272. package/build/src/identity/selector.d.ts +2 -0
  273. package/build/src/identity/selector.js +17 -6
  274. package/build/src/index.d.ts +37 -66
  275. package/build/src/index.js +10 -47
  276. package/build/src/kanshi/counts.d.ts +44 -15
  277. package/build/src/kanshi/counts.js +18 -15
  278. package/build/src/kanshi/index.d.ts +22 -7
  279. package/build/src/kanshi/index.js +30 -3
  280. package/build/src/kanshi/read.d.ts +309 -15
  281. package/build/src/kanshi/read.js +226 -535
  282. package/build/src/kanshi/report.d.ts +1225 -103
  283. package/build/src/kanshi/report.js +153 -1
  284. package/build/src/kanshi/select.d.ts +0 -8
  285. package/build/src/kanshi/select.js +20 -59
  286. package/build/src/library/address.d.ts +17 -17
  287. package/build/src/library/address.js +41 -34
  288. package/build/src/library/akuma-creation.d.ts +828 -91
  289. package/build/src/library/akuma-creation.js +292 -273
  290. package/build/src/library/akuma-retention.d.ts +2 -2
  291. package/build/src/library/akuma-retention.js +2 -2
  292. package/build/src/library/akumas.d.ts +33 -10
  293. package/build/src/library/akumas.js +109 -25
  294. package/build/src/library/bind.d.ts +32 -61
  295. package/build/src/library/bind.js +8 -12
  296. package/build/src/library/continuation.d.ts +133 -505
  297. package/build/src/library/continuation.js +37 -29
  298. package/build/src/library/contract-address.d.ts +8 -10
  299. package/build/src/library/contract-address.js +16 -23
  300. package/build/src/library/contract-composition.d.ts +18 -13
  301. package/build/src/library/contract-composition.js +62 -61
  302. package/build/src/library/contract-creation.d.ts +3 -2
  303. package/build/src/library/contract-creation.js +54 -49
  304. package/build/src/library/contract-outcomes.d.ts +2365 -43
  305. package/build/src/library/contract-outcomes.js +73 -16
  306. package/build/src/library/contract-settings.d.ts +3 -4
  307. package/build/src/library/contract-settings.js +21 -19
  308. package/build/src/library/contract-types.d.ts +227 -75
  309. package/build/src/library/contract-types.js +90 -1
  310. package/build/src/library/contract-wait.d.ts +75 -17
  311. package/build/src/library/contract-wait.js +61 -24
  312. package/build/src/library/delivery.d.ts +566 -37
  313. package/build/src/library/delivery.js +16 -28
  314. package/build/src/library/input.d.ts +31 -5
  315. package/build/src/library/input.js +40 -41
  316. package/build/src/library/invocation.d.ts +18 -12
  317. package/build/src/library/invocation.js +98 -96
  318. package/build/src/library/kei.d.ts +56 -0
  319. package/build/src/library/kei.js +696 -0
  320. package/build/src/{cli/delivery-identity.js → library/keiyaku-attribution.js} +1 -1
  321. package/build/src/library/keiyaku-classify.d.ts +11 -0
  322. package/build/src/library/keiyaku-classify.js +127 -0
  323. package/build/src/library/keiyaku-coordinates.d.ts +26 -0
  324. package/build/src/library/keiyaku-coordinates.js +83 -0
  325. package/build/src/library/keiyaku-debt.d.ts +70 -0
  326. package/build/src/library/keiyaku-debt.js +39 -0
  327. package/build/src/library/keiyaku-identity.d.ts +58 -0
  328. package/build/src/library/keiyaku-identity.js +177 -0
  329. package/build/src/library/keiyaku-verbs.d.ts +6893 -0
  330. package/build/src/library/keiyaku-verbs.js +496 -0
  331. package/build/src/library/keiyaku.d.ts +41 -38
  332. package/build/src/library/keiyaku.js +590 -127
  333. package/build/src/library/nuke.d.ts +25 -1
  334. package/build/src/library/nuke.js +9 -2
  335. package/build/src/library/outcome.d.ts +867 -736
  336. package/build/src/library/outcome.js +431 -211
  337. package/build/src/library/reconcile.d.ts +652 -116
  338. package/build/src/library/reconcile.js +146 -108
  339. package/build/src/library/refusal.d.ts +118 -590
  340. package/build/src/library/refusal.js +54 -51
  341. package/build/src/library/region.d.ts +5 -24
  342. package/build/src/library/region.js +6 -21
  343. package/build/src/library/repo.js +4 -3
  344. package/build/src/library/selection.d.ts +205 -45
  345. package/build/src/library/selection.js +139 -128
  346. package/build/src/mcp/adapter.d.ts +17 -0
  347. package/build/src/mcp/adapter.js +241 -0
  348. package/build/src/mcp/help.d.ts +1 -0
  349. package/build/src/mcp/help.js +31 -0
  350. package/build/src/mcp/index.d.ts +2 -0
  351. package/build/src/mcp/index.js +37 -0
  352. package/build/src/mcp/output.d.ts +385 -0
  353. package/build/src/mcp/output.js +193 -0
  354. package/build/src/plugin/public.d.ts +5 -1
  355. package/build/src/plugin/runtime.d.ts +1 -1
  356. package/build/src/plugin/runtime.js +19 -16
  357. package/build/src/protocol/amend.d.ts +1 -1
  358. package/build/src/protocol/amend.js +2 -2
  359. package/build/src/protocol/arc.d.ts +4 -1
  360. package/build/src/protocol/arc.js +7 -1
  361. package/build/src/protocol/attempt.d.ts +2 -3
  362. package/build/src/protocol/attempt.js +1 -10
  363. package/build/src/protocol/bind.d.ts +10 -13
  364. package/build/src/protocol/bind.js +12 -8
  365. package/build/src/protocol/completion.d.ts +412 -13
  366. package/build/src/protocol/completion.js +202 -28
  367. package/build/src/protocol/deliver.d.ts +35 -28
  368. package/build/src/protocol/deliver.js +52 -80
  369. package/build/src/protocol/delivery-preview.d.ts +102 -250
  370. package/build/src/protocol/delivery-preview.js +134 -130
  371. package/build/src/protocol/execution-observation.d.ts +136 -121
  372. package/build/src/protocol/execution-observation.js +9 -6
  373. package/build/src/protocol/intent.d.ts +14 -56
  374. package/build/src/protocol/intent.js +46 -73
  375. package/build/src/protocol/operations.d.ts +240 -543
  376. package/build/src/protocol/operations.js +89 -151
  377. package/build/src/protocol/outcome.d.ts +3 -1
  378. package/build/src/protocol/placement.d.ts +1 -3
  379. package/build/src/protocol/placement.js +6 -3
  380. package/build/src/protocol/progress.d.ts +8 -97
  381. package/build/src/protocol/progress.js +7 -55
  382. package/build/src/protocol/read/observation.d.ts +13 -6
  383. package/build/src/protocol/read/observation.js +10 -9
  384. package/build/src/protocol/read/status.d.ts +386 -98
  385. package/build/src/protocol/read/status.js +400 -139
  386. package/build/src/protocol/reconcile.d.ts +2 -0
  387. package/build/src/protocol/reconcile.js +12 -11
  388. package/build/src/protocol/reintegrate.d.ts +1 -3
  389. package/build/src/protocol/reintegrate.js +4 -5
  390. package/build/src/protocol/result-leaves.d.ts +507 -0
  391. package/build/src/protocol/result-leaves.js +156 -0
  392. package/build/src/protocol/result-reasons.d.ts +129 -0
  393. package/build/src/protocol/result-reasons.js +87 -0
  394. package/build/src/protocol/review.d.ts +14 -11
  395. package/build/src/protocol/review.js +30 -15
  396. package/build/src/protocol/run.d.ts +4 -4
  397. package/build/src/protocol/run.js +4 -1
  398. package/build/src/protocol/verify.d.ts +406 -31
  399. package/build/src/protocol/verify.js +137 -34
  400. package/build/src/region.d.ts +26 -0
  401. package/build/src/region.js +28 -0
  402. package/build/src/runtime/proc/diagnostic.d.ts +11 -0
  403. package/build/src/runtime/proc/diagnostic.js +20 -0
  404. package/build/src/runtime/proc/windows-launch.exe +0 -0
  405. package/build/src/settings.d.ts +133 -40
  406. package/build/src/settings.js +122 -46
  407. package/build/src/settlement/holder.js +2 -2
  408. package/build/src/settlement/settle.d.ts +29 -18
  409. package/build/src/settlement/settle.js +22 -19
  410. package/build/src/verification/declaration.d.ts +4 -9
  411. package/build/src/verification/declaration.js +5 -10
  412. package/build/src/verification/execution.d.ts +7 -19
  413. package/build/src/verification/execution.js +37 -16
  414. package/build/src/verification/observation.d.ts +11 -11
  415. package/build/src/verification/observation.js +9 -7
  416. package/build/src/world.d.ts +11 -2
  417. package/build/src/world.js +12 -6
  418. package/package.json +6 -5
  419. package/plugins/paseo/plugin/index.server.ts +1 -1
  420. package/plugins/paseo/plugin/server/attach.ts +74 -67
  421. package/plugins/paseo/plugin/server/keiyaku.ts +73 -40
  422. package/plugins/paseo/plugin/server/message.ts +9 -30
  423. package/plugins/paseo/plugin/server/mirror-identity.ts +6 -4
  424. package/plugins/paseo/plugin/server/mirror.ts +16 -20
  425. package/plugins/paseo/plugin/server/provider.ts +1 -1
  426. package/plugins/paseo/plugin/server/sdk.ts +12 -6
  427. package/plugins/paseo/plugin/server/transport.ts +24 -1
  428. package/plugins/pi/README.md +20 -22
  429. package/plugins/pi/akuma-tools.ts +43 -56
  430. package/plugins/pi/keiyaku.ts +15 -4
  431. package/skills/keiyaku/SKILL.md +12 -12
  432. package/skills/keiyaku-akuma/SKILL.md +27 -22
  433. package/skills/keiyaku-akuma/references/automation.md +14 -14
  434. package/skills/keiyaku-babysit/SKILL.md +15 -13
  435. package/skills/keiyaku-bind/SKILL.md +18 -17
  436. package/skills/keiyaku-debt/SKILL.md +30 -30
  437. package/skills/keiyaku-workflow/SKILL.md +24 -23
  438. package/build/src/akuma/providers/codex-app-server/configuration.d.ts +0 -5
  439. package/build/src/akuma/providers/codex-app-server/configuration.js +0 -72
  440. package/build/src/cli/actor.d.ts +0 -10
  441. package/build/src/cli/actor.js +0 -24
  442. package/build/src/cli/akuma-caller.d.ts +0 -3
  443. package/build/src/cli/akuma-caller.js +0 -31
  444. package/build/src/cli/commands/debt-query.d.ts +0 -5
  445. package/build/src/cli/commands/debt-query.js +0 -194
  446. package/build/src/cli/render/akuma-tool-command.d.ts +0 -6
  447. package/build/src/cli/render/akuma-tool-command.js +0 -143
  448. package/build/src/cli/render/akuma-tool.d.ts +0 -32
  449. package/build/src/cli/render/akuma-tool.js +0 -219
  450. package/build/src/cli/render/effects.d.ts +0 -26
  451. package/build/src/cli/render/effects.js +0 -41
  452. package/build/src/cli/selectors.d.ts +0 -10
  453. package/build/src/cli/selectors.js +0 -42
  454. package/build/src/debt/context.d.ts +0 -16
  455. package/build/src/debt/context.js +0 -91
  456. package/build/src/debt/created-observation.d.ts +0 -38
  457. package/build/src/debt/created-observation.js +0 -30
  458. package/build/src/debt/query.d.ts +0 -76
  459. package/build/src/debt/query.js +0 -292
  460. package/build/src/library/contract-execution.d.ts +0 -28
  461. package/build/src/library/contract-execution.js +0 -467
  462. package/build/src/markdown/diff.d.ts +0 -1
  463. package/build/src/markdown/diff.js +0 -4
  464. /package/build/src/{cli/delivery-identity.d.ts → library/keiyaku-attribution.d.ts} +0 -0
@@ -1,688 +1,216 @@
1
1
  import { z } from "zod";
2
- declare const forkSourceRefusalSchema: z.ZodUnion<readonly [z.ZodObject<{
3
- kind: z.ZodEnum<{
4
- "fork-source-missing": "fork-source-missing";
5
- "fork-source-unavailable": "fork-source-unavailable";
6
- }>;
7
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
8
- }, z.core.$strict>, z.ZodObject<{
9
- kind: z.ZodLiteral<"fork-source-moved">;
10
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
11
- }, z.core.$strict>]>;
12
- export type ForkSourceRefusal = z.infer<typeof forkSourceRefusalSchema>;
2
+ import { type Retry } from "../protocol/result-reasons.js";
3
+ import { placementReasonSchema } from "../protocol/completion.js";
13
4
  export declare const nukeConfirmationRefusalSchema: z.ZodObject<{
14
5
  kind: z.ZodLiteral<"nuke-confirmation-mismatch">;
15
6
  world: z.ZodString;
16
7
  confirmation: z.ZodString;
17
8
  }, z.core.$strict>;
18
- export type NukeConfirmationRefusal = z.infer<typeof nukeConfirmationRefusalSchema>;
9
+ export type NukeConfirmationRefusal = z.output<typeof nukeConfirmationRefusalSchema>;
19
10
  export declare const nukeConfirmationRequiredRefusalSchema: z.ZodObject<{
20
11
  kind: z.ZodLiteral<"nuke-confirmation-required">;
21
12
  world: z.ZodString;
22
13
  }, z.core.$strict>;
23
- export type NukeConfirmationRequiredRefusal = z.infer<typeof nukeConfirmationRequiredRefusalSchema>;
24
- export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
25
- kind: z.ZodEnum<{
26
- terminal: "terminal";
27
- "contract-missing": "contract-missing";
28
- }>;
29
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
30
- }, z.core.$strict>, z.ZodObject<{
31
- kind: z.ZodEnum<{
32
- terminal: "terminal";
33
- "contract-missing": "contract-missing";
34
- "unknown-prerequisite": "unknown-prerequisite";
35
- "terms-moved": "terms-moved";
36
- "cyclic-prerequisite": "cyclic-prerequisite";
37
- }>;
38
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
39
- }, z.core.$strict>, z.ZodObject<{
40
- kind: z.ZodEnum<{
41
- "target-contract-missing": "target-contract-missing";
42
- "target-contract-terminal": "target-contract-terminal";
43
- "target-contract-self": "target-contract-self";
44
- "contract-exists": "contract-exists";
45
- "invalid-after": "invalid-after";
46
- "unknown-prerequisite": "unknown-prerequisite";
47
- }>;
48
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
49
- }, z.core.$strict>, z.ZodObject<{
50
- kind: z.ZodLiteral<"fork-source-moved">;
51
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
52
- }, z.core.$strict>, z.ZodObject<{
53
- kind: z.ZodEnum<{
54
- terminal: "terminal";
55
- "contract-missing": "contract-missing";
56
- "target-contract-missing": "target-contract-missing";
57
- "target-contract-terminal": "target-contract-terminal";
58
- "target-contract-self": "target-contract-self";
59
- "document-moved": "document-moved";
60
- }>;
61
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
62
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
63
- kind: z.ZodLiteral<"target-workspace-unavailable">;
64
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
65
- reason: z.ZodEnum<{
66
- missing: "missing";
67
- replaced: "replaced";
68
- unappointed: "unappointed";
69
- association: "association";
70
- attached: "attached";
71
- uncommitted: "uncommitted";
72
- operation: "operation";
73
- }>;
74
- }, z.core.$strict>, z.ZodObject<{
75
- kind: z.ZodLiteral<"target-missing">;
76
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
77
- }, z.core.$strict>, z.ZodObject<{
78
- kind: z.ZodLiteral<"worktree-missing">;
79
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
80
- }, z.core.$strict>, z.ZodObject<{
81
- kind: z.ZodLiteral<"dirty-workspace">;
82
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
83
- staged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
84
- unstaged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
85
- untracked: z.ZodReadonly<z.ZodArray<z.ZodString>>;
86
- submodules: z.ZodReadonly<z.ZodArray<z.ZodString>>;
87
- shortStat: z.ZodObject<{
88
- filesChanged: z.ZodNumber;
89
- insertions: z.ZodNumber;
90
- deletions: z.ZodNumber;
91
- }, z.core.$strict>;
92
- }, z.core.$strict>, z.ZodObject<{
93
- kind: z.ZodLiteral<"unmerged-paths">;
94
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
95
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
96
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
97
- kind: z.ZodLiteral<"integration-failed">;
98
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
99
- reason: z.ZodEnum<{
100
- conflict: "conflict";
101
- "not-based-on-target": "not-based-on-target";
102
- "unrelated-histories": "unrelated-histories";
103
- }>;
104
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
105
- conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
106
- }, z.core.$strict>, z.ZodTransform<{
107
- kind: "integration-failed";
108
- contractId: import("../index.js").ContractId;
109
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
110
- targetHead: import("../index.js").SnapshotId;
111
- } & {
112
- conflictPaths?: readonly string[];
113
- }, {
114
- kind: "integration-failed";
115
- contractId: import("../index.js").ContractId;
116
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
117
- targetHead: import("../index.js").SnapshotId;
118
- conflictPaths?: readonly string[] | undefined;
119
- }>>, z.ZodObject<{
120
- kind: z.ZodLiteral<"integration-unsupported">;
121
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
122
- requiredGit: z.ZodLiteral<"2.38">;
123
- }, z.core.$strict>]>, z.ZodObject<{
124
- kind: z.ZodLiteral<"merge-state-present">;
125
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
126
- workspace: z.ZodObject<{
127
- kind: z.ZodLiteral<"worktree">;
128
- path: z.ZodString;
129
- }, z.core.$strict>;
130
- }, z.core.$strict>, z.ZodObject<{
131
- kind: z.ZodLiteral<"checkout-not-followable">;
132
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
133
- target: z.ZodString;
134
- path: z.ZodString;
135
- reason: z.ZodLiteral<"untracked">;
136
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
137
- }, z.core.$strict>]>, z.ZodObject<{
138
- kind: z.ZodLiteral<"integration-failed">;
139
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
140
- reason: z.ZodLiteral<"conflict">;
141
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
142
- conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
143
- recovery: z.ZodObject<{
144
- materialize: z.ZodLiteral<"deliver --materialize-conflict --include-dirty">;
145
- deliver: z.ZodLiteral<"deliver --include-dirty">;
146
- staging: z.ZodLiteral<"not-required">;
147
- }, z.core.$strict>;
148
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
149
- kind: z.ZodEnum<{
150
- "target-contract-missing": "target-contract-missing";
151
- "target-contract-terminal": "target-contract-terminal";
152
- "target-contract-self": "target-contract-self";
153
- }>;
154
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
155
- }, z.core.$strict>, z.ZodObject<{
156
- kind: z.ZodLiteral<"target-workspace-unavailable">;
157
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
158
- reason: z.ZodEnum<{
159
- missing: "missing";
160
- replaced: "replaced";
161
- unappointed: "unappointed";
162
- association: "association";
163
- attached: "attached";
164
- uncommitted: "uncommitted";
165
- operation: "operation";
166
- }>;
167
- }, z.core.$strict>, z.ZodObject<{
168
- kind: z.ZodEnum<{
169
- terminal: "terminal";
170
- "contract-missing": "contract-missing";
171
- "delivery-missing": "delivery-missing";
172
- }>;
173
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
174
- }, z.core.$strict>, z.ZodObject<{
175
- kind: z.ZodLiteral<"gates-unsatisfied">;
176
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
177
- unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
178
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
179
- requirements: z.ZodReadonly<z.ZodArray<z.ZodObject<{
180
- requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
181
- current: z.ZodUnion<readonly [z.ZodObject<{
182
- kind: z.ZodLiteral<"missing">;
183
- }, z.core.$strict>, z.ZodObject<{
184
- kind: z.ZodLiteral<"attested">;
185
- verdict: z.ZodEnum<{
186
- satisfied: "satisfied";
187
- unsatisfied: "unsatisfied";
188
- }>;
189
- at: z.ZodString;
190
- summary: z.ZodOptional<z.ZodString>;
191
- }, z.core.$strict>, z.ZodObject<{
192
- kind: z.ZodLiteral<"stale">;
193
- priorVerdict: z.ZodEnum<{
194
- satisfied: "satisfied";
195
- unsatisfied: "unsatisfied";
196
- }>;
197
- reason: z.ZodOptional<z.ZodObject<{
198
- kind: z.ZodLiteral<"candidate-content-changed">;
199
- target: z.ZodOptional<z.ZodString>;
200
- previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
201
- currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
202
- }, z.core.$strict>>;
203
- }, z.core.$strict>]>;
204
- }, z.core.$strict>>>;
205
- satisfied: z.ZodBoolean;
206
- current: z.ZodUnion<readonly [z.ZodObject<{
207
- kind: z.ZodLiteral<"missing">;
208
- }, z.core.$strict>, z.ZodObject<{
209
- kind: z.ZodLiteral<"attested">;
210
- verdict: z.ZodEnum<{
211
- satisfied: "satisfied";
212
- unsatisfied: "unsatisfied";
213
- }>;
214
- at: z.ZodString;
215
- summary: z.ZodOptional<z.ZodString>;
216
- }, z.core.$strict>, z.ZodObject<{
217
- kind: z.ZodLiteral<"stale">;
218
- priorVerdict: z.ZodEnum<{
219
- satisfied: "satisfied";
220
- unsatisfied: "unsatisfied";
221
- }>;
222
- reason: z.ZodOptional<z.ZodObject<{
223
- kind: z.ZodLiteral<"candidate-content-changed">;
224
- target: z.ZodOptional<z.ZodString>;
225
- previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
226
- currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
227
- }, z.core.$strict>>;
228
- }, z.core.$strict>]>;
229
- }, z.core.$strict>>>;
230
- target: z.ZodOptional<z.ZodString>;
231
- }, z.core.$strict>, z.ZodObject<{
232
- kind: z.ZodLiteral<"prerequisites-unsatisfied">;
233
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
234
- unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
235
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
236
- state: z.ZodEnum<{
237
- active: "active";
238
- abandoned: "abandoned";
239
- missing: "missing";
240
- }>;
241
- }, z.core.$strict>>>;
242
- }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
243
- kind: z.ZodEnum<{
244
- "target-missing": "target-missing";
245
- "unborn-head": "unborn-head";
246
- "invalid-target": "invalid-target";
247
- }>;
248
- }, z.core.$strict>, z.ZodObject<{
249
- kind: z.ZodLiteral<"target-workspace-unavailable">;
250
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
251
- reason: z.ZodEnum<{
252
- missing: "missing";
253
- replaced: "replaced";
254
- unappointed: "unappointed";
255
- association: "association";
256
- attached: "attached";
257
- uncommitted: "uncommitted";
258
- operation: "operation";
259
- }>;
260
- }, z.core.$strict>]>, z.ZodObject<{
261
- kind: z.ZodLiteral<"verification-declaration-invalid">;
262
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
263
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
264
- kind: z.ZodLiteral<"verification-not-selected">;
265
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
266
- }, z.core.$strict>, z.ZodObject<{
267
- kind: z.ZodLiteral<"verification-index-out-of-range">;
268
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
269
- index: z.ZodNumber;
270
- total: z.ZodNumber;
271
- }, z.core.$strict>]>]>, z.ZodUnion<readonly [z.ZodObject<{
272
- kind: z.ZodEnum<{
273
- "fork-source-missing": "fork-source-missing";
274
- "fork-source-unavailable": "fork-source-unavailable";
275
- }>;
276
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
277
- }, z.core.$strict>, z.ZodObject<{
278
- kind: z.ZodLiteral<"fork-source-moved">;
279
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
280
- }, z.core.$strict>]>, z.ZodObject<{
281
- kind: z.ZodLiteral<"nuke-confirmation-mismatch">;
282
- world: z.ZodString;
283
- confirmation: z.ZodString;
284
- }, z.core.$strict>, z.ZodObject<{
285
- kind: z.ZodLiteral<"nuke-confirmation-required">;
286
- world: z.ZodString;
287
- }, z.core.$strict>]>;
288
- export type KeiyakuRefusal = z.infer<typeof keiyakuRefusalSchema>;
289
- export declare const keiyakuRetryReasonSchema: z.ZodUnion<readonly [z.ZodObject<{
290
- kind: z.ZodEnum<{
291
- collision: "collision";
292
- exhausted: "exhausted";
293
- }>;
294
- }, z.core.$strict>, z.ZodObject<{
295
- kind: z.ZodLiteral<"publication-failed">;
296
- diagnostic: z.ZodString;
297
- }, z.core.$strict>]>;
298
- export type KeiyakuRetryReason = z.infer<typeof keiyakuRetryReasonSchema>;
299
- export declare const operationRetrySchemas: {
300
- readonly bind: z.ZodUnion<readonly [z.ZodObject<{
301
- kind: z.ZodEnum<{
302
- collision: "collision";
303
- exhausted: "exhausted";
304
- }>;
305
- }, z.core.$strict>, z.ZodObject<{
306
- kind: z.ZodLiteral<"publication-failed">;
307
- diagnostic: z.ZodString;
308
- }, z.core.$strict>]>;
309
- readonly amend: z.ZodUnion<readonly [z.ZodObject<{
310
- kind: z.ZodEnum<{
311
- collision: "collision";
312
- exhausted: "exhausted";
313
- }>;
314
- }, z.core.$strict>, z.ZodObject<{
315
- kind: z.ZodLiteral<"publication-failed">;
316
- diagnostic: z.ZodString;
317
- }, z.core.$strict>]>;
318
- readonly deliver: z.ZodUnion<readonly [z.ZodObject<{
319
- kind: z.ZodEnum<{
320
- collision: "collision";
321
- exhausted: "exhausted";
322
- }>;
323
- }, z.core.$strict>, z.ZodObject<{
324
- kind: z.ZodLiteral<"publication-failed">;
325
- diagnostic: z.ZodString;
326
- }, z.core.$strict>]>;
327
- readonly verify: z.ZodUnion<readonly [z.ZodObject<{
328
- kind: z.ZodEnum<{
329
- collision: "collision";
330
- exhausted: "exhausted";
331
- }>;
332
- }, z.core.$strict>, z.ZodObject<{
333
- kind: z.ZodLiteral<"publication-failed">;
334
- diagnostic: z.ZodString;
335
- }, z.core.$strict>]>;
336
- readonly review: z.ZodUnion<readonly [z.ZodObject<{
337
- kind: z.ZodEnum<{
338
- collision: "collision";
339
- exhausted: "exhausted";
340
- }>;
341
- }, z.core.$strict>, z.ZodObject<{
342
- kind: z.ZodLiteral<"publication-failed">;
343
- diagnostic: z.ZodString;
344
- }, z.core.$strict>]>;
345
- readonly "deliver-preview": z.ZodUnion<readonly [z.ZodObject<{
346
- kind: z.ZodEnum<{
347
- collision: "collision";
348
- exhausted: "exhausted";
349
- }>;
350
- }, z.core.$strict>, z.ZodObject<{
351
- kind: z.ZodLiteral<"publication-failed">;
352
- diagnostic: z.ZodString;
353
- }, z.core.$strict>]>;
354
- readonly arc: z.ZodUnion<readonly [z.ZodObject<{
355
- kind: z.ZodEnum<{
356
- collision: "collision";
357
- exhausted: "exhausted";
358
- }>;
359
- }, z.core.$strict>, z.ZodObject<{
360
- kind: z.ZodLiteral<"publication-failed">;
361
- diagnostic: z.ZodString;
362
- }, z.core.$strict>]>;
363
- readonly abandon: z.ZodUnion<readonly [z.ZodObject<{
364
- kind: z.ZodEnum<{
365
- collision: "collision";
366
- exhausted: "exhausted";
367
- }>;
368
- }, z.core.$strict>, z.ZodObject<{
369
- kind: z.ZodLiteral<"publication-failed">;
370
- diagnostic: z.ZodString;
371
- }, z.core.$strict>]>;
372
- };
14
+ export type NukeConfirmationRequiredRefusal = z.output<typeof nukeConfirmationRequiredRefusalSchema>;
15
+ export type KeiyakuRetryReason = Retry;
373
16
  export type OperationRetries = {
374
- readonly [Operation in keyof typeof operationRetrySchemas]: z.infer<(typeof operationRetrySchemas)[Operation]>;
17
+ readonly bind: KeiyakuRetryReason;
18
+ readonly amend: KeiyakuRetryReason;
19
+ readonly deliver: KeiyakuRetryReason;
20
+ readonly verify: never;
21
+ readonly review: KeiyakuRetryReason;
22
+ readonly "deliver-preview": never;
23
+ readonly arc: KeiyakuRetryReason;
24
+ readonly abandon: KeiyakuRetryReason;
375
25
  };
376
26
  export declare const operationRefusalSchemas: {
377
- readonly bind: z.ZodUnion<readonly [z.ZodObject<{
27
+ readonly bind: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
378
28
  kind: z.ZodEnum<{
379
- "target-contract-missing": "target-contract-missing";
380
- "target-contract-terminal": "target-contract-terminal";
381
- "target-contract-self": "target-contract-self";
29
+ "target-missing": "target-missing";
382
30
  "contract-exists": "contract-exists";
383
31
  "invalid-after": "invalid-after";
384
32
  "unknown-prerequisite": "unknown-prerequisite";
33
+ "invalid-target": "invalid-target";
34
+ "unborn-head": "unborn-head";
35
+ "target-contract-self": "target-contract-self";
36
+ "fork-source-missing": "fork-source-missing";
37
+ "fork-source-unavailable": "fork-source-unavailable";
38
+ "fork-source-moved": "fork-source-moved";
385
39
  }>;
386
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
387
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
40
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
388
41
  kind: z.ZodEnum<{
389
- "target-missing": "target-missing";
390
- "unborn-head": "unborn-head";
391
- "invalid-target": "invalid-target";
42
+ "target-contract-missing": "target-contract-missing";
43
+ "target-contract-terminal": "target-contract-terminal";
392
44
  }>;
393
- }, z.core.$strict>, z.ZodObject<{
45
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
46
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
394
47
  kind: z.ZodLiteral<"target-workspace-unavailable">;
395
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
48
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
396
49
  reason: z.ZodEnum<{
397
- missing: "missing";
398
- replaced: "replaced";
399
50
  unappointed: "unappointed";
51
+ missing: "missing";
400
52
  association: "association";
53
+ replaced: "replaced";
401
54
  attached: "attached";
402
55
  uncommitted: "uncommitted";
403
56
  operation: "operation";
404
57
  }>;
405
- }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
406
- kind: z.ZodEnum<{
407
- "fork-source-missing": "fork-source-missing";
408
- "fork-source-unavailable": "fork-source-unavailable";
409
- }>;
410
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
411
- }, z.core.$strict>, z.ZodObject<{
412
- kind: z.ZodLiteral<"fork-source-moved">;
413
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
414
- }, z.core.$strict>]>, z.ZodObject<{
58
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
415
59
  kind: z.ZodLiteral<"verification-declaration-invalid">;
416
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
417
- }, z.core.$strict>]>;
418
- readonly amend: z.ZodUnion<readonly [z.ZodObject<{
60
+ }, z.core.$strict>>]>;
61
+ readonly amend: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
419
62
  kind: z.ZodEnum<{
420
- terminal: "terminal";
421
63
  "contract-missing": "contract-missing";
64
+ terminal: "terminal";
422
65
  "unknown-prerequisite": "unknown-prerequisite";
423
66
  "terms-moved": "terms-moved";
424
67
  "cyclic-prerequisite": "cyclic-prerequisite";
425
68
  }>;
426
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
427
- }, z.core.$strict>, z.ZodObject<{
69
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
428
70
  kind: z.ZodLiteral<"verification-declaration-invalid">;
429
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
430
- }, z.core.$strict>]>;
431
- readonly deliver: z.ZodUnion<readonly [z.ZodObject<{
71
+ }, z.core.$strict>>]>;
72
+ readonly deliver: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
432
73
  kind: z.ZodEnum<{
433
- terminal: "terminal";
434
74
  "contract-missing": "contract-missing";
75
+ terminal: "terminal";
76
+ }>;
77
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
78
+ kind: z.ZodEnum<{
435
79
  "target-contract-missing": "target-contract-missing";
436
80
  "target-contract-terminal": "target-contract-terminal";
437
- "target-contract-self": "target-contract-self";
438
- "document-moved": "document-moved";
439
81
  }>;
440
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
441
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
82
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
83
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
84
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
85
+ }, z.core.$strict>>]>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
442
86
  kind: z.ZodLiteral<"target-workspace-unavailable">;
443
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
87
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
444
88
  reason: z.ZodEnum<{
445
- missing: "missing";
446
- replaced: "replaced";
447
89
  unappointed: "unappointed";
90
+ missing: "missing";
448
91
  association: "association";
92
+ replaced: "replaced";
449
93
  attached: "attached";
450
94
  uncommitted: "uncommitted";
451
95
  operation: "operation";
452
96
  }>;
453
- }, z.core.$strict>, z.ZodObject<{
454
- kind: z.ZodLiteral<"target-missing">;
455
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
456
- }, z.core.$strict>, z.ZodObject<{
457
- kind: z.ZodLiteral<"worktree-missing">;
458
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
459
- }, z.core.$strict>, z.ZodObject<{
97
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
98
+ kind: z.ZodEnum<{
99
+ "target-missing": "target-missing";
100
+ "worktree-missing": "worktree-missing";
101
+ }>;
102
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
460
103
  kind: z.ZodLiteral<"dirty-workspace">;
461
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
462
- staged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
463
- unstaged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
464
- untracked: z.ZodReadonly<z.ZodArray<z.ZodString>>;
465
- submodules: z.ZodReadonly<z.ZodArray<z.ZodString>>;
466
- shortStat: z.ZodObject<{
467
- filesChanged: z.ZodNumber;
468
- insertions: z.ZodNumber;
469
- deletions: z.ZodNumber;
470
- }, z.core.$strict>;
471
- }, z.core.$strict>, z.ZodObject<{
472
- kind: z.ZodLiteral<"unmerged-paths">;
473
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
474
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
475
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
476
- kind: z.ZodLiteral<"integration-failed">;
477
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
478
- reason: z.ZodEnum<{
479
- conflict: "conflict";
104
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
105
+ submodules: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
106
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
107
+ kind: z.ZodEnum<{
480
108
  "not-based-on-target": "not-based-on-target";
481
109
  "unrelated-histories": "unrelated-histories";
482
110
  }>;
483
111
  targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
484
- conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
485
- }, z.core.$strict>, z.ZodTransform<{
486
- kind: "integration-failed";
487
- contractId: import("../index.js").ContractId;
488
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
489
- targetHead: import("../index.js").SnapshotId;
490
- } & {
491
- conflictPaths?: readonly string[];
492
- }, {
493
- kind: "integration-failed";
494
- contractId: import("../index.js").ContractId;
495
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
496
- targetHead: import("../index.js").SnapshotId;
497
- conflictPaths?: readonly string[] | undefined;
498
- }>>, z.ZodObject<{
499
- kind: z.ZodLiteral<"integration-unsupported">;
500
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
501
- requiredGit: z.ZodLiteral<"2.38">;
502
- }, z.core.$strict>]>, z.ZodObject<{
503
- kind: z.ZodLiteral<"merge-state-present">;
504
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
505
- workspace: z.ZodObject<{
506
- kind: z.ZodLiteral<"worktree">;
507
- path: z.ZodString;
508
- }, z.core.$strict>;
509
- }, z.core.$strict>, z.ZodObject<{
510
- kind: z.ZodLiteral<"checkout-not-followable">;
511
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
512
- target: z.ZodString;
513
- path: z.ZodString;
514
- reason: z.ZodLiteral<"untracked">;
515
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
516
- }, z.core.$strict>]>, z.ZodObject<{
517
- kind: z.ZodLiteral<"integration-failed">;
518
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
519
- reason: z.ZodLiteral<"conflict">;
112
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
113
+ kind: z.ZodLiteral<"integration-conflict">;
520
114
  targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
521
115
  conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
522
- recovery: z.ZodObject<{
523
- materialize: z.ZodLiteral<"deliver --materialize-conflict --include-dirty">;
524
- deliver: z.ZodLiteral<"deliver --include-dirty">;
525
- staging: z.ZodLiteral<"not-required">;
526
- }, z.core.$strict>;
527
- }, z.core.$strict>, z.ZodObject<{
528
- kind: z.ZodLiteral<"verification-declaration-invalid">;
529
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
530
- }, z.core.$strict>]>;
531
- readonly verify: z.ZodUnion<readonly [z.ZodObject<{
116
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
117
+ kind: z.ZodLiteral<"integration-unsupported">;
118
+ }, z.core.$strict>>]>]>, z.ZodReadonly<z.ZodObject<{
119
+ kind: z.ZodLiteral<"merge-state-present">;
120
+ worktreePath: z.ZodString;
121
+ }, z.core.$strict>>]>;
122
+ readonly verify: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
532
123
  kind: z.ZodEnum<{
533
- terminal: "terminal";
534
124
  "contract-missing": "contract-missing";
125
+ terminal: "terminal";
535
126
  }>;
536
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
537
- }, z.core.$strict>, z.ZodObject<{
127
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
538
128
  kind: z.ZodEnum<{
539
- terminal: "terminal";
540
- "contract-missing": "contract-missing";
541
129
  "target-contract-missing": "target-contract-missing";
542
130
  "target-contract-terminal": "target-contract-terminal";
543
- "target-contract-self": "target-contract-self";
544
- "document-moved": "document-moved";
545
131
  }>;
546
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
547
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
132
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
133
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
134
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
135
+ }, z.core.$strict>>]>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
548
136
  kind: z.ZodLiteral<"target-workspace-unavailable">;
549
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
137
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
550
138
  reason: z.ZodEnum<{
551
- missing: "missing";
552
- replaced: "replaced";
553
139
  unappointed: "unappointed";
140
+ missing: "missing";
554
141
  association: "association";
142
+ replaced: "replaced";
555
143
  attached: "attached";
556
144
  uncommitted: "uncommitted";
557
145
  operation: "operation";
558
146
  }>;
559
- }, z.core.$strict>, z.ZodObject<{
560
- kind: z.ZodLiteral<"target-missing">;
561
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
562
- }, z.core.$strict>, z.ZodObject<{
563
- kind: z.ZodLiteral<"worktree-missing">;
564
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
565
- }, z.core.$strict>, z.ZodObject<{
147
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
148
+ kind: z.ZodEnum<{
149
+ "target-missing": "target-missing";
150
+ "worktree-missing": "worktree-missing";
151
+ }>;
152
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
566
153
  kind: z.ZodLiteral<"dirty-workspace">;
567
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
568
- staged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
569
- unstaged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
570
- untracked: z.ZodReadonly<z.ZodArray<z.ZodString>>;
571
- submodules: z.ZodReadonly<z.ZodArray<z.ZodString>>;
572
- shortStat: z.ZodObject<{
573
- filesChanged: z.ZodNumber;
574
- insertions: z.ZodNumber;
575
- deletions: z.ZodNumber;
576
- }, z.core.$strict>;
577
- }, z.core.$strict>, z.ZodObject<{
578
- kind: z.ZodLiteral<"unmerged-paths">;
579
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
580
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
581
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
582
- kind: z.ZodLiteral<"integration-failed">;
583
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
584
- reason: z.ZodEnum<{
585
- conflict: "conflict";
154
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
155
+ submodules: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
156
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
157
+ kind: z.ZodEnum<{
586
158
  "not-based-on-target": "not-based-on-target";
587
159
  "unrelated-histories": "unrelated-histories";
588
160
  }>;
589
161
  targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
590
- conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
591
- }, z.core.$strict>, z.ZodTransform<{
592
- kind: "integration-failed";
593
- contractId: import("../index.js").ContractId;
594
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
595
- targetHead: import("../index.js").SnapshotId;
596
- } & {
597
- conflictPaths?: readonly string[];
598
- }, {
599
- kind: "integration-failed";
600
- contractId: import("../index.js").ContractId;
601
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
602
- targetHead: import("../index.js").SnapshotId;
603
- conflictPaths?: readonly string[] | undefined;
604
- }>>, z.ZodObject<{
162
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
163
+ kind: z.ZodLiteral<"integration-conflict">;
164
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
165
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
166
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
605
167
  kind: z.ZodLiteral<"integration-unsupported">;
606
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
607
- requiredGit: z.ZodLiteral<"2.38">;
608
- }, z.core.$strict>]>, z.ZodObject<{
609
- kind: z.ZodLiteral<"merge-state-present">;
610
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
611
- workspace: z.ZodObject<{
612
- kind: z.ZodLiteral<"worktree">;
613
- path: z.ZodString;
614
- }, z.core.$strict>;
615
- }, z.core.$strict>, z.ZodObject<{
616
- kind: z.ZodLiteral<"checkout-not-followable">;
617
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
618
- target: z.ZodString;
619
- path: z.ZodString;
620
- reason: z.ZodLiteral<"untracked">;
621
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
622
- }, z.core.$strict>]>, z.ZodObject<{
623
- kind: z.ZodLiteral<"verification-declaration-invalid">;
624
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
625
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
626
- kind: z.ZodLiteral<"verification-not-selected">;
627
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
628
- }, z.core.$strict>, z.ZodObject<{
168
+ }, z.core.$strict>>]>]>, z.ZodReadonly<z.ZodObject<{
629
169
  kind: z.ZodLiteral<"verification-index-out-of-range">;
630
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
631
- index: z.ZodNumber;
632
170
  total: z.ZodNumber;
633
- }, z.core.$strict>]>]>;
634
- readonly review: z.ZodUnion<readonly [z.ZodObject<{
171
+ }, z.core.$strict>>]>;
172
+ readonly review: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
635
173
  kind: z.ZodEnum<{
636
- terminal: "terminal";
637
174
  "contract-missing": "contract-missing";
175
+ terminal: "terminal";
638
176
  }>;
639
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
640
- }, z.core.$strict>, z.ZodObject<{
177
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
641
178
  kind: z.ZodLiteral<"worktree-missing">;
642
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
643
- }, z.core.$strict>, z.ZodObject<{
644
- kind: z.ZodLiteral<"dirty-workspace">;
645
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
646
- staged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
647
- unstaged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
648
- untracked: z.ZodReadonly<z.ZodArray<z.ZodString>>;
649
- submodules: z.ZodReadonly<z.ZodArray<z.ZodString>>;
650
- shortStat: z.ZodObject<{
651
- filesChanged: z.ZodNumber;
652
- insertions: z.ZodNumber;
653
- deletions: z.ZodNumber;
654
- }, z.core.$strict>;
655
- }, z.core.$strict>]>;
656
- readonly "deliver-preview": z.ZodUnion<readonly [z.ZodObject<{
179
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
180
+ kind: z.ZodLiteral<"dirty-submodules">;
181
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
182
+ }, z.core.$strict>>]>;
183
+ readonly "deliver-preview": z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
657
184
  kind: z.ZodEnum<{
658
- terminal: "terminal";
659
185
  "contract-missing": "contract-missing";
186
+ terminal: "terminal";
187
+ }>;
188
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
189
+ kind: z.ZodEnum<{
660
190
  "target-contract-missing": "target-contract-missing";
661
191
  "target-contract-terminal": "target-contract-terminal";
662
- "target-contract-self": "target-contract-self";
663
- "document-moved": "document-moved";
664
192
  }>;
665
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
666
- }, z.core.$strict>, z.ZodObject<{
193
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
194
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
667
195
  kind: z.ZodLiteral<"verification-declaration-invalid">;
668
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
669
- }, z.core.$strict>]>;
670
- readonly arc: z.ZodObject<{
196
+ }, z.core.$strict>>]>;
197
+ readonly arc: z.ZodReadonly<z.ZodObject<{
671
198
  kind: z.ZodEnum<{
672
- terminal: "terminal";
673
199
  "contract-missing": "contract-missing";
200
+ terminal: "terminal";
674
201
  }>;
675
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
676
- }, z.core.$strict>;
677
- readonly abandon: z.ZodObject<{
202
+ }, z.core.$strict>>;
203
+ readonly abandon: z.ZodReadonly<z.ZodObject<{
678
204
  kind: z.ZodEnum<{
679
- terminal: "terminal";
680
205
  "contract-missing": "contract-missing";
206
+ terminal: "terminal";
681
207
  }>;
682
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
683
- }, z.core.$strict>;
208
+ }, z.core.$strict>>;
684
209
  };
685
210
  export type OperationRefusals = {
686
- readonly [Operation in keyof typeof operationRefusalSchemas]: z.infer<(typeof operationRefusalSchemas)[Operation]>;
211
+ readonly [K in keyof typeof operationRefusalSchemas]: z.output<(typeof operationRefusalSchemas)[K]>;
687
212
  };
688
- export {};
213
+ export type ForkSourceRefusal = Readonly<{
214
+ kind: "fork-source-missing" | "fork-source-unavailable" | "fork-source-moved";
215
+ }>;
216
+ export type KeiyakuRefusal = OperationRefusals[keyof OperationRefusals] | NukeConfirmationRefusal | NukeConfirmationRequiredRefusal | z.output<typeof placementReasonSchema>;