@hearsay-tools/squawk 0.18.0-pr4326.8405 → 0.18.0-pr4327.8408

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.
@@ -212,18 +212,20 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
212
212
  "/automations": {
213
213
  $post: {
214
214
  output: {
215
- automation: {
216
- [x: string]: import("hono/utils/types").JSONValue;
217
- id: string;
218
- revision: number;
215
+ error: string;
216
+ };
217
+ outputFormat: "json";
218
+ status: 400 | 404 | 409;
219
+ input: {
220
+ json: {
219
221
  name: string;
220
222
  description?: string | undefined;
221
- enabled: boolean;
222
- kind: "github" | "schedule";
223
+ enabled?: boolean | undefined;
224
+ kind?: "github" | "schedule" | undefined;
223
225
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
224
226
  intervalSeconds?: number | undefined;
225
227
  filters?: {
226
- [x: string]: import("hono/utils/types").JSONValue;
228
+ [x: string]: unknown;
227
229
  includeExisting?: boolean | undefined;
228
230
  requireCurrentLabels?: boolean | undefined;
229
231
  authors?: string[] | undefined;
@@ -232,11 +234,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
232
234
  anyLabels?: string[] | undefined;
233
235
  excludeLabels?: string[] | undefined;
234
236
  changedLabels?: string[] | undefined;
235
- lookbackDays: number;
236
- maxRecords: number;
237
+ lookbackDays?: number | undefined;
238
+ maxRecords?: number | undefined;
237
239
  } | undefined;
238
240
  schedule?: {
239
- [x: string]: import("hono/utils/types").JSONValue;
240
241
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
241
242
  hour?: number | undefined;
242
243
  minute?: number | undefined;
@@ -247,7 +248,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
247
248
  latestStartMinutes?: number | undefined;
248
249
  } | undefined;
249
250
  task: {
250
- [x: string]: import("hono/utils/types").JSONValue;
251
251
  archiveWhenDone?: boolean | undefined;
252
252
  autoMergePr?: boolean | undefined;
253
253
  allowWorkers?: boolean | undefined;
@@ -268,53 +268,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
268
268
  bashAllowlist?: string[] | undefined;
269
269
  kind?: "plugin" | undefined;
270
270
  pluginKind?: string | undefined;
271
- config?: {
272
- [x: string]: import("hono/utils/types").JSONValue;
273
- } | undefined;
271
+ config?: Record<string, unknown> | undefined;
274
272
  command?: string | undefined;
275
273
  onFail?: {
276
274
  retry: string;
277
- max: number;
275
+ max?: number | undefined;
278
276
  } | undefined;
279
277
  }[] | undefined;
280
278
  runner?: string | undefined;
281
279
  model?: string | undefined;
282
280
  effort?: string | undefined;
283
- variants?: 1 | 2 | 3 | undefined;
284
281
  worktree?: boolean | undefined;
285
282
  autonomous?: boolean | undefined;
286
283
  systemPrompt?: string | undefined;
287
284
  };
288
- archived?: {
289
- [x: string]: import("hono/utils/types").JSONValue;
290
- at: string;
291
- outcome: "cancelled" | "launched";
292
- runId?: string | undefined;
293
- receiptId?: string | undefined;
294
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
295
- } | undefined;
296
- createdAt: string;
297
- updatedAt: string;
285
+ enable?: boolean | undefined;
298
286
  };
299
- once?: {
300
- dueAt: string;
301
- timeZone: string;
302
- resolvedInstant: string;
303
- note: string;
304
- } | undefined;
305
287
  };
306
- outputFormat: "json";
307
- status: 201;
308
- input: {
309
- json: {
288
+ } | {
289
+ output: {
290
+ automation: {
291
+ [x: string]: import("hono/utils/types").JSONValue;
292
+ id: string;
293
+ revision: number;
310
294
  name: string;
311
295
  description?: string | undefined;
312
- enabled?: boolean | undefined;
313
- kind?: "github" | "schedule" | undefined;
296
+ enabled: boolean;
297
+ kind: "github" | "schedule";
314
298
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
315
299
  intervalSeconds?: number | undefined;
316
300
  filters?: {
317
- [x: string]: unknown;
301
+ [x: string]: import("hono/utils/types").JSONValue;
318
302
  includeExisting?: boolean | undefined;
319
303
  requireCurrentLabels?: boolean | undefined;
320
304
  authors?: string[] | undefined;
@@ -323,10 +307,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
323
307
  anyLabels?: string[] | undefined;
324
308
  excludeLabels?: string[] | undefined;
325
309
  changedLabels?: string[] | undefined;
326
- lookbackDays?: number | undefined;
327
- maxRecords?: number | undefined;
310
+ lookbackDays: number;
311
+ maxRecords: number;
328
312
  } | undefined;
329
313
  schedule?: {
314
+ [x: string]: import("hono/utils/types").JSONValue;
330
315
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
331
316
  hour?: number | undefined;
332
317
  minute?: number | undefined;
@@ -337,6 +322,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
337
322
  latestStartMinutes?: number | undefined;
338
323
  } | undefined;
339
324
  task: {
325
+ [x: string]: import("hono/utils/types").JSONValue;
340
326
  archiveWhenDone?: boolean | undefined;
341
327
  autoMergePr?: boolean | undefined;
342
328
  allowWorkers?: boolean | undefined;
@@ -357,29 +343,43 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
357
343
  bashAllowlist?: string[] | undefined;
358
344
  kind?: "plugin" | undefined;
359
345
  pluginKind?: string | undefined;
360
- config?: Record<string, unknown> | undefined;
346
+ config?: {
347
+ [x: string]: import("hono/utils/types").JSONValue;
348
+ } | undefined;
361
349
  command?: string | undefined;
362
350
  onFail?: {
363
351
  retry: string;
364
- max?: number | undefined;
352
+ max: number;
365
353
  } | undefined;
366
354
  }[] | undefined;
367
355
  runner?: string | undefined;
368
356
  model?: string | undefined;
369
357
  effort?: string | undefined;
358
+ variants?: 1 | 2 | 3 | undefined;
370
359
  worktree?: boolean | undefined;
371
360
  autonomous?: boolean | undefined;
372
361
  systemPrompt?: string | undefined;
373
362
  };
374
- enable?: boolean | undefined;
363
+ archived?: {
364
+ [x: string]: import("hono/utils/types").JSONValue;
365
+ at: string;
366
+ outcome: "cancelled" | "launched";
367
+ runId?: string | undefined;
368
+ receiptId?: string | undefined;
369
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
370
+ } | undefined;
371
+ createdAt: string;
372
+ updatedAt: string;
375
373
  };
376
- };
377
- } | {
378
- output: {
379
- error: string;
374
+ once?: {
375
+ dueAt: string;
376
+ timeZone: string;
377
+ resolvedInstant: string;
378
+ note: string;
379
+ } | undefined;
380
380
  };
381
381
  outputFormat: "json";
382
- status: 400 | 404 | 409;
382
+ status: 201;
383
383
  input: {
384
384
  json: {
385
385
  name: string;
@@ -454,6 +454,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
454
454
  } & {
455
455
  "/automations/:id": {
456
456
  $get: {
457
+ output: {
458
+ error: string;
459
+ };
460
+ outputFormat: "json";
461
+ status: 400 | 404 | 409;
462
+ input: {
463
+ param: {
464
+ id: string;
465
+ };
466
+ };
467
+ } | {
457
468
  output: {
458
469
  automation: {
459
470
  [x: string]: import("hono/utils/types").JSONValue;
@@ -616,35 +627,26 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
616
627
  id: string;
617
628
  };
618
629
  };
619
- } | {
620
- output: {
621
- error: string;
622
- };
623
- outputFormat: "json";
624
- status: 400 | 404 | 409;
625
- input: {
626
- param: {
627
- id: string;
628
- };
629
- };
630
630
  };
631
631
  };
632
632
  } & {
633
633
  "/automations/:id": {
634
634
  $put: {
635
635
  output: {
636
- automation: {
637
- [x: string]: import("hono/utils/types").JSONValue;
638
- id: string;
639
- revision: number;
636
+ error: string;
637
+ };
638
+ outputFormat: "json";
639
+ status: 400 | 404 | 409;
640
+ input: {
641
+ json: {
640
642
  name: string;
641
643
  description?: string | undefined;
642
- enabled: boolean;
643
- kind: "github" | "schedule";
644
+ enabled?: boolean | undefined;
645
+ kind?: "github" | "schedule" | undefined;
644
646
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
645
647
  intervalSeconds?: number | undefined;
646
648
  filters?: {
647
- [x: string]: import("hono/utils/types").JSONValue;
649
+ [x: string]: unknown;
648
650
  includeExisting?: boolean | undefined;
649
651
  requireCurrentLabels?: boolean | undefined;
650
652
  authors?: string[] | undefined;
@@ -653,11 +655,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
653
655
  anyLabels?: string[] | undefined;
654
656
  excludeLabels?: string[] | undefined;
655
657
  changedLabels?: string[] | undefined;
656
- lookbackDays: number;
657
- maxRecords: number;
658
+ lookbackDays?: number | undefined;
659
+ maxRecords?: number | undefined;
658
660
  } | undefined;
659
661
  schedule?: {
660
- [x: string]: import("hono/utils/types").JSONValue;
661
662
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
662
663
  hour?: number | undefined;
663
664
  minute?: number | undefined;
@@ -668,7 +669,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
668
669
  latestStartMinutes?: number | undefined;
669
670
  } | undefined;
670
671
  task: {
671
- [x: string]: import("hono/utils/types").JSONValue;
672
672
  archiveWhenDone?: boolean | undefined;
673
673
  autoMergePr?: boolean | undefined;
674
674
  allowWorkers?: boolean | undefined;
@@ -689,47 +689,41 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
689
689
  bashAllowlist?: string[] | undefined;
690
690
  kind?: "plugin" | undefined;
691
691
  pluginKind?: string | undefined;
692
- config?: {
693
- [x: string]: import("hono/utils/types").JSONValue;
694
- } | undefined;
692
+ config?: Record<string, unknown> | undefined;
695
693
  command?: string | undefined;
696
694
  onFail?: {
697
695
  retry: string;
698
- max: number;
696
+ max?: number | undefined;
699
697
  } | undefined;
700
698
  }[] | undefined;
701
699
  runner?: string | undefined;
702
700
  model?: string | undefined;
703
701
  effort?: string | undefined;
704
- variants?: 1 | 2 | 3 | undefined;
705
702
  worktree?: boolean | undefined;
706
703
  autonomous?: boolean | undefined;
707
704
  systemPrompt?: string | undefined;
708
705
  };
709
- archived?: {
710
- [x: string]: import("hono/utils/types").JSONValue;
711
- at: string;
712
- outcome: "cancelled" | "launched";
713
- runId?: string | undefined;
714
- receiptId?: string | undefined;
715
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
716
- } | undefined;
717
- createdAt: string;
718
- updatedAt: string;
706
+ expectedRevision: number;
707
+ };
708
+ } & {
709
+ param: {
710
+ id: string;
719
711
  };
720
712
  };
721
- outputFormat: "json";
722
- status: import("hono/utils/http-status").ContentfulStatusCode;
723
- input: {
724
- json: {
713
+ } | {
714
+ output: {
715
+ automation: {
716
+ [x: string]: import("hono/utils/types").JSONValue;
717
+ id: string;
718
+ revision: number;
725
719
  name: string;
726
720
  description?: string | undefined;
727
- enabled?: boolean | undefined;
728
- kind?: "github" | "schedule" | undefined;
721
+ enabled: boolean;
722
+ kind: "github" | "schedule";
729
723
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
730
724
  intervalSeconds?: number | undefined;
731
725
  filters?: {
732
- [x: string]: unknown;
726
+ [x: string]: import("hono/utils/types").JSONValue;
733
727
  includeExisting?: boolean | undefined;
734
728
  requireCurrentLabels?: boolean | undefined;
735
729
  authors?: string[] | undefined;
@@ -738,10 +732,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
738
732
  anyLabels?: string[] | undefined;
739
733
  excludeLabels?: string[] | undefined;
740
734
  changedLabels?: string[] | undefined;
741
- lookbackDays?: number | undefined;
742
- maxRecords?: number | undefined;
735
+ lookbackDays: number;
736
+ maxRecords: number;
743
737
  } | undefined;
744
738
  schedule?: {
739
+ [x: string]: import("hono/utils/types").JSONValue;
745
740
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
746
741
  hour?: number | undefined;
747
742
  minute?: number | undefined;
@@ -752,6 +747,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
752
747
  latestStartMinutes?: number | undefined;
753
748
  } | undefined;
754
749
  task: {
750
+ [x: string]: import("hono/utils/types").JSONValue;
755
751
  archiveWhenDone?: boolean | undefined;
756
752
  autoMergePr?: boolean | undefined;
757
753
  allowWorkers?: boolean | undefined;
@@ -772,33 +768,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
772
768
  bashAllowlist?: string[] | undefined;
773
769
  kind?: "plugin" | undefined;
774
770
  pluginKind?: string | undefined;
775
- config?: Record<string, unknown> | undefined;
771
+ config?: {
772
+ [x: string]: import("hono/utils/types").JSONValue;
773
+ } | undefined;
776
774
  command?: string | undefined;
777
775
  onFail?: {
778
776
  retry: string;
779
- max?: number | undefined;
777
+ max: number;
780
778
  } | undefined;
781
779
  }[] | undefined;
782
780
  runner?: string | undefined;
783
781
  model?: string | undefined;
784
782
  effort?: string | undefined;
783
+ variants?: 1 | 2 | 3 | undefined;
785
784
  worktree?: boolean | undefined;
786
785
  autonomous?: boolean | undefined;
787
786
  systemPrompt?: string | undefined;
788
787
  };
789
- expectedRevision: number;
790
- };
791
- } & {
792
- param: {
793
- id: string;
788
+ archived?: {
789
+ [x: string]: import("hono/utils/types").JSONValue;
790
+ at: string;
791
+ outcome: "cancelled" | "launched";
792
+ runId?: string | undefined;
793
+ receiptId?: string | undefined;
794
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
795
+ } | undefined;
796
+ createdAt: string;
797
+ updatedAt: string;
794
798
  };
795
799
  };
796
- } | {
797
- output: {
798
- error: string;
799
- };
800
800
  outputFormat: "json";
801
- status: 400 | 404 | 409;
801
+ status: import("hono/utils/http-status").ContentfulStatusCode;
802
802
  input: {
803
803
  json: {
804
804
  name: string;
@@ -901,6 +901,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
901
901
  } & {
902
902
  "/automations/:id/enable": {
903
903
  $post: {
904
+ output: {
905
+ error: string;
906
+ };
907
+ outputFormat: "json";
908
+ status: 400 | 404 | 409;
909
+ input: {
910
+ param: {
911
+ id: string;
912
+ };
913
+ };
914
+ } | {
904
915
  output: {
905
916
  automation: {
906
917
  [x: string]: import("hono/utils/types").JSONValue;
@@ -994,7 +1005,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
994
1005
  id: string;
995
1006
  };
996
1007
  };
997
- } | {
1008
+ };
1009
+ };
1010
+ } & {
1011
+ "/automations/:id/pause": {
1012
+ $post: {
998
1013
  output: {
999
1014
  error: string;
1000
1015
  };
@@ -1005,11 +1020,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1005
1020
  id: string;
1006
1021
  };
1007
1022
  };
1008
- };
1009
- };
1010
- } & {
1011
- "/automations/:id/pause": {
1012
- $post: {
1023
+ } | {
1013
1024
  output: {
1014
1025
  automation: {
1015
1026
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1103,7 +1114,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1103
1114
  id: string;
1104
1115
  };
1105
1116
  };
1106
- } | {
1117
+ };
1118
+ };
1119
+ } & {
1120
+ "/automations/:id/cancel": {
1121
+ $post: {
1107
1122
  output: {
1108
1123
  error: string;
1109
1124
  };
@@ -1114,11 +1129,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1114
1129
  id: string;
1115
1130
  };
1116
1131
  };
1117
- };
1118
- };
1119
- } & {
1120
- "/automations/:id/cancel": {
1121
- $post: {
1132
+ } | {
1122
1133
  output: {
1123
1134
  automation: {
1124
1135
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1212,27 +1223,16 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1212
1223
  id: string;
1213
1224
  };
1214
1225
  };
1215
- } | {
1216
- output: {
1217
- error: string;
1218
- };
1219
- outputFormat: "json";
1220
- status: 400 | 404 | 409;
1221
- input: {
1222
- param: {
1223
- id: string;
1224
- };
1225
- };
1226
1226
  };
1227
1227
  };
1228
1228
  } & {
1229
1229
  "/automations/:id/run": {
1230
1230
  $post: {
1231
1231
  output: {
1232
- runId: string;
1232
+ error: string;
1233
1233
  };
1234
1234
  outputFormat: "json";
1235
- status: 202;
1235
+ status: 400 | 404 | 409;
1236
1236
  input: {
1237
1237
  param: {
1238
1238
  id: string;
@@ -1240,10 +1240,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1240
1240
  };
1241
1241
  } | {
1242
1242
  output: {
1243
- error: string;
1243
+ runId: string;
1244
1244
  };
1245
1245
  outputFormat: "json";
1246
- status: 400 | 404 | 409;
1246
+ status: 202;
1247
1247
  input: {
1248
1248
  param: {
1249
1249
  id: string;
@@ -1255,10 +1255,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1255
1255
  "/automations/:id/check": {
1256
1256
  $post: {
1257
1257
  output: {
1258
- checkId: string;
1258
+ error: string;
1259
1259
  };
1260
1260
  outputFormat: "json";
1261
- status: 202;
1261
+ status: 404;
1262
1262
  input: {
1263
1263
  json: {
1264
1264
  mode: "execute" | "preview";
@@ -1273,7 +1273,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1273
1273
  error: string;
1274
1274
  };
1275
1275
  outputFormat: "json";
1276
- status: 404;
1276
+ status: 409;
1277
1277
  input: {
1278
1278
  json: {
1279
1279
  mode: "execute" | "preview";
@@ -1285,10 +1285,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1285
1285
  };
1286
1286
  } | {
1287
1287
  output: {
1288
- error: string;
1288
+ checkId: string;
1289
1289
  };
1290
1290
  outputFormat: "json";
1291
- status: 409;
1291
+ status: 202;
1292
1292
  input: {
1293
1293
  json: {
1294
1294
  mode: "execute" | "preview";
@@ -1400,17 +1400,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1400
1400
  automationChecksRoutes: import("hono/hono-base").HonoBase<{}, {
1401
1401
  "/automation-checks/:checkId": {
1402
1402
  $get: {
1403
- output: {
1404
- error: string;
1405
- };
1406
- outputFormat: "json";
1407
- status: 404;
1408
- input: {
1409
- param: {
1410
- checkId: string;
1411
- };
1412
- };
1413
- } | {
1414
1403
  output: {
1415
1404
  id: string;
1416
1405
  automationId: string;
@@ -1429,6 +1418,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1429
1418
  checkId: string;
1430
1419
  };
1431
1420
  };
1421
+ } | {
1422
+ output: {
1423
+ error: string;
1424
+ };
1425
+ outputFormat: "json";
1426
+ status: 404;
1427
+ input: {
1428
+ param: {
1429
+ checkId: string;
1430
+ };
1431
+ };
1432
1432
  };
1433
1433
  };
1434
1434
  }, "/", "/automation-checks/:checkId">;
@@ -52,15 +52,11 @@ export declare function createRunnerInstallRoutes(options: {
52
52
  "/runner-install/:runner": {
53
53
  $post: {
54
54
  output: {
55
- supported: boolean;
56
- installedVersion: string | null;
57
- latestVersion: string | null;
58
- updateAvailable: boolean;
59
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
60
- error: string | null;
55
+ error: string;
56
+ code?: "invalid_input" | undefined;
61
57
  };
62
58
  outputFormat: "json";
63
- status: 202;
59
+ status: 400;
64
60
  input: {
65
61
  param: {
66
62
  runner: string;
@@ -72,11 +68,15 @@ export declare function createRunnerInstallRoutes(options: {
72
68
  };
73
69
  } | {
74
70
  output: {
75
- error: string;
76
- code?: "invalid_input" | undefined;
71
+ supported: boolean;
72
+ installedVersion: string | null;
73
+ latestVersion: string | null;
74
+ updateAvailable: boolean;
75
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
76
+ error: string | null;
77
77
  };
78
78
  outputFormat: "json";
79
- status: 400;
79
+ status: 202;
80
80
  input: {
81
81
  param: {
82
82
  runner: string;