@hearsay-tools/squawk 0.19.0-pr4578.9093 → 0.19.0-pr4579.9094

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 (105) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/contract/hosts.d.ts +47 -5
  3. package/dist/contract/index.js +19 -1
  4. package/dist/delegation/transport.d.ts +78 -78
  5. package/dist/features/automations/automations-routes.d.ts +150 -150
  6. package/dist/features/hosts/bootstrap.d.ts +120 -0
  7. package/dist/features/hosts/bootstrap.js +446 -0
  8. package/dist/features/hosts/bootstrap.js.map +1 -0
  9. package/dist/features/hosts/cli.d.ts +13 -3
  10. package/dist/features/hosts/cli.js +199 -27
  11. package/dist/features/hosts/cli.js.map +1 -1
  12. package/dist/features/hosts/host-actions.d.ts +56 -0
  13. package/dist/features/hosts/host-actions.js +367 -0
  14. package/dist/features/hosts/host-actions.js.map +1 -0
  15. package/dist/features/hosts/host-server-cli.js +21 -3
  16. package/dist/features/hosts/host-server-cli.js.map +1 -1
  17. package/dist/features/hosts/host-server.d.ts +10 -1
  18. package/dist/features/hosts/host-server.js +74 -0
  19. package/dist/features/hosts/host-server.js.map +1 -1
  20. package/dist/features/hosts/index.d.ts +4 -2
  21. package/dist/features/hosts/index.js +14 -2
  22. package/dist/features/hosts/index.js.map +1 -1
  23. package/dist/features/hosts/registry.d.ts +19 -0
  24. package/dist/features/hosts/registry.js +33 -1
  25. package/dist/features/hosts/registry.js.map +1 -1
  26. package/dist/features/hosts/routes.d.ts +47 -45
  27. package/dist/features/hosts/routes.js +14 -7
  28. package/dist/features/hosts/routes.js.map +1 -1
  29. package/dist/features/hosts/ssh.d.ts +85 -0
  30. package/dist/features/hosts/ssh.js +271 -0
  31. package/dist/features/hosts/ssh.js.map +1 -0
  32. package/dist/features/hosts/supervisor.d.ts +191 -0
  33. package/dist/features/hosts/supervisor.js +620 -0
  34. package/dist/features/hosts/supervisor.js.map +1 -0
  35. package/dist/features/hosts/tunnel.d.ts +46 -0
  36. package/dist/features/hosts/tunnel.js +244 -0
  37. package/dist/features/hosts/tunnel.js.map +1 -0
  38. package/dist/features/webhooks/routes.d.ts +38 -38
  39. package/dist/server/activity-routes.d.ts +23 -23
  40. package/dist/server/projects-routes.d.ts +41 -41
  41. package/dist/server/repo-routes.d.ts +52 -52
  42. package/dist/server/runs-routes.d.ts +311 -311
  43. package/package.json +4 -4
  44. package/web/dist/assets/{accounts-section-CLnkMf9Y.js → accounts-section-DrA0kndh.js} +1 -1
  45. package/web/dist/assets/{activity-motion-Bf8p17fw.js → activity-motion-C23PnhhH.js} +1 -1
  46. package/web/dist/assets/{activity-route-CGZexNrj.js → activity-route-CWGPbwtG.js} +1 -1
  47. package/web/dist/assets/{agent-config-section-SM06YDCS.js → agent-config-section-DWZQ2DSW.js} +1 -1
  48. package/web/dist/assets/{agent-defaults-section-DazCCmim.js → agent-defaults-section-Da4tKbp7.js} +1 -1
  49. package/web/dist/assets/{appearance-DT8icy49.js → appearance-Bm4ePfiH.js} +1 -1
  50. package/web/dist/assets/{archive-on-merge-field-CrRKYxUc.js → archive-on-merge-field-DuRmMR6k.js} +1 -1
  51. package/web/dist/assets/{ask-card-BO6qFXm5.js → ask-card-vM_Z-WAg.js} +3 -3
  52. package/web/dist/assets/{automations-route-Bgl9pU9s.js → automations-route-B8zD3wux.js} +2 -2
  53. package/web/dist/assets/{commit-list-rnA8oEu7.js → commit-list-lwVhwbS8.js} +1 -1
  54. package/web/dist/assets/{diff-BDT6hCfi.js → diff-CC5UqjNZ.js} +2 -2
  55. package/web/dist/assets/{diff-controls-CfyFKHfp.js → diff-controls-C8KWZ5S-.js} +1 -1
  56. package/web/dist/assets/{diff-view-CZOEG_vS.js → diff-view-DiuQQoKq.js} +1 -1
  57. package/web/dist/assets/{discard-changes-dialog-eqAzcFIP.js → discard-changes-dialog-CX7M4k9n.js} +1 -1
  58. package/web/dist/assets/{file-preview-CEtqUu1_.js → file-preview-C_0CRYAr.js} +1 -1
  59. package/web/dist/assets/{git-toolbar-BJ4k58uN.js → git-toolbar-PM540i_A.js} +1 -1
  60. package/web/dist/assets/{github-AI8DON5W.js → github-CeBvZzjo.js} +1 -1
  61. package/web/dist/assets/{global-activity-route-CYudpzqf.js → global-activity-route-CiTt7W6o.js} +1 -1
  62. package/web/dist/assets/index-UFO7Bk2I.js +21 -0
  63. package/web/dist/assets/{markdown-DcqPD092.js → markdown-CqzDs1kO.js} +1 -1
  64. package/web/dist/assets/{option-select-Bz-LXNNQ.js → option-select-CDOKbUov.js} +1 -1
  65. package/web/dist/assets/{preferences-section-CGWKsQaN.js → preferences-section-cdbIMfEU.js} +1 -1
  66. package/web/dist/assets/{preview-pane-connected-Dp6chQ9T.js → preview-pane-connected-BcU9ryyW.js} +2 -2
  67. package/web/dist/assets/{project-location-D87BO0Az.js → project-location-BpBbcl3v.js} +1 -1
  68. package/web/dist/assets/{projects-section-DEcw3tcg.js → projects-section-CX1WJq4d.js} +1 -1
  69. package/web/dist/assets/{prompt-templates-section-CZ3mwLGA.js → prompt-templates-section-DrQthAY7.js} +2 -2
  70. package/web/dist/assets/{remote-settings-notice-DPyTidpM.js → remote-settings-notice-_MtFnktv.js} +1 -1
  71. package/web/dist/assets/repo-git-5JS3oL12.js +1 -0
  72. package/web/dist/assets/{report-reader-QuwMlYlN.js → report-reader-iboN3k6l.js} +1 -1
  73. package/web/dist/assets/reports-Cn3kWlK7.js +1 -0
  74. package/web/dist/assets/{resources-section-BDfW_U-Q.js → resources-section-BmDbIpaO.js} +1 -1
  75. package/web/dist/assets/{review-notes-drafts-CznicydI.js → review-notes-drafts-DXxIudVB.js} +1 -1
  76. package/web/dist/assets/{review-panel-t7TL1ueV.js → review-panel-BjWbFGev.js} +1 -1
  77. package/web/dist/assets/{review-strip-DYkQFENp.js → review-strip-QIghY88F.js} +1 -1
  78. package/web/dist/assets/run-header-BWLcG57S.js +2 -0
  79. package/web/dist/assets/{select-B_HhIQYH.js → select-BxuV2GlN.js} +1 -1
  80. package/web/dist/assets/{session-context-section-D6MbNI9-.js → session-context-section-OLW5UTvx.js} +2 -2
  81. package/web/dist/assets/{settings-agent-picker-Yb3AJVQ5.js → settings-agent-picker-Dasyc6Qo.js} +1 -1
  82. package/web/dist/assets/{settings-save-bar-B4Md3B2d.js → settings-save-bar-Mrc6Vm7P.js} +1 -1
  83. package/web/dist/assets/settings-shell-DWRk12-i.js +1 -0
  84. package/web/dist/assets/{sidebar-section-VDOzqWqR.js → sidebar-section-CVNvjM29.js} +1 -1
  85. package/web/dist/assets/{skills-lCWclvCy.js → skills-7MwCp2i_.js} +1 -1
  86. package/web/dist/assets/{task-changes-B9h5Bi3y.js → task-changes-DSZjztX7.js} +1 -1
  87. package/web/dist/assets/{task-commits-DDzQ6WAo.js → task-commits-P_ElCQ4M.js} +1 -1
  88. package/web/dist/assets/{task-file-scope-c_-kBjcb.js → task-file-scope-B63NmSov.js} +1 -1
  89. package/web/dist/assets/{task-files-D_uLYdfF.js → task-files-CSFB6sG7.js} +1 -1
  90. package/web/dist/assets/{task-github-item-D0h2g-Dx.js → task-github-item-BJ1rGyc6.js} +1 -1
  91. package/web/dist/assets/{task-thread-DKJlg2qV.js → task-thread-C0DbAGi_.js} +1 -1
  92. package/web/dist/assets/{thread-state-D0pqmjdQ.js → thread-state-B7pyjJYO.js} +1 -1
  93. package/web/dist/assets/{use-finish-run-BkJKvLp-.js → use-finish-run-B1Gy5JPt.js} +1 -1
  94. package/web/dist/assets/{use-hand-to-agent-state-YKfHgLX8.js → use-hand-to-agent-state-CMyKCFeb.js} +1 -1
  95. package/web/dist/assets/use-path-bases-wGc__G57.js +1 -0
  96. package/web/dist/assets/{workflows-DgZZD4xf.js → workflows-seQiL2pi.js} +3 -3
  97. package/web/dist/assets/{workspace-tools-C3j3uiu1.js → workspace-tools-BDf7nsE5.js} +1 -1
  98. package/web/dist/assets/{worktrees-section-BgWYe-k0.js → worktrees-section-x7r5wRhx.js} +1 -1
  99. package/web/dist/index.html +1 -1
  100. package/web/dist/assets/index-BTPIm4Wn.js +0 -21
  101. package/web/dist/assets/repo-git-D-m1jroM.js +0 -1
  102. package/web/dist/assets/reports-A42l2-lt.js +0 -1
  103. package/web/dist/assets/run-header-C4GYsso9.js +0 -2
  104. package/web/dist/assets/settings-shell-DVqXNhsB.js +0 -1
  105. package/web/dist/assets/use-path-bases-B5pKcyRQ.js +0 -1
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: {
125
- code: string;
126
- message: string;
127
- };
124
+ output: never;
128
125
  outputFormat: "json";
129
- status: 401;
126
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
127
  input: {
131
128
  json: unknown;
132
129
  } & {
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
149
146
  };
150
147
  };
151
148
  } | {
152
- output: never;
149
+ output: {
150
+ code: string;
151
+ message: string;
152
+ };
153
153
  outputFormat: "json";
154
- status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ status: 401;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -18,16 +18,23 @@ export declare const hostPortSchema: z.ZodNumber;
18
18
  /** Derive the default host id from an SSH alias (lowercased, non-alphanumeric runs to `-`, max 32). */
19
19
  export declare function slugHostId(sshAlias: string): string;
20
20
  /**
21
- * Host states. Named schema so S3 can widen it to the full set in spec § 6
22
- * (`connecting`, `connected`, `unreachable`, `needs-node`, `version-mismatch`, `not-hosted`,
23
- * `identity-changed`, `several-servers`, `paused`, `cannot-persist`).
21
+ * Host states (spec § 6, hearsay-tools/squawk#4539).
24
22
  */
25
- export declare const HOST_STATES: readonly ['unreachable'];
23
+ export declare const HOST_STATES: readonly ['connecting', 'connected', 'unreachable', 'needs-node', 'version-mismatch', 'not-hosted', 'identity-changed', 'several-servers', 'paused', 'cannot-persist'];
26
24
  export declare const hostStateSchema: z.ZodEnum<{
25
+ "cannot-persist": "cannot-persist";
26
+ connected: "connected";
27
+ connecting: "connecting";
28
+ "identity-changed": "identity-changed";
29
+ "needs-node": "needs-node";
30
+ "not-hosted": "not-hosted";
31
+ paused: "paused";
32
+ "several-servers": "several-servers";
27
33
  unreachable: "unreachable";
34
+ "version-mismatch": "version-mismatch";
28
35
  }>;
29
36
  export type HostState = z.infer<typeof hostStateSchema>;
30
- /** Default unreachable reason in S1 before SSH bootstrap (S3) exists. */
37
+ /** Default unreachable reason before the supervisor has connected to a host. */
31
38
  export declare const HOST_NOT_CONNECTED_REASON = "not connected yet";
32
39
  /** Saved host entry in `<config>/hosts.json` (spec § Architecture 1). */
33
40
  export declare const hostEntrySchema: z.ZodObject<{
@@ -63,7 +70,16 @@ export declare const hostSummarySchema: z.ZodObject<{
63
70
  id: z.ZodString;
64
71
  label: z.ZodString;
65
72
  state: z.ZodEnum<{
73
+ "cannot-persist": "cannot-persist";
74
+ connected: "connected";
75
+ connecting: "connecting";
76
+ "identity-changed": "identity-changed";
77
+ "needs-node": "needs-node";
78
+ "not-hosted": "not-hosted";
79
+ paused: "paused";
80
+ "several-servers": "several-servers";
66
81
  unreachable: "unreachable";
82
+ "version-mismatch": "version-mismatch";
67
83
  }>;
68
84
  reason: z.ZodOptional<z.ZodString>;
69
85
  kind: z.ZodOptional<z.ZodLiteral<"ssh">>;
@@ -83,7 +99,16 @@ export declare const hostsListResponseSchema: z.ZodObject<{
83
99
  id: z.ZodString;
84
100
  label: z.ZodString;
85
101
  state: z.ZodEnum<{
102
+ "cannot-persist": "cannot-persist";
103
+ connected: "connected";
104
+ connecting: "connecting";
105
+ "identity-changed": "identity-changed";
106
+ "needs-node": "needs-node";
107
+ "not-hosted": "not-hosted";
108
+ paused: "paused";
109
+ "several-servers": "several-servers";
86
110
  unreachable: "unreachable";
111
+ "version-mismatch": "version-mismatch";
87
112
  }>;
88
113
  reason: z.ZodOptional<z.ZodString>;
89
114
  kind: z.ZodOptional<z.ZodLiteral<"ssh">>;
@@ -122,7 +147,16 @@ export declare const hostResponseSchema: z.ZodObject<{
122
147
  id: z.ZodString;
123
148
  label: z.ZodString;
124
149
  state: z.ZodEnum<{
150
+ "cannot-persist": "cannot-persist";
151
+ connected: "connected";
152
+ connecting: "connecting";
153
+ "identity-changed": "identity-changed";
154
+ "needs-node": "needs-node";
155
+ "not-hosted": "not-hosted";
156
+ paused: "paused";
157
+ "several-servers": "several-servers";
125
158
  unreachable: "unreachable";
159
+ "version-mismatch": "version-mismatch";
126
160
  }>;
127
161
  reason: z.ZodOptional<z.ZodString>;
128
162
  kind: z.ZodOptional<z.ZodLiteral<"ssh">>;
@@ -300,3 +334,11 @@ export declare const hostServerInstallRuntimeResultSchema: z.ZodObject<{
300
334
  prunedVersions: z.ZodArray<z.ZodString>;
301
335
  }, z.core.$strip>;
302
336
  export type HostServerInstallRuntimeResult = z.infer<typeof hostServerInstallRuntimeResultSchema>;
337
+ /** Output contract of `hsq host-server active-tasks --port <n> --json`. */
338
+ export declare const hostServerActiveTasksResultSchema: z.ZodObject<{
339
+ ok: z.ZodLiteral<true>;
340
+ action: z.ZodLiteral<"active-tasks">;
341
+ port: z.ZodNumber;
342
+ activeCount: z.ZodNumber;
343
+ }, z.core.$strip>;
344
+ export type HostServerActiveTasksResult = z.infer<typeof hostServerActiveTasksResultSchema>;
@@ -6521,7 +6521,18 @@ var hostPortSchema = z61.number().int("port must be an integer").min(1, "port mu
6521
6521
  function slugHostId(sshAlias) {
6522
6522
  return sshAlias.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 32).replace(/-+$/g, "");
6523
6523
  }
6524
- var HOST_STATES = ["unreachable"];
6524
+ var HOST_STATES = [
6525
+ "connecting",
6526
+ "connected",
6527
+ "unreachable",
6528
+ "needs-node",
6529
+ "version-mismatch",
6530
+ "not-hosted",
6531
+ "identity-changed",
6532
+ "several-servers",
6533
+ "paused",
6534
+ "cannot-persist"
6535
+ ];
6525
6536
  var hostStateSchema = z61.enum(HOST_STATES);
6526
6537
  var HOST_NOT_CONNECTED_REASON = "not connected yet";
6527
6538
  var hostEntrySchema = z61.object({
@@ -6705,6 +6716,12 @@ var hostServerInstallRuntimeResultSchema = z61.object({
6705
6716
  alreadyInstalled: z61.boolean(),
6706
6717
  prunedVersions: z61.array(z61.string())
6707
6718
  });
6719
+ var hostServerActiveTasksResultSchema = z61.object({
6720
+ ok: z61.literal(true),
6721
+ action: z61.literal("active-tasks"),
6722
+ port: hostPortSchema,
6723
+ activeCount: z61.number().int().min(0)
6724
+ });
6708
6725
  export {
6709
6726
  ACTIVITY_CHECKS_MAX,
6710
6727
  ACTIVITY_CHECK_NAME_MAX,
@@ -7067,6 +7084,7 @@ export {
7067
7084
  hostPortSchema,
7068
7085
  hostResponseSchema,
7069
7086
  hostRouteParamsSchema,
7087
+ hostServerActiveTasksResultSchema,
7070
7088
  hostServerClaimPhaseSchema,
7071
7089
  hostServerClaimSummarySchema,
7072
7090
  hostServerEnsureResultSchema,
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
+ output: {
6
+ error: string;
7
+ code?: "invalid_input" | undefined;
8
+ };
9
+ outputFormat: "json";
10
+ status: 400;
11
+ input: {
12
+ query: {
13
+ offset?: string | undefined;
14
+ };
15
+ };
16
+ } | {
5
17
  output: {
6
18
  workers: {
7
19
  workerId: string;
@@ -54,18 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
54
66
  offset?: string | undefined;
55
67
  };
56
68
  };
57
- } | {
58
- output: {
59
- error: string;
60
- code?: "invalid_input" | undefined;
61
- };
62
- outputFormat: "json";
63
- status: 400;
64
- input: {
65
- query: {
66
- offset?: string | undefined;
67
- };
68
- };
69
69
  };
70
70
  };
71
71
  } & {
@@ -652,6 +652,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
652
652
  } & {
653
653
  "/:workerId": {
654
654
  $get: {
655
+ output: {
656
+ error: string;
657
+ code?: "invalid_input" | undefined;
658
+ };
659
+ outputFormat: "json";
660
+ status: 400;
661
+ input: {
662
+ param: {
663
+ workerId: string;
664
+ };
665
+ };
666
+ } | {
655
667
  output: {
656
668
  workerId: string;
657
669
  settled: boolean;
@@ -776,7 +788,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
776
788
  workerId: string;
777
789
  };
778
790
  };
779
- } | {
791
+ };
792
+ };
793
+ } & {
794
+ "/:workerId/collect": {
795
+ $post: {
780
796
  output: {
781
797
  error: string;
782
798
  code?: "invalid_input" | undefined;
@@ -787,12 +803,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
787
803
  param: {
788
804
  workerId: string;
789
805
  };
806
+ } & {
807
+ json: Record<string, never>;
790
808
  };
791
- };
792
- };
793
- } & {
794
- "/:workerId/collect": {
795
- $post: {
809
+ } | {
796
810
  output: {
797
811
  workerId: string;
798
812
  parentRunId: string;
@@ -917,7 +931,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
917
931
  } & {
918
932
  json: Record<string, never>;
919
933
  };
920
- } | {
934
+ };
935
+ };
936
+ } & {
937
+ "/:workerId/steer": {
938
+ $post: {
921
939
  output: {
922
940
  error: string;
923
941
  code?: "invalid_input" | undefined;
@@ -929,13 +947,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
929
947
  workerId: string;
930
948
  };
931
949
  } & {
932
- json: Record<string, never>;
950
+ json: {
951
+ text: string;
952
+ };
933
953
  };
934
- };
935
- };
936
- } & {
937
- "/:workerId/steer": {
938
- $post: {
954
+ } | {
939
955
  output: {
940
956
  workerId: string;
941
957
  state: "delivered" | "queued";
@@ -951,7 +967,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
951
967
  text: string;
952
968
  };
953
969
  };
954
- } | {
970
+ };
971
+ };
972
+ } & {
973
+ "/:workerId/stop": {
974
+ $post: {
955
975
  output: {
956
976
  error: string;
957
977
  code?: "invalid_input" | undefined;
@@ -963,15 +983,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
963
983
  workerId: string;
964
984
  };
965
985
  } & {
966
- json: {
967
- text: string;
968
- };
986
+ json: Record<string, never>;
969
987
  };
970
- };
971
- };
972
- } & {
973
- "/:workerId/stop": {
974
- $post: {
988
+ } | {
975
989
  output: {
976
990
  workerId: string;
977
991
  state: "stopping" | "terminated";
@@ -985,7 +999,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
985
999
  } & {
986
1000
  json: Record<string, never>;
987
1001
  };
988
- } | {
1002
+ };
1003
+ };
1004
+ } & {
1005
+ "/:workerId/destroy": {
1006
+ $post: {
989
1007
  output: {
990
1008
  error: string;
991
1009
  code?: "invalid_input" | undefined;
@@ -997,13 +1015,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
997
1015
  workerId: string;
998
1016
  };
999
1017
  } & {
1000
- json: Record<string, never>;
1018
+ json: {
1019
+ discardWork?: true | undefined;
1020
+ };
1001
1021
  };
1002
- };
1003
- };
1004
- } & {
1005
- "/:workerId/destroy": {
1006
- $post: {
1022
+ } | {
1007
1023
  output: {
1008
1024
  workerId: string;
1009
1025
  state: "complete" | "incomplete";
@@ -1032,22 +1048,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1032
1048
  discardWork?: true | undefined;
1033
1049
  };
1034
1050
  };
1035
- } | {
1036
- output: {
1037
- error: string;
1038
- code?: "invalid_input" | undefined;
1039
- };
1040
- outputFormat: "json";
1041
- status: 400;
1042
- input: {
1043
- param: {
1044
- workerId: string;
1045
- };
1046
- } & {
1047
- json: {
1048
- discardWork?: true | undefined;
1049
- };
1050
- };
1051
1051
  } | {
1052
1052
  output: {
1053
1053
  workerId: string;
@@ -1083,18 +1083,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1083
1083
  "/:workerId/summary": {
1084
1084
  $post: {
1085
1085
  output: {
1086
- workerId: string;
1087
- revision: number;
1088
- source: "assistant" | "failure";
1089
- seq: number;
1090
- totalLines: number;
1091
- offset: number;
1092
- lineCount: number;
1093
- text: string;
1094
- nextOffset?: number | undefined;
1086
+ error: string;
1087
+ code?: "invalid_input" | undefined;
1095
1088
  };
1096
1089
  outputFormat: "json";
1097
- status: 200;
1090
+ status: 400;
1098
1091
  input: {
1099
1092
  param: {
1100
1093
  workerId: string;
@@ -1107,11 +1100,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1107
1100
  };
1108
1101
  } | {
1109
1102
  output: {
1110
- error: string;
1111
- code?: "invalid_input" | undefined;
1103
+ workerId: string;
1104
+ revision: number;
1105
+ source: "assistant" | "failure";
1106
+ seq: number;
1107
+ totalLines: number;
1108
+ offset: number;
1109
+ lineCount: number;
1110
+ text: string;
1111
+ nextOffset?: number | undefined;
1112
1112
  };
1113
1113
  outputFormat: "json";
1114
- status: 400;
1114
+ status: 200;
1115
1115
  input: {
1116
1116
  param: {
1117
1117
  workerId: string;
@@ -1128,13 +1128,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1128
1128
  "/:workerId/diff": {
1129
1129
  $get: {
1130
1130
  output: {
1131
- workerId: string;
1132
- baselineSha: string;
1133
- diff: string;
1134
- truncated: boolean;
1131
+ error: string;
1132
+ code?: "invalid_input" | undefined;
1135
1133
  };
1136
1134
  outputFormat: "json";
1137
- status: 200;
1135
+ status: 400;
1138
1136
  input: {
1139
1137
  param: {
1140
1138
  workerId: string;
@@ -1142,11 +1140,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1142
1140
  };
1143
1141
  } | {
1144
1142
  output: {
1145
- error: string;
1146
- code?: "invalid_input" | undefined;
1143
+ workerId: string;
1144
+ baselineSha: string;
1145
+ diff: string;
1146
+ truncated: boolean;
1147
1147
  };
1148
1148
  outputFormat: "json";
1149
- status: 400;
1149
+ status: 200;
1150
1150
  input: {
1151
1151
  param: {
1152
1152
  workerId: string;