@hearsay-tools/squawk 0.19.0-pr4565.9057 → 0.19.0-pr4573.9072

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 (225) hide show
  1. package/dist/built-in-cli-commands.js +1 -1
  2. package/dist/built-in-cli-commands.js.map +1 -1
  3. package/dist/ci-wait/controller.d.ts +7 -7
  4. package/dist/cli-dispatch.d.ts +1 -1
  5. package/dist/cli-dispatch.js +19 -4
  6. package/dist/cli-dispatch.js.map +1 -1
  7. package/dist/config.d.ts +1 -1
  8. package/dist/config.js +3 -0
  9. package/dist/config.js.map +1 -1
  10. package/dist/contract/health.d.ts +2 -2
  11. package/dist/contract/hosts.d.ts +141 -0
  12. package/dist/contract/index.d.ts +1 -0
  13. package/dist/contract/index.js +140 -8
  14. package/dist/contract/projects.d.ts +8 -2
  15. package/dist/contract/workspace.d.ts +10 -0
  16. package/dist/core/cli-registry.d.ts +1 -0
  17. package/dist/core/server-hook-registry.d.ts +4 -2
  18. package/dist/core/server-hook-registry.js.map +1 -1
  19. package/dist/delegation/routes.d.ts +82 -82
  20. package/dist/delegation/transport.d.ts +14 -14
  21. package/dist/features/automations/automations-routes.js +4 -3
  22. package/dist/features/automations/automations-routes.js.map +1 -1
  23. package/dist/features/automations/tools.d.ts +8 -8
  24. package/dist/features/hosts/cli.d.ts +8 -0
  25. package/dist/features/hosts/cli.js +172 -0
  26. package/dist/features/hosts/cli.js.map +1 -0
  27. package/dist/features/hosts/index.d.ts +12 -0
  28. package/dist/features/hosts/index.js +34 -0
  29. package/dist/features/hosts/index.js.map +1 -0
  30. package/dist/features/hosts/registry.d.ts +52 -0
  31. package/dist/features/hosts/registry.js +198 -0
  32. package/dist/features/hosts/registry.js.map +1 -0
  33. package/dist/features/hosts/routes.d.ts +348 -0
  34. package/dist/features/hosts/routes.js +113 -0
  35. package/dist/features/hosts/routes.js.map +1 -0
  36. package/dist/features/hosts/ssh-config.d.ts +9 -0
  37. package/dist/features/hosts/ssh-config.js +59 -0
  38. package/dist/features/hosts/ssh-config.js.map +1 -0
  39. package/dist/home/entry-authorization.js +1 -1
  40. package/dist/home/entry-authorization.js.map +1 -1
  41. package/dist/home/home.d.ts +2 -0
  42. package/dist/home/home.js +1 -0
  43. package/dist/home/home.js.map +1 -1
  44. package/dist/home/migration-plan.js +1 -1
  45. package/dist/home/migration-plan.js.map +1 -1
  46. package/dist/index.js +2 -2
  47. package/dist/index.js.map +1 -1
  48. package/dist/runs/run-decode.d.ts +72 -72
  49. package/dist/serve-boot.d.ts +1 -1
  50. package/dist/serve-boot.js +4 -2
  51. package/dist/serve-boot.js.map +1 -1
  52. package/dist/serve-command.d.ts +2 -2
  53. package/dist/serve-command.js +47 -31
  54. package/dist/serve-command.js.map +1 -1
  55. package/dist/server/activity-routes.js +1 -1
  56. package/dist/server/activity-routes.js.map +1 -1
  57. package/dist/server/activity-sources.d.ts +1 -1
  58. package/dist/server/activity-sources.js +6 -4
  59. package/dist/server/activity-sources.js.map +1 -1
  60. package/dist/server/activity-topic.js +5 -2
  61. package/dist/server/activity-topic.js.map +1 -1
  62. package/dist/server/live-routes.d.ts +8 -7
  63. package/dist/server/live-routes.js +2 -2
  64. package/dist/server/live-routes.js.map +1 -1
  65. package/dist/server/plugin-server-hooks.js +7 -4
  66. package/dist/server/plugin-server-hooks.js.map +1 -1
  67. package/dist/server/project-context.d.ts +3 -1
  68. package/dist/server/project-context.js +5 -1
  69. package/dist/server/project-context.js.map +1 -1
  70. package/dist/server/projects-routes.d.ts +64 -2
  71. package/dist/server/projects-routes.js +15 -8
  72. package/dist/server/projects-routes.js.map +1 -1
  73. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  74. package/dist/server/providers-routes.d.ts +16 -2
  75. package/dist/server/providers-routes.js +9 -4
  76. package/dist/server/providers-routes.js.map +1 -1
  77. package/dist/server/repo-routes.d.ts +52 -52
  78. package/dist/server/runners-routes.d.ts +10 -10
  79. package/dist/server/runs-routes.d.ts +313 -313
  80. package/dist/server/server-deps.d.ts +11 -4
  81. package/dist/server/server-deps.js +26 -9
  82. package/dist/server/server-deps.js.map +1 -1
  83. package/dist/server/server.d.ts +1752 -1651
  84. package/dist/server/server.js +23 -31
  85. package/dist/server/server.js.map +1 -1
  86. package/dist/server/start-server.js +22 -14
  87. package/dist/server/start-server.js.map +1 -1
  88. package/dist/server/workspace-identity-routes.d.ts +29 -0
  89. package/dist/server/workspace-identity-routes.js +21 -0
  90. package/dist/server/workspace-identity-routes.js.map +1 -0
  91. package/dist/server/workspace-live-routes.d.ts +28 -7
  92. package/dist/server/workspace-live-routes.js +5 -1
  93. package/dist/server/workspace-live-routes.js.map +1 -1
  94. package/dist/server/workspace-projects.d.ts +11 -8
  95. package/dist/server/workspace-projects.js +50 -12
  96. package/dist/server/workspace-projects.js.map +1 -1
  97. package/dist/server/workspace-routes.d.ts +86 -86
  98. package/dist/server/workspace-routes.js +2 -2
  99. package/dist/server/workspace-routes.js.map +1 -1
  100. package/dist/server/workspace-run-feed.d.ts +4 -4
  101. package/dist/server/workspace-run-feed.js +2 -0
  102. package/dist/server/workspace-run-feed.js.map +1 -1
  103. package/dist/task-cli/discovery.js +7 -0
  104. package/dist/task-cli/discovery.js.map +1 -1
  105. package/dist/workflows/continuation-admission.d.ts +72 -72
  106. package/dist/workflows/run/wait-engine.d.ts +72 -72
  107. package/dist/workspace/backups.d.ts +1 -1
  108. package/dist/workspace/backups.js +1 -1
  109. package/dist/workspace/backups.js.map +1 -1
  110. package/package.json +4 -4
  111. package/web/dist/assets/accounts-section-DrA0kndh.js +1 -0
  112. package/web/dist/assets/activity-motion-C23PnhhH.js +1 -0
  113. package/web/dist/assets/{activity-route-nt-yys8h.js → activity-route-CWGPbwtG.js} +1 -1
  114. package/web/dist/assets/{agent-accounts-BuceIkTR.js → agent-accounts-D_7QcFSx.js} +1 -1
  115. package/web/dist/assets/{agent-config-section-O5uZVaPx.js → agent-config-section-DWZQ2DSW.js} +1 -1
  116. package/web/dist/assets/{agent-defaults-section-m1SMiXk1.js → agent-defaults-section-Da4tKbp7.js} +1 -1
  117. package/web/dist/assets/{appearance-DTK45i4C.js → appearance-Bm4ePfiH.js} +1 -1
  118. package/web/dist/assets/{archive-on-merge-field-Czwu2ff3.js → archive-on-merge-field-DuRmMR6k.js} +1 -1
  119. package/web/dist/assets/ask-card-vM_Z-WAg.js +9 -0
  120. package/web/dist/assets/attention-DnxGjw_R.js +1 -0
  121. package/web/dist/assets/automations-route-B8zD3wux.js +2 -0
  122. package/web/dist/assets/{badge-B6B-xYQQ.js → badge-DVxxThpb.js} +1 -1
  123. package/web/dist/assets/{button-C8jUIs8Q.js → button-B22ANdCY.js} +1 -1
  124. package/web/dist/assets/{command-BiBq24zL.js → command-B2Y0By1v.js} +1 -1
  125. package/web/dist/assets/{commit-list-B9_tWq59.js → commit-list-lwVhwbS8.js} +1 -1
  126. package/web/dist/assets/{dialog-DRZuXvul.js → dialog-rpNyAWGb.js} +1 -1
  127. package/web/dist/assets/{diff-Bo3eeGmc.js → diff-CC5UqjNZ.js} +2 -2
  128. package/web/dist/assets/diff-controls-C8KWZ5S-.js +1 -0
  129. package/web/dist/assets/{diff-view-in4IugPk.js → diff-view-DiuQQoKq.js} +2 -2
  130. package/web/dist/assets/{discard-changes-dialog-DY6vUtXO.js → discard-changes-dialog-CX7M4k9n.js} +1 -1
  131. package/web/dist/assets/{file-preview-DoayK4hI.js → file-preview-C_0CRYAr.js} +1 -1
  132. package/web/dist/assets/{folder-browser-CUUWpb8F.js → folder-browser-Civftk0W.js} +1 -1
  133. package/web/dist/assets/{git-toolbar-CzK1Zgor.js → git-toolbar-PM540i_A.js} +1 -1
  134. package/web/dist/assets/github-CeBvZzjo.js +1 -0
  135. package/web/dist/assets/{global-activity-route-DSE9LN7x.js → global-activity-route-CiTt7W6o.js} +2 -2
  136. package/web/dist/assets/index-CSgBel_0.css +1 -0
  137. package/web/dist/assets/index-UFO7Bk2I.js +21 -0
  138. package/web/dist/assets/label-feCJ3WOT.js +1 -0
  139. package/web/dist/assets/{markdown-DIakhinb.js → markdown-CqzDs1kO.js} +1 -1
  140. package/web/dist/assets/{open-in-menu-CI3ceNjU.js → open-in-menu-CbQWVBD0.js} +1 -1
  141. package/web/dist/assets/{option-select-BQWioBrU.js → option-select-CDOKbUov.js} +1 -1
  142. package/web/dist/assets/page-shell-BgabWJ3w.js +1 -0
  143. package/web/dist/assets/{page-shell-DQPYcKyL.css → page-shell-CEIoW56O.css} +1 -1
  144. package/web/dist/assets/{preferences-section-BHzzi9Fd.js → preferences-section-cdbIMfEU.js} +1 -1
  145. package/web/dist/assets/preview-pane-connected-BcU9ryyW.js +3 -0
  146. package/web/dist/assets/{project-location-DxuFTx_Q.js → project-location-BpBbcl3v.js} +1 -1
  147. package/web/dist/assets/{project-router-C53GCY_8.js → project-router-j0uBi7Ep.js} +1 -1
  148. package/web/dist/assets/{projects-section-Bm3BzvSN.js → projects-section-CX1WJq4d.js} +1 -1
  149. package/web/dist/assets/{prompt-templates-section-Bsjj3Ug_.js → prompt-templates-section-DrQthAY7.js} +1 -1
  150. package/web/dist/assets/queries-CchoEEzj.js +1 -0
  151. package/web/dist/assets/{read-state-DOIKdUqa.js → read-state-c_RNJaXO.js} +1 -1
  152. package/web/dist/assets/{reference-chip-95DURw1q.js → reference-chip-z7dZJVH-.js} +1 -1
  153. package/web/dist/assets/{remote-settings-notice-BByWobEI.js → remote-settings-notice-_MtFnktv.js} +1 -1
  154. package/web/dist/assets/repo-git-5JS3oL12.js +1 -0
  155. package/web/dist/assets/{report-reader-B8wqnO5R.js → report-reader-iboN3k6l.js} +1 -1
  156. package/web/dist/assets/{report-selection-DAPzf1Aa.js → report-selection-BdGxjISG.js} +1 -1
  157. package/web/dist/assets/{reports-Cci7lMml.js → reports-Cn3kWlK7.js} +1 -1
  158. package/web/dist/assets/{resources-section-DqXBvcGr.js → resources-section-BmDbIpaO.js} +1 -1
  159. package/web/dist/assets/{review-notes-drafts-CI-ZJHae.js → review-notes-drafts-DXxIudVB.js} +1 -1
  160. package/web/dist/assets/{review-panel-CqLAl5oa.js → review-panel-BjWbFGev.js} +1 -1
  161. package/web/dist/assets/review-strip-QIghY88F.js +1 -0
  162. package/web/dist/assets/{run-detail-refresh-DYY7EWeq.js → run-detail-refresh-C5qmRdgD.js} +1 -1
  163. package/web/dist/assets/{run-diff-CMX34CW6.js → run-diff-BDMdnSv7.js} +1 -1
  164. package/web/dist/assets/run-header-BWLcG57S.js +2 -0
  165. package/web/dist/assets/{select-CCjwocCI.js → select-BxuV2GlN.js} +1 -1
  166. package/web/dist/assets/{session-context-section-aOSItNr4.js → session-context-section-OLW5UTvx.js} +2 -2
  167. package/web/dist/assets/{settings-agent-picker-DupIzGDN.js → settings-agent-picker-Dasyc6Qo.js} +1 -1
  168. package/web/dist/assets/{settings-list-detail-Dn5CWzHj.js → settings-list-detail-D3ibaYUj.js} +1 -1
  169. package/web/dist/assets/{settings-save-bar-CMUN5u6a.js → settings-save-bar-Mrc6Vm7P.js} +1 -1
  170. package/web/dist/assets/settings-shell-Bvje3VDf.css +1 -0
  171. package/web/dist/assets/settings-shell-DWRk12-i.js +1 -0
  172. package/web/dist/assets/sidebar-section-CVNvjM29.js +1 -0
  173. package/web/dist/assets/{skills-C9U2RP3s.js → skills-7MwCp2i_.js} +1 -1
  174. package/web/dist/assets/{status-dot-BXf-Ubd0.js → status-dot-Drd4-nfa.js} +1 -1
  175. package/web/dist/assets/{tab-link-BGfSJ-ah.js → tab-link-BKlpD9sn.js} +1 -1
  176. package/web/dist/assets/{task-changes-KiE0MH5e.js → task-changes-DSZjztX7.js} +1 -1
  177. package/web/dist/assets/{task-commits-BAm07Tzz.js → task-commits-P_ElCQ4M.js} +1 -1
  178. package/web/dist/assets/{task-file-scope-DKsZ4dhd.js → task-file-scope-B63NmSov.js} +1 -1
  179. package/web/dist/assets/{task-files-A2bbKNW9.js → task-files-CSFB6sG7.js} +1 -1
  180. package/web/dist/assets/{task-github-item-COIsN6-i.js → task-github-item-BJ1rGyc6.js} +1 -1
  181. package/web/dist/assets/{task-groups-7p6Gvpg8.js → task-groups-CGCnVqHE.js} +1 -1
  182. package/web/dist/assets/task-thread-C0DbAGi_.js +2 -0
  183. package/web/dist/assets/task-thread-i16nxSQv.css +1 -0
  184. package/web/dist/assets/thread-state-B7pyjJYO.js +4 -0
  185. package/web/dist/assets/toaster-zMN8cNZQ.js +4 -0
  186. package/web/dist/assets/{use-finish-run-XEz4kpVD.js → use-finish-run-B1Gy5JPt.js} +1 -1
  187. package/web/dist/assets/use-hand-to-agent-state-BSM9EGsW.css +1 -0
  188. package/web/dist/assets/use-hand-to-agent-state-CMyKCFeb.js +1 -0
  189. package/web/dist/assets/use-path-bases-wGc__G57.js +1 -0
  190. package/web/dist/assets/use-workspace-config-save-9jm9qV6u.js +1 -0
  191. package/web/dist/assets/workflows-D7bXUmGa.css +1 -0
  192. package/web/dist/assets/workflows-seQiL2pi.js +7 -0
  193. package/web/dist/assets/workspace-tools-BDf7nsE5.js +1 -0
  194. package/web/dist/assets/{worktrees-section-B7n9D9FE.js → worktrees-section-x7r5wRhx.js} +1 -1
  195. package/web/dist/index.html +22 -22
  196. package/web/dist/assets/accounts-section-ClkfA9Uf.js +0 -1
  197. package/web/dist/assets/activity-motion-Gpzgs83T.js +0 -1
  198. package/web/dist/assets/ask-card-Ck-jTGVm.js +0 -9
  199. package/web/dist/assets/attention-xl4bwNkx.js +0 -1
  200. package/web/dist/assets/automations-route-Dq3FOSLL.js +0 -2
  201. package/web/dist/assets/diff-controls-qg4bbnzG.js +0 -1
  202. package/web/dist/assets/github-C4k5m4wm.js +0 -1
  203. package/web/dist/assets/index-C8nM086t.css +0 -1
  204. package/web/dist/assets/index-MUk3Dyud.js +0 -21
  205. package/web/dist/assets/label-DRXJ8ljY.js +0 -1
  206. package/web/dist/assets/page-shell-Dky5crRl.js +0 -1
  207. package/web/dist/assets/preview-pane-connected-BEz7PcvI.js +0 -3
  208. package/web/dist/assets/queries-jsRcJKo6.js +0 -1
  209. package/web/dist/assets/repo-git-DckzU7Wv.js +0 -1
  210. package/web/dist/assets/review-strip-CyH6i_2D.js +0 -1
  211. package/web/dist/assets/run-header-DPMh6giK.js +0 -2
  212. package/web/dist/assets/settings-shell-Cf3yk78m.js +0 -1
  213. package/web/dist/assets/settings-shell-Ct_qn_MM.css +0 -1
  214. package/web/dist/assets/sidebar-section-BPvA1zrh.js +0 -1
  215. package/web/dist/assets/task-thread-CPM8bUQx.js +0 -2
  216. package/web/dist/assets/task-thread-DxVehGLy.css +0 -1
  217. package/web/dist/assets/thread-state-DVN2oM8w.js +0 -4
  218. package/web/dist/assets/toaster-C1BFyQ8i.js +0 -4
  219. package/web/dist/assets/use-hand-to-agent-state-Ch4dEjwY.js +0 -1
  220. package/web/dist/assets/use-hand-to-agent-state-DZZUsUAd.css +0 -1
  221. package/web/dist/assets/use-path-bases-BRMY4J7j.js +0 -1
  222. package/web/dist/assets/use-workspace-config-save-D2fOudMd.js +0 -1
  223. package/web/dist/assets/workflows-B2Sw8qQa.css +0 -1
  224. package/web/dist/assets/workflows-BxUkR7YP.js +0 -7
  225. package/web/dist/assets/workspace-tools-CmQpBdB9.js +0 -1
@@ -989,19 +989,21 @@ var pluginsHealthSchema = z12.object({
989
989
  var healthResponseSchema = z12.object({
990
990
  version: z12.string(),
991
991
  latestVersion: z12.string().optional(),
992
- /** Boot root path in local mode; trimmed to a basename when `capabilities.localHandoff` is false. */
993
- repoRoot: z12.string(),
994
- /** Boot repository facts; `repo.root` is trimmed to a basename when `capabilities.localHandoff` is false. */
992
+ /** Boot root path in local mode; trimmed to a basename when `capabilities.localHandoff` is false;
993
+ * `null` when started with no boot project (`--no-project`). */
994
+ repoRoot: z12.string().nullable(),
995
+ /** Boot repository facts; `repo.root` is trimmed to a basename when `capabilities.localHandoff` is false;
996
+ * `null` outside a repository or when started with no boot project. */
995
997
  repo: repoInfoSchema.nullable(),
996
998
  checks: z12.array(backendCheckSchema),
997
999
  defaultRunner: runnerSchema,
998
1000
  forge: forgeInfoSchema.nullable(),
999
1001
  capabilities: capabilitiesSchema,
1000
1002
  // Always sent: `workspaceSummary()` returns both unconditionally, and an unreadable workspace
1001
- // degrades to `projects: []` rather than to an absent key. The hand-written DTO declared them
1002
- // optional, which was wider than the server has ever been.
1003
+ // degrades to `projects: []` rather than to an absent key. `bootProject` is `null` when started
1004
+ // with no boot project (`--no-project`).
1003
1005
  projects: z12.array(z12.object({ id: z12.string(), name: z12.string() })),
1004
- bootProject: z12.string(),
1006
+ bootProject: z12.string().nullable(),
1005
1007
  plugins: pluginsHealthSchema
1006
1008
  });
1007
1009
 
@@ -3596,9 +3598,11 @@ var projectListEntrySchema = z26.object({
3596
3598
  * for clients that know one webhook only. */
3597
3599
  webhooks: z26.array(projectWebhookSchema).optional()
3598
3600
  });
3601
+ var NO_BOOT_PROJECT_ERROR_CODE = "no-boot-project";
3602
+ var noBootProjectErrorCodeSchema = z26.literal(NO_BOOT_PROJECT_ERROR_CODE);
3599
3603
  var projectsResponseSchema = z26.object({
3600
3604
  projects: z26.array(projectListEntrySchema),
3601
- bootProject: z26.string(),
3605
+ bootProject: z26.string().nullable(),
3602
3606
  projectsDir: z26.string()
3603
3607
  });
3604
3608
  var registerProjectResponseSchema = z26.object({
@@ -4073,6 +4077,10 @@ var openProjectInResponseSchema = z28.object({
4073
4077
  opened: z28.literal(true),
4074
4078
  path: z28.string()
4075
4079
  });
4080
+ var workspaceIdentityResponseSchema = z28.object({
4081
+ installId: z28.uuid(),
4082
+ version: z28.string()
4083
+ });
4076
4084
 
4077
4085
  // ../contract/src/skills.ts
4078
4086
  import { z as z29 } from "zod";
@@ -6388,7 +6396,7 @@ function controlLocation(control, separator = " \u2192 ") {
6388
6396
 
6389
6397
  // ../contract/src/home-recovery.ts
6390
6398
  import { z as z56 } from "zod";
6391
- var HOME_FILE_PATTERN = /^(?:(?:config\.json(?:\.bak)?|agent-accounts\.json|ui-state\.json|server\.json|server\.install\.lock)|(?:remote-settings|server-instances)\/[a-zA-Z0-9-]+\.(?:json|install\.lock)|mcp-tokens\/[a-zA-Z0-9-]+\.json)$/;
6399
+ var HOME_FILE_PATTERN = /^(?:(?:config\.json(?:\.bak)?|agent-accounts\.json|hosts\.json|ui-state\.json|server\.json|server\.install\.lock)|(?:remote-settings|server-instances)\/[a-zA-Z0-9-]+\.(?:json|install\.lock)|mcp-tokens\/[a-zA-Z0-9-]+\.json)$/;
6392
6400
  var homeFileSchema = z56.string().regex(HOME_FILE_PATTERN);
6393
6401
  var recoveryFile = z56.object({
6394
6402
  file: homeFileSchema,
@@ -6489,6 +6497,108 @@ var agentToolMetadataSchema = z60.object({
6489
6497
  inputSchema: z60.object({ type: z60.literal("object"), properties: z60.record(z60.string(), z60.unknown()).optional() }).catchall(z60.unknown())
6490
6498
  });
6491
6499
  var agentToolCatalogSchema = z60.object({ tools: z60.array(agentToolMetadataSchema), instructions: z60.string() });
6500
+
6501
+ // ../contract/src/hosts.ts
6502
+ import { z as z61 } from "zod";
6503
+ var HOST_ID_PATTERN = /^[a-z0-9][a-z0-9-]{0,31}$/;
6504
+ var LOCAL_HOST_ID = "local";
6505
+ var CONTROL_CHARS_PATTERN = /[\u0000-\u001f\u007f]/;
6506
+ var INVALID_SSH_ALIAS_CHARS = /[\s*?![\]\\'"`]/;
6507
+ var hostIdSchema = z61.string().regex(HOST_ID_PATTERN, "host id must match ^[a-z0-9][a-z0-9-]{0,31}$").refine((value) => value !== LOCAL_HOST_ID, {
6508
+ message: `host id "${LOCAL_HOST_ID}" is reserved`
6509
+ });
6510
+ var hostLabelSchema = z61.string().trim().min(1, "label must not be empty").max(255, "label must be at most 255 characters").refine((value) => !CONTROL_CHARS_PATTERN.test(value), {
6511
+ message: "label must not contain control characters"
6512
+ });
6513
+ var hostSshAliasSchema = z61.string().min(1, "sshAlias must not be empty").max(255, "sshAlias must be at most 255 characters").refine((value) => !CONTROL_CHARS_PATTERN.test(value), {
6514
+ message: "sshAlias must not contain control characters"
6515
+ }).refine((value) => !INVALID_SSH_ALIAS_CHARS.test(value), {
6516
+ message: "sshAlias must not contain whitespace, quotes, or wildcard characters"
6517
+ }).refine((value) => !value.startsWith("-"), {
6518
+ message: 'sshAlias must not start with "-"'
6519
+ });
6520
+ var hostPortSchema = z61.number().int("port must be an integer").min(1, "port must be between 1 and 65535").max(65535, "port must be between 1 and 65535");
6521
+ function slugHostId(sshAlias) {
6522
+ return sshAlias.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 32).replace(/-+$/g, "");
6523
+ }
6524
+ var HOST_STATES = ["unreachable"];
6525
+ var hostStateSchema = z61.enum(HOST_STATES);
6526
+ var HOST_NOT_CONNECTED_REASON = "not connected yet";
6527
+ var hostEntrySchema = z61.object({
6528
+ id: hostIdSchema,
6529
+ label: hostLabelSchema,
6530
+ kind: z61.literal("ssh"),
6531
+ sshAlias: hostSshAliasSchema,
6532
+ installId: z61.string().min(1).max(128).optional(),
6533
+ port: hostPortSchema.optional(),
6534
+ addedAt: z61.iso.datetime()
6535
+ });
6536
+ var hostsRegistryFileSchema = z61.object({
6537
+ hosts: z61.array(hostEntrySchema)
6538
+ }).superRefine((data, ctx) => {
6539
+ const seen = /* @__PURE__ */ new Set();
6540
+ for (const [index, entry] of data.hosts.entries()) {
6541
+ if (seen.has(entry.id)) {
6542
+ ctx.addIssue({
6543
+ code: "custom",
6544
+ path: ["hosts", index, "id"],
6545
+ message: `duplicate host id "${entry.id}"`
6546
+ });
6547
+ }
6548
+ seen.add(entry.id);
6549
+ }
6550
+ });
6551
+ var hostSummarySchema = z61.object({
6552
+ id: hostIdSchema,
6553
+ label: hostLabelSchema,
6554
+ state: hostStateSchema,
6555
+ reason: z61.string().optional(),
6556
+ kind: z61.literal("ssh").optional(),
6557
+ sshAlias: hostSshAliasSchema.optional(),
6558
+ installId: z61.string().min(1).max(128).optional(),
6559
+ port: hostPortSchema.optional(),
6560
+ addedAt: z61.iso.datetime().optional()
6561
+ });
6562
+ var hostsListResponseSchema = z61.object({
6563
+ hosts: z61.array(hostSummarySchema),
6564
+ warning: z61.string().optional(),
6565
+ sshSuggestions: z61.array(hostSshAliasSchema).optional()
6566
+ });
6567
+ var hostRouteParamsSchema = z61.object({
6568
+ id: hostIdSchema
6569
+ });
6570
+ var createHostInputSchema = z61.object({
6571
+ sshAlias: hostSshAliasSchema,
6572
+ id: hostIdSchema.optional(),
6573
+ label: hostLabelSchema.optional(),
6574
+ port: hostPortSchema.optional()
6575
+ }).strict().superRefine((data, ctx) => {
6576
+ if (data.id !== void 0) return;
6577
+ const derived = slugHostId(data.sshAlias);
6578
+ const parsed = hostIdSchema.safeParse(derived);
6579
+ if (!parsed.success) {
6580
+ ctx.addIssue({
6581
+ code: "custom",
6582
+ path: ["id"],
6583
+ message: parsed.error.issues[0]?.message ?? `cannot derive valid host id from "${data.sshAlias}"; provide id explicitly`
6584
+ });
6585
+ }
6586
+ });
6587
+ var updateHostInputSchema = z61.object({
6588
+ label: hostLabelSchema.optional(),
6589
+ sshAlias: hostSshAliasSchema.optional(),
6590
+ port: hostPortSchema.nullable().optional()
6591
+ }).strict().refine(
6592
+ (data) => data.label !== void 0 || data.sshAlias !== void 0 || data.port !== void 0,
6593
+ { message: "at least one of label, sshAlias, or port must be provided" }
6594
+ );
6595
+ var hostResponseSchema = z61.object({
6596
+ host: hostSummarySchema
6597
+ });
6598
+ var removeHostResponseSchema = z61.object({
6599
+ removed: z61.literal(true),
6600
+ id: hostIdSchema
6601
+ });
6492
6602
  export {
6493
6603
  ACTIVITY_CHECKS_MAX,
6494
6604
  ACTIVITY_CHECK_NAME_MAX,
@@ -6525,6 +6635,9 @@ export {
6525
6635
  HANDOFF_AUTOSAVE_RECORDS_MAX,
6526
6636
  HOME_FILE_PATTERN,
6527
6637
  HOME_RECOVERY_REASONS,
6638
+ HOST_ID_PATTERN,
6639
+ HOST_NOT_CONNECTED_REASON,
6640
+ HOST_STATES,
6528
6641
  HUMAN_ASK_EVENT_TYPES,
6529
6642
  ISOLATED_BASELINE_REFUSAL,
6530
6643
  LAST_WAITS_LIMIT,
@@ -6534,9 +6647,11 @@ export {
6534
6647
  LIVE_PROTOCOL,
6535
6648
  LIVE_RUN_LIMIT,
6536
6649
  LIVE_WORKER_NAME,
6650
+ LOCAL_HOST_ID,
6537
6651
  MAX_CONVERSATION_REQUEST_SECONDS,
6538
6652
  MAX_RESUME_REQUEST_SECONDS,
6539
6653
  NOTE_MAX,
6654
+ NO_BOOT_PROJECT_ERROR_CODE,
6540
6655
  ONCE_MAX_LATEST_START_MINUTES,
6541
6656
  ONCE_MIN_LATEST_START_MINUTES,
6542
6657
  ONCE_PAST_DUE_MESSAGE,
@@ -6747,6 +6862,7 @@ export {
6747
6862
  createAgentProfileInputSchema,
6748
6863
  createAgentProfileSchema,
6749
6864
  createAutomationInputSchema,
6865
+ createHostInputSchema,
6750
6866
  createPrResponseSchema,
6751
6867
  createProjectInputSchema,
6752
6868
  createProjectResponseSchema,
@@ -6839,6 +6955,17 @@ export {
6839
6955
  homeRecoveryReaderSchema,
6840
6956
  homeRecoverySchema,
6841
6957
  hostDiscoveryRequestSchema,
6958
+ hostEntrySchema,
6959
+ hostIdSchema,
6960
+ hostLabelSchema,
6961
+ hostPortSchema,
6962
+ hostResponseSchema,
6963
+ hostRouteParamsSchema,
6964
+ hostSshAliasSchema,
6965
+ hostStateSchema,
6966
+ hostSummarySchema,
6967
+ hostsListResponseSchema,
6968
+ hostsRegistryFileSchema,
6842
6969
  humanAskClosedEventSchema,
6843
6970
  humanInputDeliveredEventSchema,
6844
6971
  humanWaitEntrySchema,
@@ -6896,6 +7023,7 @@ export {
6896
7023
  needsYou,
6897
7024
  nextLineIndex,
6898
7025
  nextOccurrence,
7026
+ noBootProjectErrorCodeSchema,
6899
7027
  normalizeSchedule,
6900
7028
  normalizeSidebarLimits,
6901
7029
  notifyRunInputSchema,
@@ -7011,6 +7139,7 @@ export {
7011
7139
  registerProjectResponseSchema,
7012
7140
  relatedRunTitleSchema,
7013
7141
  removeAgentProfileResponseSchema,
7142
+ removeHostResponseSchema,
7014
7143
  removeProjectResponseSchema,
7015
7144
  removeQueuedMessageResponseSchema,
7016
7145
  removeWorktreeResponseSchema,
@@ -7130,6 +7259,7 @@ export {
7130
7259
  sharedWorkspaceSchema,
7131
7260
  sidebarLimitsSchema,
7132
7261
  skillSchema,
7262
+ slugHostId,
7133
7263
  spawnGrantSchema,
7134
7264
  sqlPrefilterTokens,
7135
7265
  squawkAskAnswerSchema,
@@ -7177,6 +7307,7 @@ export {
7177
7307
  updateAgentProfileInputSchema,
7178
7308
  updateAgentProfileSchema,
7179
7309
  updateAutomationInputSchema,
7310
+ updateHostInputSchema,
7180
7311
  updateProjectInputSchema,
7181
7312
  updateProjectResponseSchema,
7182
7313
  updateProjectWebhookInputSchema,
@@ -7260,6 +7391,7 @@ export {
7260
7391
  workflowsResponseSchema,
7261
7392
  workspaceConfigResponseSchema,
7262
7393
  workspaceEventsQuerySchema,
7394
+ workspaceIdentityResponseSchema,
7263
7395
  workspaceLastLocationSchema,
7264
7396
  workspaceReadyEventSchema,
7265
7397
  workspaceRunDeletedEventSchema,
@@ -105,9 +105,15 @@ export declare const projectListEntrySchema: z.ZodObject<{
105
105
  }, z.core.$strip>>>;
106
106
  }, z.core.$strip>;
107
107
  export type ProjectListEntry = z.infer<typeof projectListEntrySchema>;
108
+ /** Error code returned (HTTP 409) when an unscoped or `default`-aliased project route
109
+ * reaches a server started with no boot project (hearsay-tools/squawk#4538). */
110
+ export declare const NO_BOOT_PROJECT_ERROR_CODE: 'no-boot-project';
111
+ export declare const noBootProjectErrorCodeSchema: z.ZodLiteral<"no-boot-project">;
112
+ export type NoBootProjectErrorCode = z.infer<typeof noBootProjectErrorCodeSchema>;
108
113
  /** `GET /api/v1/projects` — the workspace registry. Workspace-level: never 404s, never scoped.
109
114
  * An unreadable workspace degrades to `projects: []` plus the default `projectsDir`, so all
110
- * three keys are always present. */
115
+ * three keys are always present. `bootProject` is `null` on a server started with no boot
116
+ * project (`--no-project`). */
111
117
  export declare const projectsResponseSchema: z.ZodObject<{
112
118
  projects: z.ZodArray<z.ZodObject<{
113
119
  id: z.ZodString;
@@ -165,7 +171,7 @@ export declare const projectsResponseSchema: z.ZodObject<{
165
171
  agent: z.ZodBoolean;
166
172
  }, z.core.$strip>>>;
167
173
  }, z.core.$strip>>;
168
- bootProject: z.ZodString;
174
+ bootProject: z.ZodNullable<z.ZodString>;
169
175
  projectsDir: z.ZodString;
170
176
  }, z.core.$strip>;
171
177
  export type ProjectsResponse = z.infer<typeof projectsResponseSchema>;
@@ -507,3 +507,13 @@ export declare const openProjectInResponseSchema: z.ZodObject<{
507
507
  path: z.ZodString;
508
508
  }, z.core.$strip>;
509
509
  export type OpenProjectInResponse = z.infer<typeof openProjectInResponseSchema>;
510
+ /**
511
+ * `GET /api/v1/workspace/identity` — the home's install id (`home/install-marker.ts`) and server
512
+ * version, used by multi-host verification to confirm a tunnel reaches the expected machine and
513
+ * matching Squawk version (spec `.ai/specs/2026-11-30-multi-host-cockpit.md` § Architecture 1).
514
+ */
515
+ export declare const workspaceIdentityResponseSchema: z.ZodObject<{
516
+ installId: z.ZodUUID;
517
+ version: z.ZodString;
518
+ }, z.core.$strip>;
519
+ export type WorkspaceIdentityResponse = z.infer<typeof workspaceIdentityResponseSchema>;
@@ -12,6 +12,7 @@ export interface RootCommandContext {
12
12
  workflow?: string;
13
13
  model?: string;
14
14
  'no-open'?: boolean;
15
+ 'no-project'?: boolean;
15
16
  'no-workers'?: boolean;
16
17
  'no-messaging'?: boolean;
17
18
  platform?: string;
@@ -61,7 +61,8 @@ export interface ServerStartContext {
61
61
  /** Shared cockpit services exposed to server hooks and HTTP route bundles. */
62
62
  export interface ServerPluginContext {
63
63
  readonly home: Home;
64
- readonly bootProjectId: string;
64
+ /** Boot project id, or `undefined` on a server started with no boot project. */
65
+ readonly bootProjectId?: string | undefined;
65
66
  readonly capabilities: () => Readonly<Record<string, boolean | undefined>>;
66
67
  readonly modelCatalog: RunnerModelCatalog;
67
68
  readonly providerStatus: (options?: {
@@ -69,7 +70,8 @@ export interface ServerPluginContext {
69
70
  }) => Promise<ProviderStatusResponse>;
70
71
  readonly workspaceEvents: ServerWorkspaceEventsPort;
71
72
  readonly projects: {
72
- readonly boot: ServerProjectHandle;
73
+ /** Boot project handle, or `undefined` on a server started with no boot project. */
74
+ readonly boot?: ServerProjectHandle | undefined;
73
75
  list(): Promise<readonly ServerProjectEntry[]>;
74
76
  peek(projectId: string): ServerProjectHandle | undefined;
75
77
  ids(): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"server-hook-registry.js","sourceRoot":"","sources":["../../src/core/server-hook-registry.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAUpD,MAAM,UAAU,wBAAwB,CAAC,OAA2C;IAClF,MAAM,KAAK,GAAG,IAAI,GAAG,CAAkB,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACtF,OAAO;QACL,GAAG,EAAE,CAAc,GAAW,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAkB;QAClE,GAAG,EAAE,CAAc,GAAW,EAAE,KAAQ,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QACvE,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;KAC3C,CAAC;AACJ,CAAC;AA8ED,MAAM,cAAc,GAAG;IACrB,cAAc;IACd,cAAc;IACd,uBAAuB;IACvB,0BAA0B;IAC1B,iBAAiB;CACT,CAAC;AAEX,MAAM,KAAK,GAAG,mBAAmB,CAA+B;IAC9D,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,oIAAoI;CAC/I,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,IAA0B;IA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AC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,eAAe,KAAW,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAEzD,oDAAoD;AACpD,MAAM,UAAU,iBAAiB,KAAc,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEzE,0EAA0E;AAC1E,MAAM,UAAU,qBAAqB;IACnC,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;AACxB,CAAC"}
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
+ output: {
31
+ error: string;
32
+ code?: "invalid_input" | undefined;
33
+ };
34
+ outputFormat: "json";
35
+ status: 400;
36
+ input: {
37
+ query: {
38
+ offset?: string | undefined;
39
+ };
40
+ };
41
+ } | {
30
42
  output: {
31
43
  workers: {
32
44
  workerId: string;
@@ -79,18 +91,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
79
91
  offset?: string | undefined;
80
92
  };
81
93
  };
82
- } | {
83
- output: {
84
- error: string;
85
- code?: "invalid_input" | undefined;
86
- };
87
- outputFormat: "json";
88
- status: 400;
89
- input: {
90
- query: {
91
- offset?: string | undefined;
92
- };
93
- };
94
94
  };
95
95
  };
96
96
  } & {
@@ -247,13 +247,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
247
247
  status: 200;
248
248
  input: {
249
249
  json: {
250
- workerIds: string[];
251
- timeoutSeconds?: number | undefined;
252
- mode?: "all" | "any" | "one" | undefined;
253
- } | {
254
250
  requestIds: string[];
255
251
  mode?: "all" | "any" | "one" | undefined;
256
252
  timeoutSeconds?: number | undefined;
253
+ } | {
254
+ workerIds: string[];
255
+ timeoutSeconds?: number | undefined;
256
+ mode?: "all" | "any" | "one" | undefined;
257
257
  } | {
258
258
  peerIds: string[];
259
259
  timeoutSeconds?: number | undefined;
@@ -677,6 +677,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
677
677
  } & {
678
678
  "/:workerId": {
679
679
  $get: {
680
+ output: {
681
+ error: string;
682
+ code?: "invalid_input" | undefined;
683
+ };
684
+ outputFormat: "json";
685
+ status: 400;
686
+ input: {
687
+ param: {
688
+ workerId: string;
689
+ };
690
+ };
691
+ } | {
680
692
  output: {
681
693
  workerId: string;
682
694
  settled: boolean;
@@ -801,7 +813,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
801
813
  workerId: string;
802
814
  };
803
815
  };
804
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
805
821
  output: {
806
822
  error: string;
807
823
  code?: "invalid_input" | undefined;
@@ -812,12 +828,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
812
828
  param: {
813
829
  workerId: string;
814
830
  };
831
+ } & {
832
+ json: Record<string, never>;
815
833
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
834
+ } | {
821
835
  output: {
822
836
  workerId: string;
823
837
  parentRunId: string;
@@ -942,7 +956,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
942
956
  } & {
943
957
  json: Record<string, never>;
944
958
  };
945
- } | {
959
+ };
960
+ };
961
+ } & {
962
+ "/:workerId/steer": {
963
+ $post: {
946
964
  output: {
947
965
  error: string;
948
966
  code?: "invalid_input" | undefined;
@@ -954,13 +972,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
954
972
  workerId: string;
955
973
  };
956
974
  } & {
957
- json: Record<string, never>;
975
+ json: {
976
+ text: string;
977
+ };
958
978
  };
959
- };
960
- };
961
- } & {
962
- "/:workerId/steer": {
963
- $post: {
979
+ } | {
964
980
  output: {
965
981
  workerId: string;
966
982
  state: "delivered" | "queued";
@@ -976,7 +992,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
976
992
  text: string;
977
993
  };
978
994
  };
979
- } | {
995
+ };
996
+ };
997
+ } & {
998
+ "/:workerId/stop": {
999
+ $post: {
980
1000
  output: {
981
1001
  error: string;
982
1002
  code?: "invalid_input" | undefined;
@@ -988,15 +1008,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
988
1008
  workerId: string;
989
1009
  };
990
1010
  } & {
991
- json: {
992
- text: string;
993
- };
1011
+ json: Record<string, never>;
994
1012
  };
995
- };
996
- };
997
- } & {
998
- "/:workerId/stop": {
999
- $post: {
1013
+ } | {
1000
1014
  output: {
1001
1015
  workerId: string;
1002
1016
  state: "stopping" | "terminated";
@@ -1010,7 +1024,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1010
1024
  } & {
1011
1025
  json: Record<string, never>;
1012
1026
  };
1013
- } | {
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/:workerId/destroy": {
1031
+ $post: {
1014
1032
  output: {
1015
1033
  error: string;
1016
1034
  code?: "invalid_input" | undefined;
@@ -1022,13 +1040,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1022
1040
  workerId: string;
1023
1041
  };
1024
1042
  } & {
1025
- json: Record<string, never>;
1043
+ json: {
1044
+ discardWork?: true | undefined;
1045
+ };
1026
1046
  };
1027
- };
1028
- };
1029
- } & {
1030
- "/:workerId/destroy": {
1031
- $post: {
1047
+ } | {
1032
1048
  output: {
1033
1049
  workerId: string;
1034
1050
  state: "complete" | "incomplete";
@@ -1057,22 +1073,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1057
1073
  discardWork?: true | undefined;
1058
1074
  };
1059
1075
  };
1060
- } | {
1061
- output: {
1062
- error: string;
1063
- code?: "invalid_input" | undefined;
1064
- };
1065
- outputFormat: "json";
1066
- status: 400;
1067
- input: {
1068
- param: {
1069
- workerId: string;
1070
- };
1071
- } & {
1072
- json: {
1073
- discardWork?: true | undefined;
1074
- };
1075
- };
1076
1076
  } | {
1077
1077
  output: {
1078
1078
  workerId: string;
@@ -1108,18 +1108,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1108
1108
  "/:workerId/summary": {
1109
1109
  $post: {
1110
1110
  output: {
1111
- workerId: string;
1112
- revision: number;
1113
- source: "assistant" | "failure";
1114
- seq: number;
1115
- totalLines: number;
1116
- offset: number;
1117
- lineCount: number;
1118
- text: string;
1119
- nextOffset?: number | undefined;
1111
+ error: string;
1112
+ code?: "invalid_input" | undefined;
1120
1113
  };
1121
1114
  outputFormat: "json";
1122
- status: 200;
1115
+ status: 400;
1123
1116
  input: {
1124
1117
  param: {
1125
1118
  workerId: string;
@@ -1132,11 +1125,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1132
1125
  };
1133
1126
  } | {
1134
1127
  output: {
1135
- error: string;
1136
- code?: "invalid_input" | undefined;
1128
+ workerId: string;
1129
+ revision: number;
1130
+ source: "assistant" | "failure";
1131
+ seq: number;
1132
+ totalLines: number;
1133
+ offset: number;
1134
+ lineCount: number;
1135
+ text: string;
1136
+ nextOffset?: number | undefined;
1137
1137
  };
1138
1138
  outputFormat: "json";
1139
- status: 400;
1139
+ status: 200;
1140
1140
  input: {
1141
1141
  param: {
1142
1142
  workerId: string;
@@ -1153,13 +1153,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1153
1153
  "/:workerId/diff": {
1154
1154
  $get: {
1155
1155
  output: {
1156
- workerId: string;
1157
- baselineSha: string;
1158
- diff: string;
1159
- truncated: boolean;
1156
+ error: string;
1157
+ code?: "invalid_input" | undefined;
1160
1158
  };
1161
1159
  outputFormat: "json";
1162
- status: 200;
1160
+ status: 400;
1163
1161
  input: {
1164
1162
  param: {
1165
1163
  workerId: string;
@@ -1167,11 +1165,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1167
1165
  };
1168
1166
  } | {
1169
1167
  output: {
1170
- error: string;
1171
- code?: "invalid_input" | undefined;
1168
+ workerId: string;
1169
+ baselineSha: string;
1170
+ diff: string;
1171
+ truncated: boolean;
1172
1172
  };
1173
1173
  outputFormat: "json";
1174
- status: 400;
1174
+ status: 200;
1175
1175
  input: {
1176
1176
  param: {
1177
1177
  workerId: string;
@@ -72,16 +72,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
72
72
  "/discover": {
73
73
  $post: {
74
74
  output: {
75
- scope: "host-default-account";
76
- runners: {
77
- requiresAccountHome?: boolean | undefined;
78
- status: "connected" | "disconnected" | "not-installed" | "unknown";
79
- enabled?: boolean | undefined;
80
- hint?: string | undefined;
81
- authFailureId?: string | undefined;
82
- runner: string;
83
- }[];
84
- } | {
85
75
  runner: string;
86
76
  models: {
87
77
  id: string;
@@ -92,6 +82,16 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
92
82
  source: "cache" | "live" | "unavailable";
93
83
  stale: boolean;
94
84
  reason?: string | undefined;
85
+ } | {
86
+ scope: "host-default-account";
87
+ runners: {
88
+ requiresAccountHome?: boolean | undefined;
89
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
90
+ enabled?: boolean | undefined;
91
+ hint?: string | undefined;
92
+ authFailureId?: string | undefined;
93
+ runner: string;
94
+ }[];
95
95
  } | {
96
96
  tasks: {
97
97
  id: string;
@@ -222,13 +222,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
222
222
  status: 200;
223
223
  input: {
224
224
  json: {
225
- requestIds: string[];
226
- mode?: "all" | "any" | "one" | undefined;
227
- timeoutSeconds?: number | undefined;
228
- } | {
229
225
  workerIds: string[];
230
226
  timeoutSeconds?: number | undefined;
231
227
  mode?: "all" | "any" | "one" | undefined;
228
+ } | {
229
+ requestIds: string[];
230
+ mode?: "all" | "any" | "one" | undefined;
231
+ timeoutSeconds?: number | undefined;
232
232
  } | {
233
233
  peerIds: string[];
234
234
  timeoutSeconds?: number | undefined;