@open-mercato/cezar 0.9.3 → 0.10.0-pr892.1298

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 (253) hide show
  1. package/README.md +165 -36
  2. package/dist/agent-config/account-identity.d.ts +44 -0
  3. package/dist/agent-config/account-identity.js +128 -0
  4. package/dist/agent-config/account-identity.js.map +1 -0
  5. package/dist/agent-config/catalog.d.ts +8 -0
  6. package/dist/agent-config/catalog.js +18 -0
  7. package/dist/agent-config/catalog.js.map +1 -1
  8. package/dist/agent-config/model-settings/claude.d.ts +2 -0
  9. package/dist/agent-config/model-settings/claude.js +11 -0
  10. package/dist/agent-config/model-settings/claude.js.map +1 -0
  11. package/dist/agent-config/model-settings/codex.d.ts +2 -0
  12. package/dist/agent-config/model-settings/codex.js +16 -0
  13. package/dist/agent-config/model-settings/codex.js.map +1 -0
  14. package/dist/agent-config/model-settings/opencode.d.ts +2 -0
  15. package/dist/agent-config/model-settings/opencode.js +8 -0
  16. package/dist/agent-config/model-settings/opencode.js.map +1 -0
  17. package/dist/agent-config/model-settings/pi.d.ts +12 -0
  18. package/dist/agent-config/model-settings/pi.js +18 -0
  19. package/dist/agent-config/model-settings/pi.js.map +1 -0
  20. package/dist/agent-config/model-settings/shared.d.ts +9 -0
  21. package/dist/agent-config/model-settings/shared.js +93 -0
  22. package/dist/agent-config/model-settings/shared.js.map +1 -0
  23. package/dist/agent-config/model-settings/types.d.ts +9 -0
  24. package/dist/agent-config/model-settings/types.js +2 -0
  25. package/dist/agent-config/model-settings/types.js.map +1 -0
  26. package/dist/agent-config/models.d.ts +9 -0
  27. package/dist/agent-config/models.js +32 -0
  28. package/dist/agent-config/models.js.map +1 -0
  29. package/dist/agent-config/service.js +4 -4
  30. package/dist/agent-config/service.js.map +1 -1
  31. package/dist/automations/types.d.ts +4 -0
  32. package/dist/automations/types.js +2 -1
  33. package/dist/automations/types.js.map +1 -1
  34. package/dist/config.d.ts +10 -1
  35. package/dist/config.js +48 -5
  36. package/dist/config.js.map +1 -1
  37. package/dist/contract/agent-config.d.ts +2 -0
  38. package/dist/contract/agent-profiles.d.ts +347 -0
  39. package/dist/contract/automations.d.ts +24 -0
  40. package/dist/contract/events.d.ts +59 -0
  41. package/dist/contract/github.d.ts +88 -0
  42. package/dist/contract/health.d.ts +5 -1
  43. package/dist/contract/index.d.ts +1 -0
  44. package/dist/contract/index.js +981 -544
  45. package/dist/contract/projects.d.ts +33 -5
  46. package/dist/contract/runs.d.ts +247 -0
  47. package/dist/contract/skills.d.ts +7 -0
  48. package/dist/contract/workflows.d.ts +6 -0
  49. package/dist/contract/workspace.d.ts +137 -2
  50. package/dist/core/agent-env.js +41 -16
  51. package/dist/core/agent-env.js.map +1 -1
  52. package/dist/core/agent-model-policy.d.ts +10 -0
  53. package/dist/core/agent-model-policy.js +36 -0
  54. package/dist/core/agent-model-policy.js.map +1 -0
  55. package/dist/core/agent-profiles.d.ts +62 -0
  56. package/dist/core/agent-profiles.js +90 -0
  57. package/dist/core/agent-profiles.js.map +1 -0
  58. package/dist/core/agent-runner.d.ts +37 -6
  59. package/dist/core/agent-runner.js +35 -3
  60. package/dist/core/agent-runner.js.map +1 -1
  61. package/dist/core/backend-detect.d.ts +5 -5
  62. package/dist/core/backend-detect.js +44 -7
  63. package/dist/core/backend-detect.js.map +1 -1
  64. package/dist/core/claude-cli-runner.js +10 -5
  65. package/dist/core/claude-cli-runner.js.map +1 -1
  66. package/dist/core/codex-app-server-runner.js +13 -3
  67. package/dist/core/codex-app-server-runner.js.map +1 -1
  68. package/dist/core/codex-app-server-transport.js +7 -2
  69. package/dist/core/codex-app-server-transport.js.map +1 -1
  70. package/dist/core/model-identity.d.ts +23 -11
  71. package/dist/core/model-identity.js +41 -24
  72. package/dist/core/model-identity.js.map +1 -1
  73. package/dist/core/model-presets.d.ts +8 -2
  74. package/dist/core/model-presets.js +51 -8
  75. package/dist/core/model-presets.js.map +1 -1
  76. package/dist/core/opencode-model-catalog.d.ts +32 -0
  77. package/dist/core/opencode-model-catalog.js +153 -0
  78. package/dist/core/opencode-model-catalog.js.map +1 -0
  79. package/dist/core/opencode-server-runner.d.ts +2 -0
  80. package/dist/core/opencode-server-runner.js +42 -11
  81. package/dist/core/opencode-server-runner.js.map +1 -1
  82. package/dist/core/pi-runner.d.ts +24 -0
  83. package/dist/core/pi-runner.js +349 -0
  84. package/dist/core/pi-runner.js.map +1 -0
  85. package/dist/core/pi-ui-mapper.d.ts +34 -0
  86. package/dist/core/pi-ui-mapper.js +270 -0
  87. package/dist/core/pi-ui-mapper.js.map +1 -0
  88. package/dist/core/provider-auth.d.ts +95 -3
  89. package/dist/core/provider-auth.js +234 -15
  90. package/dist/core/provider-auth.js.map +1 -1
  91. package/dist/core/provider-availability.d.ts +1 -1
  92. package/dist/core/provider-availability.js +2 -1
  93. package/dist/core/provider-availability.js.map +1 -1
  94. package/dist/core/runner-factory.js +3 -0
  95. package/dist/core/runner-factory.js.map +1 -1
  96. package/dist/core/shell-env.d.ts +28 -0
  97. package/dist/core/shell-env.js +56 -0
  98. package/dist/core/shell-env.js.map +1 -0
  99. package/dist/core/ui-events.d.ts +1 -1
  100. package/dist/core/usage-limit.d.ts +42 -0
  101. package/dist/core/usage-limit.js +209 -0
  102. package/dist/core/usage-limit.js.map +1 -0
  103. package/dist/index.js +3 -2
  104. package/dist/index.js.map +1 -1
  105. package/dist/paths.d.ts +53 -5
  106. package/dist/paths.js +63 -9
  107. package/dist/paths.js.map +1 -1
  108. package/dist/planner.js +6 -0
  109. package/dist/planner.js.map +1 -1
  110. package/dist/release/snapshot.d.ts +13 -2
  111. package/dist/release/snapshot.js +25 -1
  112. package/dist/release/snapshot.js.map +1 -1
  113. package/dist/runs/agent-tmpdir.d.ts +41 -0
  114. package/dist/runs/agent-tmpdir.js +183 -0
  115. package/dist/runs/agent-tmpdir.js.map +1 -0
  116. package/dist/runs/auto-name.js +6 -1
  117. package/dist/runs/auto-name.js.map +1 -1
  118. package/dist/runs/event-history.d.ts +50 -0
  119. package/dist/runs/event-history.js +613 -0
  120. package/dist/runs/event-history.js.map +1 -0
  121. package/dist/runs/run-index.d.ts +19 -0
  122. package/dist/runs/run-index.js +43 -0
  123. package/dist/runs/run-index.js.map +1 -0
  124. package/dist/runs/store.d.ts +78 -19
  125. package/dist/runs/store.js +175 -43
  126. package/dist/runs/store.js.map +1 -1
  127. package/dist/server/forge/github.d.ts +169 -0
  128. package/dist/server/forge/github.js +511 -0
  129. package/dist/server/forge/github.js.map +1 -1
  130. package/dist/server/forge/index.d.ts +9 -0
  131. package/dist/server/forge/index.js +14 -0
  132. package/dist/server/forge/index.js.map +1 -1
  133. package/dist/server/github.d.ts +2 -2
  134. package/dist/server/github.js +1 -1
  135. package/dist/server/github.js.map +1 -1
  136. package/dist/server/open-in-app.d.ts +2 -1
  137. package/dist/server/open-in-app.js +3 -1
  138. package/dist/server/open-in-app.js.map +1 -1
  139. package/dist/server/open-in-terminal.d.ts +46 -1
  140. package/dist/server/open-in-terminal.js +72 -13
  141. package/dist/server/open-in-terminal.js.map +1 -1
  142. package/dist/server/provider-action-gate.js +3 -1
  143. package/dist/server/provider-action-gate.js.map +1 -1
  144. package/dist/server/server.d.ts +2199 -428
  145. package/dist/server/server.js +1171 -139
  146. package/dist/server/server.js.map +1 -1
  147. package/dist/server-install/engine.js +5 -18
  148. package/dist/server-install/engine.js.map +1 -1
  149. package/dist/server-install/steps.js +6 -2
  150. package/dist/server-install/steps.js.map +1 -1
  151. package/dist/skills.js +4 -0
  152. package/dist/skills.js.map +1 -1
  153. package/dist/workflows/run.d.ts +202 -2
  154. package/dist/workflows/run.js +782 -115
  155. package/dist/workflows/run.js.map +1 -1
  156. package/dist/workflows/types.d.ts +3 -0
  157. package/dist/workflows/types.js +11 -2
  158. package/dist/workflows/types.js.map +1 -1
  159. package/dist/workspace/agent-accounts.d.ts +153 -0
  160. package/dist/workspace/agent-accounts.js +304 -0
  161. package/dist/workspace/agent-accounts.js.map +1 -0
  162. package/dist/workspace/agent-profiles.d.ts +78 -0
  163. package/dist/workspace/agent-profiles.js +115 -0
  164. package/dist/workspace/agent-profiles.js.map +1 -0
  165. package/dist/workspace/config.d.ts +19 -1
  166. package/dist/workspace/config.js +56 -2
  167. package/dist/workspace/config.js.map +1 -1
  168. package/dist/workspace/projects-cli.js +54 -4
  169. package/dist/workspace/projects-cli.js.map +1 -1
  170. package/dist/workspace/projects.d.ts +19 -1
  171. package/dist/workspace/projects.js +34 -1
  172. package/dist/workspace/projects.js.map +1 -1
  173. package/dist/workspace/semaphore.d.ts +39 -0
  174. package/dist/workspace/semaphore.js +31 -0
  175. package/dist/workspace/semaphore.js.map +1 -1
  176. package/package.json +3 -3
  177. package/scripts/mock-claude.mjs +20 -0
  178. package/scripts/mock-pi-rpc.mjs +83 -0
  179. package/web/dist/assets/{alert-dialog-V9cigyAO.js → alert-dialog-Byp42_IG.js} +1 -1
  180. package/web/dist/assets/arrow-down-CGDbDYKD.js +1 -0
  181. package/web/dist/assets/arrow-left-ESCjr1Hq.js +1 -0
  182. package/web/dist/assets/centered-state-LfAW-igm.js +43 -0
  183. package/web/dist/assets/chevron-right-Du-P1IUd.js +1 -0
  184. package/web/dist/assets/{collapsible-BlF-7CeC.js → collapsible-CBiiqDJM.js} +1 -1
  185. package/web/dist/assets/{commit-list-D2mKElUx.js → commit-list-6PPve7PE.js} +1 -1
  186. package/web/dist/assets/{compare-variants-CFBY16Rc.js → compare-variants-BDnp6mXJ.js} +1 -1
  187. package/web/dist/assets/{diff-DE6u5dTe.js → diff-_jK0OWpF.js} +2 -2
  188. package/web/dist/assets/{diff-stat-B1j6L7C6.js → diff-stat-CIrTu4Ym.js} +1 -1
  189. package/web/dist/assets/{diff-view-Gb2kk3Le.js → diff-view-COA_5IyY.js} +1 -1
  190. package/web/dist/assets/dropdown-menu-BofYpFFw.js +1 -0
  191. package/web/dist/assets/editable-title-_J0zFDl-.js +1 -0
  192. package/web/dist/assets/{ellipsis-vertical-BbxtXb6s.js → ellipsis-vertical-BeMR-l62.js} +1 -1
  193. package/web/dist/assets/{file-j5O4NryU.js → file-DY996Pee.js} +1 -1
  194. package/web/dist/assets/{folder-w9Lwj9x9.js → folder-NO3Ec-TY.js} +1 -1
  195. package/web/dist/assets/git-toolbar-BqJeUWcD.js +1 -0
  196. package/web/dist/assets/github-C96HPV9E.js +1 -0
  197. package/web/dist/assets/{image-preview-CcFdkZXW.js → image-preview-D9cCDfKQ.js} +1 -1
  198. package/web/dist/assets/index-Bx-grqa9.css +2 -0
  199. package/web/dist/assets/index-DoVvGDfW.js +7 -0
  200. package/web/dist/assets/{markdown-q9lm7kQ2.js → markdown-DDzk11zj.js} +1 -1
  201. package/web/dist/assets/new-task-form-BNLLgC6P.js +1 -0
  202. package/web/dist/assets/pill-CVM1EmV4.js +1 -0
  203. package/web/dist/assets/{project-router-DudOmkHf.js → project-router-LRCtP48W.js} +1 -1
  204. package/web/dist/assets/prompt-templates-DFOvYgtW.js +15 -0
  205. package/web/dist/assets/{refresh-cw-_C2EGJK5.js → refresh-cw-D1ys6QY2.js} +1 -1
  206. package/web/dist/assets/repo-git-CzUnsgWY.js +1 -0
  207. package/web/dist/assets/{run-diff-BLoKEnTx.js → run-diff-BlnqwfSS.js} +2 -2
  208. package/web/dist/assets/run-header-Bn7cN0Z1.js +1 -0
  209. package/web/dist/assets/{search-x-BgxaJgro.js → search-x-D6FSpxId.js} +1 -1
  210. package/web/dist/assets/{skill-empty-hint-D5MOmycv.js → skill-empty-hint-iwpCcqgI.js} +1 -1
  211. package/web/dist/assets/skills-CezbOaol.js +1 -0
  212. package/web/dist/assets/{sparkles-ANSka5bH.js → sparkles-MrQrgCI9.js} +1 -1
  213. package/web/dist/assets/{square-terminal-qojq20cH.js → square-terminal-TTH64lO7.js} +1 -1
  214. package/web/dist/assets/tab-link-FYksz037.js +1 -0
  215. package/web/dist/assets/task-changes-ClWlnzBL.js +1 -0
  216. package/web/dist/assets/{task-commits-yXmDrCoE.js → task-commits-Crbrl86b.js} +1 -1
  217. package/web/dist/assets/{task-files-BDRmCCPN.js → task-files-uSCWyD0-.js} +2 -2
  218. package/web/dist/assets/task-thread-DPmamBA1.js +9 -0
  219. package/web/dist/assets/{textarea-DVO7pg8Y.js → textarea-B9Ahj4E4.js} +1 -1
  220. package/web/dist/assets/thread-loading-BH_ypQoy.js +1 -0
  221. package/web/dist/assets/{trash-2-DKcnmg6e.js → trash-2-D8S3V3fu.js} +1 -1
  222. package/web/dist/assets/{triangle-alert-CPUEVSZ3.js → triangle-alert-bB7p9n5E.js} +1 -1
  223. package/web/dist/assets/{upload-D5Jrq7QK.js → upload-Bd5oRLPV.js} +1 -1
  224. package/web/dist/assets/{use-desktop-CXae6uyk.js → use-desktop-BNvbRBeZ.js} +1 -1
  225. package/web/dist/assets/{use-submit-shortcut-RKJLKdsW.js → use-submit-shortcut-B-xhu4Bf.js} +1 -1
  226. package/web/dist/assets/utils-BhpbVMwN.js +64 -0
  227. package/web/dist/assets/{workflows-CGyTdyds.js → workflows-RmfbM9Vy.js} +3 -3
  228. package/web/dist/assets/{zoomable-image-hcqwUIlQ.js → zoomable-image-BCW6ZBV0.js} +1 -1
  229. package/web/dist/index.html +24 -23
  230. package/web/dist/assets/arrow-down-DflHdNlN.js +0 -1
  231. package/web/dist/assets/arrow-left-IIL4uR-C.js +0 -1
  232. package/web/dist/assets/centered-state-BkAJVLJE.js +0 -43
  233. package/web/dist/assets/chevron-right-CxAoD1eD.js +0 -1
  234. package/web/dist/assets/circle-check-CdwcIbkx.js +0 -1
  235. package/web/dist/assets/circle-x-Cnc43xJ2.js +0 -1
  236. package/web/dist/assets/dropdown-menu-Ns-rY6sm.js +0 -1
  237. package/web/dist/assets/editable-title-BGuiDxFT.js +0 -1
  238. package/web/dist/assets/git-pull-request-DlSop3Ch.js +0 -1
  239. package/web/dist/assets/git-toolbar-BdJ8XSxI.js +0 -1
  240. package/web/dist/assets/github-CCLn2OAU.js +0 -1
  241. package/web/dist/assets/index-BmHHLbwc.js +0 -6
  242. package/web/dist/assets/index-u8OAnq0r.css +0 -2
  243. package/web/dist/assets/new-task-form-BuYxAWN7.js +0 -1
  244. package/web/dist/assets/pill-t97MvPW_.js +0 -1
  245. package/web/dist/assets/prompt-templates-C5iO3Lda.js +0 -15
  246. package/web/dist/assets/repo-git-DqQzj33d.js +0 -1
  247. package/web/dist/assets/run-header-Dho4eurS.js +0 -1
  248. package/web/dist/assets/skills-B5g064CC.js +0 -1
  249. package/web/dist/assets/tab-link-CIcwFJtC.js +0 -1
  250. package/web/dist/assets/task-changes-yRfsEsnh.js +0 -1
  251. package/web/dist/assets/task-thread-C9AnIz4Z.js +0 -9
  252. package/web/dist/assets/thread-loading-DJDl701Z.js +0 -1
  253. package/web/dist/assets/utils-Wtkd5E6j.js +0 -64
@@ -15,6 +15,7 @@ import { type CloneRunner } from './checkout.ts';
15
15
  import { ProjectContexts } from './project-context.ts';
16
16
  import { type SocketHub, type WsUpgradeVerdict } from './ws.ts';
17
17
  import { openInTerminal } from './open-in-terminal.ts';
18
+ import { openFileInDefaultApp, openInApp } from './open-in-app.ts';
18
19
  import { ProviderRuntimeAuthObserver } from './provider-auth-runtime.ts';
19
20
  export interface ServerDeps {
20
21
  repoRoot: string;
@@ -78,6 +79,13 @@ export interface ServerDeps {
78
79
  providerRuntimeAuth?: ProviderRuntimeAuthObserver;
79
80
  /** Local terminal handoff for provider-owned login. */
80
81
  openTerminal?: typeof openInTerminal;
82
+ /** Hand a local FILE (or folder) to the OS default app. Injected so the account-file open route
83
+ * is testable without actually launching an editor. */
84
+ openFile?: typeof openFileInDefaultApp;
85
+ /** Hand a folder to a detected app by target id — editor, file manager, or `terminal`, which
86
+ * reaches `openInTerminal`. Injected for the same reason as the two above: a test that reaches
87
+ * this for real opens a window on the developer's machine (#820). */
88
+ openApp?: typeof openInApp;
81
89
  /** Process-wide Open Mercato skills update detector. Injected in tests and
82
90
  * shared by every workspace route/project; createApp owns the default. */
83
91
  skillsUpdate?: SkillsUpdateService;
@@ -160,9 +168,20 @@ export interface WorkspaceConfigResponse {
160
168
  maxParallel: number;
161
169
  maxMonitoringSessions: number;
162
170
  monitoringWakeIntervalMinutes: number | null;
171
+ autoResumeOnUsageLimit: boolean;
163
172
  memoryLimitMb: number | null;
164
173
  worktreeRetentionDefault: number;
165
174
  };
175
+ /** What a repo that has set none of its own runs (spec 2026-07-29-agent-profiles). Both keys
176
+ * optional: absent means "no opinion", which must stay distinguishable from a chosen value. */
177
+ agentDefaults: {
178
+ runner?: ProviderId;
179
+ models?: {
180
+ claude?: string;
181
+ codex?: string;
182
+ opencode?: string;
183
+ };
184
+ };
166
185
  }
167
186
  /** Workspace-level event names carried ONLY on `GET /api/workspace/events`
168
187
  * (never on the per-project streams): registry mutations, the GUI-clone
@@ -197,12 +216,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
197
216
  remote?: string;
198
217
  } | null;
199
218
  checks: {
200
- name: 'claude' | 'codex' | 'opencode' | 'gh' | 'git';
219
+ name: 'claude' | 'codex' | 'opencode' | 'pi' | 'gh' | 'git';
201
220
  available: boolean;
202
221
  version?: string;
203
222
  hint?: string;
204
223
  }[];
205
- defaultRunner: "claude" | "codex" | "opencode";
224
+ defaultRunner: "claude" | "codex" | "opencode" | "pi";
206
225
  forge: {
207
226
  available?: boolean | undefined;
208
227
  reason?: string;
@@ -238,7 +257,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
238
257
  status: 400;
239
258
  input: {
240
259
  query: {
241
- runner: string | string[];
260
+ runner: "codex" | "opencode";
242
261
  };
243
262
  };
244
263
  } | {
@@ -257,7 +276,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
257
276
  status: import("hono/utils/http-status").ContentfulStatusCode;
258
277
  input: {
259
278
  query: {
260
- runner: string | string[];
279
+ runner: "codex" | "opencode";
261
280
  };
262
281
  };
263
282
  };
@@ -364,6 +383,62 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
364
383
  input: {};
365
384
  };
366
385
  };
386
+ }, "/"> | import("hono/types").MergeSchemaPath<{
387
+ "/workspace/runs-index": {
388
+ $get: {
389
+ output: {
390
+ runs: {
391
+ projectId: string;
392
+ id: string;
393
+ title: string;
394
+ titleSummary?: string | undefined;
395
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
396
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
397
+ activity?: "monitoring" | undefined;
398
+ createdAt: string;
399
+ finishedAt?: string | undefined;
400
+ seenAt?: string | undefined;
401
+ archived: boolean;
402
+ autoResumeAt?: string | undefined;
403
+ workflow: string;
404
+ branch?: string | undefined;
405
+ startedAt?: string | undefined;
406
+ pullRequestUrl?: string | undefined;
407
+ referencedPullRequestUrl?: string | undefined;
408
+ prNumber?: number | undefined;
409
+ issueNumber?: number | undefined;
410
+ referencedIssueUrl?: string | undefined;
411
+ markerRefs?: {
412
+ pr?: number | undefined;
413
+ issue?: number | undefined;
414
+ } | undefined;
415
+ costUsd?: number | undefined;
416
+ peakRssBytes?: number | undefined;
417
+ peakProcCount?: number | undefined;
418
+ usage?: {
419
+ cpuPct: number;
420
+ rssBytes: number;
421
+ procCount: number;
422
+ } | undefined;
423
+ }[];
424
+ referenceStatuses: {
425
+ [x: string]: {
426
+ prs: {
427
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
428
+ };
429
+ issues: {
430
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
431
+ };
432
+ };
433
+ };
434
+ perProjectLimit: number;
435
+ truncated: string[];
436
+ };
437
+ outputFormat: "json";
438
+ status: import("hono/utils/http-status").ContentfulStatusCode;
439
+ input: {};
440
+ };
441
+ };
367
442
  }, "/"> | import("hono/types").MergeSchemaPath<{
368
443
  "/workspace/skills-update": {
369
444
  $get: {
@@ -519,6 +594,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
519
594
  enabled?: boolean;
520
595
  hint?: string;
521
596
  authFailureId?: string;
597
+ profileId?: string;
522
598
  }[];
523
599
  };
524
600
  outputFormat: "json";
@@ -540,7 +616,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
540
616
  status: 400;
541
617
  input: {
542
618
  param: {
543
- provider: "claude" | "codex" | "opencode";
619
+ provider: "claude" | "codex" | "opencode" | "pi";
544
620
  };
545
621
  } & {
546
622
  json: {
@@ -555,13 +631,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
555
631
  enabled?: boolean;
556
632
  hint?: string;
557
633
  authFailureId?: string;
634
+ profileId?: string;
558
635
  }[];
559
636
  };
560
637
  outputFormat: "json";
561
638
  status: import("hono/utils/http-status").ContentfulStatusCode;
562
639
  input: {
563
640
  param: {
564
- provider: "claude" | "codex" | "opencode";
641
+ provider: "claude" | "codex" | "opencode" | "pi";
565
642
  };
566
643
  } & {
567
644
  json: {
@@ -576,7 +653,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
576
653
  status: 500;
577
654
  input: {
578
655
  param: {
579
- provider: "claude" | "codex" | "opencode";
656
+ provider: "claude" | "codex" | "opencode" | "pi";
580
657
  };
581
658
  } & {
582
659
  json: {
@@ -595,7 +672,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
595
672
  status: 400;
596
673
  input: {
597
674
  param: {
598
- provider: "claude" | "codex" | "opencode";
675
+ provider: "claude" | "codex" | "opencode" | "pi";
599
676
  };
600
677
  } & {
601
678
  json: {
@@ -610,13 +687,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
610
687
  enabled?: boolean;
611
688
  hint?: string;
612
689
  authFailureId?: string;
690
+ profileId?: string;
613
691
  }[];
614
692
  };
615
693
  outputFormat: "json";
616
694
  status: import("hono/utils/http-status").ContentfulStatusCode;
617
695
  input: {
618
696
  param: {
619
- provider: "claude" | "codex" | "opencode";
697
+ provider: "claude" | "codex" | "opencode" | "pi";
620
698
  };
621
699
  } & {
622
700
  json: {
@@ -631,7 +709,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
631
709
  status: 409;
632
710
  input: {
633
711
  param: {
634
- provider: "claude" | "codex" | "opencode";
712
+ provider: "claude" | "codex" | "opencode" | "pi";
635
713
  };
636
714
  } & {
637
715
  json: {
@@ -647,35 +725,49 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
647
725
  error: string;
648
726
  };
649
727
  outputFormat: "json";
650
- status: 500;
728
+ status: 409;
651
729
  input: {
652
730
  json: {
653
- provider: "claude" | "codex" | "opencode";
731
+ provider: "claude" | "codex" | "opencode" | "pi";
732
+ profileId?: string | undefined;
654
733
  };
655
734
  };
656
735
  } | {
657
736
  output: {
658
- opened: false;
659
- connected: true;
660
- command: string;
737
+ error: string;
661
738
  };
662
739
  outputFormat: "json";
663
- status: import("hono/utils/http-status").ContentfulStatusCode;
740
+ status: 400;
664
741
  input: {
665
742
  json: {
666
- provider: "claude" | "codex" | "opencode";
743
+ provider: "claude" | "codex" | "opencode" | "pi";
744
+ profileId?: string | undefined;
667
745
  };
668
746
  };
669
747
  } | {
670
748
  output: {
671
749
  error: string;
750
+ };
751
+ outputFormat: "json";
752
+ status: 500;
753
+ input: {
754
+ json: {
755
+ provider: "claude" | "codex" | "opencode" | "pi";
756
+ profileId?: string | undefined;
757
+ };
758
+ };
759
+ } | {
760
+ output: {
761
+ opened: false;
762
+ connected: true;
672
763
  command: string;
673
764
  };
674
765
  outputFormat: "json";
675
- status: 409;
766
+ status: import("hono/utils/http-status").ContentfulStatusCode;
676
767
  input: {
677
768
  json: {
678
- provider: "claude" | "codex" | "opencode";
769
+ provider: "claude" | "codex" | "opencode" | "pi";
770
+ profileId?: string | undefined;
679
771
  };
680
772
  };
681
773
  } | {
@@ -687,7 +779,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
687
779
  status: import("hono/utils/http-status").ContentfulStatusCode;
688
780
  input: {
689
781
  json: {
690
- provider: "claude" | "codex" | "opencode";
782
+ provider: "claude" | "codex" | "opencode" | "pi";
783
+ profileId?: string | undefined;
691
784
  };
692
785
  };
693
786
  };
@@ -710,9 +803,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
710
803
  maxParallel: number;
711
804
  maxMonitoringSessions: number;
712
805
  monitoringWakeIntervalMinutes: number | null;
806
+ autoResumeOnUsageLimit: boolean;
713
807
  memoryLimitMb: number | null;
714
808
  worktreeRetentionDefault: number;
715
809
  };
810
+ agentDefaults: {
811
+ runner?: ProviderId;
812
+ models?: {
813
+ claude?: string;
814
+ codex?: string;
815
+ opencode?: string;
816
+ } | undefined;
817
+ };
716
818
  };
717
819
  outputFormat: "json";
718
820
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -737,9 +839,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
737
839
  maxParallel: number;
738
840
  maxMonitoringSessions: number;
739
841
  monitoringWakeIntervalMinutes: number | null;
842
+ autoResumeOnUsageLimit: boolean;
740
843
  memoryLimitMb: number | null;
741
844
  worktreeRetentionDefault: number;
742
845
  };
846
+ agentDefaults: {
847
+ runner?: ProviderId;
848
+ models?: {
849
+ claude?: string;
850
+ codex?: string;
851
+ opencode?: string;
852
+ } | undefined;
853
+ };
743
854
  };
744
855
  outputFormat: "json";
745
856
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -756,9 +867,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
756
867
  maxParallel?: number | undefined;
757
868
  maxMonitoringSessions?: number | undefined;
758
869
  monitoringWakeIntervalMinutes?: number | null | undefined;
870
+ autoResumeOnUsageLimit?: boolean | undefined;
759
871
  memoryLimitMb?: number | null | undefined;
760
872
  worktreeRetentionDefault?: number | undefined;
761
873
  } | undefined;
874
+ agentDefaults?: {
875
+ runner?: "claude" | "codex" | "opencode" | "pi" | null | undefined;
876
+ models?: {
877
+ claude?: string | null | undefined;
878
+ codex?: string | null | undefined;
879
+ opencode?: string | null | undefined;
880
+ pi?: string | null | undefined;
881
+ } | undefined;
882
+ } | undefined;
762
883
  };
763
884
  };
764
885
  } | {
@@ -780,9 +901,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
780
901
  maxParallel?: number | undefined;
781
902
  maxMonitoringSessions?: number | undefined;
782
903
  monitoringWakeIntervalMinutes?: number | null | undefined;
904
+ autoResumeOnUsageLimit?: boolean | undefined;
783
905
  memoryLimitMb?: number | null | undefined;
784
906
  worktreeRetentionDefault?: number | undefined;
785
907
  } | undefined;
908
+ agentDefaults?: {
909
+ runner?: "claude" | "codex" | "opencode" | "pi" | null | undefined;
910
+ models?: {
911
+ claude?: string | null | undefined;
912
+ codex?: string | null | undefined;
913
+ opencode?: string | null | undefined;
914
+ pi?: string | null | undefined;
915
+ } | undefined;
916
+ } | undefined;
786
917
  };
787
918
  };
788
919
  } | {
@@ -804,9 +935,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
804
935
  maxParallel?: number | undefined;
805
936
  maxMonitoringSessions?: number | undefined;
806
937
  monitoringWakeIntervalMinutes?: number | null | undefined;
938
+ autoResumeOnUsageLimit?: boolean | undefined;
807
939
  memoryLimitMb?: number | null | undefined;
808
940
  worktreeRetentionDefault?: number | undefined;
809
941
  } | undefined;
942
+ agentDefaults?: {
943
+ runner?: "claude" | "codex" | "opencode" | "pi" | null | undefined;
944
+ models?: {
945
+ claude?: string | null | undefined;
946
+ codex?: string | null | undefined;
947
+ opencode?: string | null | undefined;
948
+ pi?: string | null | undefined;
949
+ } | undefined;
950
+ } | undefined;
810
951
  };
811
952
  };
812
953
  };
@@ -826,15 +967,23 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
826
967
  claude?: string | undefined;
827
968
  codex?: string | undefined;
828
969
  opencode?: string | undefined;
970
+ pi?: string | undefined;
829
971
  } | undefined;
830
972
  appearance?: {
831
973
  accent?: "lime" | "violet" | undefined;
832
974
  density?: "comfortable" | "compact" | "ultra" | undefined;
975
+ width?: "narrow" | "wide" | undefined;
833
976
  } | undefined;
834
977
  notifications?: {
835
978
  [x: string]: import("hono/utils/types").JSONValue;
836
979
  enabled?: boolean | undefined;
837
980
  } | undefined;
981
+ taskTable?: {
982
+ [x: string]: import("hono/utils/types").JSONValue;
983
+ expandedColumns?: {
984
+ [x: string]: boolean;
985
+ } | undefined;
986
+ } | undefined;
838
987
  lastLocation?: {
839
988
  projectId: string;
840
989
  pathname: string;
@@ -863,15 +1012,23 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
863
1012
  claude?: string | undefined;
864
1013
  codex?: string | undefined;
865
1014
  opencode?: string | undefined;
1015
+ pi?: string | undefined;
866
1016
  } | undefined;
867
1017
  appearance?: {
868
1018
  accent?: "lime" | "violet" | undefined;
869
1019
  density?: "comfortable" | "compact" | "ultra" | undefined;
1020
+ width?: "narrow" | "wide" | undefined;
870
1021
  } | undefined;
871
1022
  notifications?: {
872
1023
  [x: string]: import("hono/utils/types").JSONValue;
873
1024
  enabled?: boolean | undefined;
874
1025
  } | undefined;
1026
+ taskTable?: {
1027
+ [x: string]: import("hono/utils/types").JSONValue;
1028
+ expandedColumns?: {
1029
+ [x: string]: boolean;
1030
+ } | undefined;
1031
+ } | undefined;
875
1032
  lastLocation?: {
876
1033
  projectId: string;
877
1034
  pathname: string;
@@ -894,11 +1051,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
894
1051
  [x: string]: unknown;
895
1052
  enabled?: boolean | undefined;
896
1053
  } | undefined;
897
- dismissedProviderAuthFailures?: {
898
- claude?: string | undefined;
899
- codex?: string | undefined;
900
- opencode?: string | undefined;
901
- } | undefined;
902
1054
  lastLocation?: {
903
1055
  projectId: string;
904
1056
  pathname: string;
@@ -909,7 +1061,17 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
909
1061
  [x: string]: unknown;
910
1062
  collapsed?: Record<string, boolean> | undefined;
911
1063
  } | undefined;
1064
+ dismissedProviderAuthFailures?: {
1065
+ claude?: string | undefined;
1066
+ codex?: string | undefined;
1067
+ opencode?: string | undefined;
1068
+ pi?: string | undefined;
1069
+ } | undefined;
912
1070
  importedSkills?: string[] | undefined;
1071
+ taskTable?: {
1072
+ [x: string]: unknown;
1073
+ expandedColumns?: Record<string, boolean> | undefined;
1074
+ } | undefined;
913
1075
  };
914
1076
  };
915
1077
  } | {
@@ -930,11 +1092,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
930
1092
  [x: string]: unknown;
931
1093
  enabled?: boolean | undefined;
932
1094
  } | undefined;
933
- dismissedProviderAuthFailures?: {
934
- claude?: string | undefined;
935
- codex?: string | undefined;
936
- opencode?: string | undefined;
937
- } | undefined;
938
1095
  lastLocation?: {
939
1096
  projectId: string;
940
1097
  pathname: string;
@@ -945,7 +1102,17 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
945
1102
  [x: string]: unknown;
946
1103
  collapsed?: Record<string, boolean> | undefined;
947
1104
  } | undefined;
1105
+ dismissedProviderAuthFailures?: {
1106
+ claude?: string | undefined;
1107
+ codex?: string | undefined;
1108
+ opencode?: string | undefined;
1109
+ pi?: string | undefined;
1110
+ } | undefined;
948
1111
  importedSkills?: string[] | undefined;
1112
+ taskTable?: {
1113
+ [x: string]: unknown;
1114
+ expandedColumns?: Record<string, boolean> | undefined;
1115
+ } | undefined;
949
1116
  };
950
1117
  };
951
1118
  };
@@ -963,9 +1130,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
963
1130
  lastOpenedAt: string;
964
1131
  source: "checkout" | "local";
965
1132
  maxParallel?: number | undefined;
1133
+ tags?: string[] | undefined;
966
1134
  status: import("../workspace/projects.ts").ProjectStatus;
967
1135
  branch?: string;
968
1136
  forge?: import("./forge/types.ts").ForgeKind;
1137
+ repoUrl?: string;
969
1138
  }[];
970
1139
  bootProject: string;
971
1140
  projectsDir: string;
@@ -988,9 +1157,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
988
1157
  lastOpenedAt: string;
989
1158
  source: "checkout" | "local";
990
1159
  maxParallel?: number | undefined;
1160
+ tags?: string[] | undefined;
991
1161
  status: import("../workspace/projects.ts").ProjectStatus;
992
1162
  branch?: string;
993
1163
  forge?: import("./forge/types.ts").ForgeKind;
1164
+ repoUrl?: string;
994
1165
  };
995
1166
  error?: string;
996
1167
  };
@@ -1012,9 +1183,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1012
1183
  lastOpenedAt: string;
1013
1184
  source: "checkout" | "local";
1014
1185
  maxParallel?: number | undefined;
1186
+ tags?: string[] | undefined;
1015
1187
  status: import("../workspace/projects.ts").ProjectStatus;
1016
1188
  branch?: string;
1017
1189
  forge?: import("./forge/types.ts").ForgeKind;
1190
+ repoUrl?: string;
1018
1191
  };
1019
1192
  error?: string;
1020
1193
  } | {
@@ -1088,7 +1261,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1088
1261
  status: 409;
1089
1262
  input: {
1090
1263
  json: {
1091
- maxParallel: number | null;
1264
+ maxParallel?: number | null | undefined;
1265
+ tags?: string[] | null | undefined;
1092
1266
  };
1093
1267
  } & {
1094
1268
  param: {
@@ -1103,7 +1277,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1103
1277
  status: 404;
1104
1278
  input: {
1105
1279
  json: {
1106
- maxParallel: number | null;
1280
+ maxParallel?: number | null | undefined;
1281
+ tags?: string[] | null | undefined;
1107
1282
  };
1108
1283
  } & {
1109
1284
  param: {
@@ -1118,7 +1293,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1118
1293
  status: 500;
1119
1294
  input: {
1120
1295
  json: {
1121
- maxParallel: number | null;
1296
+ maxParallel?: number | null | undefined;
1297
+ tags?: string[] | null | undefined;
1122
1298
  };
1123
1299
  } & {
1124
1300
  param: {
@@ -1136,16 +1312,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1136
1312
  lastOpenedAt: string;
1137
1313
  source: "checkout" | "local";
1138
1314
  maxParallel?: number | undefined;
1315
+ tags?: string[] | undefined;
1139
1316
  status: import("../workspace/projects.ts").ProjectStatus;
1140
1317
  branch?: string;
1141
1318
  forge?: import("./forge/types.ts").ForgeKind;
1319
+ repoUrl?: string;
1142
1320
  };
1143
1321
  };
1144
1322
  outputFormat: "json";
1145
1323
  status: import("hono/utils/http-status").ContentfulStatusCode;
1146
1324
  input: {
1147
1325
  json: {
1148
- maxParallel: number | null;
1326
+ maxParallel?: number | null | undefined;
1327
+ tags?: string[] | null | undefined;
1149
1328
  };
1150
1329
  } & {
1151
1330
  param: {
@@ -1167,9 +1346,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1167
1346
  lastOpenedAt: string;
1168
1347
  source: "checkout" | "local";
1169
1348
  maxParallel?: number | undefined;
1349
+ tags?: string[] | undefined;
1170
1350
  status: import("../workspace/projects.ts").ProjectStatus;
1171
1351
  branch?: string;
1172
1352
  forge?: import("./forge/types.ts").ForgeKind;
1353
+ repoUrl?: string;
1173
1354
  };
1174
1355
  error?: string;
1175
1356
  };
@@ -1200,19 +1381,75 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1200
1381
  };
1201
1382
  };
1202
1383
  };
1203
- }, "/">, "/api/v1"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
1204
- "/launch-key": {
1384
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1385
+ "/workspace/agent-profiles": {
1205
1386
  $get: {
1206
1387
  output: {
1207
- key: string;
1388
+ editable: boolean;
1389
+ profiles: ({
1390
+ exists: boolean;
1391
+ looksValid: boolean;
1392
+ id: string;
1393
+ provider: "claude" | "codex" | "opencode" | "pi";
1394
+ label: string;
1395
+ configDir: string;
1396
+ path: string;
1397
+ isDefault: boolean;
1398
+ status: {
1399
+ provider: ProviderId;
1400
+ status: import("../core/provider-auth.ts").ProviderConnectionState;
1401
+ enabled?: boolean;
1402
+ hint?: string;
1403
+ authFailureId?: string;
1404
+ profileId?: string;
1405
+ };
1406
+ files: {
1407
+ id: string;
1408
+ label: string;
1409
+ path: string;
1410
+ exists: boolean;
1411
+ }[];
1412
+ } | {
1413
+ exists: boolean;
1414
+ looksValid: boolean;
1415
+ id: string;
1416
+ provider: "claude" | "codex" | "opencode" | "pi";
1417
+ label: string;
1418
+ configDir: string;
1419
+ path: string;
1420
+ isDefault: boolean;
1421
+ files: {
1422
+ id: string;
1423
+ label: string;
1424
+ path: string;
1425
+ exists: boolean;
1426
+ }[];
1427
+ })[];
1428
+ profileCapableProviders: ("claude" | "codex" | "opencode" | "pi")[];
1429
+ selections: {
1430
+ [x: string]: {
1431
+ [x: string]: import("hono/utils/types").JSONValue;
1432
+ claude?: string | undefined;
1433
+ codex?: string | undefined;
1434
+ opencode?: string | undefined;
1435
+ pi?: string | undefined;
1436
+ };
1437
+ };
1438
+ defaults: {
1439
+ [x: string]: import("hono/utils/types").JSONValue;
1440
+ claude?: string | undefined;
1441
+ codex?: string | undefined;
1442
+ opencode?: string | undefined;
1443
+ pi?: string | undefined;
1444
+ };
1208
1445
  };
1209
1446
  outputFormat: "json";
1210
1447
  status: import("hono/utils/http-status").ContentfulStatusCode;
1211
1448
  input: {};
1212
1449
  };
1213
1450
  };
1214
- }, "/"> | import("hono/types").MergeSchemaPath<{
1215
- "/plan": {
1451
+ } & {
1452
+ "/workspace/agent-profiles": {
1216
1453
  $post: {
1217
1454
  output: {
1218
1455
  error: string;
@@ -1221,116 +1458,698 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1221
1458
  status: 409;
1222
1459
  input: {
1223
1460
  json: {
1224
- task: string;
1461
+ provider: "claude" | "codex" | "opencode" | "pi";
1462
+ label?: string | undefined;
1463
+ configDir: string;
1225
1464
  };
1226
1465
  };
1227
1466
  } | {
1228
1467
  output: {
1229
- name?: string;
1230
- steps: {
1231
- id: string;
1232
- name?: string | undefined;
1233
- prompt?: string | undefined;
1234
- skill?: string | undefined;
1235
- model?: string | undefined;
1236
- runner?: "claude" | "codex" | "opencode" | undefined;
1237
- allowedTools?: string[] | undefined;
1238
- bashAllowlist?: string[] | undefined;
1239
- command?: string | undefined;
1240
- onFail?: {
1241
- retry: string;
1242
- max: number;
1243
- } | undefined;
1244
- }[];
1245
- rationale: string;
1246
- fallback: boolean;
1468
+ error: string;
1247
1469
  };
1248
1470
  outputFormat: "json";
1249
- status: import("hono/utils/http-status").ContentfulStatusCode;
1471
+ status: 400;
1250
1472
  input: {
1251
1473
  json: {
1252
- task: string;
1474
+ provider: "claude" | "codex" | "opencode" | "pi";
1475
+ label?: string | undefined;
1476
+ configDir: string;
1253
1477
  };
1254
1478
  };
1255
- };
1256
- };
1257
- }, "/"> | import("hono/types").MergeSchemaPath<{
1258
- "/open-targets": {
1259
- $get: {
1479
+ } | {
1260
1480
  output: {
1261
- targets: {
1262
- id: string;
1263
- label: string;
1264
- icon?: string;
1265
- }[];
1481
+ error: string;
1266
1482
  };
1267
1483
  outputFormat: "json";
1268
- status: import("hono/utils/http-status").ContentfulStatusCode;
1269
- input: {};
1270
- };
1271
- };
1272
- }, "/"> | import("hono/types").MergeSchemaPath<{
1273
- "/ui-state": {
1274
- $get: {
1484
+ status: 500;
1485
+ input: {
1486
+ json: {
1487
+ provider: "claude" | "codex" | "opencode" | "pi";
1488
+ label?: string | undefined;
1489
+ configDir: string;
1490
+ };
1491
+ };
1492
+ } | {
1275
1493
  output: {
1276
- [x: string]: import("hono/utils/types").JSONValue;
1277
- lastTask?: {
1278
- source: "skill" | "workflow";
1279
- ref: string;
1280
- } | undefined;
1281
- recentSources?: {
1282
- source: "skill" | "workflow";
1283
- ref: string;
1284
- }[] | undefined;
1285
- lastWorktree?: boolean | undefined;
1286
- lastAutonomous?: boolean | undefined;
1287
- lastGenerateFollowups?: boolean | undefined;
1288
- skillUsage?: {
1289
- [x: string]: number;
1290
- } | undefined;
1291
- runsView?: "list" | "table" | undefined;
1292
- githubView?: "issues" | "prs" | undefined;
1293
- appearance?: {
1294
- accent?: "lime" | "violet" | undefined;
1295
- density?: "comfortable" | "compact" | "ultra" | undefined;
1296
- } | undefined;
1297
- promptTemplates?: {
1494
+ profile: {
1495
+ exists: boolean;
1496
+ looksValid: boolean;
1298
1497
  id: string;
1498
+ provider: "claude" | "codex" | "opencode" | "pi";
1299
1499
  label: string;
1300
- text: string;
1301
- skills?: string[] | undefined;
1302
- }[] | undefined;
1303
- dismissedSkillsBanner?: boolean | undefined;
1500
+ configDir: string;
1501
+ path: string;
1502
+ isDefault: boolean;
1503
+ status: {
1504
+ provider: ProviderId;
1505
+ status: import("../core/provider-auth.ts").ProviderConnectionState;
1506
+ enabled?: boolean;
1507
+ hint?: string;
1508
+ authFailureId?: string;
1509
+ profileId?: string;
1510
+ };
1511
+ files: {
1512
+ id: string;
1513
+ label: string;
1514
+ path: string;
1515
+ exists: boolean;
1516
+ }[];
1517
+ } | {
1518
+ exists: boolean;
1519
+ looksValid: boolean;
1520
+ id: string;
1521
+ provider: "claude" | "codex" | "opencode" | "pi";
1522
+ label: string;
1523
+ configDir: string;
1524
+ path: string;
1525
+ isDefault: boolean;
1526
+ files: {
1527
+ id: string;
1528
+ label: string;
1529
+ path: string;
1530
+ exists: boolean;
1531
+ }[];
1532
+ };
1304
1533
  };
1305
1534
  outputFormat: "json";
1306
- status: import("hono/utils/http-status").ContentfulStatusCode;
1307
- input: {};
1535
+ status: 201;
1536
+ input: {
1537
+ json: {
1538
+ provider: "claude" | "codex" | "opencode" | "pi";
1539
+ label?: string | undefined;
1540
+ configDir: string;
1541
+ };
1542
+ };
1308
1543
  };
1309
1544
  };
1310
1545
  } & {
1311
- "/ui-state": {
1312
- $put: {
1546
+ "/workspace/agent-profiles/:id": {
1547
+ $patch: {
1313
1548
  output: {
1314
1549
  error: string;
1315
1550
  };
1316
1551
  outputFormat: "json";
1317
- status: 500;
1552
+ status: 400;
1318
1553
  input: {
1554
+ param: {
1555
+ id: string;
1556
+ };
1557
+ } & {
1319
1558
  json: {
1320
- [x: string]: unknown;
1321
- lastTask?: {
1322
- source: "skill" | "workflow";
1323
- ref: string;
1324
- } | undefined;
1325
- recentSources?: {
1326
- source: "skill" | "workflow";
1327
- ref: string;
1328
- }[] | undefined;
1329
- lastWorktree?: boolean | undefined;
1330
- lastAutonomous?: boolean | undefined;
1331
- lastGenerateFollowups?: boolean | undefined;
1332
- skillUsage?: Record<string, number> | undefined;
1333
- runsView?: "list" | "table" | undefined;
1559
+ label?: string | undefined;
1560
+ configDir?: string | undefined;
1561
+ };
1562
+ };
1563
+ } | {
1564
+ output: {
1565
+ error: string;
1566
+ };
1567
+ outputFormat: "json";
1568
+ status: 409;
1569
+ input: {
1570
+ param: {
1571
+ id: string;
1572
+ };
1573
+ } & {
1574
+ json: {
1575
+ label?: string | undefined;
1576
+ configDir?: string | undefined;
1577
+ };
1578
+ };
1579
+ } | {
1580
+ output: {
1581
+ error: string;
1582
+ };
1583
+ outputFormat: "json";
1584
+ status: 400;
1585
+ input: {
1586
+ param: {
1587
+ id: string;
1588
+ };
1589
+ } & {
1590
+ json: {
1591
+ label?: string | undefined;
1592
+ configDir?: string | undefined;
1593
+ };
1594
+ };
1595
+ } | {
1596
+ output: {
1597
+ error: string;
1598
+ };
1599
+ outputFormat: "json";
1600
+ status: 404;
1601
+ input: {
1602
+ param: {
1603
+ id: string;
1604
+ };
1605
+ } & {
1606
+ json: {
1607
+ label?: string | undefined;
1608
+ configDir?: string | undefined;
1609
+ };
1610
+ };
1611
+ } | {
1612
+ output: {
1613
+ error: string;
1614
+ };
1615
+ outputFormat: "json";
1616
+ status: 500;
1617
+ input: {
1618
+ param: {
1619
+ id: string;
1620
+ };
1621
+ } & {
1622
+ json: {
1623
+ label?: string | undefined;
1624
+ configDir?: string | undefined;
1625
+ };
1626
+ };
1627
+ } | {
1628
+ output: {
1629
+ profile: {
1630
+ exists: boolean;
1631
+ looksValid: boolean;
1632
+ id: string;
1633
+ provider: "claude" | "codex" | "opencode" | "pi";
1634
+ label: string;
1635
+ configDir: string;
1636
+ path: string;
1637
+ isDefault: boolean;
1638
+ status: {
1639
+ provider: ProviderId;
1640
+ status: import("../core/provider-auth.ts").ProviderConnectionState;
1641
+ enabled?: boolean;
1642
+ hint?: string;
1643
+ authFailureId?: string;
1644
+ profileId?: string;
1645
+ };
1646
+ files: {
1647
+ id: string;
1648
+ label: string;
1649
+ path: string;
1650
+ exists: boolean;
1651
+ }[];
1652
+ } | {
1653
+ exists: boolean;
1654
+ looksValid: boolean;
1655
+ id: string;
1656
+ provider: "claude" | "codex" | "opencode" | "pi";
1657
+ label: string;
1658
+ configDir: string;
1659
+ path: string;
1660
+ isDefault: boolean;
1661
+ files: {
1662
+ id: string;
1663
+ label: string;
1664
+ path: string;
1665
+ exists: boolean;
1666
+ }[];
1667
+ };
1668
+ };
1669
+ outputFormat: "json";
1670
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1671
+ input: {
1672
+ param: {
1673
+ id: string;
1674
+ };
1675
+ } & {
1676
+ json: {
1677
+ label?: string | undefined;
1678
+ configDir?: string | undefined;
1679
+ };
1680
+ };
1681
+ };
1682
+ };
1683
+ } & {
1684
+ "/workspace/agent-profiles/:id/status": {
1685
+ $get: {
1686
+ output: {
1687
+ error: string;
1688
+ };
1689
+ outputFormat: "json";
1690
+ status: 400;
1691
+ input: {
1692
+ param: {
1693
+ id: string;
1694
+ };
1695
+ } & {
1696
+ query: {
1697
+ refresh?: "1" | undefined;
1698
+ };
1699
+ };
1700
+ } | {
1701
+ output: {
1702
+ error: string;
1703
+ };
1704
+ outputFormat: "json";
1705
+ status: 409;
1706
+ input: {
1707
+ param: {
1708
+ id: string;
1709
+ };
1710
+ } & {
1711
+ query: {
1712
+ refresh?: "1" | undefined;
1713
+ };
1714
+ };
1715
+ } | {
1716
+ output: {
1717
+ error: string;
1718
+ };
1719
+ outputFormat: "json";
1720
+ status: 404;
1721
+ input: {
1722
+ param: {
1723
+ id: string;
1724
+ };
1725
+ } & {
1726
+ query: {
1727
+ refresh?: "1" | undefined;
1728
+ };
1729
+ };
1730
+ } | {
1731
+ output: {
1732
+ status: {
1733
+ provider: ProviderId;
1734
+ status: import("../core/provider-auth.ts").ProviderConnectionState;
1735
+ enabled?: boolean;
1736
+ hint?: string;
1737
+ authFailureId?: string;
1738
+ profileId?: string;
1739
+ };
1740
+ };
1741
+ outputFormat: "json";
1742
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1743
+ input: {
1744
+ param: {
1745
+ id: string;
1746
+ };
1747
+ } & {
1748
+ query: {
1749
+ refresh?: "1" | undefined;
1750
+ };
1751
+ };
1752
+ };
1753
+ };
1754
+ } & {
1755
+ "/workspace/agent-profiles/:id/details": {
1756
+ $get: {
1757
+ output: {
1758
+ error: string;
1759
+ };
1760
+ outputFormat: "json";
1761
+ status: 400;
1762
+ input: {
1763
+ param: {
1764
+ id: string;
1765
+ };
1766
+ };
1767
+ } | {
1768
+ output: {
1769
+ error: string;
1770
+ };
1771
+ outputFormat: "json";
1772
+ status: 409;
1773
+ input: {
1774
+ param: {
1775
+ id: string;
1776
+ };
1777
+ };
1778
+ } | {
1779
+ output: {
1780
+ error: string;
1781
+ };
1782
+ outputFormat: "json";
1783
+ status: 404;
1784
+ input: {
1785
+ param: {
1786
+ id: string;
1787
+ };
1788
+ };
1789
+ } | {
1790
+ output: {
1791
+ available: boolean;
1792
+ reason?: string;
1793
+ fields: {
1794
+ label: string;
1795
+ value: string;
1796
+ }[];
1797
+ };
1798
+ outputFormat: "json";
1799
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1800
+ input: {
1801
+ param: {
1802
+ id: string;
1803
+ };
1804
+ };
1805
+ };
1806
+ };
1807
+ } & {
1808
+ "/workspace/agent-profiles/:id/open": {
1809
+ $post: {
1810
+ output: {
1811
+ error: string;
1812
+ };
1813
+ outputFormat: "json";
1814
+ status: 400;
1815
+ input: {
1816
+ param: {
1817
+ id: string;
1818
+ };
1819
+ } & {
1820
+ json: {
1821
+ file: string;
1822
+ target?: string | undefined;
1823
+ };
1824
+ };
1825
+ } | {
1826
+ output: {
1827
+ error: string;
1828
+ };
1829
+ outputFormat: "json";
1830
+ status: 409;
1831
+ input: {
1832
+ param: {
1833
+ id: string;
1834
+ };
1835
+ } & {
1836
+ json: {
1837
+ file: string;
1838
+ target?: string | undefined;
1839
+ };
1840
+ };
1841
+ } | {
1842
+ output: {
1843
+ error: string;
1844
+ };
1845
+ outputFormat: "json";
1846
+ status: 404;
1847
+ input: {
1848
+ param: {
1849
+ id: string;
1850
+ };
1851
+ } & {
1852
+ json: {
1853
+ file: string;
1854
+ target?: string | undefined;
1855
+ };
1856
+ };
1857
+ } | {
1858
+ output: {
1859
+ error: string;
1860
+ };
1861
+ outputFormat: "json";
1862
+ status: 400;
1863
+ input: {
1864
+ param: {
1865
+ id: string;
1866
+ };
1867
+ } & {
1868
+ json: {
1869
+ file: string;
1870
+ target?: string | undefined;
1871
+ };
1872
+ };
1873
+ } | {
1874
+ output: {
1875
+ opened: true;
1876
+ path: string;
1877
+ };
1878
+ outputFormat: "json";
1879
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1880
+ input: {
1881
+ param: {
1882
+ id: string;
1883
+ };
1884
+ } & {
1885
+ json: {
1886
+ file: string;
1887
+ target?: string | undefined;
1888
+ };
1889
+ };
1890
+ };
1891
+ };
1892
+ } & {
1893
+ "/workspace/agent-profiles/selection": {
1894
+ $put: {
1895
+ output: {
1896
+ error: string;
1897
+ };
1898
+ outputFormat: "json";
1899
+ status: 409;
1900
+ input: {
1901
+ json: {
1902
+ projectId: string | null;
1903
+ provider: "claude" | "codex" | "opencode" | "pi";
1904
+ profileId: string | null;
1905
+ };
1906
+ };
1907
+ } | {
1908
+ output: {
1909
+ error: string;
1910
+ };
1911
+ outputFormat: "json";
1912
+ status: 404;
1913
+ input: {
1914
+ json: {
1915
+ projectId: string | null;
1916
+ provider: "claude" | "codex" | "opencode" | "pi";
1917
+ profileId: string | null;
1918
+ };
1919
+ };
1920
+ } | {
1921
+ output: {
1922
+ error: string;
1923
+ };
1924
+ outputFormat: "json";
1925
+ status: 400;
1926
+ input: {
1927
+ json: {
1928
+ projectId: string | null;
1929
+ provider: "claude" | "codex" | "opencode" | "pi";
1930
+ profileId: string | null;
1931
+ };
1932
+ };
1933
+ } | {
1934
+ output: {
1935
+ error: string;
1936
+ };
1937
+ outputFormat: "json";
1938
+ status: 500;
1939
+ input: {
1940
+ json: {
1941
+ projectId: string | null;
1942
+ provider: "claude" | "codex" | "opencode" | "pi";
1943
+ profileId: string | null;
1944
+ };
1945
+ };
1946
+ } | {
1947
+ output: {
1948
+ selections: {
1949
+ [x: string]: {
1950
+ [x: string]: import("hono/utils/types").JSONValue;
1951
+ claude?: string | undefined;
1952
+ codex?: string | undefined;
1953
+ opencode?: string | undefined;
1954
+ pi?: string | undefined;
1955
+ };
1956
+ };
1957
+ defaults: {
1958
+ [x: string]: import("hono/utils/types").JSONValue;
1959
+ claude?: string | undefined;
1960
+ codex?: string | undefined;
1961
+ opencode?: string | undefined;
1962
+ pi?: string | undefined;
1963
+ };
1964
+ };
1965
+ outputFormat: "json";
1966
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1967
+ input: {
1968
+ json: {
1969
+ projectId: string | null;
1970
+ provider: "claude" | "codex" | "opencode" | "pi";
1971
+ profileId: string | null;
1972
+ };
1973
+ };
1974
+ };
1975
+ };
1976
+ } & {
1977
+ "/workspace/agent-profiles/:id": {
1978
+ $delete: {
1979
+ output: {
1980
+ error: string;
1981
+ };
1982
+ outputFormat: "json";
1983
+ status: 400;
1984
+ input: {
1985
+ param: {
1986
+ id: string;
1987
+ };
1988
+ };
1989
+ } | {
1990
+ output: {
1991
+ error: string;
1992
+ };
1993
+ outputFormat: "json";
1994
+ status: 409;
1995
+ input: {
1996
+ param: {
1997
+ id: string;
1998
+ };
1999
+ };
2000
+ } | {
2001
+ output: {
2002
+ error: string;
2003
+ };
2004
+ outputFormat: "json";
2005
+ status: 500;
2006
+ input: {
2007
+ param: {
2008
+ id: string;
2009
+ };
2010
+ };
2011
+ } | {
2012
+ output: {
2013
+ error: string;
2014
+ };
2015
+ outputFormat: "json";
2016
+ status: 404;
2017
+ input: {
2018
+ param: {
2019
+ id: string;
2020
+ };
2021
+ };
2022
+ } | {
2023
+ output: {
2024
+ removed: true;
2025
+ id: string;
2026
+ };
2027
+ outputFormat: "json";
2028
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2029
+ input: {
2030
+ param: {
2031
+ id: string;
2032
+ };
2033
+ };
2034
+ };
2035
+ };
2036
+ }, "/">, "/api/v1"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
2037
+ "/launch-key": {
2038
+ $get: {
2039
+ output: {
2040
+ key: string;
2041
+ };
2042
+ outputFormat: "json";
2043
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2044
+ input: {};
2045
+ };
2046
+ };
2047
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2048
+ "/plan": {
2049
+ $post: {
2050
+ output: {
2051
+ error: string;
2052
+ };
2053
+ outputFormat: "json";
2054
+ status: 409;
2055
+ input: {
2056
+ json: {
2057
+ task: string;
2058
+ };
2059
+ };
2060
+ } | {
2061
+ output: {
2062
+ name?: string;
2063
+ steps: {
2064
+ id: string;
2065
+ name?: string | undefined;
2066
+ prompt?: string | undefined;
2067
+ skill?: string | undefined;
2068
+ model?: string | undefined;
2069
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2070
+ allowedTools?: string[] | undefined;
2071
+ bashAllowlist?: string[] | undefined;
2072
+ command?: string | undefined;
2073
+ onFail?: {
2074
+ retry: string;
2075
+ max: number;
2076
+ } | undefined;
2077
+ }[];
2078
+ rationale: string;
2079
+ fallback: boolean;
2080
+ };
2081
+ outputFormat: "json";
2082
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2083
+ input: {
2084
+ json: {
2085
+ task: string;
2086
+ };
2087
+ };
2088
+ };
2089
+ };
2090
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2091
+ "/ui-state": {
2092
+ $get: {
2093
+ output: {
2094
+ [x: string]: import("hono/utils/types").JSONValue;
2095
+ lastTask?: {
2096
+ source: "skill" | "workflow";
2097
+ ref: string;
2098
+ } | undefined;
2099
+ recentSources?: {
2100
+ source: "skill" | "workflow";
2101
+ ref: string;
2102
+ }[] | undefined;
2103
+ lastWorktree?: boolean | undefined;
2104
+ lastAutonomous?: boolean | undefined;
2105
+ lastGenerateFollowups?: boolean | undefined;
2106
+ skillUsage?: {
2107
+ [x: string]: number;
2108
+ } | undefined;
2109
+ runsView?: "list" | "table" | undefined;
2110
+ githubView?: "issues" | "prs" | undefined;
2111
+ appearance?: {
2112
+ accent?: "lime" | "violet" | undefined;
2113
+ density?: "comfortable" | "compact" | "ultra" | undefined;
2114
+ width?: "narrow" | "wide" | undefined;
2115
+ } | undefined;
2116
+ promptTemplates?: {
2117
+ id: string;
2118
+ label: string;
2119
+ text: string;
2120
+ skills?: string[] | undefined;
2121
+ }[] | undefined;
2122
+ dismissedSkillsBanner?: boolean | undefined;
2123
+ };
2124
+ outputFormat: "json";
2125
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2126
+ input: {};
2127
+ };
2128
+ };
2129
+ } & {
2130
+ "/ui-state": {
2131
+ $put: {
2132
+ output: {
2133
+ error: string;
2134
+ };
2135
+ outputFormat: "json";
2136
+ status: 500;
2137
+ input: {
2138
+ json: {
2139
+ [x: string]: unknown;
2140
+ lastTask?: {
2141
+ source: "skill" | "workflow";
2142
+ ref: string;
2143
+ } | undefined;
2144
+ recentSources?: {
2145
+ source: "skill" | "workflow";
2146
+ ref: string;
2147
+ }[] | undefined;
2148
+ lastWorktree?: boolean | undefined;
2149
+ lastAutonomous?: boolean | undefined;
2150
+ lastGenerateFollowups?: boolean | undefined;
2151
+ skillUsage?: Record<string, number> | undefined;
2152
+ runsView?: "list" | "table" | undefined;
1334
2153
  githubView?: "issues" | "prs" | undefined;
1335
2154
  appearance?: {
1336
2155
  accent?: "lime" | "violet" | undefined;
@@ -1368,6 +2187,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1368
2187
  appearance?: {
1369
2188
  accent?: "lime" | "violet" | undefined;
1370
2189
  density?: "comfortable" | "compact" | "ultra" | undefined;
2190
+ width?: "narrow" | "wide" | undefined;
1371
2191
  } | undefined;
1372
2192
  promptTemplates?: {
1373
2193
  id: string;
@@ -1506,7 +2326,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1506
2326
  taskImages?: string[] | undefined;
1507
2327
  model?: string | undefined;
1508
2328
  modelIdentity?: string | undefined;
1509
- runner?: "claude" | "codex" | "opencode" | undefined;
2329
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2330
+ agentProfile?: string | undefined;
1510
2331
  systemPrompt?: string | undefined;
1511
2332
  generateFollowups?: boolean | undefined;
1512
2333
  autonomous?: boolean | undefined;
@@ -1521,6 +2342,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1521
2342
  activity?: "monitoring" | undefined;
1522
2343
  monitoringWakeAt?: string | undefined;
1523
2344
  monitoringWakeCapReached?: boolean | undefined;
2345
+ autoResumeAt?: string | undefined;
2346
+ autoResumeAttempts?: number | undefined;
1524
2347
  createdAt: string;
1525
2348
  startedAt?: string | undefined;
1526
2349
  finishedAt?: string | undefined;
@@ -1573,7 +2396,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1573
2396
  finishedAt?: string | undefined;
1574
2397
  error?: string | undefined;
1575
2398
  sessionId?: string | undefined;
1576
- backend?: "claude" | "codex" | "opencode" | undefined;
2399
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
2400
+ profileId?: string | undefined;
1577
2401
  costUsd?: number | undefined;
1578
2402
  }[];
1579
2403
  workflowDef?: {
@@ -1585,7 +2409,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1585
2409
  prompt?: string | undefined;
1586
2410
  skill?: string | undefined;
1587
2411
  model?: string | undefined;
1588
- runner?: "claude" | "codex" | "opencode" | undefined;
2412
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
1589
2413
  allowedTools?: string[] | undefined;
1590
2414
  bashAllowlist?: string[] | undefined;
1591
2415
  command?: string | undefined;
@@ -1600,14 +2424,67 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1600
2424
  } | undefined;
1601
2425
  };
1602
2426
  outputFormat: "json";
1603
- status: import("hono/utils/http-status").ContentfulStatusCode;
2427
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2428
+ input: {
2429
+ json: {
2430
+ runId: string;
2431
+ };
2432
+ } & {
2433
+ param: {
2434
+ groupId: string;
2435
+ };
2436
+ };
2437
+ };
2438
+ };
2439
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2440
+ "/open-targets": {
2441
+ $get: {
2442
+ output: {
2443
+ targets: {
2444
+ id: string;
2445
+ label: string;
2446
+ icon?: string;
2447
+ }[];
2448
+ };
2449
+ outputFormat: "json";
2450
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2451
+ input: {};
2452
+ };
2453
+ };
2454
+ } & {
2455
+ "/open-in": {
2456
+ $post: {
2457
+ output: {
2458
+ error: string;
2459
+ };
2460
+ outputFormat: "json";
2461
+ status: 409;
2462
+ input: {
2463
+ json: {
2464
+ target: string;
2465
+ };
2466
+ };
2467
+ } | {
2468
+ output: {
2469
+ error: string;
2470
+ };
2471
+ outputFormat: "json";
2472
+ status: 400;
1604
2473
  input: {
1605
2474
  json: {
1606
- runId: string;
2475
+ target: string;
1607
2476
  };
1608
- } & {
1609
- param: {
1610
- groupId: string;
2477
+ };
2478
+ } | {
2479
+ output: {
2480
+ opened: true;
2481
+ path: string;
2482
+ };
2483
+ outputFormat: "json";
2484
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2485
+ input: {
2486
+ json: {
2487
+ target: string;
1611
2488
  };
1612
2489
  };
1613
2490
  };
@@ -1658,6 +2535,27 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1658
2535
  param: {
1659
2536
  id: string;
1660
2537
  };
2538
+ } & {
2539
+ query: {
2540
+ cursor?: string | undefined;
2541
+ afterSeq?: number | undefined;
2542
+ };
2543
+ };
2544
+ } | {
2545
+ output: {
2546
+ error: string;
2547
+ };
2548
+ outputFormat: "json";
2549
+ status: 400;
2550
+ input: {
2551
+ param: {
2552
+ id: string;
2553
+ };
2554
+ } & {
2555
+ query: {
2556
+ cursor?: string | undefined;
2557
+ afterSeq?: number | undefined;
2558
+ };
1661
2559
  };
1662
2560
  };
1663
2561
  };
@@ -1675,13 +2573,15 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1675
2573
  $get: {
1676
2574
  output: {
1677
2575
  baseBranch: string | null;
1678
- defaultRunner: "claude" | "codex" | "opencode";
2576
+ defaultRunner: "claude" | "codex" | "opencode" | "pi";
1679
2577
  systemPrompt: string | null;
1680
2578
  defaultModels: {
1681
2579
  claude?: string | undefined;
1682
2580
  codex?: string | undefined;
1683
2581
  opencode?: string | undefined;
2582
+ pi?: string | undefined;
1684
2583
  };
2584
+ modelsLocked: boolean;
1685
2585
  maxParallel: number;
1686
2586
  memoryLimitMb: number | null;
1687
2587
  worktreeRetention: number;
@@ -1698,13 +2598,15 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1698
2598
  $put: {
1699
2599
  output: {
1700
2600
  baseBranch: string | null;
1701
- defaultRunner: "claude" | "codex" | "opencode";
2601
+ defaultRunner: "claude" | "codex" | "opencode" | "pi";
1702
2602
  systemPrompt: string | null;
1703
2603
  defaultModels: {
1704
2604
  claude?: string | undefined;
1705
2605
  codex?: string | undefined;
1706
2606
  opencode?: string | undefined;
2607
+ pi?: string | undefined;
1707
2608
  };
2609
+ modelsLocked: boolean;
1708
2610
  maxParallel: number;
1709
2611
  memoryLimitMb: number | null;
1710
2612
  worktreeRetention: number;
@@ -1716,12 +2618,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1716
2618
  input: {
1717
2619
  json: {
1718
2620
  baseBranch?: string | null | undefined;
1719
- defaultRunner?: "claude" | "codex" | "opencode" | undefined;
2621
+ defaultRunner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2622
+ systemPrompt?: string | null | undefined;
2623
+ defaultModels?: {
2624
+ claude?: string | null | undefined;
2625
+ codex?: string | null | undefined;
2626
+ opencode?: string | null | undefined;
2627
+ pi?: string | null | undefined;
2628
+ } | undefined;
2629
+ maxParallel?: number | undefined;
2630
+ memoryLimitMb?: number | null | undefined;
2631
+ worktreeRetention?: number | null | undefined;
2632
+ liveTitleUpdates?: boolean | null | undefined;
2633
+ reviewGate?: boolean | null | undefined;
2634
+ };
2635
+ };
2636
+ } | {
2637
+ output: {
2638
+ error: string;
2639
+ };
2640
+ outputFormat: "json";
2641
+ status: 409;
2642
+ input: {
2643
+ json: {
2644
+ baseBranch?: string | null | undefined;
2645
+ defaultRunner?: "claude" | "codex" | "opencode" | "pi" | undefined;
1720
2646
  systemPrompt?: string | null | undefined;
1721
2647
  defaultModels?: {
1722
2648
  claude?: string | null | undefined;
1723
2649
  codex?: string | null | undefined;
1724
2650
  opencode?: string | null | undefined;
2651
+ pi?: string | null | undefined;
1725
2652
  } | undefined;
1726
2653
  maxParallel?: number | undefined;
1727
2654
  memoryLimitMb?: number | null | undefined;
@@ -1739,12 +2666,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1739
2666
  input: {
1740
2667
  json: {
1741
2668
  baseBranch?: string | null | undefined;
1742
- defaultRunner?: "claude" | "codex" | "opencode" | undefined;
2669
+ defaultRunner?: "claude" | "codex" | "opencode" | "pi" | undefined;
1743
2670
  systemPrompt?: string | null | undefined;
1744
2671
  defaultModels?: {
1745
2672
  claude?: string | null | undefined;
1746
2673
  codex?: string | null | undefined;
1747
2674
  opencode?: string | null | undefined;
2675
+ pi?: string | null | undefined;
1748
2676
  } | undefined;
1749
2677
  maxParallel?: number | undefined;
1750
2678
  memoryLimitMb?: number | null | undefined;
@@ -1911,7 +2839,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1911
2839
  status: 409;
1912
2840
  input: {
1913
2841
  json: {
1914
- runner?: "claude" | "codex" | "opencode" | undefined;
2842
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
1915
2843
  model?: string | undefined;
1916
2844
  prompt?: string | undefined;
1917
2845
  } | undefined;
@@ -1943,7 +2871,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1943
2871
  taskImages?: string[] | undefined;
1944
2872
  model?: string | undefined;
1945
2873
  modelIdentity?: string | undefined;
1946
- runner?: "claude" | "codex" | "opencode" | undefined;
2874
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2875
+ agentProfile?: string | undefined;
1947
2876
  systemPrompt?: string | undefined;
1948
2877
  generateFollowups?: boolean | undefined;
1949
2878
  autonomous?: boolean | undefined;
@@ -1958,6 +2887,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1958
2887
  activity?: "monitoring" | undefined;
1959
2888
  monitoringWakeAt?: string | undefined;
1960
2889
  monitoringWakeCapReached?: boolean | undefined;
2890
+ autoResumeAt?: string | undefined;
2891
+ autoResumeAttempts?: number | undefined;
1961
2892
  createdAt: string;
1962
2893
  startedAt?: string | undefined;
1963
2894
  finishedAt?: string | undefined;
@@ -2010,7 +2941,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2010
2941
  finishedAt?: string | undefined;
2011
2942
  error?: string | undefined;
2012
2943
  sessionId?: string | undefined;
2013
- backend?: "claude" | "codex" | "opencode" | undefined;
2944
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
2945
+ profileId?: string | undefined;
2014
2946
  costUsd?: number | undefined;
2015
2947
  }[];
2016
2948
  workflowDef?: {
@@ -2022,7 +2954,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2022
2954
  prompt?: string | undefined;
2023
2955
  skill?: string | undefined;
2024
2956
  model?: string | undefined;
2025
- runner?: "claude" | "codex" | "opencode" | undefined;
2957
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2026
2958
  allowedTools?: string[] | undefined;
2027
2959
  bashAllowlist?: string[] | undefined;
2028
2960
  command?: string | undefined;
@@ -2040,7 +2972,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2040
2972
  status: 201;
2041
2973
  input: {
2042
2974
  json: {
2043
- runner?: "claude" | "codex" | "opencode" | undefined;
2975
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2044
2976
  model?: string | undefined;
2045
2977
  prompt?: string | undefined;
2046
2978
  } | undefined;
@@ -2057,7 +2989,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2057
2989
  status: 409;
2058
2990
  input: {
2059
2991
  json: {
2060
- runner?: "claude" | "codex" | "opencode" | undefined;
2992
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2061
2993
  model?: string | undefined;
2062
2994
  prompt?: string | undefined;
2063
2995
  } | undefined;
@@ -2074,7 +3006,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2074
3006
  status: 404;
2075
3007
  input: {
2076
3008
  json: {
2077
- runner?: "claude" | "codex" | "opencode" | undefined;
3009
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2078
3010
  model?: string | undefined;
2079
3011
  prompt?: string | undefined;
2080
3012
  } | undefined;
@@ -2238,7 +3170,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2238
3170
  prompt?: string | undefined;
2239
3171
  skill?: string | undefined;
2240
3172
  model?: string | undefined;
2241
- runner?: "claude" | "codex" | "opencode" | undefined;
3173
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2242
3174
  allowedTools?: string[] | undefined;
2243
3175
  bashAllowlist?: string[] | undefined;
2244
3176
  command?: string | undefined;
@@ -2278,7 +3210,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2278
3210
  prompt?: string | undefined;
2279
3211
  skill?: string | undefined;
2280
3212
  model?: string | undefined;
2281
- runner?: "claude" | "codex" | "opencode" | undefined;
3213
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2282
3214
  allowedTools?: string[] | undefined;
2283
3215
  bashAllowlist?: string[] | undefined;
2284
3216
  command?: string | undefined;
@@ -2308,7 +3240,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2308
3240
  prompt?: string | undefined;
2309
3241
  skill?: string | undefined;
2310
3242
  model?: string | undefined;
2311
- runner?: "claude" | "codex" | "opencode" | undefined;
3243
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2312
3244
  allowedTools?: string[] | undefined;
2313
3245
  bashAllowlist?: string[] | undefined;
2314
3246
  command?: string | undefined;
@@ -2337,7 +3269,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2337
3269
  prompt?: string | undefined;
2338
3270
  skill?: string | undefined;
2339
3271
  model?: string | undefined;
2340
- runner?: "claude" | "codex" | "opencode" | undefined;
3272
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2341
3273
  allowedTools?: string[] | undefined;
2342
3274
  bashAllowlist?: string[] | undefined;
2343
3275
  command?: string | undefined;
@@ -2367,7 +3299,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2367
3299
  prompt?: string | undefined;
2368
3300
  skill?: string | undefined;
2369
3301
  model?: string | undefined;
2370
- runner?: "claude" | "codex" | "opencode" | undefined;
3302
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2371
3303
  allowedTools?: string[] | undefined;
2372
3304
  bashAllowlist?: string[] | undefined;
2373
3305
  command?: string | undefined;
@@ -2454,7 +3386,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2454
3386
  prompt?: string | undefined;
2455
3387
  skill?: string | undefined;
2456
3388
  model?: string | undefined;
2457
- runner?: "claude" | "codex" | "opencode" | undefined;
3389
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
2458
3390
  allowedTools?: string[] | undefined;
2459
3391
  bashAllowlist?: string[] | undefined;
2460
3392
  command?: string | undefined;
@@ -2858,6 +3790,57 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2858
3790
  };
2859
3791
  };
2860
3792
  };
3793
+ } & {
3794
+ "/github/ref-status": {
3795
+ $get: {
3796
+ output: {
3797
+ error: string;
3798
+ };
3799
+ outputFormat: "json";
3800
+ status: 400;
3801
+ input: {
3802
+ query: {
3803
+ prs?: string | undefined;
3804
+ issues?: string | undefined;
3805
+ };
3806
+ };
3807
+ } | {
3808
+ output: {
3809
+ error: string;
3810
+ };
3811
+ outputFormat: "json";
3812
+ status: 400;
3813
+ input: {
3814
+ query: {
3815
+ prs?: string | undefined;
3816
+ issues?: string | undefined;
3817
+ };
3818
+ };
3819
+ } | {
3820
+ output: {
3821
+ available: true;
3822
+ prs: {
3823
+ [x: number]: import("./github.ts").ReferenceStatus;
3824
+ };
3825
+ issues: {
3826
+ [x: number]: import("./github.ts").ReferenceStatus;
3827
+ };
3828
+ recheckAfterMs: number | null;
3829
+ } | {
3830
+ available: false;
3831
+ reason: string;
3832
+ recheckAfterMs: number | null;
3833
+ };
3834
+ outputFormat: "json";
3835
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3836
+ input: {
3837
+ query: {
3838
+ prs?: string | undefined;
3839
+ issues?: string | undefined;
3840
+ };
3841
+ };
3842
+ };
3843
+ };
2861
3844
  } & {
2862
3845
  "/github/prs/:number/merge-state": {
2863
3846
  $get: {
@@ -3133,7 +4116,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3133
4116
  prompt?: string | undefined;
3134
4117
  skill?: string | undefined;
3135
4118
  model?: string | undefined;
3136
- runner?: "claude" | "codex" | "opencode" | undefined;
4119
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3137
4120
  allowedTools?: string[] | undefined;
3138
4121
  bashAllowlist?: string[] | undefined;
3139
4122
  command?: string | undefined;
@@ -3142,7 +4125,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3142
4125
  max: number;
3143
4126
  } | undefined;
3144
4127
  }[] | undefined;
3145
- runner?: "claude" | "codex" | "opencode" | undefined;
4128
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3146
4129
  model?: string | undefined;
3147
4130
  variants?: 1 | 2 | 3 | undefined;
3148
4131
  worktree?: boolean | undefined;
@@ -3250,7 +4233,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3250
4233
  prompt?: string | undefined;
3251
4234
  skill?: string | undefined;
3252
4235
  model?: string | undefined;
3253
- runner?: "claude" | "codex" | "opencode" | undefined;
4236
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3254
4237
  allowedTools?: string[] | undefined;
3255
4238
  bashAllowlist?: string[] | undefined;
3256
4239
  command?: string | undefined;
@@ -3259,7 +4242,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3259
4242
  max?: number | undefined;
3260
4243
  } | undefined;
3261
4244
  }[] | undefined;
3262
- runner?: "claude" | "codex" | "opencode" | undefined;
4245
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3263
4246
  model?: string | undefined;
3264
4247
  variants?: 1 | 2 | 3 | undefined;
3265
4248
  worktree?: boolean | undefined;
@@ -3302,7 +4285,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3302
4285
  prompt?: string | undefined;
3303
4286
  skill?: string | undefined;
3304
4287
  model?: string | undefined;
3305
- runner?: "claude" | "codex" | "opencode" | undefined;
4288
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3306
4289
  allowedTools?: string[] | undefined;
3307
4290
  bashAllowlist?: string[] | undefined;
3308
4291
  command?: string | undefined;
@@ -3311,7 +4294,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3311
4294
  max: number;
3312
4295
  } | undefined;
3313
4296
  }[] | undefined;
3314
- runner?: "claude" | "codex" | "opencode" | undefined;
4297
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3315
4298
  model?: string | undefined;
3316
4299
  variants?: 1 | 2 | 3 | undefined;
3317
4300
  worktree?: boolean | undefined;
@@ -3353,7 +4336,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3353
4336
  prompt?: string | undefined;
3354
4337
  skill?: string | undefined;
3355
4338
  model?: string | undefined;
3356
- runner?: "claude" | "codex" | "opencode" | undefined;
4339
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3357
4340
  allowedTools?: string[] | undefined;
3358
4341
  bashAllowlist?: string[] | undefined;
3359
4342
  command?: string | undefined;
@@ -3362,7 +4345,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3362
4345
  max?: number | undefined;
3363
4346
  } | undefined;
3364
4347
  }[] | undefined;
3365
- runner?: "claude" | "codex" | "opencode" | undefined;
4348
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3366
4349
  model?: string | undefined;
3367
4350
  variants?: 1 | 2 | 3 | undefined;
3368
4351
  worktree?: boolean | undefined;
@@ -3420,7 +4403,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3420
4403
  prompt?: string | undefined;
3421
4404
  skill?: string | undefined;
3422
4405
  model?: string | undefined;
3423
- runner?: "claude" | "codex" | "opencode" | undefined;
4406
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3424
4407
  allowedTools?: string[] | undefined;
3425
4408
  bashAllowlist?: string[] | undefined;
3426
4409
  command?: string | undefined;
@@ -3429,7 +4412,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3429
4412
  max: number;
3430
4413
  } | undefined;
3431
4414
  }[] | undefined;
3432
- runner?: "claude" | "codex" | "opencode" | undefined;
4415
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3433
4416
  model?: string | undefined;
3434
4417
  variants?: 1 | 2 | 3 | undefined;
3435
4418
  worktree?: boolean | undefined;
@@ -3535,7 +4518,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3535
4518
  prompt?: string | undefined;
3536
4519
  skill?: string | undefined;
3537
4520
  model?: string | undefined;
3538
- runner?: "claude" | "codex" | "opencode" | undefined;
4521
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3539
4522
  allowedTools?: string[] | undefined;
3540
4523
  bashAllowlist?: string[] | undefined;
3541
4524
  command?: string | undefined;
@@ -3544,7 +4527,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3544
4527
  max?: number | undefined;
3545
4528
  } | undefined;
3546
4529
  }[] | undefined;
3547
- runner?: "claude" | "codex" | "opencode" | undefined;
4530
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3548
4531
  model?: string | undefined;
3549
4532
  variants?: 1 | 2 | 3 | undefined;
3550
4533
  worktree?: boolean | undefined;
@@ -3591,7 +4574,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3591
4574
  prompt?: string | undefined;
3592
4575
  skill?: string | undefined;
3593
4576
  model?: string | undefined;
3594
- runner?: "claude" | "codex" | "opencode" | undefined;
4577
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3595
4578
  allowedTools?: string[] | undefined;
3596
4579
  bashAllowlist?: string[] | undefined;
3597
4580
  command?: string | undefined;
@@ -3600,7 +4583,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3600
4583
  max: number;
3601
4584
  } | undefined;
3602
4585
  }[] | undefined;
3603
- runner?: "claude" | "codex" | "opencode" | undefined;
4586
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3604
4587
  model?: string | undefined;
3605
4588
  variants?: 1 | 2 | 3 | undefined;
3606
4589
  worktree?: boolean | undefined;
@@ -3642,7 +4625,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3642
4625
  prompt?: string | undefined;
3643
4626
  skill?: string | undefined;
3644
4627
  model?: string | undefined;
3645
- runner?: "claude" | "codex" | "opencode" | undefined;
4628
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3646
4629
  allowedTools?: string[] | undefined;
3647
4630
  bashAllowlist?: string[] | undefined;
3648
4631
  command?: string | undefined;
@@ -3651,7 +4634,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3651
4634
  max?: number | undefined;
3652
4635
  } | undefined;
3653
4636
  }[] | undefined;
3654
- runner?: "claude" | "codex" | "opencode" | undefined;
4637
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3655
4638
  model?: string | undefined;
3656
4639
  variants?: 1 | 2 | 3 | undefined;
3657
4640
  worktree?: boolean | undefined;
@@ -3700,7 +4683,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3700
4683
  prompt?: string | undefined;
3701
4684
  skill?: string | undefined;
3702
4685
  model?: string | undefined;
3703
- runner?: "claude" | "codex" | "opencode" | undefined;
4686
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3704
4687
  allowedTools?: string[] | undefined;
3705
4688
  bashAllowlist?: string[] | undefined;
3706
4689
  command?: string | undefined;
@@ -3709,7 +4692,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3709
4692
  max?: number | undefined;
3710
4693
  } | undefined;
3711
4694
  }[] | undefined;
3712
- runner?: "claude" | "codex" | "opencode" | undefined;
4695
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3713
4696
  model?: string | undefined;
3714
4697
  variants?: 1 | 2 | 3 | undefined;
3715
4698
  worktree?: boolean | undefined;
@@ -3795,7 +4778,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3795
4778
  prompt?: string | undefined;
3796
4779
  skill?: string | undefined;
3797
4780
  model?: string | undefined;
3798
- runner?: "claude" | "codex" | "opencode" | undefined;
4781
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3799
4782
  allowedTools?: string[] | undefined;
3800
4783
  bashAllowlist?: string[] | undefined;
3801
4784
  command?: string | undefined;
@@ -3804,7 +4787,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3804
4787
  max: number;
3805
4788
  } | undefined;
3806
4789
  }[] | undefined;
3807
- runner?: "claude" | "codex" | "opencode" | undefined;
4790
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3808
4791
  model?: string | undefined;
3809
4792
  variants?: 1 | 2 | 3 | undefined;
3810
4793
  worktree?: boolean | undefined;
@@ -3870,7 +4853,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3870
4853
  prompt?: string | undefined;
3871
4854
  skill?: string | undefined;
3872
4855
  model?: string | undefined;
3873
- runner?: "claude" | "codex" | "opencode" | undefined;
4856
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3874
4857
  allowedTools?: string[] | undefined;
3875
4858
  bashAllowlist?: string[] | undefined;
3876
4859
  command?: string | undefined;
@@ -3879,7 +4862,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3879
4862
  max: number;
3880
4863
  } | undefined;
3881
4864
  }[] | undefined;
3882
- runner?: "claude" | "codex" | "opencode" | undefined;
4865
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
3883
4866
  model?: string | undefined;
3884
4867
  variants?: 1 | 2 | 3 | undefined;
3885
4868
  worktree?: boolean | undefined;
@@ -3992,46 +4975,194 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3992
4975
  };
3993
4976
  };
3994
4977
  } & {
3995
- "/automation-log/:receiptId/retry": {
4978
+ "/automation-log/:receiptId/retry": {
4979
+ $post: {
4980
+ output: {
4981
+ error: string;
4982
+ };
4983
+ outputFormat: "json";
4984
+ status: 404;
4985
+ input: {
4986
+ param: {
4987
+ receiptId: string;
4988
+ };
4989
+ };
4990
+ } | {
4991
+ output: {
4992
+ error: string;
4993
+ };
4994
+ outputFormat: "json";
4995
+ status: 409;
4996
+ input: {
4997
+ param: {
4998
+ receiptId: string;
4999
+ };
5000
+ };
5001
+ } | {
5002
+ output: {
5003
+ receiptId: string;
5004
+ runId: string;
5005
+ };
5006
+ outputFormat: "json";
5007
+ status: 202;
5008
+ input: {
5009
+ param: {
5010
+ receiptId: string;
5011
+ };
5012
+ };
5013
+ };
5014
+ };
5015
+ }, "/"> | import("hono/types").MergeSchemaPath<{
5016
+ "/runs": {
5017
+ $get: {
5018
+ output: {
5019
+ id: string;
5020
+ title: string;
5021
+ titleSummary?: string | undefined;
5022
+ diffStat?: {
5023
+ adds: number;
5024
+ dels: number;
5025
+ files: number;
5026
+ repointed?: boolean | undefined;
5027
+ } | undefined;
5028
+ workflow: string;
5029
+ task: string;
5030
+ queuedMessages?: {
5031
+ id: string;
5032
+ text: string;
5033
+ images?: string[] | undefined;
5034
+ createdAt: string;
5035
+ }[] | undefined;
5036
+ taskImages?: string[] | undefined;
5037
+ model?: string | undefined;
5038
+ modelIdentity?: string | undefined;
5039
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5040
+ agentProfile?: string | undefined;
5041
+ systemPrompt?: string | undefined;
5042
+ generateFollowups?: boolean | undefined;
5043
+ autonomous?: boolean | undefined;
5044
+ automation?: {
5045
+ automationId: string;
5046
+ automationRevision: number;
5047
+ receiptId: string;
5048
+ event: string;
5049
+ githubUrl: string;
5050
+ } | undefined;
5051
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
5052
+ activity?: "monitoring" | undefined;
5053
+ monitoringWakeAt?: string | undefined;
5054
+ monitoringWakeCapReached?: boolean | undefined;
5055
+ autoResumeAt?: string | undefined;
5056
+ autoResumeAttempts?: number | undefined;
5057
+ createdAt: string;
5058
+ startedAt?: string | undefined;
5059
+ finishedAt?: string | undefined;
5060
+ tokensUsed: number;
5061
+ inputTokens?: number | undefined;
5062
+ outputTokens?: number | undefined;
5063
+ costUsd?: number | undefined;
5064
+ pullRequestUrl?: string | undefined;
5065
+ referencedPullRequestUrl?: string | undefined;
5066
+ prNumber?: number | undefined;
5067
+ issueNumber?: number | undefined;
5068
+ referencedIssueNumberSeeded?: boolean | undefined;
5069
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
5070
+ markerRefs?: {
5071
+ pr?: number | undefined;
5072
+ issue?: number | undefined;
5073
+ } | undefined;
5074
+ referencedPrCandidates?: string[] | undefined;
5075
+ referencedIssueUrl?: string | undefined;
5076
+ referencedIssueCandidates?: string[] | undefined;
5077
+ worktree?: false | undefined;
5078
+ worktreePath?: string | undefined;
5079
+ branch?: string | undefined;
5080
+ baseBranch?: string | undefined;
5081
+ worktreeReclaimedAt?: string | undefined;
5082
+ groupId?: string | undefined;
5083
+ variant?: string | undefined;
5084
+ peakRssBytes?: number | undefined;
5085
+ peakProcCount?: number | undefined;
5086
+ archived: boolean;
5087
+ archivedAt?: string | undefined;
5088
+ seenAt?: string | undefined;
5089
+ currentStepId?: string | undefined;
5090
+ error?: string | undefined;
5091
+ steps: {
5092
+ id: string;
5093
+ name: string;
5094
+ kind: "agent" | "check";
5095
+ status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
5096
+ iterations: number;
5097
+ tokensUsed: number;
5098
+ inputTokens?: number | undefined;
5099
+ outputTokens?: number | undefined;
5100
+ usageInvocationsStarted?: number | undefined;
5101
+ usageInvocationsObserved?: number | undefined;
5102
+ usageTurnsStarted?: number | undefined;
5103
+ usageTurnsRecorded?: number | undefined;
5104
+ usageInvocationEpoch?: number | undefined;
5105
+ startedAt?: string | undefined;
5106
+ finishedAt?: string | undefined;
5107
+ error?: string | undefined;
5108
+ sessionId?: string | undefined;
5109
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
5110
+ profileId?: string | undefined;
5111
+ costUsd?: number | undefined;
5112
+ }[];
5113
+ workflowDef?: {
5114
+ name: string;
5115
+ description?: string | undefined;
5116
+ steps: {
5117
+ id: string;
5118
+ name?: string | undefined;
5119
+ prompt?: string | undefined;
5120
+ skill?: string | undefined;
5121
+ model?: string | undefined;
5122
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5123
+ allowedTools?: string[] | undefined;
5124
+ bashAllowlist?: string[] | undefined;
5125
+ command?: string | undefined;
5126
+ onFail?: {
5127
+ retry: string;
5128
+ max: number;
5129
+ } | undefined;
5130
+ }[];
5131
+ source: "built-in" | "file";
5132
+ path?: string | undefined;
5133
+ } | undefined;
5134
+ usage?: ReturnType<typeof currentUsage>;
5135
+ }[];
5136
+ outputFormat: "json";
5137
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5138
+ input: {};
5139
+ };
5140
+ };
5141
+ } & {
5142
+ "/runs/archive-finished": {
3996
5143
  $post: {
3997
5144
  output: {
3998
- error: string;
3999
- };
4000
- outputFormat: "json";
4001
- status: 404;
4002
- input: {
4003
- param: {
4004
- receiptId: string;
4005
- };
4006
- };
4007
- } | {
4008
- output: {
4009
- error: string;
5145
+ archived: number;
4010
5146
  };
4011
5147
  outputFormat: "json";
4012
- status: 409;
4013
- input: {
4014
- param: {
4015
- receiptId: string;
4016
- };
4017
- };
4018
- } | {
5148
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5149
+ input: {};
5150
+ };
5151
+ };
5152
+ } & {
5153
+ "/runs/read-all": {
5154
+ $post: {
4019
5155
  output: {
4020
- receiptId: string;
4021
- runId: string;
5156
+ read: number;
4022
5157
  };
4023
5158
  outputFormat: "json";
4024
- status: 202;
4025
- input: {
4026
- param: {
4027
- receiptId: string;
4028
- };
4029
- };
5159
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5160
+ input: {};
4030
5161
  };
4031
5162
  };
4032
- }, "/"> | import("hono/types").MergeSchemaPath<{
4033
- "/runs": {
4034
- $get: {
5163
+ } & {
5164
+ "/runs/:id/archive": {
5165
+ $post: {
4035
5166
  output: {
4036
5167
  id: string;
4037
5168
  title: string;
@@ -4053,7 +5184,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4053
5184
  taskImages?: string[] | undefined;
4054
5185
  model?: string | undefined;
4055
5186
  modelIdentity?: string | undefined;
4056
- runner?: "claude" | "codex" | "opencode" | undefined;
5187
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5188
+ agentProfile?: string | undefined;
4057
5189
  systemPrompt?: string | undefined;
4058
5190
  generateFollowups?: boolean | undefined;
4059
5191
  autonomous?: boolean | undefined;
@@ -4068,6 +5200,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4068
5200
  activity?: "monitoring" | undefined;
4069
5201
  monitoringWakeAt?: string | undefined;
4070
5202
  monitoringWakeCapReached?: boolean | undefined;
5203
+ autoResumeAt?: string | undefined;
5204
+ autoResumeAttempts?: number | undefined;
4071
5205
  createdAt: string;
4072
5206
  startedAt?: string | undefined;
4073
5207
  finishedAt?: string | undefined;
@@ -4120,7 +5254,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4120
5254
  finishedAt?: string | undefined;
4121
5255
  error?: string | undefined;
4122
5256
  sessionId?: string | undefined;
4123
- backend?: "claude" | "codex" | "opencode" | undefined;
5257
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
5258
+ profileId?: string | undefined;
4124
5259
  costUsd?: number | undefined;
4125
5260
  }[];
4126
5261
  workflowDef?: {
@@ -4132,7 +5267,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4132
5267
  prompt?: string | undefined;
4133
5268
  skill?: string | undefined;
4134
5269
  model?: string | undefined;
4135
- runner?: "claude" | "codex" | "opencode" | undefined;
5270
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4136
5271
  allowedTools?: string[] | undefined;
4137
5272
  bashAllowlist?: string[] | undefined;
4138
5273
  command?: string | undefined;
@@ -4144,37 +5279,63 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4144
5279
  source: "built-in" | "file";
4145
5280
  path?: string | undefined;
4146
5281
  } | undefined;
4147
- usage?: ReturnType<typeof currentUsage>;
4148
- }[];
5282
+ };
4149
5283
  outputFormat: "json";
4150
5284
  status: import("hono/utils/http-status").ContentfulStatusCode;
4151
- input: {};
4152
- };
4153
- };
4154
- } & {
4155
- "/runs/archive-finished": {
4156
- $post: {
5285
+ input: {
5286
+ json: {
5287
+ archived?: boolean | undefined;
5288
+ };
5289
+ } & {
5290
+ param: {
5291
+ id: string;
5292
+ };
5293
+ };
5294
+ } | {
4157
5295
  output: {
4158
- archived: number;
5296
+ error: string;
4159
5297
  };
4160
5298
  outputFormat: "json";
4161
- status: import("hono/utils/http-status").ContentfulStatusCode;
4162
- input: {};
5299
+ status: 404;
5300
+ input: {
5301
+ json: {
5302
+ archived?: boolean | undefined;
5303
+ };
5304
+ } & {
5305
+ param: {
5306
+ id: string;
5307
+ };
5308
+ };
4163
5309
  };
4164
5310
  };
4165
5311
  } & {
4166
- "/runs/read-all": {
4167
- $post: {
5312
+ "/runs/:id/auto-resume": {
5313
+ $delete: {
4168
5314
  output: {
4169
- read: number;
5315
+ error: string;
5316
+ };
5317
+ outputFormat: "json";
5318
+ status: 404;
5319
+ input: {
5320
+ param: {
5321
+ id: string;
5322
+ };
5323
+ };
5324
+ } | {
5325
+ output: {
5326
+ cancelled: true;
4170
5327
  };
4171
5328
  outputFormat: "json";
4172
5329
  status: import("hono/utils/http-status").ContentfulStatusCode;
4173
- input: {};
5330
+ input: {
5331
+ param: {
5332
+ id: string;
5333
+ };
5334
+ };
4174
5335
  };
4175
5336
  };
4176
5337
  } & {
4177
- "/runs/:id/archive": {
5338
+ "/runs/:id/read": {
4178
5339
  $post: {
4179
5340
  output: {
4180
5341
  id: string;
@@ -4197,7 +5358,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4197
5358
  taskImages?: string[] | undefined;
4198
5359
  model?: string | undefined;
4199
5360
  modelIdentity?: string | undefined;
4200
- runner?: "claude" | "codex" | "opencode" | undefined;
5361
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5362
+ agentProfile?: string | undefined;
4201
5363
  systemPrompt?: string | undefined;
4202
5364
  generateFollowups?: boolean | undefined;
4203
5365
  autonomous?: boolean | undefined;
@@ -4212,6 +5374,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4212
5374
  activity?: "monitoring" | undefined;
4213
5375
  monitoringWakeAt?: string | undefined;
4214
5376
  monitoringWakeCapReached?: boolean | undefined;
5377
+ autoResumeAt?: string | undefined;
5378
+ autoResumeAttempts?: number | undefined;
4215
5379
  createdAt: string;
4216
5380
  startedAt?: string | undefined;
4217
5381
  finishedAt?: string | undefined;
@@ -4264,7 +5428,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4264
5428
  finishedAt?: string | undefined;
4265
5429
  error?: string | undefined;
4266
5430
  sessionId?: string | undefined;
4267
- backend?: "claude" | "codex" | "opencode" | undefined;
5431
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
5432
+ profileId?: string | undefined;
4268
5433
  costUsd?: number | undefined;
4269
5434
  }[];
4270
5435
  workflowDef?: {
@@ -4276,7 +5441,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4276
5441
  prompt?: string | undefined;
4277
5442
  skill?: string | undefined;
4278
5443
  model?: string | undefined;
4279
- runner?: "claude" | "codex" | "opencode" | undefined;
5444
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4280
5445
  allowedTools?: string[] | undefined;
4281
5446
  bashAllowlist?: string[] | undefined;
4282
5447
  command?: string | undefined;
@@ -4292,10 +5457,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4292
5457
  outputFormat: "json";
4293
5458
  status: import("hono/utils/http-status").ContentfulStatusCode;
4294
5459
  input: {
4295
- json: {
4296
- archived?: boolean | undefined;
4297
- };
4298
- } & {
4299
5460
  param: {
4300
5461
  id: string;
4301
5462
  };
@@ -4307,10 +5468,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4307
5468
  outputFormat: "json";
4308
5469
  status: 404;
4309
5470
  input: {
4310
- json: {
4311
- archived?: boolean | undefined;
4312
- };
4313
- } & {
4314
5471
  param: {
4315
5472
  id: string;
4316
5473
  };
@@ -4318,7 +5475,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4318
5475
  };
4319
5476
  };
4320
5477
  } & {
4321
- "/runs/:id/read": {
5478
+ "/runs/:id/unread": {
4322
5479
  $post: {
4323
5480
  output: {
4324
5481
  id: string;
@@ -4341,7 +5498,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4341
5498
  taskImages?: string[] | undefined;
4342
5499
  model?: string | undefined;
4343
5500
  modelIdentity?: string | undefined;
4344
- runner?: "claude" | "codex" | "opencode" | undefined;
5501
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5502
+ agentProfile?: string | undefined;
4345
5503
  systemPrompt?: string | undefined;
4346
5504
  generateFollowups?: boolean | undefined;
4347
5505
  autonomous?: boolean | undefined;
@@ -4356,6 +5514,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4356
5514
  activity?: "monitoring" | undefined;
4357
5515
  monitoringWakeAt?: string | undefined;
4358
5516
  monitoringWakeCapReached?: boolean | undefined;
5517
+ autoResumeAt?: string | undefined;
5518
+ autoResumeAttempts?: number | undefined;
4359
5519
  createdAt: string;
4360
5520
  startedAt?: string | undefined;
4361
5521
  finishedAt?: string | undefined;
@@ -4408,7 +5568,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4408
5568
  finishedAt?: string | undefined;
4409
5569
  error?: string | undefined;
4410
5570
  sessionId?: string | undefined;
4411
- backend?: "claude" | "codex" | "opencode" | undefined;
5571
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
5572
+ profileId?: string | undefined;
4412
5573
  costUsd?: number | undefined;
4413
5574
  }[];
4414
5575
  workflowDef?: {
@@ -4420,7 +5581,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4420
5581
  prompt?: string | undefined;
4421
5582
  skill?: string | undefined;
4422
5583
  model?: string | undefined;
4423
- runner?: "claude" | "codex" | "opencode" | undefined;
5584
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4424
5585
  allowedTools?: string[] | undefined;
4425
5586
  bashAllowlist?: string[] | undefined;
4426
5587
  command?: string | undefined;
@@ -4477,7 +5638,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4477
5638
  taskImages?: string[] | undefined;
4478
5639
  model?: string | undefined;
4479
5640
  modelIdentity?: string | undefined;
4480
- runner?: "claude" | "codex" | "opencode" | undefined;
5641
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5642
+ agentProfile?: string | undefined;
4481
5643
  systemPrompt?: string | undefined;
4482
5644
  generateFollowups?: boolean | undefined;
4483
5645
  autonomous?: boolean | undefined;
@@ -4492,6 +5654,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4492
5654
  activity?: "monitoring" | undefined;
4493
5655
  monitoringWakeAt?: string | undefined;
4494
5656
  monitoringWakeCapReached?: boolean | undefined;
5657
+ autoResumeAt?: string | undefined;
5658
+ autoResumeAttempts?: number | undefined;
4495
5659
  createdAt: string;
4496
5660
  startedAt?: string | undefined;
4497
5661
  finishedAt?: string | undefined;
@@ -4544,7 +5708,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4544
5708
  finishedAt?: string | undefined;
4545
5709
  error?: string | undefined;
4546
5710
  sessionId?: string | undefined;
4547
- backend?: "claude" | "codex" | "opencode" | undefined;
5711
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
5712
+ profileId?: string | undefined;
4548
5713
  costUsd?: number | undefined;
4549
5714
  }[];
4550
5715
  workflowDef?: {
@@ -4556,7 +5721,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4556
5721
  prompt?: string | undefined;
4557
5722
  skill?: string | undefined;
4558
5723
  model?: string | undefined;
4559
- runner?: "claude" | "codex" | "opencode" | undefined;
5724
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4560
5725
  allowedTools?: string[] | undefined;
4561
5726
  bashAllowlist?: string[] | undefined;
4562
5727
  command?: string | undefined;
@@ -4580,7 +5745,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4580
5745
  prompt?: string | undefined;
4581
5746
  skill?: string | undefined;
4582
5747
  model?: string | undefined;
4583
- runner?: "claude" | "codex" | "opencode" | undefined;
5748
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4584
5749
  allowedTools?: string[] | undefined;
4585
5750
  bashAllowlist?: string[] | undefined;
4586
5751
  command?: string | undefined;
@@ -4591,7 +5756,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4591
5756
  }[] | undefined;
4592
5757
  task: string;
4593
5758
  model?: string | undefined;
4594
- runner?: "claude" | "codex" | "opencode" | undefined;
5759
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5760
+ agentProfile?: string | undefined;
4595
5761
  variants?: number | undefined;
4596
5762
  worktree?: boolean | undefined;
4597
5763
  autonomous?: boolean | undefined;
@@ -4609,7 +5775,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4609
5775
  error: string;
4610
5776
  };
4611
5777
  outputFormat: "json";
4612
- status: 400;
5778
+ status: 409;
4613
5779
  input: {
4614
5780
  json: {
4615
5781
  workflow?: string | undefined;
@@ -4619,7 +5785,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4619
5785
  prompt?: string | undefined;
4620
5786
  skill?: string | undefined;
4621
5787
  model?: string | undefined;
4622
- runner?: "claude" | "codex" | "opencode" | undefined;
5788
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4623
5789
  allowedTools?: string[] | undefined;
4624
5790
  bashAllowlist?: string[] | undefined;
4625
5791
  command?: string | undefined;
@@ -4630,7 +5796,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4630
5796
  }[] | undefined;
4631
5797
  task: string;
4632
5798
  model?: string | undefined;
4633
- runner?: "claude" | "codex" | "opencode" | undefined;
5799
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5800
+ agentProfile?: string | undefined;
4634
5801
  variants?: number | undefined;
4635
5802
  worktree?: boolean | undefined;
4636
5803
  autonomous?: boolean | undefined;
@@ -4648,7 +5815,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4648
5815
  error: string;
4649
5816
  };
4650
5817
  outputFormat: "json";
4651
- status: 404;
5818
+ status: 400;
4652
5819
  input: {
4653
5820
  json: {
4654
5821
  workflow?: string | undefined;
@@ -4658,7 +5825,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4658
5825
  prompt?: string | undefined;
4659
5826
  skill?: string | undefined;
4660
5827
  model?: string | undefined;
4661
- runner?: "claude" | "codex" | "opencode" | undefined;
5828
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4662
5829
  allowedTools?: string[] | undefined;
4663
5830
  bashAllowlist?: string[] | undefined;
4664
5831
  command?: string | undefined;
@@ -4669,7 +5836,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4669
5836
  }[] | undefined;
4670
5837
  task: string;
4671
5838
  model?: string | undefined;
4672
- runner?: "claude" | "codex" | "opencode" | undefined;
5839
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5840
+ agentProfile?: string | undefined;
4673
5841
  variants?: number | undefined;
4674
5842
  worktree?: boolean | undefined;
4675
5843
  autonomous?: boolean | undefined;
@@ -4687,7 +5855,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4687
5855
  error: string;
4688
5856
  };
4689
5857
  outputFormat: "json";
4690
- status: 409;
5858
+ status: 404;
4691
5859
  input: {
4692
5860
  json: {
4693
5861
  workflow?: string | undefined;
@@ -4697,7 +5865,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4697
5865
  prompt?: string | undefined;
4698
5866
  skill?: string | undefined;
4699
5867
  model?: string | undefined;
4700
- runner?: "claude" | "codex" | "opencode" | undefined;
5868
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4701
5869
  allowedTools?: string[] | undefined;
4702
5870
  bashAllowlist?: string[] | undefined;
4703
5871
  command?: string | undefined;
@@ -4708,7 +5876,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4708
5876
  }[] | undefined;
4709
5877
  task: string;
4710
5878
  model?: string | undefined;
4711
- runner?: "claude" | "codex" | "opencode" | undefined;
5879
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5880
+ agentProfile?: string | undefined;
4712
5881
  variants?: number | undefined;
4713
5882
  worktree?: boolean | undefined;
4714
5883
  autonomous?: boolean | undefined;
@@ -4744,7 +5913,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4744
5913
  taskImages?: string[] | undefined;
4745
5914
  model?: string | undefined;
4746
5915
  modelIdentity?: string | undefined;
4747
- runner?: "claude" | "codex" | "opencode" | undefined;
5916
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5917
+ agentProfile?: string | undefined;
4748
5918
  systemPrompt?: string | undefined;
4749
5919
  generateFollowups?: boolean | undefined;
4750
5920
  autonomous?: boolean | undefined;
@@ -4759,6 +5929,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4759
5929
  activity?: "monitoring" | undefined;
4760
5930
  monitoringWakeAt?: string | undefined;
4761
5931
  monitoringWakeCapReached?: boolean | undefined;
5932
+ autoResumeAt?: string | undefined;
5933
+ autoResumeAttempts?: number | undefined;
4762
5934
  createdAt: string;
4763
5935
  startedAt?: string | undefined;
4764
5936
  finishedAt?: string | undefined;
@@ -4811,7 +5983,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4811
5983
  finishedAt?: string | undefined;
4812
5984
  error?: string | undefined;
4813
5985
  sessionId?: string | undefined;
4814
- backend?: "claude" | "codex" | "opencode" | undefined;
5986
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
5987
+ profileId?: string | undefined;
4815
5988
  costUsd?: number | undefined;
4816
5989
  }[];
4817
5990
  workflowDef?: {
@@ -4823,7 +5996,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4823
5996
  prompt?: string | undefined;
4824
5997
  skill?: string | undefined;
4825
5998
  model?: string | undefined;
4826
- runner?: "claude" | "codex" | "opencode" | undefined;
5999
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4827
6000
  allowedTools?: string[] | undefined;
4828
6001
  bashAllowlist?: string[] | undefined;
4829
6002
  command?: string | undefined;
@@ -4848,7 +6021,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4848
6021
  prompt?: string | undefined;
4849
6022
  skill?: string | undefined;
4850
6023
  model?: string | undefined;
4851
- runner?: "claude" | "codex" | "opencode" | undefined;
6024
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4852
6025
  allowedTools?: string[] | undefined;
4853
6026
  bashAllowlist?: string[] | undefined;
4854
6027
  command?: string | undefined;
@@ -4859,7 +6032,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4859
6032
  }[] | undefined;
4860
6033
  task: string;
4861
6034
  model?: string | undefined;
4862
- runner?: "claude" | "codex" | "opencode" | undefined;
6035
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6036
+ agentProfile?: string | undefined;
4863
6037
  variants?: number | undefined;
4864
6038
  worktree?: boolean | undefined;
4865
6039
  autonomous?: boolean | undefined;
@@ -4898,7 +6072,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4898
6072
  taskImages?: string[] | undefined;
4899
6073
  model?: string | undefined;
4900
6074
  modelIdentity?: string | undefined;
4901
- runner?: "claude" | "codex" | "opencode" | undefined;
6075
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6076
+ agentProfile?: string | undefined;
4902
6077
  systemPrompt?: string | undefined;
4903
6078
  generateFollowups?: boolean | undefined;
4904
6079
  autonomous?: boolean | undefined;
@@ -4913,6 +6088,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4913
6088
  activity?: "monitoring" | undefined;
4914
6089
  monitoringWakeAt?: string | undefined;
4915
6090
  monitoringWakeCapReached?: boolean | undefined;
6091
+ autoResumeAt?: string | undefined;
6092
+ autoResumeAttempts?: number | undefined;
4916
6093
  createdAt: string;
4917
6094
  startedAt?: string | undefined;
4918
6095
  finishedAt?: string | undefined;
@@ -4965,7 +6142,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4965
6142
  finishedAt?: string | undefined;
4966
6143
  error?: string | undefined;
4967
6144
  sessionId?: string | undefined;
4968
- backend?: "claude" | "codex" | "opencode" | undefined;
6145
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
6146
+ profileId?: string | undefined;
4969
6147
  costUsd?: number | undefined;
4970
6148
  }[];
4971
6149
  workflowDef?: {
@@ -4977,7 +6155,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4977
6155
  prompt?: string | undefined;
4978
6156
  skill?: string | undefined;
4979
6157
  model?: string | undefined;
4980
- runner?: "claude" | "codex" | "opencode" | undefined;
6158
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
4981
6159
  allowedTools?: string[] | undefined;
4982
6160
  bashAllowlist?: string[] | undefined;
4983
6161
  command?: string | undefined;
@@ -5011,6 +6189,126 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5011
6189
  };
5012
6190
  };
5013
6191
  };
6192
+ } & {
6193
+ "/runs/:id/history": {
6194
+ $get: {
6195
+ output: {
6196
+ error: string;
6197
+ };
6198
+ outputFormat: "json";
6199
+ status: 400;
6200
+ input: {
6201
+ param: {
6202
+ id: string;
6203
+ };
6204
+ } & {
6205
+ query: {
6206
+ cursor?: string | undefined;
6207
+ };
6208
+ };
6209
+ } | {
6210
+ output: {
6211
+ error: string;
6212
+ };
6213
+ outputFormat: "json";
6214
+ status: 404;
6215
+ input: {
6216
+ param: {
6217
+ id: string;
6218
+ };
6219
+ } & {
6220
+ query: {
6221
+ cursor?: string | undefined;
6222
+ };
6223
+ };
6224
+ } | {
6225
+ output: {
6226
+ events: {
6227
+ [x: string]: any;
6228
+ seq: number;
6229
+ ts: string;
6230
+ stepId?: string | undefined;
6231
+ type: string;
6232
+ }[];
6233
+ itemCount: number;
6234
+ olderCursor?: string | undefined;
6235
+ newerCursor?: string | undefined;
6236
+ liveCursor: string;
6237
+ asOfSeq: number;
6238
+ hasOlder: boolean;
6239
+ };
6240
+ outputFormat: "json";
6241
+ status: import("hono/utils/http-status").ContentfulStatusCode;
6242
+ input: {
6243
+ param: {
6244
+ id: string;
6245
+ };
6246
+ } & {
6247
+ query: {
6248
+ cursor?: string | undefined;
6249
+ };
6250
+ };
6251
+ } | {
6252
+ output: {
6253
+ error: string;
6254
+ };
6255
+ outputFormat: "json";
6256
+ status: 400 | 409;
6257
+ input: {
6258
+ param: {
6259
+ id: string;
6260
+ };
6261
+ } & {
6262
+ query: {
6263
+ cursor?: string | undefined;
6264
+ };
6265
+ };
6266
+ };
6267
+ };
6268
+ } & {
6269
+ "/runs/:id/history-context": {
6270
+ $get: {
6271
+ output: {
6272
+ error: string;
6273
+ };
6274
+ outputFormat: "json";
6275
+ status: 400;
6276
+ input: {
6277
+ param: {
6278
+ id: string;
6279
+ };
6280
+ };
6281
+ } | {
6282
+ output: {
6283
+ error: string;
6284
+ };
6285
+ outputFormat: "json";
6286
+ status: 404;
6287
+ input: {
6288
+ param: {
6289
+ id: string;
6290
+ };
6291
+ };
6292
+ } | {
6293
+ output: {
6294
+ contextEvents: {
6295
+ [x: string]: any;
6296
+ seq: number;
6297
+ ts: string;
6298
+ stepId?: string | undefined;
6299
+ type: string;
6300
+ }[];
6301
+ asOfSeq: number;
6302
+ };
6303
+ outputFormat: "json";
6304
+ status: import("hono/utils/http-status").ContentfulStatusCode;
6305
+ input: {
6306
+ param: {
6307
+ id: string;
6308
+ };
6309
+ };
6310
+ };
6311
+ };
5014
6312
  } & {
5015
6313
  "/runs/:id": {
5016
6314
  $patch: {
@@ -5035,7 +6333,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5035
6333
  taskImages?: string[] | undefined;
5036
6334
  model?: string | undefined;
5037
6335
  modelIdentity?: string | undefined;
5038
- runner?: "claude" | "codex" | "opencode" | undefined;
6336
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6337
+ agentProfile?: string | undefined;
5039
6338
  systemPrompt?: string | undefined;
5040
6339
  generateFollowups?: boolean | undefined;
5041
6340
  autonomous?: boolean | undefined;
@@ -5050,6 +6349,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5050
6349
  activity?: "monitoring" | undefined;
5051
6350
  monitoringWakeAt?: string | undefined;
5052
6351
  monitoringWakeCapReached?: boolean | undefined;
6352
+ autoResumeAt?: string | undefined;
6353
+ autoResumeAttempts?: number | undefined;
5053
6354
  createdAt: string;
5054
6355
  startedAt?: string | undefined;
5055
6356
  finishedAt?: string | undefined;
@@ -5102,7 +6403,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5102
6403
  finishedAt?: string | undefined;
5103
6404
  error?: string | undefined;
5104
6405
  sessionId?: string | undefined;
5105
- backend?: "claude" | "codex" | "opencode" | undefined;
6406
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
6407
+ profileId?: string | undefined;
5106
6408
  costUsd?: number | undefined;
5107
6409
  }[];
5108
6410
  workflowDef?: {
@@ -5114,7 +6416,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5114
6416
  prompt?: string | undefined;
5115
6417
  skill?: string | undefined;
5116
6418
  model?: string | undefined;
5117
- runner?: "claude" | "codex" | "opencode" | undefined;
6419
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5118
6420
  allowedTools?: string[] | undefined;
5119
6421
  bashAllowlist?: string[] | undefined;
5120
6422
  command?: string | undefined;
@@ -5527,7 +6829,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5527
6829
  mediaType: string;
5528
6830
  data: string;
5529
6831
  }[] | undefined;
5530
- runner?: "claude" | "codex" | "opencode" | undefined;
6832
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5531
6833
  model?: string | undefined;
5532
6834
  };
5533
6835
  } & {
@@ -5548,7 +6850,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5548
6850
  mediaType: string;
5549
6851
  data: string;
5550
6852
  }[] | undefined;
5551
- runner?: "claude" | "codex" | "opencode" | undefined;
6853
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5552
6854
  model?: string | undefined;
5553
6855
  };
5554
6856
  } & {
@@ -5569,7 +6871,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5569
6871
  mediaType: string;
5570
6872
  data: string;
5571
6873
  }[] | undefined;
5572
- runner?: "claude" | "codex" | "opencode" | undefined;
6874
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
5573
6875
  model?: string | undefined;
5574
6876
  };
5575
6877
  } & {
@@ -6262,7 +7564,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6262
7564
  prompt?: string | undefined;
6263
7565
  skill?: string | undefined;
6264
7566
  model?: string | undefined;
6265
- runner?: "claude" | "codex" | "opencode" | undefined;
7567
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6266
7568
  allowedTools?: string[] | undefined;
6267
7569
  bashAllowlist?: string[] | undefined;
6268
7570
  command?: string | undefined;
@@ -6283,21 +7585,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6283
7585
  };
6284
7586
  };
6285
7587
  };
6286
- }, "/"> | import("hono/types").MergeSchemaPath<{
6287
- "/open-targets": {
6288
- $get: {
6289
- output: {
6290
- targets: {
6291
- id: string;
6292
- label: string;
6293
- icon?: string;
6294
- }[];
6295
- };
6296
- outputFormat: "json";
6297
- status: import("hono/utils/http-status").ContentfulStatusCode;
6298
- input: {};
6299
- };
6300
- };
6301
7588
  }, "/"> | import("hono/types").MergeSchemaPath<{
6302
7589
  "/ui-state": {
6303
7590
  $get: {
@@ -6322,6 +7609,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6322
7609
  appearance?: {
6323
7610
  accent?: "lime" | "violet" | undefined;
6324
7611
  density?: "comfortable" | "compact" | "ultra" | undefined;
7612
+ width?: "narrow" | "wide" | undefined;
6325
7613
  } | undefined;
6326
7614
  promptTemplates?: {
6327
7615
  id: string;
@@ -6397,6 +7685,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6397
7685
  appearance?: {
6398
7686
  accent?: "lime" | "violet" | undefined;
6399
7687
  density?: "comfortable" | "compact" | "ultra" | undefined;
7688
+ width?: "narrow" | "wide" | undefined;
6400
7689
  } | undefined;
6401
7690
  promptTemplates?: {
6402
7691
  id: string;
@@ -6535,7 +7824,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6535
7824
  taskImages?: string[] | undefined;
6536
7825
  model?: string | undefined;
6537
7826
  modelIdentity?: string | undefined;
6538
- runner?: "claude" | "codex" | "opencode" | undefined;
7827
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7828
+ agentProfile?: string | undefined;
6539
7829
  systemPrompt?: string | undefined;
6540
7830
  generateFollowups?: boolean | undefined;
6541
7831
  autonomous?: boolean | undefined;
@@ -6550,6 +7840,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6550
7840
  activity?: "monitoring" | undefined;
6551
7841
  monitoringWakeAt?: string | undefined;
6552
7842
  monitoringWakeCapReached?: boolean | undefined;
7843
+ autoResumeAt?: string | undefined;
7844
+ autoResumeAttempts?: number | undefined;
6553
7845
  createdAt: string;
6554
7846
  startedAt?: string | undefined;
6555
7847
  finishedAt?: string | undefined;
@@ -6602,7 +7894,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6602
7894
  finishedAt?: string | undefined;
6603
7895
  error?: string | undefined;
6604
7896
  sessionId?: string | undefined;
6605
- backend?: "claude" | "codex" | "opencode" | undefined;
7897
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
7898
+ profileId?: string | undefined;
6606
7899
  costUsd?: number | undefined;
6607
7900
  }[];
6608
7901
  workflowDef?: {
@@ -6614,7 +7907,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6614
7907
  prompt?: string | undefined;
6615
7908
  skill?: string | undefined;
6616
7909
  model?: string | undefined;
6617
- runner?: "claude" | "codex" | "opencode" | undefined;
7910
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6618
7911
  allowedTools?: string[] | undefined;
6619
7912
  bashAllowlist?: string[] | undefined;
6620
7913
  command?: string | undefined;
@@ -6632,11 +7925,64 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6632
7925
  status: import("hono/utils/http-status").ContentfulStatusCode;
6633
7926
  input: {
6634
7927
  json: {
6635
- runId: string;
7928
+ runId: string;
7929
+ };
7930
+ } & {
7931
+ param: {
7932
+ groupId: string;
7933
+ };
7934
+ };
7935
+ };
7936
+ };
7937
+ }, "/"> | import("hono/types").MergeSchemaPath<{
7938
+ "/open-targets": {
7939
+ $get: {
7940
+ output: {
7941
+ targets: {
7942
+ id: string;
7943
+ label: string;
7944
+ icon?: string;
7945
+ }[];
7946
+ };
7947
+ outputFormat: "json";
7948
+ status: import("hono/utils/http-status").ContentfulStatusCode;
7949
+ input: {};
7950
+ };
7951
+ };
7952
+ } & {
7953
+ "/open-in": {
7954
+ $post: {
7955
+ output: {
7956
+ error: string;
7957
+ };
7958
+ outputFormat: "json";
7959
+ status: 409;
7960
+ input: {
7961
+ json: {
7962
+ target: string;
6636
7963
  };
6637
- } & {
6638
- param: {
6639
- groupId: string;
7964
+ };
7965
+ } | {
7966
+ output: {
7967
+ error: string;
7968
+ };
7969
+ outputFormat: "json";
7970
+ status: 400;
7971
+ input: {
7972
+ json: {
7973
+ target: string;
7974
+ };
7975
+ };
7976
+ } | {
7977
+ output: {
7978
+ opened: true;
7979
+ path: string;
7980
+ };
7981
+ outputFormat: "json";
7982
+ status: import("hono/utils/http-status").ContentfulStatusCode;
7983
+ input: {
7984
+ json: {
7985
+ target: string;
6640
7986
  };
6641
7987
  };
6642
7988
  };
@@ -6687,6 +8033,27 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6687
8033
  param: {
6688
8034
  id: string;
6689
8035
  };
8036
+ } & {
8037
+ query: {
8038
+ cursor?: string | undefined;
8039
+ afterSeq?: number | undefined;
8040
+ };
8041
+ };
8042
+ } | {
8043
+ output: {
8044
+ error: string;
8045
+ };
8046
+ outputFormat: "json";
8047
+ status: 400;
8048
+ input: {
8049
+ param: {
8050
+ id: string;
8051
+ };
8052
+ } & {
8053
+ query: {
8054
+ cursor?: string | undefined;
8055
+ afterSeq?: number | undefined;
8056
+ };
6690
8057
  };
6691
8058
  };
6692
8059
  };
@@ -6704,13 +8071,15 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6704
8071
  $get: {
6705
8072
  output: {
6706
8073
  baseBranch: string | null;
6707
- defaultRunner: "claude" | "codex" | "opencode";
8074
+ defaultRunner: "claude" | "codex" | "opencode" | "pi";
6708
8075
  systemPrompt: string | null;
6709
8076
  defaultModels: {
6710
8077
  claude?: string | undefined;
6711
8078
  codex?: string | undefined;
6712
8079
  opencode?: string | undefined;
8080
+ pi?: string | undefined;
6713
8081
  };
8082
+ modelsLocked: boolean;
6714
8083
  maxParallel: number;
6715
8084
  memoryLimitMb: number | null;
6716
8085
  worktreeRetention: number;
@@ -6727,13 +8096,15 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6727
8096
  $put: {
6728
8097
  output: {
6729
8098
  baseBranch: string | null;
6730
- defaultRunner: "claude" | "codex" | "opencode";
8099
+ defaultRunner: "claude" | "codex" | "opencode" | "pi";
6731
8100
  systemPrompt: string | null;
6732
8101
  defaultModels: {
6733
8102
  claude?: string | undefined;
6734
8103
  codex?: string | undefined;
6735
8104
  opencode?: string | undefined;
8105
+ pi?: string | undefined;
6736
8106
  };
8107
+ modelsLocked: boolean;
6737
8108
  maxParallel: number;
6738
8109
  memoryLimitMb: number | null;
6739
8110
  worktreeRetention: number;
@@ -6745,12 +8116,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6745
8116
  input: {
6746
8117
  json: {
6747
8118
  baseBranch?: string | null | undefined;
6748
- defaultRunner?: "claude" | "codex" | "opencode" | undefined;
8119
+ defaultRunner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8120
+ systemPrompt?: string | null | undefined;
8121
+ defaultModels?: {
8122
+ claude?: string | null | undefined;
8123
+ codex?: string | null | undefined;
8124
+ opencode?: string | null | undefined;
8125
+ pi?: string | null | undefined;
8126
+ } | undefined;
8127
+ maxParallel?: number | undefined;
8128
+ memoryLimitMb?: number | null | undefined;
8129
+ worktreeRetention?: number | null | undefined;
8130
+ liveTitleUpdates?: boolean | null | undefined;
8131
+ reviewGate?: boolean | null | undefined;
8132
+ };
8133
+ };
8134
+ } | {
8135
+ output: {
8136
+ error: string;
8137
+ };
8138
+ outputFormat: "json";
8139
+ status: 409;
8140
+ input: {
8141
+ json: {
8142
+ baseBranch?: string | null | undefined;
8143
+ defaultRunner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6749
8144
  systemPrompt?: string | null | undefined;
6750
8145
  defaultModels?: {
6751
8146
  claude?: string | null | undefined;
6752
8147
  codex?: string | null | undefined;
6753
8148
  opencode?: string | null | undefined;
8149
+ pi?: string | null | undefined;
6754
8150
  } | undefined;
6755
8151
  maxParallel?: number | undefined;
6756
8152
  memoryLimitMb?: number | null | undefined;
@@ -6768,12 +8164,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6768
8164
  input: {
6769
8165
  json: {
6770
8166
  baseBranch?: string | null | undefined;
6771
- defaultRunner?: "claude" | "codex" | "opencode" | undefined;
8167
+ defaultRunner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6772
8168
  systemPrompt?: string | null | undefined;
6773
8169
  defaultModels?: {
6774
8170
  claude?: string | null | undefined;
6775
8171
  codex?: string | null | undefined;
6776
8172
  opencode?: string | null | undefined;
8173
+ pi?: string | null | undefined;
6777
8174
  } | undefined;
6778
8175
  maxParallel?: number | undefined;
6779
8176
  memoryLimitMb?: number | null | undefined;
@@ -6940,7 +8337,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6940
8337
  status: 409;
6941
8338
  input: {
6942
8339
  json: {
6943
- runner?: "claude" | "codex" | "opencode" | undefined;
8340
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
6944
8341
  model?: string | undefined;
6945
8342
  prompt?: string | undefined;
6946
8343
  } | undefined;
@@ -6972,7 +8369,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6972
8369
  taskImages?: string[] | undefined;
6973
8370
  model?: string | undefined;
6974
8371
  modelIdentity?: string | undefined;
6975
- runner?: "claude" | "codex" | "opencode" | undefined;
8372
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8373
+ agentProfile?: string | undefined;
6976
8374
  systemPrompt?: string | undefined;
6977
8375
  generateFollowups?: boolean | undefined;
6978
8376
  autonomous?: boolean | undefined;
@@ -6987,6 +8385,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6987
8385
  activity?: "monitoring" | undefined;
6988
8386
  monitoringWakeAt?: string | undefined;
6989
8387
  monitoringWakeCapReached?: boolean | undefined;
8388
+ autoResumeAt?: string | undefined;
8389
+ autoResumeAttempts?: number | undefined;
6990
8390
  createdAt: string;
6991
8391
  startedAt?: string | undefined;
6992
8392
  finishedAt?: string | undefined;
@@ -7039,7 +8439,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7039
8439
  finishedAt?: string | undefined;
7040
8440
  error?: string | undefined;
7041
8441
  sessionId?: string | undefined;
7042
- backend?: "claude" | "codex" | "opencode" | undefined;
8442
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
8443
+ profileId?: string | undefined;
7043
8444
  costUsd?: number | undefined;
7044
8445
  }[];
7045
8446
  workflowDef?: {
@@ -7051,7 +8452,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7051
8452
  prompt?: string | undefined;
7052
8453
  skill?: string | undefined;
7053
8454
  model?: string | undefined;
7054
- runner?: "claude" | "codex" | "opencode" | undefined;
8455
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7055
8456
  allowedTools?: string[] | undefined;
7056
8457
  bashAllowlist?: string[] | undefined;
7057
8458
  command?: string | undefined;
@@ -7069,7 +8470,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7069
8470
  status: 201;
7070
8471
  input: {
7071
8472
  json: {
7072
- runner?: "claude" | "codex" | "opencode" | undefined;
8473
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7073
8474
  model?: string | undefined;
7074
8475
  prompt?: string | undefined;
7075
8476
  } | undefined;
@@ -7086,7 +8487,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7086
8487
  status: 409;
7087
8488
  input: {
7088
8489
  json: {
7089
- runner?: "claude" | "codex" | "opencode" | undefined;
8490
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7090
8491
  model?: string | undefined;
7091
8492
  prompt?: string | undefined;
7092
8493
  } | undefined;
@@ -7103,7 +8504,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7103
8504
  status: 404;
7104
8505
  input: {
7105
8506
  json: {
7106
- runner?: "claude" | "codex" | "opencode" | undefined;
8507
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7107
8508
  model?: string | undefined;
7108
8509
  prompt?: string | undefined;
7109
8510
  } | undefined;
@@ -7267,7 +8668,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7267
8668
  prompt?: string | undefined;
7268
8669
  skill?: string | undefined;
7269
8670
  model?: string | undefined;
7270
- runner?: "claude" | "codex" | "opencode" | undefined;
8671
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7271
8672
  allowedTools?: string[] | undefined;
7272
8673
  bashAllowlist?: string[] | undefined;
7273
8674
  command?: string | undefined;
@@ -7307,7 +8708,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7307
8708
  prompt?: string | undefined;
7308
8709
  skill?: string | undefined;
7309
8710
  model?: string | undefined;
7310
- runner?: "claude" | "codex" | "opencode" | undefined;
8711
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7311
8712
  allowedTools?: string[] | undefined;
7312
8713
  bashAllowlist?: string[] | undefined;
7313
8714
  command?: string | undefined;
@@ -7337,7 +8738,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7337
8738
  prompt?: string | undefined;
7338
8739
  skill?: string | undefined;
7339
8740
  model?: string | undefined;
7340
- runner?: "claude" | "codex" | "opencode" | undefined;
8741
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7341
8742
  allowedTools?: string[] | undefined;
7342
8743
  bashAllowlist?: string[] | undefined;
7343
8744
  command?: string | undefined;
@@ -7366,7 +8767,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7366
8767
  prompt?: string | undefined;
7367
8768
  skill?: string | undefined;
7368
8769
  model?: string | undefined;
7369
- runner?: "claude" | "codex" | "opencode" | undefined;
8770
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7370
8771
  allowedTools?: string[] | undefined;
7371
8772
  bashAllowlist?: string[] | undefined;
7372
8773
  command?: string | undefined;
@@ -7396,7 +8797,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7396
8797
  prompt?: string | undefined;
7397
8798
  skill?: string | undefined;
7398
8799
  model?: string | undefined;
7399
- runner?: "claude" | "codex" | "opencode" | undefined;
8800
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7400
8801
  allowedTools?: string[] | undefined;
7401
8802
  bashAllowlist?: string[] | undefined;
7402
8803
  command?: string | undefined;
@@ -7483,7 +8884,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7483
8884
  prompt?: string | undefined;
7484
8885
  skill?: string | undefined;
7485
8886
  model?: string | undefined;
7486
- runner?: "claude" | "codex" | "opencode" | undefined;
8887
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
7487
8888
  allowedTools?: string[] | undefined;
7488
8889
  bashAllowlist?: string[] | undefined;
7489
8890
  command?: string | undefined;
@@ -7887,6 +9288,57 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7887
9288
  };
7888
9289
  };
7889
9290
  };
9291
+ } & {
9292
+ "/github/ref-status": {
9293
+ $get: {
9294
+ output: {
9295
+ error: string;
9296
+ };
9297
+ outputFormat: "json";
9298
+ status: 400;
9299
+ input: {
9300
+ query: {
9301
+ prs?: string | undefined;
9302
+ issues?: string | undefined;
9303
+ };
9304
+ };
9305
+ } | {
9306
+ output: {
9307
+ error: string;
9308
+ };
9309
+ outputFormat: "json";
9310
+ status: 400;
9311
+ input: {
9312
+ query: {
9313
+ prs?: string | undefined;
9314
+ issues?: string | undefined;
9315
+ };
9316
+ };
9317
+ } | {
9318
+ output: {
9319
+ available: true;
9320
+ prs: {
9321
+ [x: number]: import("./github.ts").ReferenceStatus;
9322
+ };
9323
+ issues: {
9324
+ [x: number]: import("./github.ts").ReferenceStatus;
9325
+ };
9326
+ recheckAfterMs: number | null;
9327
+ } | {
9328
+ available: false;
9329
+ reason: string;
9330
+ recheckAfterMs: number | null;
9331
+ };
9332
+ outputFormat: "json";
9333
+ status: import("hono/utils/http-status").ContentfulStatusCode;
9334
+ input: {
9335
+ query: {
9336
+ prs?: string | undefined;
9337
+ issues?: string | undefined;
9338
+ };
9339
+ };
9340
+ };
9341
+ };
7890
9342
  } & {
7891
9343
  "/github/prs/:number/merge-state": {
7892
9344
  $get: {
@@ -8162,7 +9614,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8162
9614
  prompt?: string | undefined;
8163
9615
  skill?: string | undefined;
8164
9616
  model?: string | undefined;
8165
- runner?: "claude" | "codex" | "opencode" | undefined;
9617
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8166
9618
  allowedTools?: string[] | undefined;
8167
9619
  bashAllowlist?: string[] | undefined;
8168
9620
  command?: string | undefined;
@@ -8171,7 +9623,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8171
9623
  max: number;
8172
9624
  } | undefined;
8173
9625
  }[] | undefined;
8174
- runner?: "claude" | "codex" | "opencode" | undefined;
9626
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8175
9627
  model?: string | undefined;
8176
9628
  variants?: 1 | 2 | 3 | undefined;
8177
9629
  worktree?: boolean | undefined;
@@ -8279,7 +9731,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8279
9731
  prompt?: string | undefined;
8280
9732
  skill?: string | undefined;
8281
9733
  model?: string | undefined;
8282
- runner?: "claude" | "codex" | "opencode" | undefined;
9734
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8283
9735
  allowedTools?: string[] | undefined;
8284
9736
  bashAllowlist?: string[] | undefined;
8285
9737
  command?: string | undefined;
@@ -8288,7 +9740,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8288
9740
  max?: number | undefined;
8289
9741
  } | undefined;
8290
9742
  }[] | undefined;
8291
- runner?: "claude" | "codex" | "opencode" | undefined;
9743
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8292
9744
  model?: string | undefined;
8293
9745
  variants?: 1 | 2 | 3 | undefined;
8294
9746
  worktree?: boolean | undefined;
@@ -8331,7 +9783,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8331
9783
  prompt?: string | undefined;
8332
9784
  skill?: string | undefined;
8333
9785
  model?: string | undefined;
8334
- runner?: "claude" | "codex" | "opencode" | undefined;
9786
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8335
9787
  allowedTools?: string[] | undefined;
8336
9788
  bashAllowlist?: string[] | undefined;
8337
9789
  command?: string | undefined;
@@ -8340,7 +9792,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8340
9792
  max: number;
8341
9793
  } | undefined;
8342
9794
  }[] | undefined;
8343
- runner?: "claude" | "codex" | "opencode" | undefined;
9795
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8344
9796
  model?: string | undefined;
8345
9797
  variants?: 1 | 2 | 3 | undefined;
8346
9798
  worktree?: boolean | undefined;
@@ -8382,7 +9834,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8382
9834
  prompt?: string | undefined;
8383
9835
  skill?: string | undefined;
8384
9836
  model?: string | undefined;
8385
- runner?: "claude" | "codex" | "opencode" | undefined;
9837
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8386
9838
  allowedTools?: string[] | undefined;
8387
9839
  bashAllowlist?: string[] | undefined;
8388
9840
  command?: string | undefined;
@@ -8391,7 +9843,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8391
9843
  max?: number | undefined;
8392
9844
  } | undefined;
8393
9845
  }[] | undefined;
8394
- runner?: "claude" | "codex" | "opencode" | undefined;
9846
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8395
9847
  model?: string | undefined;
8396
9848
  variants?: 1 | 2 | 3 | undefined;
8397
9849
  worktree?: boolean | undefined;
@@ -8449,7 +9901,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8449
9901
  prompt?: string | undefined;
8450
9902
  skill?: string | undefined;
8451
9903
  model?: string | undefined;
8452
- runner?: "claude" | "codex" | "opencode" | undefined;
9904
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8453
9905
  allowedTools?: string[] | undefined;
8454
9906
  bashAllowlist?: string[] | undefined;
8455
9907
  command?: string | undefined;
@@ -8458,7 +9910,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8458
9910
  max: number;
8459
9911
  } | undefined;
8460
9912
  }[] | undefined;
8461
- runner?: "claude" | "codex" | "opencode" | undefined;
9913
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8462
9914
  model?: string | undefined;
8463
9915
  variants?: 1 | 2 | 3 | undefined;
8464
9916
  worktree?: boolean | undefined;
@@ -8564,7 +10016,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8564
10016
  prompt?: string | undefined;
8565
10017
  skill?: string | undefined;
8566
10018
  model?: string | undefined;
8567
- runner?: "claude" | "codex" | "opencode" | undefined;
10019
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8568
10020
  allowedTools?: string[] | undefined;
8569
10021
  bashAllowlist?: string[] | undefined;
8570
10022
  command?: string | undefined;
@@ -8573,7 +10025,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8573
10025
  max?: number | undefined;
8574
10026
  } | undefined;
8575
10027
  }[] | undefined;
8576
- runner?: "claude" | "codex" | "opencode" | undefined;
10028
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8577
10029
  model?: string | undefined;
8578
10030
  variants?: 1 | 2 | 3 | undefined;
8579
10031
  worktree?: boolean | undefined;
@@ -8620,7 +10072,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8620
10072
  prompt?: string | undefined;
8621
10073
  skill?: string | undefined;
8622
10074
  model?: string | undefined;
8623
- runner?: "claude" | "codex" | "opencode" | undefined;
10075
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8624
10076
  allowedTools?: string[] | undefined;
8625
10077
  bashAllowlist?: string[] | undefined;
8626
10078
  command?: string | undefined;
@@ -8629,7 +10081,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8629
10081
  max: number;
8630
10082
  } | undefined;
8631
10083
  }[] | undefined;
8632
- runner?: "claude" | "codex" | "opencode" | undefined;
10084
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8633
10085
  model?: string | undefined;
8634
10086
  variants?: 1 | 2 | 3 | undefined;
8635
10087
  worktree?: boolean | undefined;
@@ -8671,7 +10123,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8671
10123
  prompt?: string | undefined;
8672
10124
  skill?: string | undefined;
8673
10125
  model?: string | undefined;
8674
- runner?: "claude" | "codex" | "opencode" | undefined;
10126
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8675
10127
  allowedTools?: string[] | undefined;
8676
10128
  bashAllowlist?: string[] | undefined;
8677
10129
  command?: string | undefined;
@@ -8680,7 +10132,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8680
10132
  max?: number | undefined;
8681
10133
  } | undefined;
8682
10134
  }[] | undefined;
8683
- runner?: "claude" | "codex" | "opencode" | undefined;
10135
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8684
10136
  model?: string | undefined;
8685
10137
  variants?: 1 | 2 | 3 | undefined;
8686
10138
  worktree?: boolean | undefined;
@@ -8729,7 +10181,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8729
10181
  prompt?: string | undefined;
8730
10182
  skill?: string | undefined;
8731
10183
  model?: string | undefined;
8732
- runner?: "claude" | "codex" | "opencode" | undefined;
10184
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8733
10185
  allowedTools?: string[] | undefined;
8734
10186
  bashAllowlist?: string[] | undefined;
8735
10187
  command?: string | undefined;
@@ -8738,7 +10190,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8738
10190
  max?: number | undefined;
8739
10191
  } | undefined;
8740
10192
  }[] | undefined;
8741
- runner?: "claude" | "codex" | "opencode" | undefined;
10193
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8742
10194
  model?: string | undefined;
8743
10195
  variants?: 1 | 2 | 3 | undefined;
8744
10196
  worktree?: boolean | undefined;
@@ -8824,7 +10276,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8824
10276
  prompt?: string | undefined;
8825
10277
  skill?: string | undefined;
8826
10278
  model?: string | undefined;
8827
- runner?: "claude" | "codex" | "opencode" | undefined;
10279
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8828
10280
  allowedTools?: string[] | undefined;
8829
10281
  bashAllowlist?: string[] | undefined;
8830
10282
  command?: string | undefined;
@@ -8833,7 +10285,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8833
10285
  max: number;
8834
10286
  } | undefined;
8835
10287
  }[] | undefined;
8836
- runner?: "claude" | "codex" | "opencode" | undefined;
10288
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8837
10289
  model?: string | undefined;
8838
10290
  variants?: 1 | 2 | 3 | undefined;
8839
10291
  worktree?: boolean | undefined;
@@ -8899,7 +10351,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8899
10351
  prompt?: string | undefined;
8900
10352
  skill?: string | undefined;
8901
10353
  model?: string | undefined;
8902
- runner?: "claude" | "codex" | "opencode" | undefined;
10354
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8903
10355
  allowedTools?: string[] | undefined;
8904
10356
  bashAllowlist?: string[] | undefined;
8905
10357
  command?: string | undefined;
@@ -8908,7 +10360,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8908
10360
  max: number;
8909
10361
  } | undefined;
8910
10362
  }[] | undefined;
8911
- runner?: "claude" | "codex" | "opencode" | undefined;
10363
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
8912
10364
  model?: string | undefined;
8913
10365
  variants?: 1 | 2 | 3 | undefined;
8914
10366
  worktree?: boolean | undefined;
@@ -9005,62 +10457,210 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9005
10457
  resetAt?: string | undefined;
9006
10458
  } | undefined;
9007
10459
  }[];
9008
- };
10460
+ };
10461
+ outputFormat: "json";
10462
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10463
+ input: {
10464
+ query: {
10465
+ automationId?: string | undefined;
10466
+ result?: "baseline" | "duplicate" | "error" | "launched" | "no-match" | "preview" | "rate-limited" | undefined;
10467
+ event?: "issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened" | undefined;
10468
+ since?: string | undefined;
10469
+ cursor?: number | undefined;
10470
+ limit?: number | undefined;
10471
+ };
10472
+ };
10473
+ };
10474
+ };
10475
+ } & {
10476
+ "/automation-log/:receiptId/retry": {
10477
+ $post: {
10478
+ output: {
10479
+ error: string;
10480
+ };
10481
+ outputFormat: "json";
10482
+ status: 404;
10483
+ input: {
10484
+ param: {
10485
+ receiptId: string;
10486
+ };
10487
+ };
10488
+ } | {
10489
+ output: {
10490
+ error: string;
10491
+ };
10492
+ outputFormat: "json";
10493
+ status: 409;
10494
+ input: {
10495
+ param: {
10496
+ receiptId: string;
10497
+ };
10498
+ };
10499
+ } | {
10500
+ output: {
10501
+ receiptId: string;
10502
+ runId: string;
10503
+ };
10504
+ outputFormat: "json";
10505
+ status: 202;
10506
+ input: {
10507
+ param: {
10508
+ receiptId: string;
10509
+ };
10510
+ };
10511
+ };
10512
+ };
10513
+ }, "/"> | import("hono/types").MergeSchemaPath<{
10514
+ "/runs": {
10515
+ $get: {
10516
+ output: {
10517
+ id: string;
10518
+ title: string;
10519
+ titleSummary?: string | undefined;
10520
+ diffStat?: {
10521
+ adds: number;
10522
+ dels: number;
10523
+ files: number;
10524
+ repointed?: boolean | undefined;
10525
+ } | undefined;
10526
+ workflow: string;
10527
+ task: string;
10528
+ queuedMessages?: {
10529
+ id: string;
10530
+ text: string;
10531
+ images?: string[] | undefined;
10532
+ createdAt: string;
10533
+ }[] | undefined;
10534
+ taskImages?: string[] | undefined;
10535
+ model?: string | undefined;
10536
+ modelIdentity?: string | undefined;
10537
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10538
+ agentProfile?: string | undefined;
10539
+ systemPrompt?: string | undefined;
10540
+ generateFollowups?: boolean | undefined;
10541
+ autonomous?: boolean | undefined;
10542
+ automation?: {
10543
+ automationId: string;
10544
+ automationRevision: number;
10545
+ receiptId: string;
10546
+ event: string;
10547
+ githubUrl: string;
10548
+ } | undefined;
10549
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
10550
+ activity?: "monitoring" | undefined;
10551
+ monitoringWakeAt?: string | undefined;
10552
+ monitoringWakeCapReached?: boolean | undefined;
10553
+ autoResumeAt?: string | undefined;
10554
+ autoResumeAttempts?: number | undefined;
10555
+ createdAt: string;
10556
+ startedAt?: string | undefined;
10557
+ finishedAt?: string | undefined;
10558
+ tokensUsed: number;
10559
+ inputTokens?: number | undefined;
10560
+ outputTokens?: number | undefined;
10561
+ costUsd?: number | undefined;
10562
+ pullRequestUrl?: string | undefined;
10563
+ referencedPullRequestUrl?: string | undefined;
10564
+ prNumber?: number | undefined;
10565
+ issueNumber?: number | undefined;
10566
+ referencedIssueNumberSeeded?: boolean | undefined;
10567
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
10568
+ markerRefs?: {
10569
+ pr?: number | undefined;
10570
+ issue?: number | undefined;
10571
+ } | undefined;
10572
+ referencedPrCandidates?: string[] | undefined;
10573
+ referencedIssueUrl?: string | undefined;
10574
+ referencedIssueCandidates?: string[] | undefined;
10575
+ worktree?: false | undefined;
10576
+ worktreePath?: string | undefined;
10577
+ branch?: string | undefined;
10578
+ baseBranch?: string | undefined;
10579
+ worktreeReclaimedAt?: string | undefined;
10580
+ groupId?: string | undefined;
10581
+ variant?: string | undefined;
10582
+ peakRssBytes?: number | undefined;
10583
+ peakProcCount?: number | undefined;
10584
+ archived: boolean;
10585
+ archivedAt?: string | undefined;
10586
+ seenAt?: string | undefined;
10587
+ currentStepId?: string | undefined;
10588
+ error?: string | undefined;
10589
+ steps: {
10590
+ id: string;
10591
+ name: string;
10592
+ kind: "agent" | "check";
10593
+ status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
10594
+ iterations: number;
10595
+ tokensUsed: number;
10596
+ inputTokens?: number | undefined;
10597
+ outputTokens?: number | undefined;
10598
+ usageInvocationsStarted?: number | undefined;
10599
+ usageInvocationsObserved?: number | undefined;
10600
+ usageTurnsStarted?: number | undefined;
10601
+ usageTurnsRecorded?: number | undefined;
10602
+ usageInvocationEpoch?: number | undefined;
10603
+ startedAt?: string | undefined;
10604
+ finishedAt?: string | undefined;
10605
+ error?: string | undefined;
10606
+ sessionId?: string | undefined;
10607
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
10608
+ profileId?: string | undefined;
10609
+ costUsd?: number | undefined;
10610
+ }[];
10611
+ workflowDef?: {
10612
+ name: string;
10613
+ description?: string | undefined;
10614
+ steps: {
10615
+ id: string;
10616
+ name?: string | undefined;
10617
+ prompt?: string | undefined;
10618
+ skill?: string | undefined;
10619
+ model?: string | undefined;
10620
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10621
+ allowedTools?: string[] | undefined;
10622
+ bashAllowlist?: string[] | undefined;
10623
+ command?: string | undefined;
10624
+ onFail?: {
10625
+ retry: string;
10626
+ max: number;
10627
+ } | undefined;
10628
+ }[];
10629
+ source: "built-in" | "file";
10630
+ path?: string | undefined;
10631
+ } | undefined;
10632
+ usage?: ReturnType<typeof currentUsage>;
10633
+ }[];
9009
10634
  outputFormat: "json";
9010
10635
  status: import("hono/utils/http-status").ContentfulStatusCode;
9011
- input: {
9012
- query: {
9013
- automationId?: string | undefined;
9014
- result?: "baseline" | "duplicate" | "error" | "launched" | "no-match" | "preview" | "rate-limited" | undefined;
9015
- event?: "issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened" | undefined;
9016
- since?: string | undefined;
9017
- cursor?: number | undefined;
9018
- limit?: number | undefined;
9019
- };
9020
- };
10636
+ input: {};
9021
10637
  };
9022
10638
  };
9023
10639
  } & {
9024
- "/automation-log/:receiptId/retry": {
10640
+ "/runs/archive-finished": {
9025
10641
  $post: {
9026
10642
  output: {
9027
- error: string;
9028
- };
9029
- outputFormat: "json";
9030
- status: 404;
9031
- input: {
9032
- param: {
9033
- receiptId: string;
9034
- };
9035
- };
9036
- } | {
9037
- output: {
9038
- error: string;
10643
+ archived: number;
9039
10644
  };
9040
10645
  outputFormat: "json";
9041
- status: 409;
9042
- input: {
9043
- param: {
9044
- receiptId: string;
9045
- };
9046
- };
9047
- } | {
10646
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10647
+ input: {};
10648
+ };
10649
+ };
10650
+ } & {
10651
+ "/runs/read-all": {
10652
+ $post: {
9048
10653
  output: {
9049
- receiptId: string;
9050
- runId: string;
10654
+ read: number;
9051
10655
  };
9052
10656
  outputFormat: "json";
9053
- status: 202;
9054
- input: {
9055
- param: {
9056
- receiptId: string;
9057
- };
9058
- };
10657
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10658
+ input: {};
9059
10659
  };
9060
10660
  };
9061
- }, "/"> | import("hono/types").MergeSchemaPath<{
9062
- "/runs": {
9063
- $get: {
10661
+ } & {
10662
+ "/runs/:id/archive": {
10663
+ $post: {
9064
10664
  output: {
9065
10665
  id: string;
9066
10666
  title: string;
@@ -9082,7 +10682,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9082
10682
  taskImages?: string[] | undefined;
9083
10683
  model?: string | undefined;
9084
10684
  modelIdentity?: string | undefined;
9085
- runner?: "claude" | "codex" | "opencode" | undefined;
10685
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10686
+ agentProfile?: string | undefined;
9086
10687
  systemPrompt?: string | undefined;
9087
10688
  generateFollowups?: boolean | undefined;
9088
10689
  autonomous?: boolean | undefined;
@@ -9097,6 +10698,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9097
10698
  activity?: "monitoring" | undefined;
9098
10699
  monitoringWakeAt?: string | undefined;
9099
10700
  monitoringWakeCapReached?: boolean | undefined;
10701
+ autoResumeAt?: string | undefined;
10702
+ autoResumeAttempts?: number | undefined;
9100
10703
  createdAt: string;
9101
10704
  startedAt?: string | undefined;
9102
10705
  finishedAt?: string | undefined;
@@ -9149,7 +10752,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9149
10752
  finishedAt?: string | undefined;
9150
10753
  error?: string | undefined;
9151
10754
  sessionId?: string | undefined;
9152
- backend?: "claude" | "codex" | "opencode" | undefined;
10755
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
10756
+ profileId?: string | undefined;
9153
10757
  costUsd?: number | undefined;
9154
10758
  }[];
9155
10759
  workflowDef?: {
@@ -9161,7 +10765,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9161
10765
  prompt?: string | undefined;
9162
10766
  skill?: string | undefined;
9163
10767
  model?: string | undefined;
9164
- runner?: "claude" | "codex" | "opencode" | undefined;
10768
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9165
10769
  allowedTools?: string[] | undefined;
9166
10770
  bashAllowlist?: string[] | undefined;
9167
10771
  command?: string | undefined;
@@ -9173,37 +10777,63 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9173
10777
  source: "built-in" | "file";
9174
10778
  path?: string | undefined;
9175
10779
  } | undefined;
9176
- usage?: ReturnType<typeof currentUsage>;
9177
- }[];
10780
+ };
9178
10781
  outputFormat: "json";
9179
10782
  status: import("hono/utils/http-status").ContentfulStatusCode;
9180
- input: {};
9181
- };
9182
- };
9183
- } & {
9184
- "/runs/archive-finished": {
9185
- $post: {
10783
+ input: {
10784
+ json: {
10785
+ archived?: boolean | undefined;
10786
+ };
10787
+ } & {
10788
+ param: {
10789
+ id: string;
10790
+ };
10791
+ };
10792
+ } | {
9186
10793
  output: {
9187
- archived: number;
10794
+ error: string;
9188
10795
  };
9189
10796
  outputFormat: "json";
9190
- status: import("hono/utils/http-status").ContentfulStatusCode;
9191
- input: {};
10797
+ status: 404;
10798
+ input: {
10799
+ json: {
10800
+ archived?: boolean | undefined;
10801
+ };
10802
+ } & {
10803
+ param: {
10804
+ id: string;
10805
+ };
10806
+ };
9192
10807
  };
9193
10808
  };
9194
10809
  } & {
9195
- "/runs/read-all": {
9196
- $post: {
10810
+ "/runs/:id/auto-resume": {
10811
+ $delete: {
9197
10812
  output: {
9198
- read: number;
10813
+ error: string;
10814
+ };
10815
+ outputFormat: "json";
10816
+ status: 404;
10817
+ input: {
10818
+ param: {
10819
+ id: string;
10820
+ };
10821
+ };
10822
+ } | {
10823
+ output: {
10824
+ cancelled: true;
9199
10825
  };
9200
10826
  outputFormat: "json";
9201
10827
  status: import("hono/utils/http-status").ContentfulStatusCode;
9202
- input: {};
10828
+ input: {
10829
+ param: {
10830
+ id: string;
10831
+ };
10832
+ };
9203
10833
  };
9204
10834
  };
9205
10835
  } & {
9206
- "/runs/:id/archive": {
10836
+ "/runs/:id/read": {
9207
10837
  $post: {
9208
10838
  output: {
9209
10839
  id: string;
@@ -9226,7 +10856,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9226
10856
  taskImages?: string[] | undefined;
9227
10857
  model?: string | undefined;
9228
10858
  modelIdentity?: string | undefined;
9229
- runner?: "claude" | "codex" | "opencode" | undefined;
10859
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10860
+ agentProfile?: string | undefined;
9230
10861
  systemPrompt?: string | undefined;
9231
10862
  generateFollowups?: boolean | undefined;
9232
10863
  autonomous?: boolean | undefined;
@@ -9241,6 +10872,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9241
10872
  activity?: "monitoring" | undefined;
9242
10873
  monitoringWakeAt?: string | undefined;
9243
10874
  monitoringWakeCapReached?: boolean | undefined;
10875
+ autoResumeAt?: string | undefined;
10876
+ autoResumeAttempts?: number | undefined;
9244
10877
  createdAt: string;
9245
10878
  startedAt?: string | undefined;
9246
10879
  finishedAt?: string | undefined;
@@ -9293,7 +10926,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9293
10926
  finishedAt?: string | undefined;
9294
10927
  error?: string | undefined;
9295
10928
  sessionId?: string | undefined;
9296
- backend?: "claude" | "codex" | "opencode" | undefined;
10929
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
10930
+ profileId?: string | undefined;
9297
10931
  costUsd?: number | undefined;
9298
10932
  }[];
9299
10933
  workflowDef?: {
@@ -9305,7 +10939,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9305
10939
  prompt?: string | undefined;
9306
10940
  skill?: string | undefined;
9307
10941
  model?: string | undefined;
9308
- runner?: "claude" | "codex" | "opencode" | undefined;
10942
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9309
10943
  allowedTools?: string[] | undefined;
9310
10944
  bashAllowlist?: string[] | undefined;
9311
10945
  command?: string | undefined;
@@ -9321,10 +10955,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9321
10955
  outputFormat: "json";
9322
10956
  status: import("hono/utils/http-status").ContentfulStatusCode;
9323
10957
  input: {
9324
- json: {
9325
- archived?: boolean | undefined;
9326
- };
9327
- } & {
9328
10958
  param: {
9329
10959
  id: string;
9330
10960
  };
@@ -9336,10 +10966,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9336
10966
  outputFormat: "json";
9337
10967
  status: 404;
9338
10968
  input: {
9339
- json: {
9340
- archived?: boolean | undefined;
9341
- };
9342
- } & {
9343
10969
  param: {
9344
10970
  id: string;
9345
10971
  };
@@ -9347,7 +10973,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9347
10973
  };
9348
10974
  };
9349
10975
  } & {
9350
- "/runs/:id/read": {
10976
+ "/runs/:id/unread": {
9351
10977
  $post: {
9352
10978
  output: {
9353
10979
  id: string;
@@ -9370,7 +10996,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9370
10996
  taskImages?: string[] | undefined;
9371
10997
  model?: string | undefined;
9372
10998
  modelIdentity?: string | undefined;
9373
- runner?: "claude" | "codex" | "opencode" | undefined;
10999
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11000
+ agentProfile?: string | undefined;
9374
11001
  systemPrompt?: string | undefined;
9375
11002
  generateFollowups?: boolean | undefined;
9376
11003
  autonomous?: boolean | undefined;
@@ -9385,6 +11012,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9385
11012
  activity?: "monitoring" | undefined;
9386
11013
  monitoringWakeAt?: string | undefined;
9387
11014
  monitoringWakeCapReached?: boolean | undefined;
11015
+ autoResumeAt?: string | undefined;
11016
+ autoResumeAttempts?: number | undefined;
9388
11017
  createdAt: string;
9389
11018
  startedAt?: string | undefined;
9390
11019
  finishedAt?: string | undefined;
@@ -9437,7 +11066,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9437
11066
  finishedAt?: string | undefined;
9438
11067
  error?: string | undefined;
9439
11068
  sessionId?: string | undefined;
9440
- backend?: "claude" | "codex" | "opencode" | undefined;
11069
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
11070
+ profileId?: string | undefined;
9441
11071
  costUsd?: number | undefined;
9442
11072
  }[];
9443
11073
  workflowDef?: {
@@ -9449,7 +11079,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9449
11079
  prompt?: string | undefined;
9450
11080
  skill?: string | undefined;
9451
11081
  model?: string | undefined;
9452
- runner?: "claude" | "codex" | "opencode" | undefined;
11082
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9453
11083
  allowedTools?: string[] | undefined;
9454
11084
  bashAllowlist?: string[] | undefined;
9455
11085
  command?: string | undefined;
@@ -9506,7 +11136,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9506
11136
  taskImages?: string[] | undefined;
9507
11137
  model?: string | undefined;
9508
11138
  modelIdentity?: string | undefined;
9509
- runner?: "claude" | "codex" | "opencode" | undefined;
11139
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11140
+ agentProfile?: string | undefined;
9510
11141
  systemPrompt?: string | undefined;
9511
11142
  generateFollowups?: boolean | undefined;
9512
11143
  autonomous?: boolean | undefined;
@@ -9521,6 +11152,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9521
11152
  activity?: "monitoring" | undefined;
9522
11153
  monitoringWakeAt?: string | undefined;
9523
11154
  monitoringWakeCapReached?: boolean | undefined;
11155
+ autoResumeAt?: string | undefined;
11156
+ autoResumeAttempts?: number | undefined;
9524
11157
  createdAt: string;
9525
11158
  startedAt?: string | undefined;
9526
11159
  finishedAt?: string | undefined;
@@ -9573,7 +11206,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9573
11206
  finishedAt?: string | undefined;
9574
11207
  error?: string | undefined;
9575
11208
  sessionId?: string | undefined;
9576
- backend?: "claude" | "codex" | "opencode" | undefined;
11209
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
11210
+ profileId?: string | undefined;
9577
11211
  costUsd?: number | undefined;
9578
11212
  }[];
9579
11213
  workflowDef?: {
@@ -9585,7 +11219,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9585
11219
  prompt?: string | undefined;
9586
11220
  skill?: string | undefined;
9587
11221
  model?: string | undefined;
9588
- runner?: "claude" | "codex" | "opencode" | undefined;
11222
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9589
11223
  allowedTools?: string[] | undefined;
9590
11224
  bashAllowlist?: string[] | undefined;
9591
11225
  command?: string | undefined;
@@ -9609,7 +11243,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9609
11243
  prompt?: string | undefined;
9610
11244
  skill?: string | undefined;
9611
11245
  model?: string | undefined;
9612
- runner?: "claude" | "codex" | "opencode" | undefined;
11246
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9613
11247
  allowedTools?: string[] | undefined;
9614
11248
  bashAllowlist?: string[] | undefined;
9615
11249
  command?: string | undefined;
@@ -9620,7 +11254,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9620
11254
  }[] | undefined;
9621
11255
  task: string;
9622
11256
  model?: string | undefined;
9623
- runner?: "claude" | "codex" | "opencode" | undefined;
11257
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11258
+ agentProfile?: string | undefined;
9624
11259
  variants?: number | undefined;
9625
11260
  worktree?: boolean | undefined;
9626
11261
  autonomous?: boolean | undefined;
@@ -9638,7 +11273,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9638
11273
  error: string;
9639
11274
  };
9640
11275
  outputFormat: "json";
9641
- status: 400;
11276
+ status: 409;
9642
11277
  input: {
9643
11278
  json: {
9644
11279
  workflow?: string | undefined;
@@ -9648,7 +11283,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9648
11283
  prompt?: string | undefined;
9649
11284
  skill?: string | undefined;
9650
11285
  model?: string | undefined;
9651
- runner?: "claude" | "codex" | "opencode" | undefined;
11286
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9652
11287
  allowedTools?: string[] | undefined;
9653
11288
  bashAllowlist?: string[] | undefined;
9654
11289
  command?: string | undefined;
@@ -9659,7 +11294,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9659
11294
  }[] | undefined;
9660
11295
  task: string;
9661
11296
  model?: string | undefined;
9662
- runner?: "claude" | "codex" | "opencode" | undefined;
11297
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11298
+ agentProfile?: string | undefined;
9663
11299
  variants?: number | undefined;
9664
11300
  worktree?: boolean | undefined;
9665
11301
  autonomous?: boolean | undefined;
@@ -9677,7 +11313,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9677
11313
  error: string;
9678
11314
  };
9679
11315
  outputFormat: "json";
9680
- status: 404;
11316
+ status: 400;
9681
11317
  input: {
9682
11318
  json: {
9683
11319
  workflow?: string | undefined;
@@ -9687,7 +11323,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9687
11323
  prompt?: string | undefined;
9688
11324
  skill?: string | undefined;
9689
11325
  model?: string | undefined;
9690
- runner?: "claude" | "codex" | "opencode" | undefined;
11326
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9691
11327
  allowedTools?: string[] | undefined;
9692
11328
  bashAllowlist?: string[] | undefined;
9693
11329
  command?: string | undefined;
@@ -9698,7 +11334,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9698
11334
  }[] | undefined;
9699
11335
  task: string;
9700
11336
  model?: string | undefined;
9701
- runner?: "claude" | "codex" | "opencode" | undefined;
11337
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11338
+ agentProfile?: string | undefined;
9702
11339
  variants?: number | undefined;
9703
11340
  worktree?: boolean | undefined;
9704
11341
  autonomous?: boolean | undefined;
@@ -9716,7 +11353,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9716
11353
  error: string;
9717
11354
  };
9718
11355
  outputFormat: "json";
9719
- status: 409;
11356
+ status: 404;
9720
11357
  input: {
9721
11358
  json: {
9722
11359
  workflow?: string | undefined;
@@ -9726,7 +11363,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9726
11363
  prompt?: string | undefined;
9727
11364
  skill?: string | undefined;
9728
11365
  model?: string | undefined;
9729
- runner?: "claude" | "codex" | "opencode" | undefined;
11366
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9730
11367
  allowedTools?: string[] | undefined;
9731
11368
  bashAllowlist?: string[] | undefined;
9732
11369
  command?: string | undefined;
@@ -9737,7 +11374,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9737
11374
  }[] | undefined;
9738
11375
  task: string;
9739
11376
  model?: string | undefined;
9740
- runner?: "claude" | "codex" | "opencode" | undefined;
11377
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11378
+ agentProfile?: string | undefined;
9741
11379
  variants?: number | undefined;
9742
11380
  worktree?: boolean | undefined;
9743
11381
  autonomous?: boolean | undefined;
@@ -9773,7 +11411,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9773
11411
  taskImages?: string[] | undefined;
9774
11412
  model?: string | undefined;
9775
11413
  modelIdentity?: string | undefined;
9776
- runner?: "claude" | "codex" | "opencode" | undefined;
11414
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11415
+ agentProfile?: string | undefined;
9777
11416
  systemPrompt?: string | undefined;
9778
11417
  generateFollowups?: boolean | undefined;
9779
11418
  autonomous?: boolean | undefined;
@@ -9788,6 +11427,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9788
11427
  activity?: "monitoring" | undefined;
9789
11428
  monitoringWakeAt?: string | undefined;
9790
11429
  monitoringWakeCapReached?: boolean | undefined;
11430
+ autoResumeAt?: string | undefined;
11431
+ autoResumeAttempts?: number | undefined;
9791
11432
  createdAt: string;
9792
11433
  startedAt?: string | undefined;
9793
11434
  finishedAt?: string | undefined;
@@ -9840,7 +11481,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9840
11481
  finishedAt?: string | undefined;
9841
11482
  error?: string | undefined;
9842
11483
  sessionId?: string | undefined;
9843
- backend?: "claude" | "codex" | "opencode" | undefined;
11484
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
11485
+ profileId?: string | undefined;
9844
11486
  costUsd?: number | undefined;
9845
11487
  }[];
9846
11488
  workflowDef?: {
@@ -9852,7 +11494,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9852
11494
  prompt?: string | undefined;
9853
11495
  skill?: string | undefined;
9854
11496
  model?: string | undefined;
9855
- runner?: "claude" | "codex" | "opencode" | undefined;
11497
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9856
11498
  allowedTools?: string[] | undefined;
9857
11499
  bashAllowlist?: string[] | undefined;
9858
11500
  command?: string | undefined;
@@ -9877,7 +11519,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9877
11519
  prompt?: string | undefined;
9878
11520
  skill?: string | undefined;
9879
11521
  model?: string | undefined;
9880
- runner?: "claude" | "codex" | "opencode" | undefined;
11522
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
9881
11523
  allowedTools?: string[] | undefined;
9882
11524
  bashAllowlist?: string[] | undefined;
9883
11525
  command?: string | undefined;
@@ -9888,7 +11530,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9888
11530
  }[] | undefined;
9889
11531
  task: string;
9890
11532
  model?: string | undefined;
9891
- runner?: "claude" | "codex" | "opencode" | undefined;
11533
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11534
+ agentProfile?: string | undefined;
9892
11535
  variants?: number | undefined;
9893
11536
  worktree?: boolean | undefined;
9894
11537
  autonomous?: boolean | undefined;
@@ -9927,7 +11570,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9927
11570
  taskImages?: string[] | undefined;
9928
11571
  model?: string | undefined;
9929
11572
  modelIdentity?: string | undefined;
9930
- runner?: "claude" | "codex" | "opencode" | undefined;
11573
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11574
+ agentProfile?: string | undefined;
9931
11575
  systemPrompt?: string | undefined;
9932
11576
  generateFollowups?: boolean | undefined;
9933
11577
  autonomous?: boolean | undefined;
@@ -9942,6 +11586,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9942
11586
  activity?: "monitoring" | undefined;
9943
11587
  monitoringWakeAt?: string | undefined;
9944
11588
  monitoringWakeCapReached?: boolean | undefined;
11589
+ autoResumeAt?: string | undefined;
11590
+ autoResumeAttempts?: number | undefined;
9945
11591
  createdAt: string;
9946
11592
  startedAt?: string | undefined;
9947
11593
  finishedAt?: string | undefined;
@@ -9994,7 +11640,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9994
11640
  finishedAt?: string | undefined;
9995
11641
  error?: string | undefined;
9996
11642
  sessionId?: string | undefined;
9997
- backend?: "claude" | "codex" | "opencode" | undefined;
11643
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
11644
+ profileId?: string | undefined;
9998
11645
  costUsd?: number | undefined;
9999
11646
  }[];
10000
11647
  workflowDef?: {
@@ -10006,7 +11653,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10006
11653
  prompt?: string | undefined;
10007
11654
  skill?: string | undefined;
10008
11655
  model?: string | undefined;
10009
- runner?: "claude" | "codex" | "opencode" | undefined;
11656
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10010
11657
  allowedTools?: string[] | undefined;
10011
11658
  bashAllowlist?: string[] | undefined;
10012
11659
  command?: string | undefined;
@@ -10040,6 +11687,126 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10040
11687
  };
10041
11688
  };
10042
11689
  };
11690
+ } & {
11691
+ "/runs/:id/history": {
11692
+ $get: {
11693
+ output: {
11694
+ error: string;
11695
+ };
11696
+ outputFormat: "json";
11697
+ status: 400;
11698
+ input: {
11699
+ param: {
11700
+ id: string;
11701
+ };
11702
+ } & {
11703
+ query: {
11704
+ cursor?: string | undefined;
11705
+ };
11706
+ };
11707
+ } | {
11708
+ output: {
11709
+ error: string;
11710
+ };
11711
+ outputFormat: "json";
11712
+ status: 404;
11713
+ input: {
11714
+ param: {
11715
+ id: string;
11716
+ };
11717
+ } & {
11718
+ query: {
11719
+ cursor?: string | undefined;
11720
+ };
11721
+ };
11722
+ } | {
11723
+ output: {
11724
+ events: {
11725
+ [x: string]: any;
11726
+ seq: number;
11727
+ ts: string;
11728
+ stepId?: string | undefined;
11729
+ type: string;
11730
+ }[];
11731
+ itemCount: number;
11732
+ olderCursor?: string | undefined;
11733
+ newerCursor?: string | undefined;
11734
+ liveCursor: string;
11735
+ asOfSeq: number;
11736
+ hasOlder: boolean;
11737
+ };
11738
+ outputFormat: "json";
11739
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11740
+ input: {
11741
+ param: {
11742
+ id: string;
11743
+ };
11744
+ } & {
11745
+ query: {
11746
+ cursor?: string | undefined;
11747
+ };
11748
+ };
11749
+ } | {
11750
+ output: {
11751
+ error: string;
11752
+ };
11753
+ outputFormat: "json";
11754
+ status: 400 | 409;
11755
+ input: {
11756
+ param: {
11757
+ id: string;
11758
+ };
11759
+ } & {
11760
+ query: {
11761
+ cursor?: string | undefined;
11762
+ };
11763
+ };
11764
+ };
11765
+ };
11766
+ } & {
11767
+ "/runs/:id/history-context": {
11768
+ $get: {
11769
+ output: {
11770
+ error: string;
11771
+ };
11772
+ outputFormat: "json";
11773
+ status: 400;
11774
+ input: {
11775
+ param: {
11776
+ id: string;
11777
+ };
11778
+ };
11779
+ } | {
11780
+ output: {
11781
+ error: string;
11782
+ };
11783
+ outputFormat: "json";
11784
+ status: 404;
11785
+ input: {
11786
+ param: {
11787
+ id: string;
11788
+ };
11789
+ };
11790
+ } | {
11791
+ output: {
11792
+ contextEvents: {
11793
+ [x: string]: any;
11794
+ seq: number;
11795
+ ts: string;
11796
+ stepId?: string | undefined;
11797
+ type: string;
11798
+ }[];
11799
+ asOfSeq: number;
11800
+ };
11801
+ outputFormat: "json";
11802
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11803
+ input: {
11804
+ param: {
11805
+ id: string;
11806
+ };
11807
+ };
11808
+ };
11809
+ };
10043
11810
  } & {
10044
11811
  "/runs/:id": {
10045
11812
  $patch: {
@@ -10064,7 +11831,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10064
11831
  taskImages?: string[] | undefined;
10065
11832
  model?: string | undefined;
10066
11833
  modelIdentity?: string | undefined;
10067
- runner?: "claude" | "codex" | "opencode" | undefined;
11834
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
11835
+ agentProfile?: string | undefined;
10068
11836
  systemPrompt?: string | undefined;
10069
11837
  generateFollowups?: boolean | undefined;
10070
11838
  autonomous?: boolean | undefined;
@@ -10079,6 +11847,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10079
11847
  activity?: "monitoring" | undefined;
10080
11848
  monitoringWakeAt?: string | undefined;
10081
11849
  monitoringWakeCapReached?: boolean | undefined;
11850
+ autoResumeAt?: string | undefined;
11851
+ autoResumeAttempts?: number | undefined;
10082
11852
  createdAt: string;
10083
11853
  startedAt?: string | undefined;
10084
11854
  finishedAt?: string | undefined;
@@ -10131,7 +11901,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10131
11901
  finishedAt?: string | undefined;
10132
11902
  error?: string | undefined;
10133
11903
  sessionId?: string | undefined;
10134
- backend?: "claude" | "codex" | "opencode" | undefined;
11904
+ backend?: "claude" | "codex" | "opencode" | "pi" | undefined;
11905
+ profileId?: string | undefined;
10135
11906
  costUsd?: number | undefined;
10136
11907
  }[];
10137
11908
  workflowDef?: {
@@ -10143,7 +11914,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10143
11914
  prompt?: string | undefined;
10144
11915
  skill?: string | undefined;
10145
11916
  model?: string | undefined;
10146
- runner?: "claude" | "codex" | "opencode" | undefined;
11917
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10147
11918
  allowedTools?: string[] | undefined;
10148
11919
  bashAllowlist?: string[] | undefined;
10149
11920
  command?: string | undefined;
@@ -10556,7 +12327,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10556
12327
  mediaType: string;
10557
12328
  data: string;
10558
12329
  }[] | undefined;
10559
- runner?: "claude" | "codex" | "opencode" | undefined;
12330
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10560
12331
  model?: string | undefined;
10561
12332
  };
10562
12333
  } & {
@@ -10577,7 +12348,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10577
12348
  mediaType: string;
10578
12349
  data: string;
10579
12350
  }[] | undefined;
10580
- runner?: "claude" | "codex" | "opencode" | undefined;
12351
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10581
12352
  model?: string | undefined;
10582
12353
  };
10583
12354
  } & {
@@ -10598,7 +12369,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10598
12369
  mediaType: string;
10599
12370
  data: string;
10600
12371
  }[] | undefined;
10601
- runner?: "claude" | "codex" | "opencode" | undefined;
12372
+ runner?: "claude" | "codex" | "opencode" | "pi" | undefined;
10602
12373
  model?: string | undefined;
10603
12374
  };
10604
12375
  } & {