@hearsay-tools/squawk 0.18.0-dev.8312 → 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.
@@ -18,7 +18,7 @@ import { loadWorkspaceConfig, mergeWriteWorkspaceConfig } from '../workspace/con
18
18
  import { WorkspaceSemaphore } from '../workspace/semaphore.ts';
19
19
  import { type CloneRunner } from './checkout.ts';
20
20
  import { type CommandRunner } from './create-project.ts';
21
- import { ProjectContexts, type ProjectContext, type ProjectRunManager, type RunManagerFactory } from './project-context.ts';
21
+ import { ProjectContexts, type ProjectRunManager, type RunManagerFactory } from './project-context.ts';
22
22
  import type { SocketHub, WsUpgradeVerdict } from './ws.ts';
23
23
  import type { PreviewHost } from '../preview/host.ts';
24
24
  import { type ForgeFactory } from './forge/index.ts';
@@ -26,6 +26,7 @@ import { type CockpitOwnership } from './cockpit-ownership.ts';
26
26
  import { openInTerminal } from './open-in-terminal.ts';
27
27
  import { openFileInDefaultApp, openInApp } from './open-in-app.ts';
28
28
  import { ProviderRuntimeAuthObserver } from './provider-auth-runtime.ts';
29
+ import { WorkspaceEventBus } from './server-types.ts';
29
30
  export interface ServerDeps extends ActivityServerDeps {
30
31
  home: Home;
31
32
  /** Per-repository forge injection for embedded servers and tests. */
@@ -138,14 +139,7 @@ export interface ServerDeps extends ActivityServerDeps {
138
139
  automationsChanged?: () => void;
139
140
  archiveOnMergeChanged?: () => void;
140
141
  }
141
- /** Hono env for the mirrored project-route table: the scope resolver puts the
142
- * request's `ProjectContext` on the context, handlers read `c.get('project')`. */
143
- export type ProjectApiEnv = {
144
- Variables: {
145
- project: ProjectContext;
146
- stoppedOnAdoption?: boolean;
147
- };
148
- };
142
+ export { WorkspaceEventBus, type ProjectApiEnv, type WorkspaceEventName } from './server-types.ts';
149
143
  /** One row of the mirrored project-route table. */
150
144
  export interface ProjectRouteInfo {
151
145
  method: string;
@@ -161,82 +155,38 @@ export interface ProjectRouteInfo {
161
155
  */
162
156
  export declare function projectRouteManifest(app: Hono): ProjectRouteInfo[];
163
157
  export type { ProjectsResponse, RegisterProjectResponse, RemoveProjectResponse, UpdateProjectResponse } from '../contract/index.js';
164
- /** Workspace-level event names carried ONLY on `GET /api/workspace/events`
165
- * (never on the per-project streams): registry mutations, the GUI-clone
166
- * progress feed (step 4.3), and host-wide unstamped provider status. */
167
- export type WorkspaceEventName = 'project-added' | 'project-removed' | 'checkout-progress' | 'health' | 'provider-status' | 'automation-change' | 'project-ready';
168
- /**
169
- * The in-process bus for workspace-level SSE events. The registry-mutating
170
- * routes (`POST /api/projects` — step 4.2, emits `project-added` for a
171
- * genuinely new entry; `DELETE /api/projects/:projectId` — step 4.4) and the
172
- * checkout flow (step 4.3) call `emit()`; runtime provider auth observation
173
- * emits host-wide `provider-status`; every open `/api/workspace/events` stream
174
- * relays the event verbatim under its name. Injectable via
175
- * `ServerDeps.workspaceEvents` so tests (and any out-of-createApp emitter) can
176
- * drive the stream.
177
- */
178
- export declare class WorkspaceEventBus {
179
- private readonly listeners;
180
- emit(event: WorkspaceEventName, data: unknown): void;
181
- /** Subscribe; returns an unsubscribe. */
182
- on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
183
- }
184
158
  export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
185
- "/health": {
159
+ "/automation-checks/:checkId": {
186
160
  $get: {
187
161
  output: {
188
- version: string;
189
- latestVersion?: string | undefined;
190
- repoRoot: string;
191
- repo: {
192
- root: string;
193
- branch: string;
194
- remote?: string | undefined;
195
- } | null;
196
- checks: {
197
- name: string;
198
- available: boolean;
199
- version?: string;
200
- hint?: string;
201
- }[];
202
- defaultRunner: string;
203
- forge: {
204
- available?: boolean | undefined;
205
- reason?: string;
206
- kind: "github";
207
- } | null;
208
- capabilities: {
209
- localHandoff: boolean;
210
- settingsAdmin: boolean;
211
- remoteSettingsAdmin: boolean;
212
- automations: boolean;
213
- preview: boolean;
214
- tokenMetrics: boolean;
215
- tokenUsageMetrics: boolean;
216
- costMetrics: boolean;
217
- };
218
- projects: {
219
- id: string;
220
- name: string;
221
- }[];
222
- bootProject: string;
223
- plugins: {
224
- loaded: {
225
- name: string;
226
- source: "bundled" | "host";
227
- path?: string | undefined;
228
- }[];
229
- failed: {
230
- name: string;
231
- source: "bundled" | "host";
232
- path?: string | undefined;
233
- error: string;
234
- }[];
235
- };
162
+ id: string;
163
+ automationId: string;
164
+ mode: 'preview' | 'execute';
165
+ status: 'queued' | 'running' | 'complete' | 'error';
166
+ createdAt: string;
167
+ completedAt?: string;
168
+ matches?: number;
169
+ truncated?: boolean;
170
+ error?: string;
236
171
  };
237
172
  outputFormat: "json";
238
173
  status: import("hono/utils/http-status").ContentfulStatusCode;
239
- input: {};
174
+ input: {
175
+ param: {
176
+ checkId: string;
177
+ };
178
+ };
179
+ } | {
180
+ output: {
181
+ error: string;
182
+ };
183
+ outputFormat: "json";
184
+ status: 404;
185
+ input: {
186
+ param: {
187
+ checkId: string;
188
+ };
189
+ };
240
190
  };
241
191
  };
242
192
  }, "/"> | import("hono/types").MergeSchemaPath<{
@@ -287,40 +237,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
287
237
  };
288
238
  };
289
239
  };
290
- }, "/"> | import("hono/types").MergeSchemaPath<{
291
- "/automation-checks/:checkId": {
292
- $get: {
293
- output: {
294
- id: string;
295
- automationId: string;
296
- mode: 'preview' | 'execute';
297
- status: 'queued' | 'running' | 'complete' | 'error';
298
- createdAt: string;
299
- completedAt?: string;
300
- matches?: number;
301
- truncated?: boolean;
302
- error?: string;
303
- };
304
- outputFormat: "json";
305
- status: import("hono/utils/http-status").ContentfulStatusCode;
306
- input: {
307
- param: {
308
- checkId: string;
309
- };
310
- };
311
- } | {
312
- output: {
313
- error: string;
314
- };
315
- outputFormat: "json";
316
- status: 404;
317
- input: {
318
- param: {
319
- checkId: string;
320
- };
321
- };
322
- };
323
- };
324
240
  }, "/"> | import("hono/types").MergeSchemaPath<{
325
241
  "/workspace/events": {
326
242
  $get: {
@@ -346,6 +262,64 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
346
262
  };
347
263
  };
348
264
  };
265
+ }, "/"> | import("hono/types").MergeSchemaPath<{
266
+ "/health": {
267
+ $get: {
268
+ output: {
269
+ version: string;
270
+ latestVersion?: string | undefined;
271
+ repoRoot: string;
272
+ repo: {
273
+ root: string;
274
+ branch: string;
275
+ remote?: string | undefined;
276
+ } | null;
277
+ checks: {
278
+ name: string;
279
+ available: boolean;
280
+ version?: string;
281
+ hint?: string;
282
+ }[];
283
+ defaultRunner: string;
284
+ forge: {
285
+ available?: boolean | undefined;
286
+ reason?: string;
287
+ kind: "github";
288
+ } | null;
289
+ capabilities: {
290
+ localHandoff: boolean;
291
+ settingsAdmin: boolean;
292
+ remoteSettingsAdmin: boolean;
293
+ automations: boolean;
294
+ preview: boolean;
295
+ tokenMetrics: boolean;
296
+ tokenUsageMetrics: boolean;
297
+ costMetrics: boolean;
298
+ };
299
+ projects: {
300
+ id: string;
301
+ name: string;
302
+ }[];
303
+ bootProject: string;
304
+ plugins: {
305
+ loaded: {
306
+ name: string;
307
+ source: "bundled" | "host";
308
+ path?: string | undefined;
309
+ }[];
310
+ failed: {
311
+ name: string;
312
+ source: "bundled" | "host";
313
+ path?: string | undefined;
314
+ error: string;
315
+ }[];
316
+ };
317
+ };
318
+ outputFormat: "json";
319
+ status: import("hono/utils/http-status").ContentfulStatusCode;
320
+ input: {};
321
+ };
322
+ };
349
323
  }, "/"> | import("hono/types").MergeSchemaPath<{
350
324
  "/models": {
351
325
  $get: {
@@ -989,224 +963,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
989
963
  };
990
964
  };
991
965
  };
992
- }, "/"> | import("hono/types").MergeSchemaPath<{
993
- "/providers/status": {
994
- $get: {
995
- output: {
996
- error: string;
997
- code?: "invalid_input" | undefined;
998
- };
999
- outputFormat: "json";
1000
- status: 400;
1001
- input: {
1002
- query: {
1003
- refresh?: "1" | undefined;
1004
- };
1005
- };
1006
- } | {
1007
- output: {
1008
- providers: {
1009
- requiresAccountHome?: boolean | undefined;
1010
- provider: string;
1011
- status: "connected" | "disconnected" | "not-installed" | "unknown";
1012
- enabled?: boolean | undefined;
1013
- hint?: string | undefined;
1014
- authFailureId?: string | undefined;
1015
- profileId?: string | undefined;
1016
- }[];
1017
- };
1018
- outputFormat: "json";
1019
- status: import("hono/utils/http-status").ContentfulStatusCode;
1020
- input: {
1021
- query: {
1022
- refresh?: "1" | undefined;
1023
- };
1024
- };
1025
- };
1026
- };
1027
- } & {
1028
- "/providers/:provider/enabled": {
1029
- $put: {
1030
- output: {
1031
- error: string;
1032
- code?: "invalid_input" | undefined;
1033
- };
1034
- outputFormat: "json";
1035
- status: 400;
1036
- input: {
1037
- param: {
1038
- provider: string;
1039
- };
1040
- } & {
1041
- json: {
1042
- enabled: boolean;
1043
- };
1044
- };
1045
- } | {
1046
- output: {
1047
- providers: {
1048
- requiresAccountHome?: boolean | undefined;
1049
- provider: string;
1050
- status: "connected" | "disconnected" | "not-installed" | "unknown";
1051
- enabled?: boolean | undefined;
1052
- hint?: string | undefined;
1053
- authFailureId?: string | undefined;
1054
- profileId?: string | undefined;
1055
- }[];
1056
- };
1057
- outputFormat: "json";
1058
- status: import("hono/utils/http-status").ContentfulStatusCode;
1059
- input: {
1060
- param: {
1061
- provider: string;
1062
- };
1063
- } & {
1064
- json: {
1065
- enabled: boolean;
1066
- };
1067
- };
1068
- } | {
1069
- output: {
1070
- error: string;
1071
- };
1072
- outputFormat: "json";
1073
- status: 500;
1074
- input: {
1075
- param: {
1076
- provider: string;
1077
- };
1078
- } & {
1079
- json: {
1080
- enabled: boolean;
1081
- };
1082
- };
1083
- };
1084
- };
1085
- } & {
1086
- "/providers/:provider/retry": {
1087
- $post: {
1088
- output: {
1089
- error: string;
1090
- code?: "invalid_input" | undefined;
1091
- };
1092
- outputFormat: "json";
1093
- status: 400;
1094
- input: {
1095
- param: {
1096
- provider: string;
1097
- };
1098
- } & {
1099
- json: {
1100
- authFailureId: string;
1101
- };
1102
- };
1103
- } | {
1104
- output: {
1105
- providers: {
1106
- requiresAccountHome?: boolean | undefined;
1107
- provider: string;
1108
- status: "connected" | "disconnected" | "not-installed" | "unknown";
1109
- enabled?: boolean | undefined;
1110
- hint?: string | undefined;
1111
- authFailureId?: string | undefined;
1112
- profileId?: string | undefined;
1113
- }[];
1114
- };
1115
- outputFormat: "json";
1116
- status: import("hono/utils/http-status").ContentfulStatusCode;
1117
- input: {
1118
- param: {
1119
- provider: string;
1120
- };
1121
- } & {
1122
- json: {
1123
- authFailureId: string;
1124
- };
1125
- };
1126
- } | {
1127
- output: {
1128
- error: string;
1129
- };
1130
- outputFormat: "json";
1131
- status: 409;
1132
- input: {
1133
- param: {
1134
- provider: string;
1135
- };
1136
- } & {
1137
- json: {
1138
- authFailureId: string;
1139
- };
1140
- };
1141
- };
1142
- };
1143
- } & {
1144
- "/providers/connect": {
1145
- $post: {
1146
- output: {
1147
- error: string;
1148
- };
1149
- outputFormat: "json";
1150
- status: 409;
1151
- input: {
1152
- json: {
1153
- provider: string;
1154
- profileId?: string | undefined;
1155
- };
1156
- };
1157
- } | {
1158
- output: {
1159
- error: string;
1160
- };
1161
- outputFormat: "json";
1162
- status: 400;
1163
- input: {
1164
- json: {
1165
- provider: string;
1166
- profileId?: string | undefined;
1167
- };
1168
- };
1169
- } | {
1170
- output: {
1171
- error: string;
1172
- };
1173
- outputFormat: "json";
1174
- status: 500;
1175
- input: {
1176
- json: {
1177
- provider: string;
1178
- profileId?: string | undefined;
1179
- };
1180
- };
1181
- } | {
1182
- output: {
1183
- opened: false;
1184
- connected: true;
1185
- command: string;
1186
- };
1187
- outputFormat: "json";
1188
- status: import("hono/utils/http-status").ContentfulStatusCode;
1189
- input: {
1190
- json: {
1191
- provider: string;
1192
- profileId?: string | undefined;
1193
- };
1194
- };
1195
- } | {
1196
- output: {
1197
- opened: true;
1198
- command: string;
1199
- };
1200
- outputFormat: "json";
1201
- status: import("hono/utils/http-status").ContentfulStatusCode;
1202
- input: {
1203
- json: {
1204
- provider: string;
1205
- profileId?: string | undefined;
1206
- };
1207
- };
1208
- };
1209
- };
1210
966
  }, "/"> | import("hono/types").MergeSchemaPath<{
1211
967
  "/workspace/config": {
1212
968
  $get: {
@@ -1506,6 +1262,224 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1506
1262
  };
1507
1263
  };
1508
1264
  };
1265
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1266
+ "/providers/status": {
1267
+ $get: {
1268
+ output: {
1269
+ error: string;
1270
+ code?: "invalid_input" | undefined;
1271
+ };
1272
+ outputFormat: "json";
1273
+ status: 400;
1274
+ input: {
1275
+ query: {
1276
+ refresh?: "1" | undefined;
1277
+ };
1278
+ };
1279
+ } | {
1280
+ output: {
1281
+ providers: {
1282
+ requiresAccountHome?: boolean | undefined;
1283
+ provider: string;
1284
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
1285
+ enabled?: boolean | undefined;
1286
+ hint?: string | undefined;
1287
+ authFailureId?: string | undefined;
1288
+ profileId?: string | undefined;
1289
+ }[];
1290
+ };
1291
+ outputFormat: "json";
1292
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1293
+ input: {
1294
+ query: {
1295
+ refresh?: "1" | undefined;
1296
+ };
1297
+ };
1298
+ };
1299
+ };
1300
+ } & {
1301
+ "/providers/:provider/enabled": {
1302
+ $put: {
1303
+ output: {
1304
+ error: string;
1305
+ code?: "invalid_input" | undefined;
1306
+ };
1307
+ outputFormat: "json";
1308
+ status: 400;
1309
+ input: {
1310
+ param: {
1311
+ provider: string;
1312
+ };
1313
+ } & {
1314
+ json: {
1315
+ enabled: boolean;
1316
+ };
1317
+ };
1318
+ } | {
1319
+ output: {
1320
+ providers: {
1321
+ requiresAccountHome?: boolean | undefined;
1322
+ provider: string;
1323
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
1324
+ enabled?: boolean | undefined;
1325
+ hint?: string | undefined;
1326
+ authFailureId?: string | undefined;
1327
+ profileId?: string | undefined;
1328
+ }[];
1329
+ };
1330
+ outputFormat: "json";
1331
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1332
+ input: {
1333
+ param: {
1334
+ provider: string;
1335
+ };
1336
+ } & {
1337
+ json: {
1338
+ enabled: boolean;
1339
+ };
1340
+ };
1341
+ } | {
1342
+ output: {
1343
+ error: string;
1344
+ };
1345
+ outputFormat: "json";
1346
+ status: 500;
1347
+ input: {
1348
+ param: {
1349
+ provider: string;
1350
+ };
1351
+ } & {
1352
+ json: {
1353
+ enabled: boolean;
1354
+ };
1355
+ };
1356
+ };
1357
+ };
1358
+ } & {
1359
+ "/providers/:provider/retry": {
1360
+ $post: {
1361
+ output: {
1362
+ error: string;
1363
+ code?: "invalid_input" | undefined;
1364
+ };
1365
+ outputFormat: "json";
1366
+ status: 400;
1367
+ input: {
1368
+ param: {
1369
+ provider: string;
1370
+ };
1371
+ } & {
1372
+ json: {
1373
+ authFailureId: string;
1374
+ };
1375
+ };
1376
+ } | {
1377
+ output: {
1378
+ providers: {
1379
+ requiresAccountHome?: boolean | undefined;
1380
+ provider: string;
1381
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
1382
+ enabled?: boolean | undefined;
1383
+ hint?: string | undefined;
1384
+ authFailureId?: string | undefined;
1385
+ profileId?: string | undefined;
1386
+ }[];
1387
+ };
1388
+ outputFormat: "json";
1389
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1390
+ input: {
1391
+ param: {
1392
+ provider: string;
1393
+ };
1394
+ } & {
1395
+ json: {
1396
+ authFailureId: string;
1397
+ };
1398
+ };
1399
+ } | {
1400
+ output: {
1401
+ error: string;
1402
+ };
1403
+ outputFormat: "json";
1404
+ status: 409;
1405
+ input: {
1406
+ param: {
1407
+ provider: string;
1408
+ };
1409
+ } & {
1410
+ json: {
1411
+ authFailureId: string;
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ } & {
1417
+ "/providers/connect": {
1418
+ $post: {
1419
+ output: {
1420
+ error: string;
1421
+ };
1422
+ outputFormat: "json";
1423
+ status: 409;
1424
+ input: {
1425
+ json: {
1426
+ provider: string;
1427
+ profileId?: string | undefined;
1428
+ };
1429
+ };
1430
+ } | {
1431
+ output: {
1432
+ error: string;
1433
+ };
1434
+ outputFormat: "json";
1435
+ status: 400;
1436
+ input: {
1437
+ json: {
1438
+ provider: string;
1439
+ profileId?: string | undefined;
1440
+ };
1441
+ };
1442
+ } | {
1443
+ output: {
1444
+ error: string;
1445
+ };
1446
+ outputFormat: "json";
1447
+ status: 500;
1448
+ input: {
1449
+ json: {
1450
+ provider: string;
1451
+ profileId?: string | undefined;
1452
+ };
1453
+ };
1454
+ } | {
1455
+ output: {
1456
+ opened: false;
1457
+ connected: true;
1458
+ command: string;
1459
+ };
1460
+ outputFormat: "json";
1461
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1462
+ input: {
1463
+ json: {
1464
+ provider: string;
1465
+ profileId?: string | undefined;
1466
+ };
1467
+ };
1468
+ } | {
1469
+ output: {
1470
+ opened: true;
1471
+ command: string;
1472
+ };
1473
+ outputFormat: "json";
1474
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1475
+ input: {
1476
+ json: {
1477
+ provider: string;
1478
+ profileId?: string | undefined;
1479
+ };
1480
+ };
1481
+ };
1482
+ };
1509
1483
  }, "/"> | import("hono/types").MergeSchemaPath<{
1510
1484
  "/providers/sign-in/start": {
1511
1485
  $post: {
@@ -3454,6 +3428,59 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3454
3428
  };
3455
3429
  };
3456
3430
  };
3431
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3432
+ "/open-targets": {
3433
+ $get: {
3434
+ output: {
3435
+ targets: {
3436
+ id: string;
3437
+ label: string;
3438
+ icon?: string;
3439
+ }[];
3440
+ };
3441
+ outputFormat: "json";
3442
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3443
+ input: {};
3444
+ };
3445
+ };
3446
+ } & {
3447
+ "/open-in": {
3448
+ $post: {
3449
+ output: {
3450
+ error: string;
3451
+ };
3452
+ outputFormat: "json";
3453
+ status: 409;
3454
+ input: {
3455
+ json: {
3456
+ target: string;
3457
+ };
3458
+ };
3459
+ } | {
3460
+ output: {
3461
+ error: string;
3462
+ };
3463
+ outputFormat: "json";
3464
+ status: 400;
3465
+ input: {
3466
+ json: {
3467
+ target: string;
3468
+ };
3469
+ };
3470
+ } | {
3471
+ output: {
3472
+ opened: true;
3473
+ path: string;
3474
+ };
3475
+ outputFormat: "json";
3476
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3477
+ input: {
3478
+ json: {
3479
+ target: string;
3480
+ };
3481
+ };
3482
+ };
3483
+ };
3457
3484
  }, "/"> | import("hono/types").MergeSchemaPath<{
3458
3485
  "/ui-state": {
3459
3486
  $get: {
@@ -3615,59 +3642,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3615
3642
  };
3616
3643
  };
3617
3644
  };
3618
- }, "/"> | import("hono/types").MergeSchemaPath<{
3619
- "/open-targets": {
3620
- $get: {
3621
- output: {
3622
- targets: {
3623
- id: string;
3624
- label: string;
3625
- icon?: string;
3626
- }[];
3627
- };
3628
- outputFormat: "json";
3629
- status: import("hono/utils/http-status").ContentfulStatusCode;
3630
- input: {};
3631
- };
3632
- };
3633
- } & {
3634
- "/open-in": {
3635
- $post: {
3636
- output: {
3637
- error: string;
3638
- };
3639
- outputFormat: "json";
3640
- status: 409;
3641
- input: {
3642
- json: {
3643
- target: string;
3644
- };
3645
- };
3646
- } | {
3647
- output: {
3648
- error: string;
3649
- };
3650
- outputFormat: "json";
3651
- status: 400;
3652
- input: {
3653
- json: {
3654
- target: string;
3655
- };
3656
- };
3657
- } | {
3658
- output: {
3659
- opened: true;
3660
- path: string;
3661
- };
3662
- outputFormat: "json";
3663
- status: import("hono/utils/http-status").ContentfulStatusCode;
3664
- input: {
3665
- json: {
3666
- target: string;
3667
- };
3668
- };
3669
- };
3670
- };
3671
3645
  }, "/"> | import("hono/types").MergeSchemaPath<{
3672
3646
  "/runs/:id/events": {
3673
3647
  $get: {
@@ -4678,6 +4652,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4678
4652
  } & {
4679
4653
  "/repo/commit/:sha": {
4680
4654
  $get: {
4655
+ output: string;
4656
+ outputFormat: "text";
4657
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4658
+ input: {
4659
+ query: {
4660
+ structured?: string | undefined;
4661
+ };
4662
+ } & {
4663
+ param: {
4664
+ sha: string;
4665
+ };
4666
+ };
4667
+ } | {
4681
4668
  output: {
4682
4669
  error: string;
4683
4670
  code?: "invalid_input" | undefined;
@@ -4693,6 +4680,21 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4693
4680
  sha: string;
4694
4681
  };
4695
4682
  };
4683
+ } | {
4684
+ output: {
4685
+ error: string;
4686
+ };
4687
+ outputFormat: "json";
4688
+ status: 409;
4689
+ input: {
4690
+ query: {
4691
+ structured?: string | undefined;
4692
+ };
4693
+ } & {
4694
+ param: {
4695
+ sha: string;
4696
+ };
4697
+ };
4696
4698
  } | {
4697
4699
  output: {
4698
4700
  sha: string;
@@ -4726,39 +4728,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4726
4728
  sha: string;
4727
4729
  };
4728
4730
  };
4729
- } | {
4731
+ };
4732
+ };
4733
+ } & {
4734
+ "/repo/changes": {
4735
+ $get: {
4730
4736
  output: {
4731
4737
  error: string;
4732
4738
  };
4733
4739
  outputFormat: "json";
4734
4740
  status: 409;
4735
- input: {
4736
- query: {
4737
- structured?: string | undefined;
4738
- };
4739
- } & {
4740
- param: {
4741
- sha: string;
4742
- };
4743
- };
4741
+ input: {};
4744
4742
  } | {
4745
- output: string;
4746
- outputFormat: "text";
4747
- status: import("hono/utils/http-status").ContentfulStatusCode;
4748
- input: {
4749
- query: {
4750
- structured?: string | undefined;
4751
- };
4752
- } & {
4753
- param: {
4754
- sha: string;
4755
- };
4756
- };
4757
- };
4758
- };
4759
- } & {
4760
- "/repo/changes": {
4761
- $get: {
4762
4743
  output: {
4763
4744
  files: {
4764
4745
  path: string;
@@ -4783,13 +4764,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4783
4764
  outputFormat: "json";
4784
4765
  status: import("hono/utils/http-status").ContentfulStatusCode;
4785
4766
  input: {};
4786
- } | {
4787
- output: {
4788
- error: string;
4789
- };
4790
- outputFormat: "json";
4791
- status: 409;
4792
- input: {};
4793
4767
  };
4794
4768
  };
4795
4769
  } & {
@@ -19172,7 +19146,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19172
19146
  error: string;
19173
19147
  };
19174
19148
  outputFormat: "json";
19175
- status: 400;
19149
+ status: 404 | 409;
19176
19150
  input: {
19177
19151
  json: {
19178
19152
  target: string;
@@ -19185,11 +19159,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19185
19159
  };
19186
19160
  } | {
19187
19161
  output: {
19188
- opened: true;
19189
- path: string;
19162
+ error: string;
19190
19163
  };
19191
19164
  outputFormat: "json";
19192
- status: import("hono/utils/http-status").ContentfulStatusCode;
19165
+ status: 400;
19193
19166
  input: {
19194
19167
  json: {
19195
19168
  target: string;
@@ -19202,10 +19175,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19202
19175
  };
19203
19176
  } | {
19204
19177
  output: {
19205
- error: string;
19178
+ opened: true;
19179
+ path: string;
19206
19180
  };
19207
19181
  outputFormat: "json";
19208
- status: 404 | 409;
19182
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19209
19183
  input: {
19210
19184
  json: {
19211
19185
  target: string;
@@ -19221,20 +19195,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19221
19195
  } & {
19222
19196
  "/runs/:id/handoff": {
19223
19197
  $get: {
19224
- output: {
19225
- error: string;
19226
- };
19227
- outputFormat: "json";
19228
- status: 404;
19198
+ output: string;
19199
+ outputFormat: "text";
19200
+ status: 200;
19229
19201
  input: {
19230
19202
  param: {
19231
19203
  id: string;
19232
19204
  };
19233
19205
  };
19234
19206
  } | {
19235
- output: string;
19236
- outputFormat: "text";
19237
- status: 200;
19207
+ output: {
19208
+ error: string;
19209
+ };
19210
+ outputFormat: "json";
19211
+ status: 404;
19238
19212
  input: {
19239
19213
  param: {
19240
19214
  id: string;
@@ -19272,20 +19246,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19272
19246
  } & {
19273
19247
  "/runs/:id/diff": {
19274
19248
  $get: {
19275
- output: {
19276
- error: string;
19277
- };
19278
- outputFormat: "json";
19279
- status: 404 | 409;
19249
+ output: string;
19250
+ outputFormat: "text";
19251
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19280
19252
  input: {
19281
19253
  param: {
19282
19254
  id: string;
19283
19255
  };
19284
19256
  };
19285
19257
  } | {
19286
- output: string;
19287
- outputFormat: "text";
19288
- status: import("hono/utils/http-status").ContentfulStatusCode;
19258
+ output: {
19259
+ error: string;
19260
+ };
19261
+ outputFormat: "json";
19262
+ status: 404 | 409;
19289
19263
  input: {
19290
19264
  param: {
19291
19265
  id: string;
@@ -20108,6 +20082,59 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20108
20082
  };
20109
20083
  };
20110
20084
  };
20085
+ }, "/"> | import("hono/types").MergeSchemaPath<{
20086
+ "/open-targets": {
20087
+ $get: {
20088
+ output: {
20089
+ targets: {
20090
+ id: string;
20091
+ label: string;
20092
+ icon?: string;
20093
+ }[];
20094
+ };
20095
+ outputFormat: "json";
20096
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20097
+ input: {};
20098
+ };
20099
+ };
20100
+ } & {
20101
+ "/open-in": {
20102
+ $post: {
20103
+ output: {
20104
+ error: string;
20105
+ };
20106
+ outputFormat: "json";
20107
+ status: 409;
20108
+ input: {
20109
+ json: {
20110
+ target: string;
20111
+ };
20112
+ };
20113
+ } | {
20114
+ output: {
20115
+ error: string;
20116
+ };
20117
+ outputFormat: "json";
20118
+ status: 400;
20119
+ input: {
20120
+ json: {
20121
+ target: string;
20122
+ };
20123
+ };
20124
+ } | {
20125
+ output: {
20126
+ opened: true;
20127
+ path: string;
20128
+ };
20129
+ outputFormat: "json";
20130
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20131
+ input: {
20132
+ json: {
20133
+ target: string;
20134
+ };
20135
+ };
20136
+ };
20137
+ };
20111
20138
  }, "/"> | import("hono/types").MergeSchemaPath<{
20112
20139
  "/ui-state": {
20113
20140
  $get: {
@@ -20269,59 +20296,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20269
20296
  };
20270
20297
  };
20271
20298
  };
20272
- }, "/"> | import("hono/types").MergeSchemaPath<{
20273
- "/open-targets": {
20274
- $get: {
20275
- output: {
20276
- targets: {
20277
- id: string;
20278
- label: string;
20279
- icon?: string;
20280
- }[];
20281
- };
20282
- outputFormat: "json";
20283
- status: import("hono/utils/http-status").ContentfulStatusCode;
20284
- input: {};
20285
- };
20286
- };
20287
- } & {
20288
- "/open-in": {
20289
- $post: {
20290
- output: {
20291
- error: string;
20292
- };
20293
- outputFormat: "json";
20294
- status: 409;
20295
- input: {
20296
- json: {
20297
- target: string;
20298
- };
20299
- };
20300
- } | {
20301
- output: {
20302
- error: string;
20303
- };
20304
- outputFormat: "json";
20305
- status: 400;
20306
- input: {
20307
- json: {
20308
- target: string;
20309
- };
20310
- };
20311
- } | {
20312
- output: {
20313
- opened: true;
20314
- path: string;
20315
- };
20316
- outputFormat: "json";
20317
- status: import("hono/utils/http-status").ContentfulStatusCode;
20318
- input: {
20319
- json: {
20320
- target: string;
20321
- };
20322
- };
20323
- };
20324
- };
20325
20299
  }, "/"> | import("hono/types").MergeSchemaPath<{
20326
20300
  "/runs/:id/events": {
20327
20301
  $get: {
@@ -21332,6 +21306,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21332
21306
  } & {
21333
21307
  "/repo/commit/:sha": {
21334
21308
  $get: {
21309
+ output: string;
21310
+ outputFormat: "text";
21311
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21312
+ input: {
21313
+ query: {
21314
+ structured?: string | undefined;
21315
+ };
21316
+ } & {
21317
+ param: {
21318
+ sha: string;
21319
+ };
21320
+ };
21321
+ } | {
21335
21322
  output: {
21336
21323
  error: string;
21337
21324
  code?: "invalid_input" | undefined;
@@ -21347,6 +21334,21 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21347
21334
  sha: string;
21348
21335
  };
21349
21336
  };
21337
+ } | {
21338
+ output: {
21339
+ error: string;
21340
+ };
21341
+ outputFormat: "json";
21342
+ status: 409;
21343
+ input: {
21344
+ query: {
21345
+ structured?: string | undefined;
21346
+ };
21347
+ } & {
21348
+ param: {
21349
+ sha: string;
21350
+ };
21351
+ };
21350
21352
  } | {
21351
21353
  output: {
21352
21354
  sha: string;
@@ -21380,39 +21382,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21380
21382
  sha: string;
21381
21383
  };
21382
21384
  };
21383
- } | {
21385
+ };
21386
+ };
21387
+ } & {
21388
+ "/repo/changes": {
21389
+ $get: {
21384
21390
  output: {
21385
21391
  error: string;
21386
21392
  };
21387
21393
  outputFormat: "json";
21388
21394
  status: 409;
21389
- input: {
21390
- query: {
21391
- structured?: string | undefined;
21392
- };
21393
- } & {
21394
- param: {
21395
- sha: string;
21396
- };
21397
- };
21395
+ input: {};
21398
21396
  } | {
21399
- output: string;
21400
- outputFormat: "text";
21401
- status: import("hono/utils/http-status").ContentfulStatusCode;
21402
- input: {
21403
- query: {
21404
- structured?: string | undefined;
21405
- };
21406
- } & {
21407
- param: {
21408
- sha: string;
21409
- };
21410
- };
21411
- };
21412
- };
21413
- } & {
21414
- "/repo/changes": {
21415
- $get: {
21416
21397
  output: {
21417
21398
  files: {
21418
21399
  path: string;
@@ -21437,13 +21418,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21437
21418
  outputFormat: "json";
21438
21419
  status: import("hono/utils/http-status").ContentfulStatusCode;
21439
21420
  input: {};
21440
- } | {
21441
- output: {
21442
- error: string;
21443
- };
21444
- outputFormat: "json";
21445
- status: 409;
21446
- input: {};
21447
21421
  };
21448
21422
  };
21449
21423
  } & {
@@ -35826,7 +35800,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35826
35800
  error: string;
35827
35801
  };
35828
35802
  outputFormat: "json";
35829
- status: 400;
35803
+ status: 404 | 409;
35830
35804
  input: {
35831
35805
  json: {
35832
35806
  target: string;
@@ -35839,11 +35813,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35839
35813
  };
35840
35814
  } | {
35841
35815
  output: {
35842
- opened: true;
35843
- path: string;
35816
+ error: string;
35844
35817
  };
35845
35818
  outputFormat: "json";
35846
- status: import("hono/utils/http-status").ContentfulStatusCode;
35819
+ status: 400;
35847
35820
  input: {
35848
35821
  json: {
35849
35822
  target: string;
@@ -35856,10 +35829,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35856
35829
  };
35857
35830
  } | {
35858
35831
  output: {
35859
- error: string;
35832
+ opened: true;
35833
+ path: string;
35860
35834
  };
35861
35835
  outputFormat: "json";
35862
- status: 404 | 409;
35836
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35863
35837
  input: {
35864
35838
  json: {
35865
35839
  target: string;
@@ -35875,20 +35849,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35875
35849
  } & {
35876
35850
  "/runs/:id/handoff": {
35877
35851
  $get: {
35878
- output: {
35879
- error: string;
35880
- };
35881
- outputFormat: "json";
35882
- status: 404;
35852
+ output: string;
35853
+ outputFormat: "text";
35854
+ status: 200;
35883
35855
  input: {
35884
35856
  param: {
35885
35857
  id: string;
35886
35858
  };
35887
35859
  };
35888
35860
  } | {
35889
- output: string;
35890
- outputFormat: "text";
35891
- status: 200;
35861
+ output: {
35862
+ error: string;
35863
+ };
35864
+ outputFormat: "json";
35865
+ status: 404;
35892
35866
  input: {
35893
35867
  param: {
35894
35868
  id: string;
@@ -35926,20 +35900,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35926
35900
  } & {
35927
35901
  "/runs/:id/diff": {
35928
35902
  $get: {
35929
- output: {
35930
- error: string;
35931
- };
35932
- outputFormat: "json";
35933
- status: 404 | 409;
35903
+ output: string;
35904
+ outputFormat: "text";
35905
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35934
35906
  input: {
35935
35907
  param: {
35936
35908
  id: string;
35937
35909
  };
35938
35910
  };
35939
35911
  } | {
35940
- output: string;
35941
- outputFormat: "text";
35942
- status: import("hono/utils/http-status").ContentfulStatusCode;
35912
+ output: {
35913
+ error: string;
35914
+ };
35915
+ outputFormat: "json";
35916
+ status: 404 | 409;
35943
35917
  input: {
35944
35918
  param: {
35945
35919
  id: string;