@qodeca/xezar 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +72 -39
  2. package/dist/agent-config/account-identity.d.ts +2 -8
  3. package/dist/agent-config/account-identity.js +54 -10
  4. package/dist/agent-config/account-identity.js.map +1 -1
  5. package/dist/agent-config/catalog.d.ts +49 -7
  6. package/dist/agent-config/catalog.js +107 -0
  7. package/dist/agent-config/catalog.js.map +1 -1
  8. package/dist/agent-config/model-settings/pi.d.ts +12 -6
  9. package/dist/agent-config/model-settings/pi.js +12 -6
  10. package/dist/agent-config/model-settings/pi.js.map +1 -1
  11. package/dist/agent-config/seed.js +10 -0
  12. package/dist/agent-config/seed.js.map +1 -1
  13. package/dist/contract/github.d.ts +15 -0
  14. package/dist/contract/index.d.ts +9 -0
  15. package/dist/contract/index.js +1527 -895
  16. package/dist/contract/mcp-api-reference.d.ts +174 -0
  17. package/dist/contract/mcp-audit.d.ts +103 -0
  18. package/dist/contract/mcp-discovery.d.ts +257 -0
  19. package/dist/contract/mcp-event-catalog.d.ts +121 -0
  20. package/dist/contract/mcp-event-catalog.test.d.ts +1 -0
  21. package/dist/contract/mcp-idempotency.d.ts +200 -0
  22. package/dist/contract/mcp-journal.d.ts +268 -0
  23. package/dist/contract/mcp-leader.d.ts +88 -0
  24. package/dist/contract/mcp-ownership.d.ts +78 -0
  25. package/dist/contract/mcp-versioning.d.ts +139 -0
  26. package/dist/contract/runs.d.ts +81 -0
  27. package/dist/core/agent-profiles.d.ts +15 -4
  28. package/dist/core/agent-profiles.js +22 -8
  29. package/dist/core/agent-profiles.js.map +1 -1
  30. package/dist/core/opencode-server-runner.js +71 -11
  31. package/dist/core/opencode-server-runner.js.map +1 -1
  32. package/dist/core/secret-redaction.d.ts +7 -1
  33. package/dist/core/secret-redaction.js +44 -10
  34. package/dist/core/secret-redaction.js.map +1 -1
  35. package/dist/index.js +138 -27
  36. package/dist/index.js.map +1 -1
  37. package/dist/machine-identity.d.ts +66 -0
  38. package/dist/machine-identity.js +96 -0
  39. package/dist/machine-identity.js.map +1 -0
  40. package/dist/mcp/adapters/claude-code.d.ts +41 -0
  41. package/dist/mcp/adapters/claude-code.js +40 -0
  42. package/dist/mcp/adapters/claude-code.js.map +1 -0
  43. package/dist/mcp/adapters/codex.d.ts +140 -0
  44. package/dist/mcp/adapters/codex.js +323 -0
  45. package/dist/mcp/adapters/codex.js.map +1 -0
  46. package/dist/mcp/adapters/opencode.d.ts +148 -0
  47. package/dist/mcp/adapters/opencode.js +528 -0
  48. package/dist/mcp/adapters/opencode.js.map +1 -0
  49. package/dist/mcp/adapters/pi-link.d.ts +102 -0
  50. package/dist/mcp/adapters/pi-link.js +235 -0
  51. package/dist/mcp/adapters/pi-link.js.map +1 -0
  52. package/dist/mcp/adapters/pi.d.ts +188 -0
  53. package/dist/mcp/adapters/pi.js +418 -0
  54. package/dist/mcp/adapters/pi.js.map +1 -0
  55. package/dist/mcp/api-reference.d.ts +26 -0
  56. package/dist/mcp/api-reference.js +133 -0
  57. package/dist/mcp/api-reference.js.map +1 -0
  58. package/dist/mcp/audit-trail.d.ts +162 -0
  59. package/dist/mcp/audit-trail.js +306 -0
  60. package/dist/mcp/audit-trail.js.map +1 -0
  61. package/dist/mcp/bridge.d.ts +81 -0
  62. package/dist/mcp/bridge.js +407 -0
  63. package/dist/mcp/bridge.js.map +1 -0
  64. package/dist/mcp/connection-file.d.ts +49 -0
  65. package/dist/mcp/connection-file.js +63 -0
  66. package/dist/mcp/connection-file.js.map +1 -0
  67. package/dist/mcp/echo-guard.d.ts +94 -0
  68. package/dist/mcp/echo-guard.js +160 -0
  69. package/dist/mcp/echo-guard.js.map +1 -0
  70. package/dist/mcp/event-catalog.d.ts +120 -0
  71. package/dist/mcp/event-catalog.js +306 -0
  72. package/dist/mcp/event-catalog.js.map +1 -0
  73. package/dist/mcp/event-controller.d.ts +230 -0
  74. package/dist/mcp/event-controller.js +596 -0
  75. package/dist/mcp/event-controller.js.map +1 -0
  76. package/dist/mcp/event-journal.d.ts +57 -0
  77. package/dist/mcp/event-journal.js +423 -0
  78. package/dist/mcp/event-journal.js.map +1 -0
  79. package/dist/mcp/index.d.ts +63 -0
  80. package/dist/mcp/index.js +386 -0
  81. package/dist/mcp/index.js.map +1 -0
  82. package/dist/mcp/ipc.d.ts +202 -0
  83. package/dist/mcp/ipc.js +206 -0
  84. package/dist/mcp/ipc.js.map +1 -0
  85. package/dist/mcp/leader-delivery.d.ts +119 -0
  86. package/dist/mcp/leader-delivery.js +450 -0
  87. package/dist/mcp/leader-delivery.js.map +1 -0
  88. package/dist/mcp/operation-receipts.d.ts +210 -0
  89. package/dist/mcp/operation-receipts.js +723 -0
  90. package/dist/mcp/operation-receipts.js.map +1 -0
  91. package/dist/mcp/project-catalogs.d.ts +23 -0
  92. package/dist/mcp/project-catalogs.js +25 -0
  93. package/dist/mcp/project-catalogs.js.map +1 -0
  94. package/dist/mcp/project-leaders.d.ts +26 -0
  95. package/dist/mcp/project-leaders.js +17 -0
  96. package/dist/mcp/project-leaders.js.map +1 -0
  97. package/dist/mcp/protocol.d.ts +50 -0
  98. package/dist/mcp/protocol.js +47 -0
  99. package/dist/mcp/protocol.js.map +1 -0
  100. package/dist/mcp/reconnect.d.ts +297 -0
  101. package/dist/mcp/reconnect.js +465 -0
  102. package/dist/mcp/reconnect.js.map +1 -0
  103. package/dist/mcp/resource-ownership.d.ts +228 -0
  104. package/dist/mcp/resource-ownership.js +390 -0
  105. package/dist/mcp/resource-ownership.js.map +1 -0
  106. package/dist/mcp/service-adapter.d.ts +16488 -0
  107. package/dist/mcp/service-adapter.js +148 -0
  108. package/dist/mcp/service-adapter.js.map +1 -0
  109. package/dist/mcp/service.d.ts +83 -0
  110. package/dist/mcp/service.js +233 -0
  111. package/dist/mcp/service.js.map +1 -0
  112. package/dist/mcp/session-binding.d.ts +105 -0
  113. package/dist/mcp/session-binding.js +163 -0
  114. package/dist/mcp/session-binding.js.map +1 -0
  115. package/dist/mcp/stale-write.d.ts +145 -0
  116. package/dist/mcp/stale-write.js +219 -0
  117. package/dist/mcp/stale-write.js.map +1 -0
  118. package/dist/mcp/tool.d.ts +48 -0
  119. package/dist/mcp/tool.js +24 -0
  120. package/dist/mcp/tool.js.map +1 -0
  121. package/dist/mcp/tools/discovery.d.ts +40 -0
  122. package/dist/mcp/tools/discovery.js +232 -0
  123. package/dist/mcp/tools/discovery.js.map +1 -0
  124. package/dist/mcp/tools/execution-control.d.ts +171 -0
  125. package/dist/mcp/tools/execution-control.js +513 -0
  126. package/dist/mcp/tools/execution-control.js.map +1 -0
  127. package/dist/mcp/tools/handoff-git.d.ts +26 -0
  128. package/dist/mcp/tools/handoff-git.js +544 -0
  129. package/dist/mcp/tools/handoff-git.js.map +1 -0
  130. package/dist/mcp/tools/index.d.ts +2 -0
  131. package/dist/mcp/tools/index.js +23 -0
  132. package/dist/mcp/tools/index.js.map +1 -0
  133. package/dist/mcp/tools/leader-events.d.ts +46 -0
  134. package/dist/mcp/tools/leader-events.js +126 -0
  135. package/dist/mcp/tools/leader-events.js.map +1 -0
  136. package/dist/mcp/tools/local-handoff.d.ts +102 -0
  137. package/dist/mcp/tools/local-handoff.js +306 -0
  138. package/dist/mcp/tools/local-handoff.js.map +1 -0
  139. package/dist/mcp/tools/project-config.d.ts +340 -0
  140. package/dist/mcp/tools/project-config.js +1075 -0
  141. package/dist/mcp/tools/project-config.js.map +1 -0
  142. package/dist/mcp/tools/results-evidence.d.ts +112 -0
  143. package/dist/mcp/tools/results-evidence.js +1045 -0
  144. package/dist/mcp/tools/results-evidence.js.map +1 -0
  145. package/dist/mcp/tools/task-create.d.ts +70 -0
  146. package/dist/mcp/tools/task-create.js +473 -0
  147. package/dist/mcp/tools/task-create.js.map +1 -0
  148. package/dist/mcp/tools/task-reads.d.ts +102 -0
  149. package/dist/mcp/tools/task-reads.js +689 -0
  150. package/dist/mcp/tools/task-reads.js.map +1 -0
  151. package/dist/mcp/tools/work-organisation.d.ts +2 -0
  152. package/dist/mcp/tools/work-organisation.js +502 -0
  153. package/dist/mcp/tools/work-organisation.js.map +1 -0
  154. package/dist/paths.d.ts +17 -7
  155. package/dist/paths.js +18 -8
  156. package/dist/paths.js.map +1 -1
  157. package/dist/runs/project-writer.js +76 -11
  158. package/dist/runs/project-writer.js.map +1 -1
  159. package/dist/runs/retention.d.ts +25 -2
  160. package/dist/runs/retention.js +63 -2
  161. package/dist/runs/retention.js.map +1 -1
  162. package/dist/server/forge/github.js +44 -0
  163. package/dist/server/forge/github.js.map +1 -1
  164. package/dist/server/forge/types.d.ts +16 -0
  165. package/dist/server/project-context.d.ts +81 -8
  166. package/dist/server/project-context.js +143 -35
  167. package/dist/server/project-context.js.map +1 -1
  168. package/dist/server/server.d.ts +1050 -53
  169. package/dist/server/server.js +326 -120
  170. package/dist/server/server.js.map +1 -1
  171. package/dist/server/validators.d.ts +26 -6
  172. package/dist/server/validators.js +17 -0
  173. package/dist/server/validators.js.map +1 -1
  174. package/dist/skills-remote.js +64 -6
  175. package/dist/skills-remote.js.map +1 -1
  176. package/dist/workflows/run.d.ts +277 -12
  177. package/dist/workflows/run.js +599 -79
  178. package/dist/workflows/run.js.map +1 -1
  179. package/dist/workspace/agent-profiles.d.ts +30 -3
  180. package/dist/workspace/agent-profiles.js +39 -4
  181. package/dist/workspace/agent-profiles.js.map +1 -1
  182. package/dist/workspace/config.js +25 -4
  183. package/dist/workspace/config.js.map +1 -1
  184. package/dist/workspace/project-owner.d.ts +210 -0
  185. package/dist/workspace/project-owner.js +518 -0
  186. package/dist/workspace/project-owner.js.map +1 -0
  187. package/package.json +5 -3
  188. package/scripts/pi-leader-extension.ts +420 -0
  189. package/scripts/sync-readme.mjs +83 -2
  190. package/web/dist/assets/{alert-dialog-BVsVcbFy.js → alert-dialog-D6rP6d39.js} +1 -1
  191. package/web/dist/assets/arrow-down-DMOfFIzW.js +1 -0
  192. package/web/dist/assets/arrow-left-C4Ec2BUg.js +1 -0
  193. package/web/dist/assets/{centered-state-Djgly6Ni.js → centered-state-B0ZqrPaa.js} +12 -12
  194. package/web/dist/assets/chevron-right-mHJ-crvn.js +1 -0
  195. package/web/dist/assets/{collapsible-DZ4D-DHG.js → collapsible-DchEHgUM.js} +1 -1
  196. package/web/dist/assets/{commit-list-B-z1JL9G.js → commit-list-BpMim1Rv.js} +1 -1
  197. package/web/dist/assets/{compare-variants-CdS8r8E2.js → compare-variants-D5ItQbAq.js} +1 -1
  198. package/web/dist/assets/{diff-BKew9rQX.js → diff-HqqZ_WDR.js} +2 -2
  199. package/web/dist/assets/{diff-stat-D0mc5V6Z.js → diff-stat-NsU-3ecr.js} +1 -1
  200. package/web/dist/assets/{diff-view-xpIcuLIC.js → diff-view-B7c11Xux.js} +1 -1
  201. package/web/dist/assets/{dropdown-menu-CEQziH7X.js → dropdown-menu-CtTpnyod.js} +1 -1
  202. package/web/dist/assets/{editable-title-BCX3T2BY.js → editable-title-BXtuGQry.js} +1 -1
  203. package/web/dist/assets/{ellipsis-vertical-ByVdDc4z.js → ellipsis-vertical-MHtGZSH6.js} +1 -1
  204. package/web/dist/assets/{file-xBSB5hXO.js → file-DKLw5SOb.js} +1 -1
  205. package/web/dist/assets/{folder-CldgbZ5A.js → folder-Drw6-ufH.js} +1 -1
  206. package/web/dist/assets/{git-toolbar-BYlnf4qf.js → git-toolbar-BQH8bORV.js} +1 -1
  207. package/web/dist/assets/github-ynnpKFCJ.js +1 -0
  208. package/web/dist/assets/{image-preview-Cv5mZr0n.js → image-preview-DLhMN_R9.js} +1 -1
  209. package/web/dist/assets/index-BEsrNdXt.js +29 -0
  210. package/web/dist/assets/index-Da8DOBau.css +2 -0
  211. package/web/dist/assets/{markdown-CgEEE2ND.js → markdown-q365eN6Y.js} +1 -1
  212. package/web/dist/assets/{new-task-form-1r2bgsdD.js → new-task-form-CW-hNIWQ.js} +1 -1
  213. package/web/dist/assets/{pill-q-x22_ej.js → pill-B_TFulXa.js} +1 -1
  214. package/web/dist/assets/{project-router-VDN4jQM8.js → project-router-CLPc-ImZ.js} +1 -1
  215. package/web/dist/assets/{prompt-templates-BmZtCe-L.js → prompt-templates-CLc4RxyO.js} +1 -1
  216. package/web/dist/assets/{repo-git-C2On8SlI.js → repo-git-Is7R6-Tj.js} +1 -1
  217. package/web/dist/assets/{run-diff-vguEMJzh.js → run-diff-DHMvDlVo.js} +2 -2
  218. package/web/dist/assets/run-header-DvZJbQ8I.js +1 -0
  219. package/web/dist/assets/{search-x-QmhaAbg5.js → search-x-Ce2MMetu.js} +1 -1
  220. package/web/dist/assets/{skill-empty-hint-BrzUwByZ.js → skill-empty-hint-C_xCSvzB.js} +1 -1
  221. package/web/dist/assets/skills-CivqD4si.js +1 -0
  222. package/web/dist/assets/{sparkles-CP8QDOgX.js → sparkles-BCqPoj5g.js} +1 -1
  223. package/web/dist/assets/{square-terminal-CGypshSD.js → square-terminal-ikj5g-oK.js} +1 -1
  224. package/web/dist/assets/{tab-link-D4lFzzI1.js → tab-link-VsEjFV1Y.js} +1 -1
  225. package/web/dist/assets/{task-changes-6aopqAmV.js → task-changes-CH-E81-_.js} +1 -1
  226. package/web/dist/assets/{task-commits-u-dwaCyw.js → task-commits-DqfkMFxp.js} +1 -1
  227. package/web/dist/assets/{task-files-IMOZnIUK.js → task-files-D_nkHZ_a.js} +2 -2
  228. package/web/dist/assets/task-thread-bxQompxJ.js +9 -0
  229. package/web/dist/assets/{textarea-CyBCyKIk.js → textarea-xajuW1L_.js} +1 -1
  230. package/web/dist/assets/{thread-loading-Cuq2jchC.js → thread-loading-C3JQZbIE.js} +1 -1
  231. package/web/dist/assets/{trash-2-B6Dp3ZNs.js → trash-2-hJrBhpUD.js} +1 -1
  232. package/web/dist/assets/{triangle-alert-xBya8FUp.js → triangle-alert-D1u82y1a.js} +1 -1
  233. package/web/dist/assets/{upload-D6MXEB9p.js → upload-Bn6FBZ59.js} +1 -1
  234. package/web/dist/assets/{use-desktop-fLDKEJoB.js → use-desktop-DOIMfHfY.js} +1 -1
  235. package/web/dist/assets/{use-submit-shortcut-JTpNzU-u.js → use-submit-shortcut-Dj4DHTdE.js} +1 -1
  236. package/web/dist/assets/utils-YwBpOoRN.js +64 -0
  237. package/web/dist/assets/{workflows-BY3KTkFw.js → workflows-CTaAKz2m.js} +3 -3
  238. package/web/dist/assets/{zoomable-image-GTYwLtkS.js → zoomable-image-C1-6P3tg.js} +1 -1
  239. package/web/dist/index.html +23 -23
  240. package/web/dist/assets/arrow-down-CYgAlZtW.js +0 -1
  241. package/web/dist/assets/arrow-left-BOqE0a3k.js +0 -1
  242. package/web/dist/assets/chevron-right-Cc9BWnbN.js +0 -1
  243. package/web/dist/assets/github-CqGK62Lw.js +0 -1
  244. package/web/dist/assets/index-3nxVmdn5.css +0 -2
  245. package/web/dist/assets/index-qX7n11FX.js +0 -9
  246. package/web/dist/assets/refresh-cw-DcNCj2nu.js +0 -1
  247. package/web/dist/assets/run-header-DM7MiKj9.js +0 -1
  248. package/web/dist/assets/skills-Bj-uG_Hz.js +0 -1
  249. package/web/dist/assets/task-thread-CbMPmrWq.js +0 -9
  250. package/web/dist/assets/utils--z9hRtl3.js +0 -64
@@ -98,6 +98,9 @@ export interface ServerDeps {
98
98
  socketHub?: SocketHub;
99
99
  /** Re-arm the workspace automation timer after definition mutations. */
100
100
  automationsChanged?: () => void;
101
+ /** `startServer` only: handed the app it built, so the MCP socket (src/index.ts) dispatches
102
+ * into the SAME route table in-process (#243). `createApp` ignores it. */
103
+ onApp?: (app: ReturnType<typeof createApp>) => void;
101
104
  }
102
105
  /** One row of the mirrored project-route table. */
103
106
  export interface ProjectRouteInfo {
@@ -349,15 +352,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
349
352
  };
350
353
  };
351
354
  };
352
- }, "/"> | import("hono/types").MergeSchemaPath<{
353
- "/workspace/events": {
354
- $get: {
355
- output: {};
356
- outputFormat: string;
357
- status: import("hono/utils/http-status").StatusCode;
358
- input: {};
359
- };
360
- };
361
355
  }, "/"> | import("hono/types").MergeSchemaPath<{
362
356
  "/workspace/runs-index": {
363
357
  $get: {
@@ -418,6 +412,15 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
418
412
  input: {};
419
413
  };
420
414
  };
415
+ }, "/"> | import("hono/types").MergeSchemaPath<{
416
+ "/workspace/events": {
417
+ $get: {
418
+ output: {};
419
+ outputFormat: string;
420
+ status: import("hono/utils/http-status").StatusCode;
421
+ input: {};
422
+ };
423
+ };
421
424
  }, "/"> | import("hono/types").MergeSchemaPath<{
422
425
  "/workspace/skills-update": {
423
426
  $get: {
@@ -2090,6 +2093,63 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2090
2093
  };
2091
2094
  };
2092
2095
  };
2096
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2097
+ "/mcp/reference": {
2098
+ $get: {
2099
+ output: {
2100
+ available: true;
2101
+ xezarVersion: string;
2102
+ protocolVersions: string[];
2103
+ capabilities: {
2104
+ tools: {
2105
+ listChanged: boolean;
2106
+ };
2107
+ };
2108
+ tools: {
2109
+ name: string;
2110
+ title?: string | undefined;
2111
+ description: string;
2112
+ inputSchema: {
2113
+ [x: string]: import("hono/utils/types").JSONValue;
2114
+ };
2115
+ annotations?: {
2116
+ readOnlyHint?: boolean | undefined;
2117
+ destructiveHint?: boolean | undefined;
2118
+ idempotentHint?: boolean | undefined;
2119
+ openWorldHint?: boolean | undefined;
2120
+ } | undefined;
2121
+ }[];
2122
+ refusedActions: {
2123
+ tool: string;
2124
+ action: string;
2125
+ boundary: string;
2126
+ reason: string;
2127
+ }[];
2128
+ refusedArguments: {
2129
+ tool: string;
2130
+ argument: string;
2131
+ reason: string;
2132
+ }[];
2133
+ guards: {
2134
+ tool: string;
2135
+ argument: string;
2136
+ everyCall: boolean;
2137
+ requiredBy: string[];
2138
+ }[];
2139
+ notExposed: {
2140
+ what: string;
2141
+ detail: string;
2142
+ forbiddenBy: string[];
2143
+ }[];
2144
+ } | {
2145
+ available: false;
2146
+ reason: string;
2147
+ };
2148
+ outputFormat: "json";
2149
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2150
+ input: {};
2151
+ };
2152
+ };
2093
2153
  }, "/"> | import("hono/types").MergeSchemaPath<{
2094
2154
  "/ui-state": {
2095
2155
  $get: {
@@ -2284,6 +2344,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2284
2344
  status: 404;
2285
2345
  input: {
2286
2346
  json: {
2347
+ expectedVersion?: string | undefined;
2287
2348
  runId: string;
2288
2349
  };
2289
2350
  } & {
@@ -2299,6 +2360,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2299
2360
  status: 409;
2300
2361
  input: {
2301
2362
  json: {
2363
+ expectedVersion?: string | undefined;
2302
2364
  runId: string;
2303
2365
  };
2304
2366
  } & {
@@ -2433,6 +2495,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2433
2495
  status: import("hono/utils/http-status").ContentfulStatusCode;
2434
2496
  input: {
2435
2497
  json: {
2498
+ expectedVersion?: string | undefined;
2436
2499
  runId: string;
2437
2500
  };
2438
2501
  } & {
@@ -2719,6 +2782,97 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2719
2782
  };
2720
2783
  };
2721
2784
  };
2785
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2786
+ "/mcp/leader": {
2787
+ $get: {
2788
+ output: {
2789
+ available: false;
2790
+ reason: string;
2791
+ } | {
2792
+ available: true;
2793
+ leader: {
2794
+ client: "opencode" | "pi";
2795
+ state: "attached";
2796
+ } | null;
2797
+ delivery: {
2798
+ state: "disconnected" | "dispatching" | "ended" | "idle" | "inert" | "recovering";
2799
+ deliveredSeq: number;
2800
+ ackedSeq: number;
2801
+ reactedSeq: number;
2802
+ latestSeq: number;
2803
+ } | null;
2804
+ blocker: {
2805
+ code: string;
2806
+ message: string;
2807
+ fix: string;
2808
+ } | null;
2809
+ };
2810
+ outputFormat: "json";
2811
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2812
+ input: {};
2813
+ };
2814
+ };
2815
+ } & {
2816
+ "/mcp/leader": {
2817
+ $post: {
2818
+ output: {
2819
+ error: string;
2820
+ };
2821
+ outputFormat: "json";
2822
+ status: 409;
2823
+ input: {
2824
+ json: {
2825
+ action: "attach";
2826
+ client: "opencode";
2827
+ baseUrl: string;
2828
+ sessionId: string;
2829
+ } | {
2830
+ action: "attach";
2831
+ client: "pi";
2832
+ } | {
2833
+ action: "stop";
2834
+ };
2835
+ };
2836
+ } | {
2837
+ output: {
2838
+ available: false;
2839
+ reason: string;
2840
+ } | {
2841
+ available: true;
2842
+ leader: {
2843
+ client: "opencode" | "pi";
2844
+ state: "attached";
2845
+ } | null;
2846
+ delivery: {
2847
+ state: "disconnected" | "dispatching" | "ended" | "idle" | "inert" | "recovering";
2848
+ deliveredSeq: number;
2849
+ ackedSeq: number;
2850
+ reactedSeq: number;
2851
+ latestSeq: number;
2852
+ } | null;
2853
+ blocker: {
2854
+ code: string;
2855
+ message: string;
2856
+ fix: string;
2857
+ } | null;
2858
+ };
2859
+ outputFormat: "json";
2860
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2861
+ input: {
2862
+ json: {
2863
+ action: "attach";
2864
+ client: "opencode";
2865
+ baseUrl: string;
2866
+ sessionId: string;
2867
+ } | {
2868
+ action: "attach";
2869
+ client: "pi";
2870
+ } | {
2871
+ action: "stop";
2872
+ };
2873
+ };
2874
+ };
2875
+ };
2722
2876
  }, "/"> | import("hono/types").MergeSchemaPath<{
2723
2877
  "/skills": {
2724
2878
  $get: {
@@ -4105,6 +4259,100 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4105
4259
  };
4106
4260
  };
4107
4261
  };
4262
+ } & {
4263
+ "/github/prs/:number/ready": {
4264
+ $post: {
4265
+ output: {
4266
+ error: string;
4267
+ };
4268
+ outputFormat: "json";
4269
+ status: 400;
4270
+ input: {
4271
+ param: {
4272
+ number: string;
4273
+ };
4274
+ } & {
4275
+ json: {
4276
+ expectedHeadSha: string;
4277
+ };
4278
+ };
4279
+ } | {
4280
+ output: {
4281
+ error: string;
4282
+ };
4283
+ outputFormat: "json";
4284
+ status: 409;
4285
+ input: {
4286
+ param: {
4287
+ number: string;
4288
+ };
4289
+ } & {
4290
+ json: {
4291
+ expectedHeadSha: string;
4292
+ };
4293
+ };
4294
+ } | {
4295
+ output: {
4296
+ ready: true;
4297
+ number: number;
4298
+ url: string;
4299
+ };
4300
+ outputFormat: "json";
4301
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4302
+ input: {
4303
+ param: {
4304
+ number: string;
4305
+ };
4306
+ } & {
4307
+ json: {
4308
+ expectedHeadSha: string;
4309
+ };
4310
+ };
4311
+ } | {
4312
+ output: {
4313
+ error: string;
4314
+ code?: string | undefined;
4315
+ current?: {
4316
+ number: number;
4317
+ title: string;
4318
+ url: string;
4319
+ state: 'open' | 'closed' | 'merged';
4320
+ isDraft: boolean;
4321
+ headRef: string;
4322
+ baseRef: string;
4323
+ headSha: string;
4324
+ mergeable: 'mergeable' | 'conflicting' | 'unknown';
4325
+ reviewDecision: 'approved' | 'changes-requested' | 'review-required' | 'unknown';
4326
+ checks: {
4327
+ name: string;
4328
+ state: 'passing' | 'failing' | 'pending' | 'unknown';
4329
+ required: boolean | null;
4330
+ url?: string;
4331
+ }[];
4332
+ methods: import("./forge/types.ts").ForgeMergeMethod[];
4333
+ defaultMethod: import("./forge/types.ts").ForgeMergeMethod | null;
4334
+ eligibility: 'ready' | 'blocked' | 'pending' | 'unauthorized' | 'terminal' | 'unknown';
4335
+ blockers: {
4336
+ code: string;
4337
+ message: string;
4338
+ }[];
4339
+ canMerge: boolean;
4340
+ canOverride: boolean;
4341
+ } | undefined;
4342
+ };
4343
+ outputFormat: "json";
4344
+ status: 403 | 404 | 409 | 502;
4345
+ input: {
4346
+ param: {
4347
+ number: string;
4348
+ };
4349
+ } & {
4350
+ json: {
4351
+ expectedHeadSha: string;
4352
+ };
4353
+ };
4354
+ };
4355
+ };
4108
4356
  } & {
4109
4357
  "/github/prs/:number/changes": {
4110
4358
  $get: {
@@ -5273,6 +5521,47 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5273
5521
  } & {
5274
5522
  "/runs/:id/archive": {
5275
5523
  $post: {
5524
+ output: {
5525
+ error: string;
5526
+ };
5527
+ outputFormat: "json";
5528
+ status: 404;
5529
+ input: {
5530
+ json: {
5531
+ expectedVersion?: string | undefined;
5532
+ archived?: boolean | undefined;
5533
+ };
5534
+ } & {
5535
+ param: {
5536
+ id: string;
5537
+ };
5538
+ };
5539
+ } | {
5540
+ output: {
5541
+ status: "conflict";
5542
+ applied: false;
5543
+ error: "stale_version";
5544
+ resource: {
5545
+ kind: string;
5546
+ id: string;
5547
+ };
5548
+ currentVersion?: string | undefined;
5549
+ changedSince: true;
5550
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
5551
+ };
5552
+ outputFormat: "json";
5553
+ status: 409;
5554
+ input: {
5555
+ json: {
5556
+ expectedVersion?: string | undefined;
5557
+ archived?: boolean | undefined;
5558
+ };
5559
+ } & {
5560
+ param: {
5561
+ id: string;
5562
+ };
5563
+ };
5564
+ } | {
5276
5565
  output: {
5277
5566
  id: string;
5278
5567
  title: string;
@@ -5397,6 +5686,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5397
5686
  status: import("hono/utils/http-status").ContentfulStatusCode;
5398
5687
  input: {
5399
5688
  json: {
5689
+ expectedVersion?: string | undefined;
5400
5690
  archived?: boolean | undefined;
5401
5691
  };
5402
5692
  } & {
@@ -5404,26 +5694,36 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5404
5694
  id: string;
5405
5695
  };
5406
5696
  };
5407
- } | {
5697
+ };
5698
+ };
5699
+ } & {
5700
+ "/runs/:id/pin": {
5701
+ $post: {
5408
5702
  output: {
5409
- error: string;
5703
+ status: "conflict";
5704
+ applied: false;
5705
+ error: "stale_version";
5706
+ resource: {
5707
+ kind: string;
5708
+ id: string;
5709
+ };
5710
+ currentVersion?: string | undefined;
5711
+ changedSince: true;
5712
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
5410
5713
  };
5411
5714
  outputFormat: "json";
5412
- status: 404;
5715
+ status: 409;
5413
5716
  input: {
5414
5717
  json: {
5415
- archived?: boolean | undefined;
5718
+ expectedVersion?: string | undefined;
5719
+ pinned?: boolean | undefined;
5416
5720
  };
5417
5721
  } & {
5418
5722
  param: {
5419
5723
  id: string;
5420
5724
  };
5421
5725
  };
5422
- };
5423
- };
5424
- } & {
5425
- "/runs/:id/pin": {
5426
- $post: {
5726
+ } | {
5427
5727
  output: {
5428
5728
  id: string;
5429
5729
  title: string;
@@ -5548,6 +5848,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5548
5848
  status: import("hono/utils/http-status").ContentfulStatusCode;
5549
5849
  input: {
5550
5850
  json: {
5851
+ expectedVersion?: string | undefined;
5551
5852
  pinned?: boolean | undefined;
5552
5853
  };
5553
5854
  } & {
@@ -5563,6 +5864,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5563
5864
  status: 404;
5564
5865
  input: {
5565
5866
  json: {
5867
+ expectedVersion?: string | undefined;
5566
5868
  pinned?: boolean | undefined;
5567
5869
  };
5568
5870
  } & {
@@ -5576,28 +5878,60 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5576
5878
  "/runs/:id/auto-resume": {
5577
5879
  $delete: {
5578
5880
  output: {
5579
- error: string;
5881
+ status: "conflict";
5882
+ applied: false;
5883
+ error: "stale_version";
5884
+ resource: {
5885
+ kind: string;
5886
+ id: string;
5887
+ };
5888
+ currentVersion?: string | undefined;
5889
+ changedSince: true;
5890
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
5580
5891
  };
5581
5892
  outputFormat: "json";
5582
- status: 404;
5893
+ status: 409;
5583
5894
  input: {
5895
+ json?: {
5896
+ expectedVersion?: string | undefined;
5897
+ } | undefined;
5898
+ } & {
5584
5899
  param: {
5585
5900
  id: string;
5586
5901
  };
5587
5902
  };
5588
5903
  } | {
5589
5904
  output: {
5590
- cancelled: true;
5905
+ error: string;
5591
5906
  };
5592
5907
  outputFormat: "json";
5593
- status: import("hono/utils/http-status").ContentfulStatusCode;
5908
+ status: 404;
5594
5909
  input: {
5910
+ json?: {
5911
+ expectedVersion?: string | undefined;
5912
+ } | undefined;
5913
+ } & {
5595
5914
  param: {
5596
5915
  id: string;
5597
5916
  };
5598
5917
  };
5599
- };
5600
- };
5918
+ } | {
5919
+ output: {
5920
+ cancelled: true;
5921
+ };
5922
+ outputFormat: "json";
5923
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5924
+ input: {
5925
+ json?: {
5926
+ expectedVersion?: string | undefined;
5927
+ } | undefined;
5928
+ } & {
5929
+ param: {
5930
+ id: string;
5931
+ };
5932
+ };
5933
+ };
5934
+ };
5601
5935
  } & {
5602
5936
  "/runs/:id/read": {
5603
5937
  $post: {
@@ -6473,6 +6807,32 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6473
6807
  };
6474
6808
  };
6475
6809
  };
6810
+ } & {
6811
+ "/runs/:id/version": {
6812
+ $get: {
6813
+ output: {
6814
+ error: string;
6815
+ };
6816
+ outputFormat: "json";
6817
+ status: 404;
6818
+ input: {
6819
+ param: {
6820
+ id: string;
6821
+ };
6822
+ };
6823
+ } | {
6824
+ output: {
6825
+ version: string;
6826
+ };
6827
+ outputFormat: "json";
6828
+ status: import("hono/utils/http-status").ContentfulStatusCode;
6829
+ input: {
6830
+ param: {
6831
+ id: string;
6832
+ };
6833
+ };
6834
+ };
6835
+ };
6476
6836
  } & {
6477
6837
  "/runs/:id/history": {
6478
6838
  $get: {
@@ -6733,6 +7093,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6733
7093
  json: {
6734
7094
  title?: string | undefined;
6735
7095
  task?: string | undefined;
7096
+ expectedVersion?: string | undefined;
6736
7097
  };
6737
7098
  } & {
6738
7099
  param: {
@@ -6749,6 +7110,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6749
7110
  json: {
6750
7111
  title?: string | undefined;
6751
7112
  task?: string | undefined;
7113
+ expectedVersion?: string | undefined;
6752
7114
  };
6753
7115
  } & {
6754
7116
  param: {
@@ -6765,6 +7127,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6765
7127
  json: {
6766
7128
  title?: string | undefined;
6767
7129
  task?: string | undefined;
7130
+ expectedVersion?: string | undefined;
6768
7131
  };
6769
7132
  } & {
6770
7133
  param: {
@@ -6781,6 +7144,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6781
7144
  json: {
6782
7145
  title?: string | undefined;
6783
7146
  task?: string | undefined;
7147
+ expectedVersion?: string | undefined;
6784
7148
  };
6785
7149
  } & {
6786
7150
  param: {
@@ -6792,12 +7156,40 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6792
7156
  } & {
6793
7157
  "/runs/:id/cancel": {
6794
7158
  $post: {
7159
+ output: {
7160
+ status: "conflict";
7161
+ applied: false;
7162
+ error: "stale_version";
7163
+ resource: {
7164
+ kind: string;
7165
+ id: string;
7166
+ };
7167
+ currentVersion?: string | undefined;
7168
+ changedSince: true;
7169
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
7170
+ };
7171
+ outputFormat: "json";
7172
+ status: 409;
7173
+ input: {
7174
+ json?: {
7175
+ expectedVersion?: string | undefined;
7176
+ } | undefined;
7177
+ } & {
7178
+ param: {
7179
+ id: string;
7180
+ };
7181
+ };
7182
+ } | {
6795
7183
  output: {
6796
7184
  error: string;
6797
7185
  };
6798
7186
  outputFormat: "json";
6799
7187
  status: 404;
6800
7188
  input: {
7189
+ json?: {
7190
+ expectedVersion?: string | undefined;
7191
+ } | undefined;
7192
+ } & {
6801
7193
  param: {
6802
7194
  id: string;
6803
7195
  };
@@ -6809,6 +7201,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6809
7201
  outputFormat: "json";
6810
7202
  status: import("hono/utils/http-status").ContentfulStatusCode;
6811
7203
  input: {
7204
+ json?: {
7205
+ expectedVersion?: string | undefined;
7206
+ } | undefined;
7207
+ } & {
6812
7208
  param: {
6813
7209
  id: string;
6814
7210
  };
@@ -6830,6 +7226,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6830
7226
  mediaType: string;
6831
7227
  data: string;
6832
7228
  }[] | undefined;
7229
+ expectedVersion?: string | undefined;
6833
7230
  };
6834
7231
  } & {
6835
7232
  param: {
@@ -6849,6 +7246,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6849
7246
  mediaType: string;
6850
7247
  data: string;
6851
7248
  }[] | undefined;
7249
+ expectedVersion?: string | undefined;
6852
7250
  };
6853
7251
  } & {
6854
7252
  param: {
@@ -6868,6 +7266,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6868
7266
  mediaType: string;
6869
7267
  data: string;
6870
7268
  }[] | undefined;
7269
+ expectedVersion?: string | undefined;
6871
7270
  };
6872
7271
  } & {
6873
7272
  param: {
@@ -6887,6 +7286,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6887
7286
  mediaType: string;
6888
7287
  data: string;
6889
7288
  }[] | undefined;
7289
+ expectedVersion?: string | undefined;
6890
7290
  };
6891
7291
  } & {
6892
7292
  param: {
@@ -6912,6 +7312,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6912
7312
  mediaType: string;
6913
7313
  data: string;
6914
7314
  }[] | undefined;
7315
+ expectedVersion?: string | undefined;
6915
7316
  };
6916
7317
  } & {
6917
7318
  param: {
@@ -6931,6 +7332,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6931
7332
  mediaType: string;
6932
7333
  data: string;
6933
7334
  }[] | undefined;
7335
+ expectedVersion?: string | undefined;
6934
7336
  };
6935
7337
  } & {
6936
7338
  param: {
@@ -6949,6 +7351,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6949
7351
  status: 404;
6950
7352
  input: {
6951
7353
  json: {
7354
+ expectedVersion?: string | undefined;
6952
7355
  text?: string | undefined;
6953
7356
  images?: {
6954
7357
  mediaType: string;
@@ -6970,6 +7373,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6970
7373
  status: 400;
6971
7374
  input: {
6972
7375
  json: {
7376
+ expectedVersion?: string | undefined;
6973
7377
  text?: string | undefined;
6974
7378
  images?: {
6975
7379
  mediaType: string;
@@ -6991,6 +7395,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6991
7395
  status: 409;
6992
7396
  input: {
6993
7397
  json: {
7398
+ expectedVersion?: string | undefined;
6994
7399
  text?: string | undefined;
6995
7400
  images?: {
6996
7401
  mediaType: string;
@@ -7017,6 +7422,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7017
7422
  status: import("hono/utils/http-status").ContentfulStatusCode;
7018
7423
  input: {
7019
7424
  json: {
7425
+ expectedVersion?: string | undefined;
7020
7426
  text?: string | undefined;
7021
7427
  images?: {
7022
7428
  mediaType: string;
@@ -7041,6 +7447,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7041
7447
  outputFormat: "json";
7042
7448
  status: 404;
7043
7449
  input: {
7450
+ json?: {
7451
+ expectedVersion?: string | undefined;
7452
+ } | undefined;
7453
+ } & {
7044
7454
  param: {
7045
7455
  id: string;
7046
7456
  } & {
@@ -7054,6 +7464,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7054
7464
  outputFormat: "json";
7055
7465
  status: 409;
7056
7466
  input: {
7467
+ json?: {
7468
+ expectedVersion?: string | undefined;
7469
+ } | undefined;
7470
+ } & {
7057
7471
  param: {
7058
7472
  id: string;
7059
7473
  } & {
@@ -7067,6 +7481,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7067
7481
  outputFormat: "json";
7068
7482
  status: import("hono/utils/http-status").ContentfulStatusCode;
7069
7483
  input: {
7484
+ json?: {
7485
+ expectedVersion?: string | undefined;
7486
+ } | undefined;
7487
+ } & {
7070
7488
  param: {
7071
7489
  id: string;
7072
7490
  } & {
@@ -7084,6 +7502,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7084
7502
  outputFormat: "json";
7085
7503
  status: 404;
7086
7504
  input: {
7505
+ json?: {
7506
+ expectedVersion?: string | undefined;
7507
+ } | undefined;
7508
+ } & {
7087
7509
  param: {
7088
7510
  id: string;
7089
7511
  };
@@ -7095,6 +7517,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7095
7517
  outputFormat: "json";
7096
7518
  status: 409;
7097
7519
  input: {
7520
+ json?: {
7521
+ expectedVersion?: string | undefined;
7522
+ } | undefined;
7523
+ } & {
7098
7524
  param: {
7099
7525
  id: string;
7100
7526
  };
@@ -7106,6 +7532,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7106
7532
  outputFormat: "json";
7107
7533
  status: import("hono/utils/http-status").ContentfulStatusCode;
7108
7534
  input: {
7535
+ json?: {
7536
+ expectedVersion?: string | undefined;
7537
+ } | undefined;
7538
+ } & {
7109
7539
  param: {
7110
7540
  id: string;
7111
7541
  };
@@ -7122,6 +7552,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7122
7552
  status: 404;
7123
7553
  input: {
7124
7554
  json: {
7555
+ expectedVersion?: string | undefined;
7125
7556
  text?: string | undefined;
7126
7557
  images?: {
7127
7558
  mediaType: string;
@@ -7144,6 +7575,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7144
7575
  status: 400;
7145
7576
  input: {
7146
7577
  json: {
7578
+ expectedVersion?: string | undefined;
7147
7579
  text?: string | undefined;
7148
7580
  images?: {
7149
7581
  mediaType: string;
@@ -7166,6 +7598,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7166
7598
  status: 409;
7167
7599
  input: {
7168
7600
  json: {
7601
+ expectedVersion?: string | undefined;
7169
7602
  text?: string | undefined;
7170
7603
  images?: {
7171
7604
  mediaType: string;
@@ -7188,6 +7621,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7188
7621
  status: import("hono/utils/http-status").ContentfulStatusCode;
7189
7622
  input: {
7190
7623
  json: {
7624
+ expectedVersion?: string | undefined;
7191
7625
  text?: string | undefined;
7192
7626
  images?: {
7193
7627
  mediaType: string;
@@ -7361,6 +7795,17 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7361
7795
  id: string;
7362
7796
  };
7363
7797
  };
7798
+ } | {
7799
+ output: {
7800
+ error: string;
7801
+ };
7802
+ outputFormat: "json";
7803
+ status: 409;
7804
+ input: {
7805
+ param: {
7806
+ id: string;
7807
+ };
7808
+ };
7364
7809
  } | {
7365
7810
  output: {
7366
7811
  error: string;
@@ -7381,7 +7826,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7381
7826
  error: string;
7382
7827
  };
7383
7828
  outputFormat: "json";
7384
- status: 404;
7829
+ status: 409;
7385
7830
  input: {
7386
7831
  param: {
7387
7832
  id: string;
@@ -7392,7 +7837,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7392
7837
  error: string;
7393
7838
  };
7394
7839
  outputFormat: "json";
7395
- status: 409;
7840
+ status: 404;
7396
7841
  input: {
7397
7842
  param: {
7398
7843
  id: string;
@@ -7648,9 +8093,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7648
8093
  error: string;
7649
8094
  };
7650
8095
  outputFormat: "json";
7651
- status: 404;
8096
+ status: 409;
7652
8097
  input: {
7653
8098
  json: {
8099
+ expectedVersion?: string | undefined;
7654
8100
  message: string;
7655
8101
  };
7656
8102
  } & {
@@ -7663,9 +8109,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7663
8109
  error: string;
7664
8110
  };
7665
8111
  outputFormat: "json";
7666
- status: 409;
8112
+ status: 404;
7667
8113
  input: {
7668
8114
  json: {
8115
+ expectedVersion?: string | undefined;
7669
8116
  message: string;
7670
8117
  };
7671
8118
  } & {
@@ -7682,6 +8129,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7682
8129
  status: import("hono/utils/http-status").ContentfulStatusCode;
7683
8130
  input: {
7684
8131
  json: {
8132
+ expectedVersion?: string | undefined;
7685
8133
  message: string;
7686
8134
  };
7687
8135
  } & {
@@ -7698,8 +8146,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7698
8146
  error: string;
7699
8147
  };
7700
8148
  outputFormat: "json";
7701
- status: 404;
8149
+ status: 409;
7702
8150
  input: {
8151
+ json?: {
8152
+ expectedVersion?: string | undefined;
8153
+ } | undefined;
8154
+ } & {
7703
8155
  param: {
7704
8156
  id: string;
7705
8157
  };
@@ -7709,8 +8161,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7709
8161
  error: string;
7710
8162
  };
7711
8163
  outputFormat: "json";
7712
- status: 409;
8164
+ status: 404;
7713
8165
  input: {
8166
+ json?: {
8167
+ expectedVersion?: string | undefined;
8168
+ } | undefined;
8169
+ } & {
7714
8170
  param: {
7715
8171
  id: string;
7716
8172
  };
@@ -7725,6 +8181,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7725
8181
  outputFormat: "json";
7726
8182
  status: import("hono/utils/http-status").ContentfulStatusCode;
7727
8183
  input: {
8184
+ json?: {
8185
+ expectedVersion?: string | undefined;
8186
+ } | undefined;
8187
+ } & {
7728
8188
  param: {
7729
8189
  id: string;
7730
8190
  };
@@ -7738,8 +8198,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7738
8198
  error: string;
7739
8199
  };
7740
8200
  outputFormat: "json";
7741
- status: 404;
8201
+ status: 409;
7742
8202
  input: {
8203
+ json?: {
8204
+ expectedVersion?: string | undefined;
8205
+ } | undefined;
8206
+ } & {
7743
8207
  param: {
7744
8208
  id: string;
7745
8209
  };
@@ -7749,8 +8213,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7749
8213
  error: string;
7750
8214
  };
7751
8215
  outputFormat: "json";
7752
- status: 409;
8216
+ status: 404;
7753
8217
  input: {
8218
+ json?: {
8219
+ expectedVersion?: string | undefined;
8220
+ } | undefined;
8221
+ } & {
7754
8222
  param: {
7755
8223
  id: string;
7756
8224
  };
@@ -7762,6 +8230,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7762
8230
  outputFormat: "json";
7763
8231
  status: 400;
7764
8232
  input: {
8233
+ json?: {
8234
+ expectedVersion?: string | undefined;
8235
+ } | undefined;
8236
+ } & {
7765
8237
  param: {
7766
8238
  id: string;
7767
8239
  };
@@ -7774,6 +8246,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7774
8246
  outputFormat: "json";
7775
8247
  status: 201;
7776
8248
  input: {
8249
+ json?: {
8250
+ expectedVersion?: string | undefined;
8251
+ } | undefined;
8252
+ } & {
7777
8253
  param: {
7778
8254
  id: string;
7779
8255
  };
@@ -7787,8 +8263,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7787
8263
  error: string;
7788
8264
  };
7789
8265
  outputFormat: "json";
7790
- status: 404;
8266
+ status: 409;
7791
8267
  input: {
8268
+ json?: {
8269
+ expectedVersion?: string | undefined;
8270
+ } | undefined;
8271
+ } & {
7792
8272
  param: {
7793
8273
  id: string;
7794
8274
  };
@@ -7798,8 +8278,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7798
8278
  error: string;
7799
8279
  };
7800
8280
  outputFormat: "json";
7801
- status: 409;
8281
+ status: 404;
7802
8282
  input: {
8283
+ json?: {
8284
+ expectedVersion?: string | undefined;
8285
+ } | undefined;
8286
+ } & {
7803
8287
  param: {
7804
8288
  id: string;
7805
8289
  };
@@ -7811,6 +8295,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7811
8295
  outputFormat: "json";
7812
8296
  status: import("hono/utils/http-status").ContentfulStatusCode;
7813
8297
  input: {
8298
+ json?: {
8299
+ expectedVersion?: string | undefined;
8300
+ } | undefined;
8301
+ } & {
7814
8302
  param: {
7815
8303
  id: string;
7816
8304
  };
@@ -7826,6 +8314,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7826
8314
  outputFormat: "json";
7827
8315
  status: 409;
7828
8316
  input: {
8317
+ json?: {
8318
+ expectedVersion?: string | undefined;
8319
+ } | undefined;
8320
+ } & {
7829
8321
  param: {
7830
8322
  id: string;
7831
8323
  };
@@ -7837,6 +8329,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7837
8329
  outputFormat: "json";
7838
8330
  status: 404;
7839
8331
  input: {
8332
+ json?: {
8333
+ expectedVersion?: string | undefined;
8334
+ } | undefined;
8335
+ } & {
7840
8336
  param: {
7841
8337
  id: string;
7842
8338
  };
@@ -7848,6 +8344,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7848
8344
  outputFormat: "json";
7849
8345
  status: import("hono/utils/http-status").ContentfulStatusCode;
7850
8346
  input: {
8347
+ json?: {
8348
+ expectedVersion?: string | undefined;
8349
+ } | undefined;
8350
+ } & {
7851
8351
  param: {
7852
8352
  id: string;
7853
8353
  };
@@ -7909,6 +8409,63 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7909
8409
  };
7910
8410
  };
7911
8411
  };
8412
+ }, "/"> | import("hono/types").MergeSchemaPath<{
8413
+ "/mcp/reference": {
8414
+ $get: {
8415
+ output: {
8416
+ available: true;
8417
+ xezarVersion: string;
8418
+ protocolVersions: string[];
8419
+ capabilities: {
8420
+ tools: {
8421
+ listChanged: boolean;
8422
+ };
8423
+ };
8424
+ tools: {
8425
+ name: string;
8426
+ title?: string | undefined;
8427
+ description: string;
8428
+ inputSchema: {
8429
+ [x: string]: import("hono/utils/types").JSONValue;
8430
+ };
8431
+ annotations?: {
8432
+ readOnlyHint?: boolean | undefined;
8433
+ destructiveHint?: boolean | undefined;
8434
+ idempotentHint?: boolean | undefined;
8435
+ openWorldHint?: boolean | undefined;
8436
+ } | undefined;
8437
+ }[];
8438
+ refusedActions: {
8439
+ tool: string;
8440
+ action: string;
8441
+ boundary: string;
8442
+ reason: string;
8443
+ }[];
8444
+ refusedArguments: {
8445
+ tool: string;
8446
+ argument: string;
8447
+ reason: string;
8448
+ }[];
8449
+ guards: {
8450
+ tool: string;
8451
+ argument: string;
8452
+ everyCall: boolean;
8453
+ requiredBy: string[];
8454
+ }[];
8455
+ notExposed: {
8456
+ what: string;
8457
+ detail: string;
8458
+ forbiddenBy: string[];
8459
+ }[];
8460
+ } | {
8461
+ available: false;
8462
+ reason: string;
8463
+ };
8464
+ outputFormat: "json";
8465
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8466
+ input: {};
8467
+ };
8468
+ };
7912
8469
  }, "/"> | import("hono/types").MergeSchemaPath<{
7913
8470
  "/ui-state": {
7914
8471
  $get: {
@@ -8103,6 +8660,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8103
8660
  status: 404;
8104
8661
  input: {
8105
8662
  json: {
8663
+ expectedVersion?: string | undefined;
8106
8664
  runId: string;
8107
8665
  };
8108
8666
  } & {
@@ -8118,6 +8676,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8118
8676
  status: 409;
8119
8677
  input: {
8120
8678
  json: {
8679
+ expectedVersion?: string | undefined;
8121
8680
  runId: string;
8122
8681
  };
8123
8682
  } & {
@@ -8252,6 +8811,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8252
8811
  status: import("hono/utils/http-status").ContentfulStatusCode;
8253
8812
  input: {
8254
8813
  json: {
8814
+ expectedVersion?: string | undefined;
8255
8815
  runId: string;
8256
8816
  };
8257
8817
  } & {
@@ -8538,6 +9098,97 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8538
9098
  };
8539
9099
  };
8540
9100
  };
9101
+ }, "/"> | import("hono/types").MergeSchemaPath<{
9102
+ "/mcp/leader": {
9103
+ $get: {
9104
+ output: {
9105
+ available: false;
9106
+ reason: string;
9107
+ } | {
9108
+ available: true;
9109
+ leader: {
9110
+ client: "opencode" | "pi";
9111
+ state: "attached";
9112
+ } | null;
9113
+ delivery: {
9114
+ state: "disconnected" | "dispatching" | "ended" | "idle" | "inert" | "recovering";
9115
+ deliveredSeq: number;
9116
+ ackedSeq: number;
9117
+ reactedSeq: number;
9118
+ latestSeq: number;
9119
+ } | null;
9120
+ blocker: {
9121
+ code: string;
9122
+ message: string;
9123
+ fix: string;
9124
+ } | null;
9125
+ };
9126
+ outputFormat: "json";
9127
+ status: import("hono/utils/http-status").ContentfulStatusCode;
9128
+ input: {};
9129
+ };
9130
+ };
9131
+ } & {
9132
+ "/mcp/leader": {
9133
+ $post: {
9134
+ output: {
9135
+ error: string;
9136
+ };
9137
+ outputFormat: "json";
9138
+ status: 409;
9139
+ input: {
9140
+ json: {
9141
+ action: "attach";
9142
+ client: "opencode";
9143
+ baseUrl: string;
9144
+ sessionId: string;
9145
+ } | {
9146
+ action: "attach";
9147
+ client: "pi";
9148
+ } | {
9149
+ action: "stop";
9150
+ };
9151
+ };
9152
+ } | {
9153
+ output: {
9154
+ available: false;
9155
+ reason: string;
9156
+ } | {
9157
+ available: true;
9158
+ leader: {
9159
+ client: "opencode" | "pi";
9160
+ state: "attached";
9161
+ } | null;
9162
+ delivery: {
9163
+ state: "disconnected" | "dispatching" | "ended" | "idle" | "inert" | "recovering";
9164
+ deliveredSeq: number;
9165
+ ackedSeq: number;
9166
+ reactedSeq: number;
9167
+ latestSeq: number;
9168
+ } | null;
9169
+ blocker: {
9170
+ code: string;
9171
+ message: string;
9172
+ fix: string;
9173
+ } | null;
9174
+ };
9175
+ outputFormat: "json";
9176
+ status: import("hono/utils/http-status").ContentfulStatusCode;
9177
+ input: {
9178
+ json: {
9179
+ action: "attach";
9180
+ client: "opencode";
9181
+ baseUrl: string;
9182
+ sessionId: string;
9183
+ } | {
9184
+ action: "attach";
9185
+ client: "pi";
9186
+ } | {
9187
+ action: "stop";
9188
+ };
9189
+ };
9190
+ };
9191
+ };
8541
9192
  }, "/"> | import("hono/types").MergeSchemaPath<{
8542
9193
  "/skills": {
8543
9194
  $get: {
@@ -9924,6 +10575,100 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9924
10575
  };
9925
10576
  };
9926
10577
  };
10578
+ } & {
10579
+ "/github/prs/:number/ready": {
10580
+ $post: {
10581
+ output: {
10582
+ error: string;
10583
+ };
10584
+ outputFormat: "json";
10585
+ status: 400;
10586
+ input: {
10587
+ param: {
10588
+ number: string;
10589
+ };
10590
+ } & {
10591
+ json: {
10592
+ expectedHeadSha: string;
10593
+ };
10594
+ };
10595
+ } | {
10596
+ output: {
10597
+ error: string;
10598
+ };
10599
+ outputFormat: "json";
10600
+ status: 409;
10601
+ input: {
10602
+ param: {
10603
+ number: string;
10604
+ };
10605
+ } & {
10606
+ json: {
10607
+ expectedHeadSha: string;
10608
+ };
10609
+ };
10610
+ } | {
10611
+ output: {
10612
+ ready: true;
10613
+ number: number;
10614
+ url: string;
10615
+ };
10616
+ outputFormat: "json";
10617
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10618
+ input: {
10619
+ param: {
10620
+ number: string;
10621
+ };
10622
+ } & {
10623
+ json: {
10624
+ expectedHeadSha: string;
10625
+ };
10626
+ };
10627
+ } | {
10628
+ output: {
10629
+ error: string;
10630
+ code?: string | undefined;
10631
+ current?: {
10632
+ number: number;
10633
+ title: string;
10634
+ url: string;
10635
+ state: 'open' | 'closed' | 'merged';
10636
+ isDraft: boolean;
10637
+ headRef: string;
10638
+ baseRef: string;
10639
+ headSha: string;
10640
+ mergeable: 'mergeable' | 'conflicting' | 'unknown';
10641
+ reviewDecision: 'approved' | 'changes-requested' | 'review-required' | 'unknown';
10642
+ checks: {
10643
+ name: string;
10644
+ state: 'passing' | 'failing' | 'pending' | 'unknown';
10645
+ required: boolean | null;
10646
+ url?: string;
10647
+ }[];
10648
+ methods: import("./forge/types.ts").ForgeMergeMethod[];
10649
+ defaultMethod: import("./forge/types.ts").ForgeMergeMethod | null;
10650
+ eligibility: 'ready' | 'blocked' | 'pending' | 'unauthorized' | 'terminal' | 'unknown';
10651
+ blockers: {
10652
+ code: string;
10653
+ message: string;
10654
+ }[];
10655
+ canMerge: boolean;
10656
+ canOverride: boolean;
10657
+ } | undefined;
10658
+ };
10659
+ outputFormat: "json";
10660
+ status: 403 | 404 | 409 | 502;
10661
+ input: {
10662
+ param: {
10663
+ number: string;
10664
+ };
10665
+ } & {
10666
+ json: {
10667
+ expectedHeadSha: string;
10668
+ };
10669
+ };
10670
+ };
10671
+ };
9927
10672
  } & {
9928
10673
  "/github/prs/:number/changes": {
9929
10674
  $get: {
@@ -11092,6 +11837,47 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11092
11837
  } & {
11093
11838
  "/runs/:id/archive": {
11094
11839
  $post: {
11840
+ output: {
11841
+ error: string;
11842
+ };
11843
+ outputFormat: "json";
11844
+ status: 404;
11845
+ input: {
11846
+ json: {
11847
+ expectedVersion?: string | undefined;
11848
+ archived?: boolean | undefined;
11849
+ };
11850
+ } & {
11851
+ param: {
11852
+ id: string;
11853
+ };
11854
+ };
11855
+ } | {
11856
+ output: {
11857
+ status: "conflict";
11858
+ applied: false;
11859
+ error: "stale_version";
11860
+ resource: {
11861
+ kind: string;
11862
+ id: string;
11863
+ };
11864
+ currentVersion?: string | undefined;
11865
+ changedSince: true;
11866
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
11867
+ };
11868
+ outputFormat: "json";
11869
+ status: 409;
11870
+ input: {
11871
+ json: {
11872
+ expectedVersion?: string | undefined;
11873
+ archived?: boolean | undefined;
11874
+ };
11875
+ } & {
11876
+ param: {
11877
+ id: string;
11878
+ };
11879
+ };
11880
+ } | {
11095
11881
  output: {
11096
11882
  id: string;
11097
11883
  title: string;
@@ -11216,6 +12002,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11216
12002
  status: import("hono/utils/http-status").ContentfulStatusCode;
11217
12003
  input: {
11218
12004
  json: {
12005
+ expectedVersion?: string | undefined;
11219
12006
  archived?: boolean | undefined;
11220
12007
  };
11221
12008
  } & {
@@ -11223,26 +12010,36 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11223
12010
  id: string;
11224
12011
  };
11225
12012
  };
11226
- } | {
12013
+ };
12014
+ };
12015
+ } & {
12016
+ "/runs/:id/pin": {
12017
+ $post: {
11227
12018
  output: {
11228
- error: string;
12019
+ status: "conflict";
12020
+ applied: false;
12021
+ error: "stale_version";
12022
+ resource: {
12023
+ kind: string;
12024
+ id: string;
12025
+ };
12026
+ currentVersion?: string | undefined;
12027
+ changedSince: true;
12028
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
11229
12029
  };
11230
12030
  outputFormat: "json";
11231
- status: 404;
12031
+ status: 409;
11232
12032
  input: {
11233
12033
  json: {
11234
- archived?: boolean | undefined;
12034
+ expectedVersion?: string | undefined;
12035
+ pinned?: boolean | undefined;
11235
12036
  };
11236
12037
  } & {
11237
12038
  param: {
11238
12039
  id: string;
11239
12040
  };
11240
12041
  };
11241
- };
11242
- };
11243
- } & {
11244
- "/runs/:id/pin": {
11245
- $post: {
12042
+ } | {
11246
12043
  output: {
11247
12044
  id: string;
11248
12045
  title: string;
@@ -11367,6 +12164,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11367
12164
  status: import("hono/utils/http-status").ContentfulStatusCode;
11368
12165
  input: {
11369
12166
  json: {
12167
+ expectedVersion?: string | undefined;
11370
12168
  pinned?: boolean | undefined;
11371
12169
  };
11372
12170
  } & {
@@ -11382,6 +12180,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11382
12180
  status: 404;
11383
12181
  input: {
11384
12182
  json: {
12183
+ expectedVersion?: string | undefined;
11385
12184
  pinned?: boolean | undefined;
11386
12185
  };
11387
12186
  } & {
@@ -11394,12 +12193,40 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11394
12193
  } & {
11395
12194
  "/runs/:id/auto-resume": {
11396
12195
  $delete: {
12196
+ output: {
12197
+ status: "conflict";
12198
+ applied: false;
12199
+ error: "stale_version";
12200
+ resource: {
12201
+ kind: string;
12202
+ id: string;
12203
+ };
12204
+ currentVersion?: string | undefined;
12205
+ changedSince: true;
12206
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
12207
+ };
12208
+ outputFormat: "json";
12209
+ status: 409;
12210
+ input: {
12211
+ json?: {
12212
+ expectedVersion?: string | undefined;
12213
+ } | undefined;
12214
+ } & {
12215
+ param: {
12216
+ id: string;
12217
+ };
12218
+ };
12219
+ } | {
11397
12220
  output: {
11398
12221
  error: string;
11399
12222
  };
11400
12223
  outputFormat: "json";
11401
12224
  status: 404;
11402
12225
  input: {
12226
+ json?: {
12227
+ expectedVersion?: string | undefined;
12228
+ } | undefined;
12229
+ } & {
11403
12230
  param: {
11404
12231
  id: string;
11405
12232
  };
@@ -11411,6 +12238,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11411
12238
  outputFormat: "json";
11412
12239
  status: import("hono/utils/http-status").ContentfulStatusCode;
11413
12240
  input: {
12241
+ json?: {
12242
+ expectedVersion?: string | undefined;
12243
+ } | undefined;
12244
+ } & {
11414
12245
  param: {
11415
12246
  id: string;
11416
12247
  };
@@ -12292,6 +13123,32 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12292
13123
  };
12293
13124
  };
12294
13125
  };
13126
+ } & {
13127
+ "/runs/:id/version": {
13128
+ $get: {
13129
+ output: {
13130
+ error: string;
13131
+ };
13132
+ outputFormat: "json";
13133
+ status: 404;
13134
+ input: {
13135
+ param: {
13136
+ id: string;
13137
+ };
13138
+ };
13139
+ } | {
13140
+ output: {
13141
+ version: string;
13142
+ };
13143
+ outputFormat: "json";
13144
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13145
+ input: {
13146
+ param: {
13147
+ id: string;
13148
+ };
13149
+ };
13150
+ };
13151
+ };
12295
13152
  } & {
12296
13153
  "/runs/:id/history": {
12297
13154
  $get: {
@@ -12552,6 +13409,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12552
13409
  json: {
12553
13410
  title?: string | undefined;
12554
13411
  task?: string | undefined;
13412
+ expectedVersion?: string | undefined;
12555
13413
  };
12556
13414
  } & {
12557
13415
  param: {
@@ -12568,6 +13426,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12568
13426
  json: {
12569
13427
  title?: string | undefined;
12570
13428
  task?: string | undefined;
13429
+ expectedVersion?: string | undefined;
12571
13430
  };
12572
13431
  } & {
12573
13432
  param: {
@@ -12584,6 +13443,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12584
13443
  json: {
12585
13444
  title?: string | undefined;
12586
13445
  task?: string | undefined;
13446
+ expectedVersion?: string | undefined;
12587
13447
  };
12588
13448
  } & {
12589
13449
  param: {
@@ -12600,6 +13460,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12600
13460
  json: {
12601
13461
  title?: string | undefined;
12602
13462
  task?: string | undefined;
13463
+ expectedVersion?: string | undefined;
12603
13464
  };
12604
13465
  } & {
12605
13466
  param: {
@@ -12611,12 +13472,40 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12611
13472
  } & {
12612
13473
  "/runs/:id/cancel": {
12613
13474
  $post: {
13475
+ output: {
13476
+ status: "conflict";
13477
+ applied: false;
13478
+ error: "stale_version";
13479
+ resource: {
13480
+ kind: string;
13481
+ id: string;
13482
+ };
13483
+ currentVersion?: string | undefined;
13484
+ changedSince: true;
13485
+ guidance: "Not applied: this changed after you read it. Read the current state and decide again; a new decision is a new operation.";
13486
+ };
13487
+ outputFormat: "json";
13488
+ status: 409;
13489
+ input: {
13490
+ json?: {
13491
+ expectedVersion?: string | undefined;
13492
+ } | undefined;
13493
+ } & {
13494
+ param: {
13495
+ id: string;
13496
+ };
13497
+ };
13498
+ } | {
12614
13499
  output: {
12615
13500
  error: string;
12616
13501
  };
12617
13502
  outputFormat: "json";
12618
13503
  status: 404;
12619
13504
  input: {
13505
+ json?: {
13506
+ expectedVersion?: string | undefined;
13507
+ } | undefined;
13508
+ } & {
12620
13509
  param: {
12621
13510
  id: string;
12622
13511
  };
@@ -12628,6 +13517,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12628
13517
  outputFormat: "json";
12629
13518
  status: import("hono/utils/http-status").ContentfulStatusCode;
12630
13519
  input: {
13520
+ json?: {
13521
+ expectedVersion?: string | undefined;
13522
+ } | undefined;
13523
+ } & {
12631
13524
  param: {
12632
13525
  id: string;
12633
13526
  };
@@ -12649,6 +13542,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12649
13542
  mediaType: string;
12650
13543
  data: string;
12651
13544
  }[] | undefined;
13545
+ expectedVersion?: string | undefined;
12652
13546
  };
12653
13547
  } & {
12654
13548
  param: {
@@ -12668,6 +13562,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12668
13562
  mediaType: string;
12669
13563
  data: string;
12670
13564
  }[] | undefined;
13565
+ expectedVersion?: string | undefined;
12671
13566
  };
12672
13567
  } & {
12673
13568
  param: {
@@ -12687,6 +13582,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12687
13582
  mediaType: string;
12688
13583
  data: string;
12689
13584
  }[] | undefined;
13585
+ expectedVersion?: string | undefined;
12690
13586
  };
12691
13587
  } & {
12692
13588
  param: {
@@ -12706,6 +13602,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12706
13602
  mediaType: string;
12707
13603
  data: string;
12708
13604
  }[] | undefined;
13605
+ expectedVersion?: string | undefined;
12709
13606
  };
12710
13607
  } & {
12711
13608
  param: {
@@ -12731,6 +13628,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12731
13628
  mediaType: string;
12732
13629
  data: string;
12733
13630
  }[] | undefined;
13631
+ expectedVersion?: string | undefined;
12734
13632
  };
12735
13633
  } & {
12736
13634
  param: {
@@ -12750,6 +13648,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12750
13648
  mediaType: string;
12751
13649
  data: string;
12752
13650
  }[] | undefined;
13651
+ expectedVersion?: string | undefined;
12753
13652
  };
12754
13653
  } & {
12755
13654
  param: {
@@ -12768,6 +13667,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12768
13667
  status: 404;
12769
13668
  input: {
12770
13669
  json: {
13670
+ expectedVersion?: string | undefined;
12771
13671
  text?: string | undefined;
12772
13672
  images?: {
12773
13673
  mediaType: string;
@@ -12789,6 +13689,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12789
13689
  status: 400;
12790
13690
  input: {
12791
13691
  json: {
13692
+ expectedVersion?: string | undefined;
12792
13693
  text?: string | undefined;
12793
13694
  images?: {
12794
13695
  mediaType: string;
@@ -12810,6 +13711,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12810
13711
  status: 409;
12811
13712
  input: {
12812
13713
  json: {
13714
+ expectedVersion?: string | undefined;
12813
13715
  text?: string | undefined;
12814
13716
  images?: {
12815
13717
  mediaType: string;
@@ -12836,6 +13738,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12836
13738
  status: import("hono/utils/http-status").ContentfulStatusCode;
12837
13739
  input: {
12838
13740
  json: {
13741
+ expectedVersion?: string | undefined;
12839
13742
  text?: string | undefined;
12840
13743
  images?: {
12841
13744
  mediaType: string;
@@ -12860,6 +13763,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12860
13763
  outputFormat: "json";
12861
13764
  status: 404;
12862
13765
  input: {
13766
+ json?: {
13767
+ expectedVersion?: string | undefined;
13768
+ } | undefined;
13769
+ } & {
12863
13770
  param: {
12864
13771
  id: string;
12865
13772
  } & {
@@ -12873,6 +13780,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12873
13780
  outputFormat: "json";
12874
13781
  status: 409;
12875
13782
  input: {
13783
+ json?: {
13784
+ expectedVersion?: string | undefined;
13785
+ } | undefined;
13786
+ } & {
12876
13787
  param: {
12877
13788
  id: string;
12878
13789
  } & {
@@ -12886,6 +13797,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12886
13797
  outputFormat: "json";
12887
13798
  status: import("hono/utils/http-status").ContentfulStatusCode;
12888
13799
  input: {
13800
+ json?: {
13801
+ expectedVersion?: string | undefined;
13802
+ } | undefined;
13803
+ } & {
12889
13804
  param: {
12890
13805
  id: string;
12891
13806
  } & {
@@ -12903,6 +13818,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12903
13818
  outputFormat: "json";
12904
13819
  status: 404;
12905
13820
  input: {
13821
+ json?: {
13822
+ expectedVersion?: string | undefined;
13823
+ } | undefined;
13824
+ } & {
12906
13825
  param: {
12907
13826
  id: string;
12908
13827
  };
@@ -12914,6 +13833,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12914
13833
  outputFormat: "json";
12915
13834
  status: 409;
12916
13835
  input: {
13836
+ json?: {
13837
+ expectedVersion?: string | undefined;
13838
+ } | undefined;
13839
+ } & {
12917
13840
  param: {
12918
13841
  id: string;
12919
13842
  };
@@ -12925,6 +13848,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12925
13848
  outputFormat: "json";
12926
13849
  status: import("hono/utils/http-status").ContentfulStatusCode;
12927
13850
  input: {
13851
+ json?: {
13852
+ expectedVersion?: string | undefined;
13853
+ } | undefined;
13854
+ } & {
12928
13855
  param: {
12929
13856
  id: string;
12930
13857
  };
@@ -12941,6 +13868,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12941
13868
  status: 404;
12942
13869
  input: {
12943
13870
  json: {
13871
+ expectedVersion?: string | undefined;
12944
13872
  text?: string | undefined;
12945
13873
  images?: {
12946
13874
  mediaType: string;
@@ -12963,6 +13891,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12963
13891
  status: 400;
12964
13892
  input: {
12965
13893
  json: {
13894
+ expectedVersion?: string | undefined;
12966
13895
  text?: string | undefined;
12967
13896
  images?: {
12968
13897
  mediaType: string;
@@ -12985,6 +13914,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12985
13914
  status: 409;
12986
13915
  input: {
12987
13916
  json: {
13917
+ expectedVersion?: string | undefined;
12988
13918
  text?: string | undefined;
12989
13919
  images?: {
12990
13920
  mediaType: string;
@@ -13007,6 +13937,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13007
13937
  status: import("hono/utils/http-status").ContentfulStatusCode;
13008
13938
  input: {
13009
13939
  json: {
13940
+ expectedVersion?: string | undefined;
13010
13941
  text?: string | undefined;
13011
13942
  images?: {
13012
13943
  mediaType: string;
@@ -13180,6 +14111,17 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13180
14111
  id: string;
13181
14112
  };
13182
14113
  };
14114
+ } | {
14115
+ output: {
14116
+ error: string;
14117
+ };
14118
+ outputFormat: "json";
14119
+ status: 409;
14120
+ input: {
14121
+ param: {
14122
+ id: string;
14123
+ };
14124
+ };
13183
14125
  } | {
13184
14126
  output: {
13185
14127
  error: string;
@@ -13200,7 +14142,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13200
14142
  error: string;
13201
14143
  };
13202
14144
  outputFormat: "json";
13203
- status: 404;
14145
+ status: 409;
13204
14146
  input: {
13205
14147
  param: {
13206
14148
  id: string;
@@ -13211,7 +14153,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13211
14153
  error: string;
13212
14154
  };
13213
14155
  outputFormat: "json";
13214
- status: 409;
14156
+ status: 404;
13215
14157
  input: {
13216
14158
  param: {
13217
14159
  id: string;
@@ -13467,9 +14409,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13467
14409
  error: string;
13468
14410
  };
13469
14411
  outputFormat: "json";
13470
- status: 404;
14412
+ status: 409;
13471
14413
  input: {
13472
14414
  json: {
14415
+ expectedVersion?: string | undefined;
13473
14416
  message: string;
13474
14417
  };
13475
14418
  } & {
@@ -13482,9 +14425,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13482
14425
  error: string;
13483
14426
  };
13484
14427
  outputFormat: "json";
13485
- status: 409;
14428
+ status: 404;
13486
14429
  input: {
13487
14430
  json: {
14431
+ expectedVersion?: string | undefined;
13488
14432
  message: string;
13489
14433
  };
13490
14434
  } & {
@@ -13501,6 +14445,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13501
14445
  status: import("hono/utils/http-status").ContentfulStatusCode;
13502
14446
  input: {
13503
14447
  json: {
14448
+ expectedVersion?: string | undefined;
13504
14449
  message: string;
13505
14450
  };
13506
14451
  } & {
@@ -13517,8 +14462,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13517
14462
  error: string;
13518
14463
  };
13519
14464
  outputFormat: "json";
13520
- status: 404;
14465
+ status: 409;
13521
14466
  input: {
14467
+ json?: {
14468
+ expectedVersion?: string | undefined;
14469
+ } | undefined;
14470
+ } & {
13522
14471
  param: {
13523
14472
  id: string;
13524
14473
  };
@@ -13528,8 +14477,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13528
14477
  error: string;
13529
14478
  };
13530
14479
  outputFormat: "json";
13531
- status: 409;
14480
+ status: 404;
13532
14481
  input: {
14482
+ json?: {
14483
+ expectedVersion?: string | undefined;
14484
+ } | undefined;
14485
+ } & {
13533
14486
  param: {
13534
14487
  id: string;
13535
14488
  };
@@ -13544,6 +14497,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13544
14497
  outputFormat: "json";
13545
14498
  status: import("hono/utils/http-status").ContentfulStatusCode;
13546
14499
  input: {
14500
+ json?: {
14501
+ expectedVersion?: string | undefined;
14502
+ } | undefined;
14503
+ } & {
13547
14504
  param: {
13548
14505
  id: string;
13549
14506
  };
@@ -13557,8 +14514,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13557
14514
  error: string;
13558
14515
  };
13559
14516
  outputFormat: "json";
13560
- status: 404;
14517
+ status: 409;
13561
14518
  input: {
14519
+ json?: {
14520
+ expectedVersion?: string | undefined;
14521
+ } | undefined;
14522
+ } & {
13562
14523
  param: {
13563
14524
  id: string;
13564
14525
  };
@@ -13568,8 +14529,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13568
14529
  error: string;
13569
14530
  };
13570
14531
  outputFormat: "json";
13571
- status: 409;
14532
+ status: 404;
13572
14533
  input: {
14534
+ json?: {
14535
+ expectedVersion?: string | undefined;
14536
+ } | undefined;
14537
+ } & {
13573
14538
  param: {
13574
14539
  id: string;
13575
14540
  };
@@ -13581,6 +14546,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13581
14546
  outputFormat: "json";
13582
14547
  status: 400;
13583
14548
  input: {
14549
+ json?: {
14550
+ expectedVersion?: string | undefined;
14551
+ } | undefined;
14552
+ } & {
13584
14553
  param: {
13585
14554
  id: string;
13586
14555
  };
@@ -13593,6 +14562,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13593
14562
  outputFormat: "json";
13594
14563
  status: 201;
13595
14564
  input: {
14565
+ json?: {
14566
+ expectedVersion?: string | undefined;
14567
+ } | undefined;
14568
+ } & {
13596
14569
  param: {
13597
14570
  id: string;
13598
14571
  };
@@ -13606,8 +14579,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13606
14579
  error: string;
13607
14580
  };
13608
14581
  outputFormat: "json";
13609
- status: 404;
14582
+ status: 409;
13610
14583
  input: {
14584
+ json?: {
14585
+ expectedVersion?: string | undefined;
14586
+ } | undefined;
14587
+ } & {
13611
14588
  param: {
13612
14589
  id: string;
13613
14590
  };
@@ -13617,8 +14594,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13617
14594
  error: string;
13618
14595
  };
13619
14596
  outputFormat: "json";
13620
- status: 409;
14597
+ status: 404;
13621
14598
  input: {
14599
+ json?: {
14600
+ expectedVersion?: string | undefined;
14601
+ } | undefined;
14602
+ } & {
13622
14603
  param: {
13623
14604
  id: string;
13624
14605
  };
@@ -13630,6 +14611,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13630
14611
  outputFormat: "json";
13631
14612
  status: import("hono/utils/http-status").ContentfulStatusCode;
13632
14613
  input: {
14614
+ json?: {
14615
+ expectedVersion?: string | undefined;
14616
+ } | undefined;
14617
+ } & {
13633
14618
  param: {
13634
14619
  id: string;
13635
14620
  };
@@ -13645,6 +14630,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13645
14630
  outputFormat: "json";
13646
14631
  status: 409;
13647
14632
  input: {
14633
+ json?: {
14634
+ expectedVersion?: string | undefined;
14635
+ } | undefined;
14636
+ } & {
13648
14637
  param: {
13649
14638
  id: string;
13650
14639
  };
@@ -13656,6 +14645,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13656
14645
  outputFormat: "json";
13657
14646
  status: 404;
13658
14647
  input: {
14648
+ json?: {
14649
+ expectedVersion?: string | undefined;
14650
+ } | undefined;
14651
+ } & {
13659
14652
  param: {
13660
14653
  id: string;
13661
14654
  };
@@ -13667,6 +14660,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13667
14660
  outputFormat: "json";
13668
14661
  status: import("hono/utils/http-status").ContentfulStatusCode;
13669
14662
  input: {
14663
+ json?: {
14664
+ expectedVersion?: string | undefined;
14665
+ } | undefined;
14666
+ } & {
13670
14667
  param: {
13671
14668
  id: string;
13672
14669
  };