@hearsay-tools/squawk 0.19.0-pr4573.9073 → 0.19.0-pr4575.9079

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 (64) hide show
  1. package/dist/artifacts/reports-index.js +2 -3
  2. package/dist/artifacts/reports-index.js.map +1 -1
  3. package/dist/boot.d.ts +1 -1
  4. package/dist/boot.js +1 -1
  5. package/dist/built-in-cli-commands.js +1 -1
  6. package/dist/built-in-cli-commands.js.map +1 -1
  7. package/dist/built-in-launch-parts.js +1 -1
  8. package/dist/built-in-launch-parts.js.map +1 -1
  9. package/dist/built-in-run-slots.d.ts +1 -1
  10. package/dist/built-in-run-slots.js +7 -3
  11. package/dist/built-in-run-slots.js.map +1 -1
  12. package/dist/delegation/results.js +4 -3
  13. package/dist/delegation/results.js.map +1 -1
  14. package/dist/delegation/routes.d.ts +15 -15
  15. package/dist/delegation/transport.d.ts +88 -88
  16. package/dist/features/automations/tools.d.ts +8 -8
  17. package/dist/features/hosts/routes.d.ts +44 -44
  18. package/dist/runs/run-archive.d.ts +72 -72
  19. package/dist/server/activity-routes.d.ts +23 -23
  20. package/dist/{artifacts/resolve.js → server/file-link.js} +3 -3
  21. package/dist/server/file-link.js.map +1 -0
  22. package/dist/server/live-routes.d.ts +6 -6
  23. package/dist/server/project-run-files.js +1 -1
  24. package/dist/server/project-run-files.js.map +1 -1
  25. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  26. package/dist/server/repo-routes.d.ts +52 -52
  27. package/dist/server/reports-api.d.ts +2 -2
  28. package/dist/server/runners-routes.d.ts +10 -10
  29. package/dist/server/runs-routes.d.ts +335 -335
  30. package/dist/server/runs-routes.js +2 -2
  31. package/dist/server/runs-routes.js.map +1 -1
  32. package/dist/server/server.d.ts +1373 -1373
  33. package/dist/server/workspace-identity-routes.d.ts +5 -5
  34. package/dist/server/workspace-live-routes.d.ts +6 -6
  35. package/dist/server/workspace-routes.d.ts +85 -85
  36. package/dist/{artifacts/cli.js → task-files/artifact-cli.js} +2 -2
  37. package/dist/task-files/artifact-cli.js.map +1 -0
  38. package/dist/{artifacts/store.d.ts → task-files/artifact-kind.d.ts} +14 -17
  39. package/dist/task-files/artifact-kind.js +123 -0
  40. package/dist/task-files/artifact-kind.js.map +1 -0
  41. package/dist/task-files/kind.d.ts +55 -0
  42. package/dist/task-files/kind.js +68 -0
  43. package/dist/task-files/kind.js.map +1 -0
  44. package/dist/{artifacts → task-files}/lifecycle.d.ts +0 -1
  45. package/dist/{artifacts → task-files}/lifecycle.js +3 -28
  46. package/dist/task-files/lifecycle.js.map +1 -0
  47. package/dist/task-files/removal-slot.d.ts +3 -0
  48. package/dist/task-files/removal-slot.js +20 -0
  49. package/dist/task-files/removal-slot.js.map +1 -0
  50. package/dist/task-files/store.d.ts +37 -0
  51. package/dist/{artifacts → task-files}/store.js +150 -155
  52. package/dist/task-files/store.js.map +1 -0
  53. package/dist/workflows/continuation-admission.d.ts +72 -72
  54. package/dist/workflows/run/wait-engine.d.ts +72 -72
  55. package/package.json +4 -4
  56. package/dist/artifacts/cli.js.map +0 -1
  57. package/dist/artifacts/lifecycle.js.map +0 -1
  58. package/dist/artifacts/removal-slot.d.ts +0 -3
  59. package/dist/artifacts/removal-slot.js +0 -7
  60. package/dist/artifacts/removal-slot.js.map +0 -1
  61. package/dist/artifacts/resolve.js.map +0 -1
  62. package/dist/artifacts/store.js.map +0 -1
  63. /package/dist/{artifacts/resolve.d.ts → server/file-link.d.ts} +0 -0
  64. /package/dist/{artifacts/cli.d.ts → task-files/artifact-cli.d.ts} +0 -0
@@ -2,18 +2,6 @@ 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
- } | {
17
5
  output: {
18
6
  workers: {
19
7
  workerId: string;
@@ -66,12 +54,34 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
66
54
  offset?: string | undefined;
67
55
  };
68
56
  };
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
  } & {
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
+ } | {
75
85
  runner: string;
76
86
  models: {
77
87
  id: string;
@@ -82,16 +92,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
82
92
  source: "cache" | "live" | "unavailable";
83
93
  stale: boolean;
84
94
  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;
@@ -652,18 +652,6 @@ 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
- } | {
667
655
  output: {
668
656
  workerId: string;
669
657
  settled: boolean;
@@ -788,11 +776,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
788
776
  workerId: string;
789
777
  };
790
778
  };
791
- };
792
- };
793
- } & {
794
- "/:workerId/collect": {
795
- $post: {
779
+ } | {
796
780
  output: {
797
781
  error: string;
798
782
  code?: "invalid_input" | undefined;
@@ -803,10 +787,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
803
787
  param: {
804
788
  workerId: string;
805
789
  };
806
- } & {
807
- json: Record<string, never>;
808
790
  };
809
- } | {
791
+ };
792
+ };
793
+ } & {
794
+ "/:workerId/collect": {
795
+ $post: {
810
796
  output: {
811
797
  workerId: string;
812
798
  parentRunId: string;
@@ -931,11 +917,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
931
917
  } & {
932
918
  json: Record<string, never>;
933
919
  };
934
- };
935
- };
936
- } & {
937
- "/:workerId/steer": {
938
- $post: {
920
+ } | {
939
921
  output: {
940
922
  error: string;
941
923
  code?: "invalid_input" | undefined;
@@ -947,11 +929,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
947
929
  workerId: string;
948
930
  };
949
931
  } & {
950
- json: {
951
- text: string;
952
- };
932
+ json: Record<string, never>;
953
933
  };
954
- } | {
934
+ };
935
+ };
936
+ } & {
937
+ "/:workerId/steer": {
938
+ $post: {
955
939
  output: {
956
940
  workerId: string;
957
941
  state: "delivered" | "queued";
@@ -967,11 +951,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
967
951
  text: string;
968
952
  };
969
953
  };
970
- };
971
- };
972
- } & {
973
- "/:workerId/stop": {
974
- $post: {
954
+ } | {
975
955
  output: {
976
956
  error: string;
977
957
  code?: "invalid_input" | undefined;
@@ -983,9 +963,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
983
963
  workerId: string;
984
964
  };
985
965
  } & {
986
- json: Record<string, never>;
966
+ json: {
967
+ text: string;
968
+ };
987
969
  };
988
- } | {
970
+ };
971
+ };
972
+ } & {
973
+ "/:workerId/stop": {
974
+ $post: {
989
975
  output: {
990
976
  workerId: string;
991
977
  state: "stopping" | "terminated";
@@ -999,11 +985,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
999
985
  } & {
1000
986
  json: Record<string, never>;
1001
987
  };
1002
- };
1003
- };
1004
- } & {
1005
- "/:workerId/destroy": {
1006
- $post: {
988
+ } | {
1007
989
  output: {
1008
990
  error: string;
1009
991
  code?: "invalid_input" | undefined;
@@ -1015,11 +997,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1015
997
  workerId: string;
1016
998
  };
1017
999
  } & {
1018
- json: {
1019
- discardWork?: true | undefined;
1020
- };
1000
+ json: Record<string, never>;
1021
1001
  };
1022
- } | {
1002
+ };
1003
+ };
1004
+ } & {
1005
+ "/:workerId/destroy": {
1006
+ $post: {
1023
1007
  output: {
1024
1008
  workerId: string;
1025
1009
  state: "complete" | "incomplete";
@@ -1048,6 +1032,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1048
1032
  discardWork?: true | undefined;
1049
1033
  };
1050
1034
  };
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,11 +1083,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1083
1083
  "/:workerId/summary": {
1084
1084
  $post: {
1085
1085
  output: {
1086
- error: string;
1087
- code?: "invalid_input" | undefined;
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;
1088
1095
  };
1089
1096
  outputFormat: "json";
1090
- status: 400;
1097
+ status: 200;
1091
1098
  input: {
1092
1099
  param: {
1093
1100
  workerId: string;
@@ -1100,18 +1107,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1100
1107
  };
1101
1108
  } | {
1102
1109
  output: {
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;
1110
+ error: string;
1111
+ code?: "invalid_input" | undefined;
1112
1112
  };
1113
1113
  outputFormat: "json";
1114
- status: 200;
1114
+ status: 400;
1115
1115
  input: {
1116
1116
  param: {
1117
1117
  workerId: string;
@@ -1128,11 +1128,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1128
1128
  "/:workerId/diff": {
1129
1129
  $get: {
1130
1130
  output: {
1131
- error: string;
1132
- code?: "invalid_input" | undefined;
1131
+ workerId: string;
1132
+ baselineSha: string;
1133
+ diff: string;
1134
+ truncated: boolean;
1133
1135
  };
1134
1136
  outputFormat: "json";
1135
- status: 400;
1137
+ status: 200;
1136
1138
  input: {
1137
1139
  param: {
1138
1140
  workerId: string;
@@ -1140,13 +1142,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1140
1142
  };
1141
1143
  } | {
1142
1144
  output: {
1143
- workerId: string;
1144
- baselineSha: string;
1145
- diff: string;
1146
- truncated: boolean;
1145
+ error: string;
1146
+ code?: "invalid_input" | undefined;
1147
1147
  };
1148
1148
  outputFormat: "json";
1149
- status: 200;
1149
+ status: 400;
1150
1150
  input: {
1151
1151
  param: {
1152
1152
  workerId: string;
@@ -7,10 +7,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
7
7
  }[];
8
8
  isError: boolean;
9
9
  details: {
10
- ok: false;
11
- code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
12
- message: string;
13
- } | {
14
10
  ok: true;
15
11
  task: {
16
12
  id: string;
@@ -23,6 +19,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
23
19
  url?: string | undefined;
24
20
  };
25
21
  note: string;
22
+ } | {
23
+ ok: false;
24
+ code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
25
+ message: string;
26
26
  };
27
27
  }>;
28
28
  export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof callScheduleTask>>): {
@@ -32,10 +32,6 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
32
32
  }[];
33
33
  isError: boolean;
34
34
  details: {
35
- ok: false;
36
- code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
37
- message: string;
38
- } | {
39
35
  ok: true;
40
36
  task: {
41
37
  id: string;
@@ -48,6 +44,10 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
48
44
  url?: string | undefined;
49
45
  };
50
46
  note: string;
47
+ } | {
48
+ ok: false;
49
+ code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
50
+ message: string;
51
51
  };
52
52
  };
53
53
  export declare function invokeScheduledTasksTool(input: unknown): Promise<{
@@ -34,10 +34,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
34
34
  "/hosts": {
35
35
  $post: {
36
36
  output: {
37
- error: string;
37
+ host: {
38
+ id: string;
39
+ label: string;
40
+ state: "unreachable";
41
+ reason?: string | undefined;
42
+ kind?: "ssh" | undefined;
43
+ sshAlias?: string | undefined;
44
+ installId?: string | undefined;
45
+ port?: number | undefined;
46
+ addedAt?: string | undefined;
47
+ };
38
48
  };
39
49
  outputFormat: "json";
40
- status: 404;
50
+ status: 201;
41
51
  input: {
42
52
  json: {
43
53
  sshAlias: string;
@@ -65,7 +75,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
65
75
  error: string;
66
76
  };
67
77
  outputFormat: "json";
68
- status: 409;
78
+ status: 404;
69
79
  input: {
70
80
  json: {
71
81
  sshAlias: string;
@@ -79,7 +89,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
79
89
  error: string;
80
90
  };
81
91
  outputFormat: "json";
82
- status: 500;
92
+ status: 409;
83
93
  input: {
84
94
  json: {
85
95
  sshAlias: string;
@@ -90,20 +100,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
90
100
  };
91
101
  } | {
92
102
  output: {
93
- host: {
94
- id: string;
95
- label: string;
96
- state: "unreachable";
97
- reason?: string | undefined;
98
- kind?: "ssh" | undefined;
99
- sshAlias?: string | undefined;
100
- installId?: string | undefined;
101
- port?: number | undefined;
102
- addedAt?: string | undefined;
103
- };
103
+ error: string;
104
104
  };
105
105
  outputFormat: "json";
106
- status: 201;
106
+ status: 409;
107
107
  input: {
108
108
  json: {
109
109
  sshAlias: string;
@@ -117,7 +117,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
117
117
  error: string;
118
118
  };
119
119
  outputFormat: "json";
120
- status: 409;
120
+ status: 500;
121
121
  input: {
122
122
  json: {
123
123
  sshAlias: string;
@@ -132,11 +132,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
132
132
  "/hosts/:id": {
133
133
  $patch: {
134
134
  output: {
135
- error: string;
136
- code?: "invalid_input" | undefined;
135
+ host: {
136
+ id: string;
137
+ label: string;
138
+ state: "unreachable";
139
+ reason?: string | undefined;
140
+ kind?: "ssh" | undefined;
141
+ sshAlias?: string | undefined;
142
+ installId?: string | undefined;
143
+ port?: number | undefined;
144
+ addedAt?: string | undefined;
145
+ };
137
146
  };
138
147
  outputFormat: "json";
139
- status: 400;
148
+ status: 200;
140
149
  input: {
141
150
  param: {
142
151
  id: string;
@@ -151,9 +160,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
151
160
  } | {
152
161
  output: {
153
162
  error: string;
163
+ code?: "invalid_input" | undefined;
154
164
  };
155
165
  outputFormat: "json";
156
- status: 404;
166
+ status: 400;
157
167
  input: {
158
168
  param: {
159
169
  id: string;
@@ -187,7 +197,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
187
197
  error: string;
188
198
  };
189
199
  outputFormat: "json";
190
- status: 409;
200
+ status: 404;
191
201
  input: {
192
202
  param: {
193
203
  id: string;
@@ -204,7 +214,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
204
214
  error: string;
205
215
  };
206
216
  outputFormat: "json";
207
- status: 500;
217
+ status: 409;
208
218
  input: {
209
219
  param: {
210
220
  id: string;
@@ -235,20 +245,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
235
245
  };
236
246
  } | {
237
247
  output: {
238
- host: {
239
- id: string;
240
- label: string;
241
- state: "unreachable";
242
- reason?: string | undefined;
243
- kind?: "ssh" | undefined;
244
- sshAlias?: string | undefined;
245
- installId?: string | undefined;
246
- port?: number | undefined;
247
- addedAt?: string | undefined;
248
- };
248
+ error: string;
249
249
  };
250
250
  outputFormat: "json";
251
- status: 200;
251
+ status: 500;
252
252
  input: {
253
253
  param: {
254
254
  id: string;
@@ -266,11 +266,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
266
266
  "/hosts/:id": {
267
267
  $delete: {
268
268
  output: {
269
- error: string;
270
- code?: "invalid_input" | undefined;
269
+ removed: true;
270
+ id: string;
271
271
  };
272
272
  outputFormat: "json";
273
- status: 400;
273
+ status: 200;
274
274
  input: {
275
275
  param: {
276
276
  id: string;
@@ -279,9 +279,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
279
279
  } | {
280
280
  output: {
281
281
  error: string;
282
+ code?: "invalid_input" | undefined;
282
283
  };
283
284
  outputFormat: "json";
284
- status: 404;
285
+ status: 400;
285
286
  input: {
286
287
  param: {
287
288
  id: string;
@@ -303,7 +304,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
303
304
  error: string;
304
305
  };
305
306
  outputFormat: "json";
306
- status: 409;
307
+ status: 404;
307
308
  input: {
308
309
  param: {
309
310
  id: string;
@@ -314,7 +315,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
314
315
  error: string;
315
316
  };
316
317
  outputFormat: "json";
317
- status: 500;
318
+ status: 409;
318
319
  input: {
319
320
  param: {
320
321
  id: string;
@@ -333,11 +334,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
333
334
  };
334
335
  } | {
335
336
  output: {
336
- removed: true;
337
- id: string;
337
+ error: string;
338
338
  };
339
339
  outputFormat: "json";
340
- status: 200;
340
+ status: 500;
341
341
  input: {
342
342
  param: {
343
343
  id: string;