@hearsay-tools/squawk 0.18.0-dev.8318 → 0.18.0-dev.8321
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.
- package/dist/server/automations-routes.d.ts +1435 -0
- package/dist/server/automations-routes.js +192 -0
- package/dist/server/automations-routes.js.map +1 -0
- package/dist/server/github-routes.d.ts +733 -0
- package/dist/server/github-routes.js +140 -0
- package/dist/server/github-routes.js.map +1 -0
- package/dist/server/project-settings-routes.d.ts +999 -0
- package/dist/server/project-settings-routes.js +347 -0
- package/dist/server/project-settings-routes.js.map +1 -0
- package/dist/server/repo-routes.d.ts +509 -0
- package/dist/server/repo-routes.js +243 -0
- package/dist/server/repo-routes.js.map +1 -0
- package/dist/server/server.d.ts +588 -588
- package/dist/server/server.js +66 -1413
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server/workspace-routes.d.ts +713 -0
- package/dist/server/workspace-routes.js +262 -0
- package/dist/server/workspace-routes.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import type { RunSummary } from '../contract/index.js';
|
|
2
|
+
import type { Home } from '../home/home.ts';
|
|
3
|
+
import type { ProjectListEntry } from '../workspace/projects.ts';
|
|
4
|
+
import type { WorkspaceSemaphore } from '../workspace/semaphore.ts';
|
|
5
|
+
import { type ForgeFactory } from './forge/index.ts';
|
|
6
|
+
import type { ProjectContext, ProjectContexts } from './project-context.ts';
|
|
7
|
+
import { type ProjectApiEnv, type WorkspaceEventBus } from './server-types.ts';
|
|
8
|
+
import type { WorkspaceProjects } from './workspace-projects.ts';
|
|
9
|
+
import type { createWorkspaceRunFeed } from './workspace-run-feed.ts';
|
|
10
|
+
export interface WorkspaceConfigRouteDeps {
|
|
11
|
+
home: Home;
|
|
12
|
+
semaphore?: WorkspaceSemaphore | undefined;
|
|
13
|
+
archiveOnMergeChanged?: (() => void) | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
16
|
+
"/workspace/config": {
|
|
17
|
+
$get: {
|
|
18
|
+
output: {
|
|
19
|
+
browseRoot: string;
|
|
20
|
+
projectsDir: string;
|
|
21
|
+
archiveOnMerge: boolean | null;
|
|
22
|
+
effectiveArchiveOnMerge: boolean;
|
|
23
|
+
archiveOnMergeSource: "default" | "environment" | "global";
|
|
24
|
+
composerDefaults: {
|
|
25
|
+
autonomous: boolean | null;
|
|
26
|
+
worktree: boolean | null;
|
|
27
|
+
inheritedAutonomous: "source-dependent" | boolean;
|
|
28
|
+
inheritedWorktree: boolean;
|
|
29
|
+
};
|
|
30
|
+
resources: {
|
|
31
|
+
maxParallel: number;
|
|
32
|
+
maxMonitoringSessions: number;
|
|
33
|
+
monitoringWakeIntervalMinutes: number | null;
|
|
34
|
+
autoResumeOnUsageLimit: boolean;
|
|
35
|
+
memoryLimitMb: number | null;
|
|
36
|
+
worktreeRetentionDefault: number;
|
|
37
|
+
};
|
|
38
|
+
agentDefaults: {
|
|
39
|
+
runner?: string | undefined;
|
|
40
|
+
models?: {
|
|
41
|
+
[x: string]: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
outputFormat: "json";
|
|
46
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
47
|
+
input: {};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
} & {
|
|
51
|
+
"/workspace/config": {
|
|
52
|
+
$put: {
|
|
53
|
+
output: {
|
|
54
|
+
browseRoot: string;
|
|
55
|
+
projectsDir: string;
|
|
56
|
+
archiveOnMerge: boolean | null;
|
|
57
|
+
effectiveArchiveOnMerge: boolean;
|
|
58
|
+
archiveOnMergeSource: "default" | "environment" | "global";
|
|
59
|
+
composerDefaults: {
|
|
60
|
+
autonomous: boolean | null;
|
|
61
|
+
worktree: boolean | null;
|
|
62
|
+
inheritedAutonomous: "source-dependent" | boolean;
|
|
63
|
+
inheritedWorktree: boolean;
|
|
64
|
+
};
|
|
65
|
+
resources: {
|
|
66
|
+
maxParallel: number;
|
|
67
|
+
maxMonitoringSessions: number;
|
|
68
|
+
monitoringWakeIntervalMinutes: number | null;
|
|
69
|
+
autoResumeOnUsageLimit: boolean;
|
|
70
|
+
memoryLimitMb: number | null;
|
|
71
|
+
worktreeRetentionDefault: number;
|
|
72
|
+
};
|
|
73
|
+
agentDefaults: {
|
|
74
|
+
runner?: string | undefined;
|
|
75
|
+
models?: {
|
|
76
|
+
[x: string]: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
outputFormat: "json";
|
|
81
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
82
|
+
input: {
|
|
83
|
+
json: {
|
|
84
|
+
browseRoot?: string | undefined;
|
|
85
|
+
projectsDir?: string | undefined;
|
|
86
|
+
archiveOnMerge?: boolean | null | undefined;
|
|
87
|
+
composerDefaults?: {
|
|
88
|
+
autonomous?: boolean | null | undefined;
|
|
89
|
+
worktree?: boolean | null | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
agentDefaults?: {
|
|
92
|
+
runner?: string | null | undefined;
|
|
93
|
+
models?: Record<string, string | null | undefined> | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
resources?: {
|
|
96
|
+
maxParallel?: number | undefined;
|
|
97
|
+
maxMonitoringSessions?: number | undefined;
|
|
98
|
+
monitoringWakeIntervalMinutes?: number | null | undefined;
|
|
99
|
+
autoResumeOnUsageLimit?: boolean | undefined;
|
|
100
|
+
memoryLimitMb?: number | null | undefined;
|
|
101
|
+
worktreeRetentionDefault?: number | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
} | {
|
|
106
|
+
output: {
|
|
107
|
+
error: string;
|
|
108
|
+
};
|
|
109
|
+
outputFormat: "json";
|
|
110
|
+
status: 400;
|
|
111
|
+
input: {
|
|
112
|
+
json: {
|
|
113
|
+
browseRoot?: string | undefined;
|
|
114
|
+
projectsDir?: string | undefined;
|
|
115
|
+
archiveOnMerge?: boolean | null | undefined;
|
|
116
|
+
composerDefaults?: {
|
|
117
|
+
autonomous?: boolean | null | undefined;
|
|
118
|
+
worktree?: boolean | null | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
agentDefaults?: {
|
|
121
|
+
runner?: string | null | undefined;
|
|
122
|
+
models?: Record<string, string | null | undefined> | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
resources?: {
|
|
125
|
+
maxParallel?: number | undefined;
|
|
126
|
+
maxMonitoringSessions?: number | undefined;
|
|
127
|
+
monitoringWakeIntervalMinutes?: number | null | undefined;
|
|
128
|
+
autoResumeOnUsageLimit?: boolean | undefined;
|
|
129
|
+
memoryLimitMb?: number | null | undefined;
|
|
130
|
+
worktreeRetentionDefault?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
} | {
|
|
135
|
+
output: {
|
|
136
|
+
error: string;
|
|
137
|
+
};
|
|
138
|
+
outputFormat: "json";
|
|
139
|
+
status: 500;
|
|
140
|
+
input: {
|
|
141
|
+
json: {
|
|
142
|
+
browseRoot?: string | undefined;
|
|
143
|
+
projectsDir?: string | undefined;
|
|
144
|
+
archiveOnMerge?: boolean | null | undefined;
|
|
145
|
+
composerDefaults?: {
|
|
146
|
+
autonomous?: boolean | null | undefined;
|
|
147
|
+
worktree?: boolean | null | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
agentDefaults?: {
|
|
150
|
+
runner?: string | null | undefined;
|
|
151
|
+
models?: Record<string, string | null | undefined> | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
resources?: {
|
|
154
|
+
maxParallel?: number | undefined;
|
|
155
|
+
maxMonitoringSessions?: number | undefined;
|
|
156
|
+
monitoringWakeIntervalMinutes?: number | null | undefined;
|
|
157
|
+
autoResumeOnUsageLimit?: boolean | undefined;
|
|
158
|
+
memoryLimitMb?: number | null | undefined;
|
|
159
|
+
worktreeRetentionDefault?: number | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
} & {
|
|
166
|
+
"/workspace/ui-state": {
|
|
167
|
+
$get: {
|
|
168
|
+
output: {
|
|
169
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
170
|
+
sidebar?: {
|
|
171
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
172
|
+
collapsed?: {
|
|
173
|
+
[x: string]: boolean;
|
|
174
|
+
} | undefined;
|
|
175
|
+
projectOrder?: string[] | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
dismissedProviderAuthFailures?: {
|
|
178
|
+
[x: string]: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
appearance?: {
|
|
181
|
+
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
182
|
+
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
183
|
+
width?: "narrow" | "wide" | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
notifications?: {
|
|
186
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
187
|
+
enabled?: boolean | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
taskTable?: {
|
|
190
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
191
|
+
expandedColumns?: {
|
|
192
|
+
[x: string]: boolean;
|
|
193
|
+
} | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
lastLocation?: {
|
|
196
|
+
projectId: string;
|
|
197
|
+
pathname: string;
|
|
198
|
+
search?: string | undefined;
|
|
199
|
+
hash?: string | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
};
|
|
202
|
+
outputFormat: "json";
|
|
203
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
204
|
+
input: {};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
} & {
|
|
208
|
+
"/workspace/ui-state": {
|
|
209
|
+
$put: {
|
|
210
|
+
output: {
|
|
211
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
212
|
+
sidebar?: {
|
|
213
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
214
|
+
collapsed?: {
|
|
215
|
+
[x: string]: boolean;
|
|
216
|
+
} | undefined;
|
|
217
|
+
projectOrder?: string[] | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
dismissedProviderAuthFailures?: {
|
|
220
|
+
[x: string]: string | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
appearance?: {
|
|
223
|
+
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
224
|
+
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
225
|
+
width?: "narrow" | "wide" | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
notifications?: {
|
|
228
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
229
|
+
enabled?: boolean | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
taskTable?: {
|
|
232
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
233
|
+
expandedColumns?: {
|
|
234
|
+
[x: string]: boolean;
|
|
235
|
+
} | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
lastLocation?: {
|
|
238
|
+
projectId: string;
|
|
239
|
+
pathname: string;
|
|
240
|
+
search?: string | undefined;
|
|
241
|
+
hash?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
};
|
|
244
|
+
outputFormat: "json";
|
|
245
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
246
|
+
input: {
|
|
247
|
+
json: {
|
|
248
|
+
[x: string]: unknown;
|
|
249
|
+
appearance?: {
|
|
250
|
+
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
251
|
+
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
252
|
+
width?: "narrow" | "wide" | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
notifications?: {
|
|
255
|
+
[x: string]: unknown;
|
|
256
|
+
enabled?: boolean | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
lastLocation?: {
|
|
259
|
+
projectId: string;
|
|
260
|
+
pathname: string;
|
|
261
|
+
search?: string | undefined;
|
|
262
|
+
hash?: string | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
sidebar?: {
|
|
265
|
+
[x: string]: unknown;
|
|
266
|
+
collapsed?: Record<string, boolean> | undefined;
|
|
267
|
+
projectOrder?: string[] | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
dismissedProviderAuthFailures?: Record<string, string | undefined> | undefined;
|
|
270
|
+
taskTable?: {
|
|
271
|
+
[x: string]: unknown;
|
|
272
|
+
expandedColumns?: Record<string, boolean> | undefined;
|
|
273
|
+
} | undefined;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
} | {
|
|
277
|
+
output: {
|
|
278
|
+
error: string;
|
|
279
|
+
};
|
|
280
|
+
outputFormat: "json";
|
|
281
|
+
status: 500;
|
|
282
|
+
input: {
|
|
283
|
+
json: {
|
|
284
|
+
[x: string]: unknown;
|
|
285
|
+
appearance?: {
|
|
286
|
+
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
287
|
+
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
288
|
+
width?: "narrow" | "wide" | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
notifications?: {
|
|
291
|
+
[x: string]: unknown;
|
|
292
|
+
enabled?: boolean | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
lastLocation?: {
|
|
295
|
+
projectId: string;
|
|
296
|
+
pathname: string;
|
|
297
|
+
search?: string | undefined;
|
|
298
|
+
hash?: string | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
sidebar?: {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
collapsed?: Record<string, boolean> | undefined;
|
|
303
|
+
projectOrder?: string[] | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
dismissedProviderAuthFailures?: Record<string, string | undefined> | undefined;
|
|
306
|
+
taskTable?: {
|
|
307
|
+
[x: string]: unknown;
|
|
308
|
+
expandedColumns?: Record<string, boolean> | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
}, "/", "/workspace/ui-state">;
|
|
315
|
+
export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<string>): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
316
|
+
"/fs/browse": {
|
|
317
|
+
$get: {
|
|
318
|
+
output: {
|
|
319
|
+
error: string;
|
|
320
|
+
code?: "invalid_input" | undefined;
|
|
321
|
+
};
|
|
322
|
+
outputFormat: "json";
|
|
323
|
+
status: 400;
|
|
324
|
+
input: {
|
|
325
|
+
query: {
|
|
326
|
+
path?: string | undefined;
|
|
327
|
+
showHidden?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
} | {
|
|
331
|
+
output: {
|
|
332
|
+
error: string;
|
|
333
|
+
};
|
|
334
|
+
outputFormat: "json";
|
|
335
|
+
status: 400 | 403 | 404;
|
|
336
|
+
input: {
|
|
337
|
+
query: {
|
|
338
|
+
path?: string | undefined;
|
|
339
|
+
showHidden?: string | undefined;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
} | {
|
|
343
|
+
output: {
|
|
344
|
+
path: string;
|
|
345
|
+
parent: string | null;
|
|
346
|
+
dirs: {
|
|
347
|
+
name: string;
|
|
348
|
+
path: string;
|
|
349
|
+
isRepo: boolean;
|
|
350
|
+
}[];
|
|
351
|
+
truncated: boolean;
|
|
352
|
+
};
|
|
353
|
+
outputFormat: "json";
|
|
354
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
355
|
+
input: {
|
|
356
|
+
query: {
|
|
357
|
+
path?: string | undefined;
|
|
358
|
+
showHidden?: string | undefined;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
}, "/", "/fs/browse">;
|
|
364
|
+
export interface WorkspaceEventsRouteDeps {
|
|
365
|
+
serverGeneration: string;
|
|
366
|
+
resolveBootProject: WorkspaceProjects['resolveBootProject'];
|
|
367
|
+
workspaceRunFeed: ReturnType<typeof createWorkspaceRunFeed>;
|
|
368
|
+
workspaceEvents: WorkspaceEventBus;
|
|
369
|
+
}
|
|
370
|
+
export declare function createWorkspaceEventsRoutes(deps: WorkspaceEventsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
371
|
+
"/workspace/events": {
|
|
372
|
+
$get: {
|
|
373
|
+
output: {};
|
|
374
|
+
outputFormat: string;
|
|
375
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
376
|
+
input: {
|
|
377
|
+
query: {
|
|
378
|
+
runs?: "summary" | undefined;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
} | {
|
|
382
|
+
output: {
|
|
383
|
+
error: string;
|
|
384
|
+
code?: "invalid_input" | undefined;
|
|
385
|
+
};
|
|
386
|
+
outputFormat: "json";
|
|
387
|
+
status: 400;
|
|
388
|
+
input: {
|
|
389
|
+
query: {
|
|
390
|
+
runs?: "summary" | undefined;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}, "/", "/workspace/events">;
|
|
396
|
+
export interface RunsIndexRouteDeps {
|
|
397
|
+
loadPreparedProjects: (projects: ProjectListEntry[]) => Promise<ProjectListEntry[]>;
|
|
398
|
+
forgeFactory?: ForgeFactory | undefined;
|
|
399
|
+
bootContext: ProjectContext;
|
|
400
|
+
contexts: ProjectContexts;
|
|
401
|
+
workspaceProjects: WorkspaceProjects;
|
|
402
|
+
workspaceRunFeed: ReturnType<typeof createWorkspaceRunFeed>;
|
|
403
|
+
serverGeneration: string;
|
|
404
|
+
withLiveUsage: (summary: RunSummary) => RunSummary;
|
|
405
|
+
}
|
|
406
|
+
export declare function createRunsIndexRoutes(deps: RunsIndexRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
407
|
+
"/workspace/runs-index": {
|
|
408
|
+
$get: {
|
|
409
|
+
output: {
|
|
410
|
+
runs: {
|
|
411
|
+
id: string;
|
|
412
|
+
title: string;
|
|
413
|
+
titleSummary?: string | undefined;
|
|
414
|
+
titleOrigin?: "auto" | "marker" | "user" | undefined;
|
|
415
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
416
|
+
hasPendingPermission?: boolean | undefined;
|
|
417
|
+
waitingOn?: {
|
|
418
|
+
kind: "human";
|
|
419
|
+
shown?: true | undefined;
|
|
420
|
+
} | {
|
|
421
|
+
kind: "usage-limit";
|
|
422
|
+
at: string;
|
|
423
|
+
} | {
|
|
424
|
+
kind: "workers";
|
|
425
|
+
count: number;
|
|
426
|
+
replies?: true | undefined;
|
|
427
|
+
peers?: true | undefined;
|
|
428
|
+
} | {
|
|
429
|
+
kind: "peers";
|
|
430
|
+
count: number;
|
|
431
|
+
} | {
|
|
432
|
+
kind: "subagents";
|
|
433
|
+
count: number;
|
|
434
|
+
} | {
|
|
435
|
+
kind: "pr";
|
|
436
|
+
until: "checks" | "merge" | "merge_or_blocked";
|
|
437
|
+
waitId: string;
|
|
438
|
+
prUrl: string;
|
|
439
|
+
repository: string;
|
|
440
|
+
prNumber: number;
|
|
441
|
+
deadline: string;
|
|
442
|
+
} | {
|
|
443
|
+
kind: "process";
|
|
444
|
+
waitId: string;
|
|
445
|
+
pid: number;
|
|
446
|
+
deadline: string;
|
|
447
|
+
note?: string | undefined;
|
|
448
|
+
} | {
|
|
449
|
+
kind: "plugin";
|
|
450
|
+
pluginKind: string;
|
|
451
|
+
waitId: string;
|
|
452
|
+
summary: string;
|
|
453
|
+
deadline?: string | undefined;
|
|
454
|
+
} | {
|
|
455
|
+
kind: "timer";
|
|
456
|
+
waitId: string;
|
|
457
|
+
at: string;
|
|
458
|
+
note?: string | undefined;
|
|
459
|
+
} | undefined;
|
|
460
|
+
waitWakePending?: true | undefined;
|
|
461
|
+
delegation?: {
|
|
462
|
+
role: "invalid";
|
|
463
|
+
} | {
|
|
464
|
+
role: "root";
|
|
465
|
+
wait?: {
|
|
466
|
+
workerIds?: string[] | undefined;
|
|
467
|
+
requestIds?: string[] | undefined;
|
|
468
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
469
|
+
outcomes?: {
|
|
470
|
+
workerId: string;
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
} | {
|
|
474
|
+
role: "worker";
|
|
475
|
+
parentRunId: string;
|
|
476
|
+
supervisorRunId?: string | undefined;
|
|
477
|
+
wait?: {
|
|
478
|
+
requestIds?: string[] | undefined;
|
|
479
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
480
|
+
} | undefined;
|
|
481
|
+
} | undefined;
|
|
482
|
+
createdAt: string;
|
|
483
|
+
finishedAt?: string | undefined;
|
|
484
|
+
seenAt?: string | undefined;
|
|
485
|
+
archived: boolean;
|
|
486
|
+
autoResumeAt?: string | undefined;
|
|
487
|
+
autoResumeReason?: "provider-error" | "usage-limit" | undefined;
|
|
488
|
+
workflow: string;
|
|
489
|
+
branch?: string | undefined;
|
|
490
|
+
startedAt?: string | undefined;
|
|
491
|
+
pullRequestUrl?: string | undefined;
|
|
492
|
+
pullRequests?: {
|
|
493
|
+
number: number;
|
|
494
|
+
url?: string | undefined;
|
|
495
|
+
source: "created" | "declared";
|
|
496
|
+
}[] | undefined;
|
|
497
|
+
referencedPullRequestUrl?: string | undefined;
|
|
498
|
+
prNumber?: number | undefined;
|
|
499
|
+
issueNumber?: number | undefined;
|
|
500
|
+
referencedIssueUrl?: string | undefined;
|
|
501
|
+
markerRefs?: {
|
|
502
|
+
pr?: number | undefined;
|
|
503
|
+
issue?: number | undefined;
|
|
504
|
+
} | undefined;
|
|
505
|
+
costUsd?: number | undefined;
|
|
506
|
+
peakRssBytes?: number | undefined;
|
|
507
|
+
peakProcCount?: number | undefined;
|
|
508
|
+
usage?: {
|
|
509
|
+
cpuPct: number;
|
|
510
|
+
rssBytes: number;
|
|
511
|
+
procCount: number;
|
|
512
|
+
} | undefined;
|
|
513
|
+
workflowLabel: string;
|
|
514
|
+
groupId?: string | undefined;
|
|
515
|
+
variant?: string | undefined;
|
|
516
|
+
pinned?: boolean | undefined;
|
|
517
|
+
automationId?: string | undefined;
|
|
518
|
+
runner?: string | undefined;
|
|
519
|
+
removedRunner?: string | undefined;
|
|
520
|
+
model?: string | undefined;
|
|
521
|
+
notify?: boolean | undefined;
|
|
522
|
+
diffStat?: {
|
|
523
|
+
adds: number;
|
|
524
|
+
dels: number;
|
|
525
|
+
files: number;
|
|
526
|
+
repointed?: boolean | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
tokensUsed: number;
|
|
529
|
+
inputTokens?: number | undefined;
|
|
530
|
+
outputTokens?: number | undefined;
|
|
531
|
+
currentStepId?: string | undefined;
|
|
532
|
+
currentStepBackend?: string | undefined;
|
|
533
|
+
error?: string | undefined;
|
|
534
|
+
worktreePath?: string | undefined;
|
|
535
|
+
projectId: string;
|
|
536
|
+
}[];
|
|
537
|
+
referenceStatuses: {
|
|
538
|
+
[x: string]: {
|
|
539
|
+
prs: {
|
|
540
|
+
[x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
|
|
541
|
+
};
|
|
542
|
+
issues: {
|
|
543
|
+
[x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
perProjectLimit: number;
|
|
548
|
+
truncated: string[];
|
|
549
|
+
generation: string;
|
|
550
|
+
eventSeq: number;
|
|
551
|
+
};
|
|
552
|
+
outputFormat: "json";
|
|
553
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
554
|
+
input: {};
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
} & {
|
|
558
|
+
"/workspace/runs-search": {
|
|
559
|
+
$get: {
|
|
560
|
+
output: {
|
|
561
|
+
error: string;
|
|
562
|
+
code?: "invalid_input" | undefined;
|
|
563
|
+
};
|
|
564
|
+
outputFormat: "json";
|
|
565
|
+
status: 400;
|
|
566
|
+
input: {
|
|
567
|
+
query: {
|
|
568
|
+
q: string | string[];
|
|
569
|
+
limit?: number | undefined;
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
} | {
|
|
573
|
+
output: {
|
|
574
|
+
runs: {
|
|
575
|
+
id: string;
|
|
576
|
+
title: string;
|
|
577
|
+
titleSummary?: string | undefined;
|
|
578
|
+
titleOrigin?: "auto" | "marker" | "user" | undefined;
|
|
579
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
580
|
+
hasPendingPermission?: boolean | undefined;
|
|
581
|
+
waitingOn?: {
|
|
582
|
+
kind: "human";
|
|
583
|
+
shown?: true | undefined;
|
|
584
|
+
} | {
|
|
585
|
+
kind: "usage-limit";
|
|
586
|
+
at: string;
|
|
587
|
+
} | {
|
|
588
|
+
kind: "workers";
|
|
589
|
+
count: number;
|
|
590
|
+
replies?: true | undefined;
|
|
591
|
+
peers?: true | undefined;
|
|
592
|
+
} | {
|
|
593
|
+
kind: "peers";
|
|
594
|
+
count: number;
|
|
595
|
+
} | {
|
|
596
|
+
kind: "subagents";
|
|
597
|
+
count: number;
|
|
598
|
+
} | {
|
|
599
|
+
kind: "pr";
|
|
600
|
+
until: "checks" | "merge" | "merge_or_blocked";
|
|
601
|
+
waitId: string;
|
|
602
|
+
prUrl: string;
|
|
603
|
+
repository: string;
|
|
604
|
+
prNumber: number;
|
|
605
|
+
deadline: string;
|
|
606
|
+
} | {
|
|
607
|
+
kind: "process";
|
|
608
|
+
waitId: string;
|
|
609
|
+
pid: number;
|
|
610
|
+
deadline: string;
|
|
611
|
+
note?: string | undefined;
|
|
612
|
+
} | {
|
|
613
|
+
kind: "plugin";
|
|
614
|
+
pluginKind: string;
|
|
615
|
+
waitId: string;
|
|
616
|
+
summary: string;
|
|
617
|
+
deadline?: string | undefined;
|
|
618
|
+
} | {
|
|
619
|
+
kind: "timer";
|
|
620
|
+
waitId: string;
|
|
621
|
+
at: string;
|
|
622
|
+
note?: string | undefined;
|
|
623
|
+
} | undefined;
|
|
624
|
+
waitWakePending?: true | undefined;
|
|
625
|
+
delegation?: {
|
|
626
|
+
role: "invalid";
|
|
627
|
+
} | {
|
|
628
|
+
role: "root";
|
|
629
|
+
wait?: {
|
|
630
|
+
workerIds?: string[] | undefined;
|
|
631
|
+
requestIds?: string[] | undefined;
|
|
632
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
633
|
+
outcomes?: {
|
|
634
|
+
workerId: string;
|
|
635
|
+
}[] | undefined;
|
|
636
|
+
} | undefined;
|
|
637
|
+
} | {
|
|
638
|
+
role: "worker";
|
|
639
|
+
parentRunId: string;
|
|
640
|
+
supervisorRunId?: string | undefined;
|
|
641
|
+
wait?: {
|
|
642
|
+
requestIds?: string[] | undefined;
|
|
643
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
644
|
+
} | undefined;
|
|
645
|
+
} | undefined;
|
|
646
|
+
createdAt: string;
|
|
647
|
+
finishedAt?: string | undefined;
|
|
648
|
+
seenAt?: string | undefined;
|
|
649
|
+
archived: boolean;
|
|
650
|
+
autoResumeAt?: string | undefined;
|
|
651
|
+
autoResumeReason?: "provider-error" | "usage-limit" | undefined;
|
|
652
|
+
workflow: string;
|
|
653
|
+
branch?: string | undefined;
|
|
654
|
+
startedAt?: string | undefined;
|
|
655
|
+
pullRequestUrl?: string | undefined;
|
|
656
|
+
pullRequests?: {
|
|
657
|
+
number: number;
|
|
658
|
+
url?: string | undefined;
|
|
659
|
+
source: "created" | "declared";
|
|
660
|
+
}[] | undefined;
|
|
661
|
+
referencedPullRequestUrl?: string | undefined;
|
|
662
|
+
prNumber?: number | undefined;
|
|
663
|
+
issueNumber?: number | undefined;
|
|
664
|
+
referencedIssueUrl?: string | undefined;
|
|
665
|
+
markerRefs?: {
|
|
666
|
+
pr?: number | undefined;
|
|
667
|
+
issue?: number | undefined;
|
|
668
|
+
} | undefined;
|
|
669
|
+
costUsd?: number | undefined;
|
|
670
|
+
peakRssBytes?: number | undefined;
|
|
671
|
+
peakProcCount?: number | undefined;
|
|
672
|
+
usage?: {
|
|
673
|
+
cpuPct: number;
|
|
674
|
+
rssBytes: number;
|
|
675
|
+
procCount: number;
|
|
676
|
+
} | undefined;
|
|
677
|
+
workflowLabel: string;
|
|
678
|
+
groupId?: string | undefined;
|
|
679
|
+
variant?: string | undefined;
|
|
680
|
+
pinned?: boolean | undefined;
|
|
681
|
+
automationId?: string | undefined;
|
|
682
|
+
runner?: string | undefined;
|
|
683
|
+
removedRunner?: string | undefined;
|
|
684
|
+
model?: string | undefined;
|
|
685
|
+
notify?: boolean | undefined;
|
|
686
|
+
diffStat?: {
|
|
687
|
+
adds: number;
|
|
688
|
+
dels: number;
|
|
689
|
+
files: number;
|
|
690
|
+
repointed?: boolean | undefined;
|
|
691
|
+
} | undefined;
|
|
692
|
+
tokensUsed: number;
|
|
693
|
+
inputTokens?: number | undefined;
|
|
694
|
+
outputTokens?: number | undefined;
|
|
695
|
+
currentStepId?: string | undefined;
|
|
696
|
+
currentStepBackend?: string | undefined;
|
|
697
|
+
error?: string | undefined;
|
|
698
|
+
worktreePath?: string | undefined;
|
|
699
|
+
projectId: string;
|
|
700
|
+
}[];
|
|
701
|
+
truncated: string[];
|
|
702
|
+
};
|
|
703
|
+
outputFormat: "json";
|
|
704
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
705
|
+
input: {
|
|
706
|
+
query: {
|
|
707
|
+
q: string | string[];
|
|
708
|
+
limit?: number | undefined;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
}, "/", "/workspace/runs-search">;
|