@hearsay-tools/squawk 0.19.0-dev.8841 → 0.19.0-dev.8843

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.
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
+ output: {
31
+ error: string;
32
+ code?: "invalid_input" | undefined;
33
+ };
34
+ outputFormat: "json";
35
+ status: 400;
36
+ input: {
37
+ query: {
38
+ offset?: string | undefined;
39
+ };
40
+ };
41
+ } | {
30
42
  output: {
31
43
  workers: {
32
44
  workerId: string;
@@ -79,18 +91,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
79
91
  offset?: string | undefined;
80
92
  };
81
93
  };
82
- } | {
83
- output: {
84
- error: string;
85
- code?: "invalid_input" | undefined;
86
- };
87
- outputFormat: "json";
88
- status: 400;
89
- input: {
90
- query: {
91
- offset?: string | undefined;
92
- };
93
- };
94
94
  };
95
95
  };
96
96
  } & {
@@ -677,6 +677,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
677
677
  } & {
678
678
  "/:workerId": {
679
679
  $get: {
680
+ output: {
681
+ error: string;
682
+ code?: "invalid_input" | undefined;
683
+ };
684
+ outputFormat: "json";
685
+ status: 400;
686
+ input: {
687
+ param: {
688
+ workerId: string;
689
+ };
690
+ };
691
+ } | {
680
692
  output: {
681
693
  workerId: string;
682
694
  settled: boolean;
@@ -801,7 +813,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
801
813
  workerId: string;
802
814
  };
803
815
  };
804
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
805
821
  output: {
806
822
  error: string;
807
823
  code?: "invalid_input" | undefined;
@@ -812,12 +828,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
812
828
  param: {
813
829
  workerId: string;
814
830
  };
831
+ } & {
832
+ json: Record<string, never>;
815
833
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
834
+ } | {
821
835
  output: {
822
836
  workerId: string;
823
837
  parentRunId: string;
@@ -940,7 +954,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
940
954
  } & {
941
955
  json: Record<string, never>;
942
956
  };
943
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/steer": {
961
+ $post: {
944
962
  output: {
945
963
  error: string;
946
964
  code?: "invalid_input" | undefined;
@@ -952,13 +970,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
952
970
  workerId: string;
953
971
  };
954
972
  } & {
955
- json: Record<string, never>;
973
+ json: {
974
+ text: string;
975
+ };
956
976
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/steer": {
961
- $post: {
977
+ } | {
962
978
  output: {
963
979
  workerId: string;
964
980
  state: "delivered" | "queued";
@@ -974,7 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
974
990
  text: string;
975
991
  };
976
992
  };
977
- } | {
993
+ };
994
+ };
995
+ } & {
996
+ "/:workerId/stop": {
997
+ $post: {
978
998
  output: {
979
999
  error: string;
980
1000
  code?: "invalid_input" | undefined;
@@ -986,15 +1006,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
986
1006
  workerId: string;
987
1007
  };
988
1008
  } & {
989
- json: {
990
- text: string;
991
- };
1009
+ json: Record<string, never>;
992
1010
  };
993
- };
994
- };
995
- } & {
996
- "/:workerId/stop": {
997
- $post: {
1011
+ } | {
998
1012
  output: {
999
1013
  workerId: string;
1000
1014
  state: "stopping" | "terminated";
@@ -1008,7 +1022,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1008
1022
  } & {
1009
1023
  json: Record<string, never>;
1010
1024
  };
1011
- } | {
1025
+ };
1026
+ };
1027
+ } & {
1028
+ "/:workerId/destroy": {
1029
+ $post: {
1012
1030
  output: {
1013
1031
  error: string;
1014
1032
  code?: "invalid_input" | undefined;
@@ -1020,13 +1038,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1020
1038
  workerId: string;
1021
1039
  };
1022
1040
  } & {
1023
- json: Record<string, never>;
1041
+ json: {
1042
+ discardWork?: true | undefined;
1043
+ };
1024
1044
  };
1025
- };
1026
- };
1027
- } & {
1028
- "/:workerId/destroy": {
1029
- $post: {
1045
+ } | {
1030
1046
  output: {
1031
1047
  workerId: string;
1032
1048
  state: "complete" | "incomplete";
@@ -1055,22 +1071,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1055
1071
  discardWork?: true | undefined;
1056
1072
  };
1057
1073
  };
1058
- } | {
1059
- output: {
1060
- error: string;
1061
- code?: "invalid_input" | undefined;
1062
- };
1063
- outputFormat: "json";
1064
- status: 400;
1065
- input: {
1066
- param: {
1067
- workerId: string;
1068
- };
1069
- } & {
1070
- json: {
1071
- discardWork?: true | undefined;
1072
- };
1073
- };
1074
1074
  } | {
1075
1075
  output: {
1076
1076
  workerId: string;
@@ -1106,13 +1106,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1106
1106
  "/:workerId/diff": {
1107
1107
  $get: {
1108
1108
  output: {
1109
- workerId: string;
1110
- baselineSha: string;
1111
- diff: string;
1112
- truncated: boolean;
1109
+ error: string;
1110
+ code?: "invalid_input" | undefined;
1113
1111
  };
1114
1112
  outputFormat: "json";
1115
- status: 200;
1113
+ status: 400;
1116
1114
  input: {
1117
1115
  param: {
1118
1116
  workerId: string;
@@ -1120,11 +1118,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1120
1118
  };
1121
1119
  } | {
1122
1120
  output: {
1123
- error: string;
1124
- code?: "invalid_input" | undefined;
1121
+ workerId: string;
1122
+ baselineSha: string;
1123
+ diff: string;
1124
+ truncated: boolean;
1125
1125
  };
1126
1126
  outputFormat: "json";
1127
- status: 400;
1127
+ status: 200;
1128
1128
  input: {
1129
1129
  param: {
1130
1130
  workerId: string;
@@ -220,18 +220,20 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
220
220
  "/automations": {
221
221
  $post: {
222
222
  output: {
223
- automation: {
224
- [x: string]: import("hono/utils/types").JSONValue;
225
- id: string;
226
- revision: number;
223
+ error: string;
224
+ };
225
+ outputFormat: "json";
226
+ status: 400 | 404 | 409;
227
+ input: {
228
+ json: {
227
229
  name: string;
228
230
  description?: string | undefined;
229
- enabled: boolean;
230
- kind: "github" | "schedule";
231
+ enabled?: boolean | undefined;
232
+ kind?: "github" | "schedule" | undefined;
231
233
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
232
234
  intervalSeconds?: number | undefined;
233
235
  filters?: {
234
- [x: string]: import("hono/utils/types").JSONValue;
236
+ [x: string]: unknown;
235
237
  includeExisting?: boolean | undefined;
236
238
  requireCurrentLabels?: boolean | undefined;
237
239
  authors?: string[] | undefined;
@@ -240,11 +242,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
240
242
  anyLabels?: string[] | undefined;
241
243
  excludeLabels?: string[] | undefined;
242
244
  changedLabels?: string[] | undefined;
243
- lookbackDays: number;
244
- maxRecords: number;
245
+ lookbackDays?: number | undefined;
246
+ maxRecords?: number | undefined;
245
247
  } | undefined;
246
248
  schedule?: {
247
- [x: string]: import("hono/utils/types").JSONValue;
248
249
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
249
250
  hour?: number | undefined;
250
251
  minute?: number | undefined;
@@ -255,7 +256,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
255
256
  latestStartMinutes?: number | undefined;
256
257
  } | undefined;
257
258
  task: {
258
- [x: string]: import("hono/utils/types").JSONValue;
259
259
  archiveWhenDone?: boolean | undefined;
260
260
  autoMergePr?: boolean | undefined;
261
261
  allowWorkers?: boolean | undefined;
@@ -276,53 +276,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
276
276
  bashAllowlist?: string[] | undefined;
277
277
  kind?: "plugin" | undefined;
278
278
  pluginKind?: string | undefined;
279
- config?: {
280
- [x: string]: import("hono/utils/types").JSONValue;
281
- } | undefined;
279
+ config?: Record<string, unknown> | undefined;
282
280
  command?: string | undefined;
283
281
  onFail?: {
284
282
  retry: string;
285
- max: number;
283
+ max?: number | undefined;
286
284
  } | undefined;
287
285
  }[] | undefined;
288
286
  runner?: string | undefined;
289
287
  model?: string | undefined;
290
288
  effort?: string | undefined;
291
- variants?: 1 | 2 | 3 | undefined;
292
289
  worktree?: boolean | undefined;
293
290
  autonomous?: boolean | undefined;
294
291
  systemPrompt?: string | undefined;
295
292
  };
296
- archived?: {
297
- [x: string]: import("hono/utils/types").JSONValue;
298
- at: string;
299
- outcome: "cancelled" | "launched";
300
- runId?: string | undefined;
301
- receiptId?: string | undefined;
302
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
303
- } | undefined;
304
- createdAt: string;
305
- updatedAt: string;
293
+ enable?: boolean | undefined;
306
294
  };
307
- once?: {
308
- dueAt: string;
309
- timeZone: string;
310
- resolvedInstant: string;
311
- note: string;
312
- } | undefined;
313
295
  };
314
- outputFormat: "json";
315
- status: 201;
316
- input: {
317
- json: {
296
+ } | {
297
+ output: {
298
+ automation: {
299
+ [x: string]: import("hono/utils/types").JSONValue;
300
+ id: string;
301
+ revision: number;
318
302
  name: string;
319
303
  description?: string | undefined;
320
- enabled?: boolean | undefined;
321
- kind?: "github" | "schedule" | undefined;
304
+ enabled: boolean;
305
+ kind: "github" | "schedule";
322
306
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
323
307
  intervalSeconds?: number | undefined;
324
308
  filters?: {
325
- [x: string]: unknown;
309
+ [x: string]: import("hono/utils/types").JSONValue;
326
310
  includeExisting?: boolean | undefined;
327
311
  requireCurrentLabels?: boolean | undefined;
328
312
  authors?: string[] | undefined;
@@ -331,10 +315,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
331
315
  anyLabels?: string[] | undefined;
332
316
  excludeLabels?: string[] | undefined;
333
317
  changedLabels?: string[] | undefined;
334
- lookbackDays?: number | undefined;
335
- maxRecords?: number | undefined;
318
+ lookbackDays: number;
319
+ maxRecords: number;
336
320
  } | undefined;
337
321
  schedule?: {
322
+ [x: string]: import("hono/utils/types").JSONValue;
338
323
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
339
324
  hour?: number | undefined;
340
325
  minute?: number | undefined;
@@ -345,6 +330,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
345
330
  latestStartMinutes?: number | undefined;
346
331
  } | undefined;
347
332
  task: {
333
+ [x: string]: import("hono/utils/types").JSONValue;
348
334
  archiveWhenDone?: boolean | undefined;
349
335
  autoMergePr?: boolean | undefined;
350
336
  allowWorkers?: boolean | undefined;
@@ -365,29 +351,43 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
365
351
  bashAllowlist?: string[] | undefined;
366
352
  kind?: "plugin" | undefined;
367
353
  pluginKind?: string | undefined;
368
- config?: Record<string, unknown> | undefined;
354
+ config?: {
355
+ [x: string]: import("hono/utils/types").JSONValue;
356
+ } | undefined;
369
357
  command?: string | undefined;
370
358
  onFail?: {
371
359
  retry: string;
372
- max?: number | undefined;
360
+ max: number;
373
361
  } | undefined;
374
362
  }[] | undefined;
375
363
  runner?: string | undefined;
376
364
  model?: string | undefined;
377
365
  effort?: string | undefined;
366
+ variants?: 1 | 2 | 3 | undefined;
378
367
  worktree?: boolean | undefined;
379
368
  autonomous?: boolean | undefined;
380
369
  systemPrompt?: string | undefined;
381
370
  };
382
- enable?: boolean | undefined;
371
+ archived?: {
372
+ [x: string]: import("hono/utils/types").JSONValue;
373
+ at: string;
374
+ outcome: "cancelled" | "launched";
375
+ runId?: string | undefined;
376
+ receiptId?: string | undefined;
377
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
378
+ } | undefined;
379
+ createdAt: string;
380
+ updatedAt: string;
383
381
  };
384
- };
385
- } | {
386
- output: {
387
- error: string;
382
+ once?: {
383
+ dueAt: string;
384
+ timeZone: string;
385
+ resolvedInstant: string;
386
+ note: string;
387
+ } | undefined;
388
388
  };
389
389
  outputFormat: "json";
390
- status: 400 | 404 | 409;
390
+ status: 201;
391
391
  input: {
392
392
  json: {
393
393
  name: string;
@@ -462,6 +462,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
462
462
  } & {
463
463
  "/automations/:id": {
464
464
  $get: {
465
+ output: {
466
+ error: string;
467
+ };
468
+ outputFormat: "json";
469
+ status: 400 | 404 | 409;
470
+ input: {
471
+ param: {
472
+ id: string;
473
+ };
474
+ };
475
+ } | {
465
476
  output: {
466
477
  automation: {
467
478
  [x: string]: import("hono/utils/types").JSONValue;
@@ -624,35 +635,26 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
624
635
  id: string;
625
636
  };
626
637
  };
627
- } | {
628
- output: {
629
- error: string;
630
- };
631
- outputFormat: "json";
632
- status: 400 | 404 | 409;
633
- input: {
634
- param: {
635
- id: string;
636
- };
637
- };
638
638
  };
639
639
  };
640
640
  } & {
641
641
  "/automations/:id": {
642
642
  $put: {
643
643
  output: {
644
- automation: {
645
- [x: string]: import("hono/utils/types").JSONValue;
646
- id: string;
647
- revision: number;
644
+ error: string;
645
+ };
646
+ outputFormat: "json";
647
+ status: 400 | 404 | 409;
648
+ input: {
649
+ json: {
648
650
  name: string;
649
651
  description?: string | undefined;
650
- enabled: boolean;
651
- kind: "github" | "schedule";
652
+ enabled?: boolean | undefined;
653
+ kind?: "github" | "schedule" | undefined;
652
654
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
653
655
  intervalSeconds?: number | undefined;
654
656
  filters?: {
655
- [x: string]: import("hono/utils/types").JSONValue;
657
+ [x: string]: unknown;
656
658
  includeExisting?: boolean | undefined;
657
659
  requireCurrentLabels?: boolean | undefined;
658
660
  authors?: string[] | undefined;
@@ -661,11 +663,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
661
663
  anyLabels?: string[] | undefined;
662
664
  excludeLabels?: string[] | undefined;
663
665
  changedLabels?: string[] | undefined;
664
- lookbackDays: number;
665
- maxRecords: number;
666
+ lookbackDays?: number | undefined;
667
+ maxRecords?: number | undefined;
666
668
  } | undefined;
667
669
  schedule?: {
668
- [x: string]: import("hono/utils/types").JSONValue;
669
670
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
670
671
  hour?: number | undefined;
671
672
  minute?: number | undefined;
@@ -676,7 +677,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
676
677
  latestStartMinutes?: number | undefined;
677
678
  } | undefined;
678
679
  task: {
679
- [x: string]: import("hono/utils/types").JSONValue;
680
680
  archiveWhenDone?: boolean | undefined;
681
681
  autoMergePr?: boolean | undefined;
682
682
  allowWorkers?: boolean | undefined;
@@ -697,47 +697,41 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
697
697
  bashAllowlist?: string[] | undefined;
698
698
  kind?: "plugin" | undefined;
699
699
  pluginKind?: string | undefined;
700
- config?: {
701
- [x: string]: import("hono/utils/types").JSONValue;
702
- } | undefined;
700
+ config?: Record<string, unknown> | undefined;
703
701
  command?: string | undefined;
704
702
  onFail?: {
705
703
  retry: string;
706
- max: number;
704
+ max?: number | undefined;
707
705
  } | undefined;
708
706
  }[] | undefined;
709
707
  runner?: string | undefined;
710
708
  model?: string | undefined;
711
709
  effort?: string | undefined;
712
- variants?: 1 | 2 | 3 | undefined;
713
710
  worktree?: boolean | undefined;
714
711
  autonomous?: boolean | undefined;
715
712
  systemPrompt?: string | undefined;
716
713
  };
717
- archived?: {
718
- [x: string]: import("hono/utils/types").JSONValue;
719
- at: string;
720
- outcome: "cancelled" | "launched";
721
- runId?: string | undefined;
722
- receiptId?: string | undefined;
723
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
724
- } | undefined;
725
- createdAt: string;
726
- updatedAt: string;
714
+ expectedRevision: number;
715
+ };
716
+ } & {
717
+ param: {
718
+ id: string;
727
719
  };
728
720
  };
729
- outputFormat: "json";
730
- status: import("hono/utils/http-status").ContentfulStatusCode;
731
- input: {
732
- json: {
721
+ } | {
722
+ output: {
723
+ automation: {
724
+ [x: string]: import("hono/utils/types").JSONValue;
725
+ id: string;
726
+ revision: number;
733
727
  name: string;
734
728
  description?: string | undefined;
735
- enabled?: boolean | undefined;
736
- kind?: "github" | "schedule" | undefined;
729
+ enabled: boolean;
730
+ kind: "github" | "schedule";
737
731
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
738
732
  intervalSeconds?: number | undefined;
739
733
  filters?: {
740
- [x: string]: unknown;
734
+ [x: string]: import("hono/utils/types").JSONValue;
741
735
  includeExisting?: boolean | undefined;
742
736
  requireCurrentLabels?: boolean | undefined;
743
737
  authors?: string[] | undefined;
@@ -746,10 +740,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
746
740
  anyLabels?: string[] | undefined;
747
741
  excludeLabels?: string[] | undefined;
748
742
  changedLabels?: string[] | undefined;
749
- lookbackDays?: number | undefined;
750
- maxRecords?: number | undefined;
743
+ lookbackDays: number;
744
+ maxRecords: number;
751
745
  } | undefined;
752
746
  schedule?: {
747
+ [x: string]: import("hono/utils/types").JSONValue;
753
748
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
754
749
  hour?: number | undefined;
755
750
  minute?: number | undefined;
@@ -760,6 +755,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
760
755
  latestStartMinutes?: number | undefined;
761
756
  } | undefined;
762
757
  task: {
758
+ [x: string]: import("hono/utils/types").JSONValue;
763
759
  archiveWhenDone?: boolean | undefined;
764
760
  autoMergePr?: boolean | undefined;
765
761
  allowWorkers?: boolean | undefined;
@@ -780,33 +776,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
780
776
  bashAllowlist?: string[] | undefined;
781
777
  kind?: "plugin" | undefined;
782
778
  pluginKind?: string | undefined;
783
- config?: Record<string, unknown> | undefined;
779
+ config?: {
780
+ [x: string]: import("hono/utils/types").JSONValue;
781
+ } | undefined;
784
782
  command?: string | undefined;
785
783
  onFail?: {
786
784
  retry: string;
787
- max?: number | undefined;
785
+ max: number;
788
786
  } | undefined;
789
787
  }[] | undefined;
790
788
  runner?: string | undefined;
791
789
  model?: string | undefined;
792
790
  effort?: string | undefined;
791
+ variants?: 1 | 2 | 3 | undefined;
793
792
  worktree?: boolean | undefined;
794
793
  autonomous?: boolean | undefined;
795
794
  systemPrompt?: string | undefined;
796
795
  };
797
- expectedRevision: number;
798
- };
799
- } & {
800
- param: {
801
- id: string;
796
+ archived?: {
797
+ [x: string]: import("hono/utils/types").JSONValue;
798
+ at: string;
799
+ outcome: "cancelled" | "launched";
800
+ runId?: string | undefined;
801
+ receiptId?: string | undefined;
802
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
803
+ } | undefined;
804
+ createdAt: string;
805
+ updatedAt: string;
802
806
  };
803
807
  };
804
- } | {
805
- output: {
806
- error: string;
807
- };
808
808
  outputFormat: "json";
809
- status: 400 | 404 | 409;
809
+ status: import("hono/utils/http-status").ContentfulStatusCode;
810
810
  input: {
811
811
  json: {
812
812
  name: string;
@@ -909,6 +909,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
909
909
  } & {
910
910
  "/automations/:id/enable": {
911
911
  $post: {
912
+ output: {
913
+ error: string;
914
+ };
915
+ outputFormat: "json";
916
+ status: 400 | 404 | 409;
917
+ input: {
918
+ param: {
919
+ id: string;
920
+ };
921
+ };
922
+ } | {
912
923
  output: {
913
924
  automation: {
914
925
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1002,7 +1013,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1002
1013
  id: string;
1003
1014
  };
1004
1015
  };
1005
- } | {
1016
+ };
1017
+ };
1018
+ } & {
1019
+ "/automations/:id/pause": {
1020
+ $post: {
1006
1021
  output: {
1007
1022
  error: string;
1008
1023
  };
@@ -1013,11 +1028,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1013
1028
  id: string;
1014
1029
  };
1015
1030
  };
1016
- };
1017
- };
1018
- } & {
1019
- "/automations/:id/pause": {
1020
- $post: {
1031
+ } | {
1021
1032
  output: {
1022
1033
  automation: {
1023
1034
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1111,7 +1122,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1111
1122
  id: string;
1112
1123
  };
1113
1124
  };
1114
- } | {
1125
+ };
1126
+ };
1127
+ } & {
1128
+ "/automations/:id/cancel": {
1129
+ $post: {
1115
1130
  output: {
1116
1131
  error: string;
1117
1132
  };
@@ -1122,11 +1137,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1122
1137
  id: string;
1123
1138
  };
1124
1139
  };
1125
- };
1126
- };
1127
- } & {
1128
- "/automations/:id/cancel": {
1129
- $post: {
1140
+ } | {
1130
1141
  output: {
1131
1142
  automation: {
1132
1143
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1220,27 +1231,16 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1220
1231
  id: string;
1221
1232
  };
1222
1233
  };
1223
- } | {
1224
- output: {
1225
- error: string;
1226
- };
1227
- outputFormat: "json";
1228
- status: 400 | 404 | 409;
1229
- input: {
1230
- param: {
1231
- id: string;
1232
- };
1233
- };
1234
1234
  };
1235
1235
  };
1236
1236
  } & {
1237
1237
  "/automations/:id/run": {
1238
1238
  $post: {
1239
1239
  output: {
1240
- runId: string;
1240
+ error: string;
1241
1241
  };
1242
1242
  outputFormat: "json";
1243
- status: 202;
1243
+ status: 400 | 404 | 409;
1244
1244
  input: {
1245
1245
  param: {
1246
1246
  id: string;
@@ -1248,10 +1248,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1248
1248
  };
1249
1249
  } | {
1250
1250
  output: {
1251
- error: string;
1251
+ runId: string;
1252
1252
  };
1253
1253
  outputFormat: "json";
1254
- status: 400 | 404 | 409;
1254
+ status: 202;
1255
1255
  input: {
1256
1256
  param: {
1257
1257
  id: string;
@@ -1263,10 +1263,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1263
1263
  "/automations/:id/check": {
1264
1264
  $post: {
1265
1265
  output: {
1266
- checkId: string;
1266
+ error: string;
1267
1267
  };
1268
1268
  outputFormat: "json";
1269
- status: 202;
1269
+ status: 404;
1270
1270
  input: {
1271
1271
  json: {
1272
1272
  mode: "execute" | "preview";
@@ -1281,7 +1281,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1281
1281
  error: string;
1282
1282
  };
1283
1283
  outputFormat: "json";
1284
- status: 404;
1284
+ status: 409;
1285
1285
  input: {
1286
1286
  json: {
1287
1287
  mode: "execute" | "preview";
@@ -1293,10 +1293,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1293
1293
  };
1294
1294
  } | {
1295
1295
  output: {
1296
- error: string;
1296
+ checkId: string;
1297
1297
  };
1298
1298
  outputFormat: "json";
1299
- status: 409;
1299
+ status: 202;
1300
1300
  input: {
1301
1301
  json: {
1302
1302
  mode: "execute" | "preview";
@@ -1408,17 +1408,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1408
1408
  automationChecksRoutes: import("hono/hono-base").HonoBase<{}, {
1409
1409
  "/automation-checks/:checkId": {
1410
1410
  $get: {
1411
- output: {
1412
- error: string;
1413
- };
1414
- outputFormat: "json";
1415
- status: 404;
1416
- input: {
1417
- param: {
1418
- checkId: string;
1419
- };
1420
- };
1421
- } | {
1422
1411
  output: {
1423
1412
  id: string;
1424
1413
  automationId: string;
@@ -1437,6 +1426,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1437
1426
  checkId: string;
1438
1427
  };
1439
1428
  };
1429
+ } | {
1430
+ output: {
1431
+ error: string;
1432
+ };
1433
+ outputFormat: "json";
1434
+ status: 404;
1435
+ input: {
1436
+ param: {
1437
+ checkId: string;
1438
+ };
1439
+ };
1440
1440
  };
1441
1441
  };
1442
1442
  }, "/", "/automation-checks/:checkId">;
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 400;
21
+ status: 409;
22
22
  input: {
23
23
  json: {
24
24
  provider: string;
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
30
30
  error: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 409;
33
+ status: 400;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;
@@ -341,19 +341,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
341
341
  } & {
342
342
  "/repo/commit/:sha": {
343
343
  $get: {
344
- output: string;
345
- outputFormat: "text";
346
- status: import("hono/utils/http-status").ContentfulStatusCode;
347
- input: {
348
- query: {
349
- structured?: string | undefined;
350
- };
351
- } & {
352
- param: {
353
- sha: string;
354
- };
355
- };
356
- } | {
357
344
  output: {
358
345
  error: string;
359
346
  code?: "invalid_input" | undefined;
@@ -417,6 +404,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
417
404
  sha: string;
418
405
  };
419
406
  };
407
+ } | {
408
+ output: string;
409
+ outputFormat: "text";
410
+ status: import("hono/utils/http-status").ContentfulStatusCode;
411
+ input: {
412
+ query: {
413
+ structured?: string | undefined;
414
+ };
415
+ } & {
416
+ param: {
417
+ sha: string;
418
+ };
419
+ };
420
420
  };
421
421
  };
422
422
  } & {
@@ -58,15 +58,11 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- supported: boolean;
62
- installedVersion: string | null;
63
- latestVersion: string | null;
64
- updateAvailable: boolean;
65
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
66
- error: string | null;
61
+ error: string;
62
+ code?: "invalid_input" | undefined;
67
63
  };
68
64
  outputFormat: "json";
69
- status: 202;
65
+ status: 400;
70
66
  input: {
71
67
  param: {
72
68
  runner: string;
@@ -78,11 +74,15 @@ export declare function createRunnersRoutes(options: {
78
74
  };
79
75
  } | {
80
76
  output: {
81
- error: string;
82
- code?: "invalid_input" | undefined;
77
+ supported: boolean;
78
+ installedVersion: string | null;
79
+ latestVersion: string | null;
80
+ updateAvailable: boolean;
81
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
82
+ error: string | null;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 400;
85
+ status: 202;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;
@@ -4722,19 +4722,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4722
4722
  } & {
4723
4723
  "/repo/commit/:sha": {
4724
4724
  $get: {
4725
- output: string;
4726
- outputFormat: "text";
4727
- status: import("hono/utils/http-status").ContentfulStatusCode;
4728
- input: {
4729
- query: {
4730
- structured?: string | undefined;
4731
- };
4732
- } & {
4733
- param: {
4734
- sha: string;
4735
- };
4736
- };
4737
- } | {
4738
4725
  output: {
4739
4726
  error: string;
4740
4727
  code?: "invalid_input" | undefined;
@@ -4798,6 +4785,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4798
4785
  sha: string;
4799
4786
  };
4800
4787
  };
4788
+ } | {
4789
+ output: string;
4790
+ outputFormat: "text";
4791
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4792
+ input: {
4793
+ query: {
4794
+ structured?: string | undefined;
4795
+ };
4796
+ } & {
4797
+ param: {
4798
+ sha: string;
4799
+ };
4800
+ };
4801
4801
  };
4802
4802
  };
4803
4803
  } & {
@@ -17920,20 +17920,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17920
17920
  } & {
17921
17921
  "/runs/:id/handoff": {
17922
17922
  $get: {
17923
- output: string;
17924
- outputFormat: "text";
17925
- status: 200;
17923
+ output: {
17924
+ error: string;
17925
+ };
17926
+ outputFormat: "json";
17927
+ status: 404;
17926
17928
  input: {
17927
17929
  param: {
17928
17930
  id: string;
17929
17931
  };
17930
17932
  };
17931
17933
  } | {
17932
- output: {
17933
- error: string;
17934
- };
17935
- outputFormat: "json";
17936
- status: 404;
17934
+ output: string;
17935
+ outputFormat: "text";
17936
+ status: 200;
17937
17937
  input: {
17938
17938
  param: {
17939
17939
  id: string;
@@ -17971,20 +17971,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17971
17971
  } & {
17972
17972
  "/runs/:id/diff": {
17973
17973
  $get: {
17974
- output: string;
17975
- outputFormat: "text";
17976
- status: import("hono/utils/http-status").ContentfulStatusCode;
17974
+ output: {
17975
+ error: string;
17976
+ };
17977
+ outputFormat: "json";
17978
+ status: 404 | 409;
17977
17979
  input: {
17978
17980
  param: {
17979
17981
  id: string;
17980
17982
  };
17981
17983
  };
17982
17984
  } | {
17983
- output: {
17984
- error: string;
17985
- };
17986
- outputFormat: "json";
17987
- status: 404 | 409;
17985
+ output: string;
17986
+ outputFormat: "text";
17987
+ status: import("hono/utils/http-status").ContentfulStatusCode;
17988
17988
  input: {
17989
17989
  param: {
17990
17990
  id: string;
@@ -20145,19 +20145,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20145
20145
  } & {
20146
20146
  "/repo/commit/:sha": {
20147
20147
  $get: {
20148
- output: string;
20149
- outputFormat: "text";
20150
- status: import("hono/utils/http-status").ContentfulStatusCode;
20151
- input: {
20152
- query: {
20153
- structured?: string | undefined;
20154
- };
20155
- } & {
20156
- param: {
20157
- sha: string;
20158
- };
20159
- };
20160
- } | {
20161
20148
  output: {
20162
20149
  error: string;
20163
20150
  code?: "invalid_input" | undefined;
@@ -20221,6 +20208,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20221
20208
  sha: string;
20222
20209
  };
20223
20210
  };
20211
+ } | {
20212
+ output: string;
20213
+ outputFormat: "text";
20214
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20215
+ input: {
20216
+ query: {
20217
+ structured?: string | undefined;
20218
+ };
20219
+ } & {
20220
+ param: {
20221
+ sha: string;
20222
+ };
20223
+ };
20224
20224
  };
20225
20225
  };
20226
20226
  } & {
@@ -33343,20 +33343,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33343
33343
  } & {
33344
33344
  "/runs/:id/handoff": {
33345
33345
  $get: {
33346
- output: string;
33347
- outputFormat: "text";
33348
- status: 200;
33346
+ output: {
33347
+ error: string;
33348
+ };
33349
+ outputFormat: "json";
33350
+ status: 404;
33349
33351
  input: {
33350
33352
  param: {
33351
33353
  id: string;
33352
33354
  };
33353
33355
  };
33354
33356
  } | {
33355
- output: {
33356
- error: string;
33357
- };
33358
- outputFormat: "json";
33359
- status: 404;
33357
+ output: string;
33358
+ outputFormat: "text";
33359
+ status: 200;
33360
33360
  input: {
33361
33361
  param: {
33362
33362
  id: string;
@@ -33394,20 +33394,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33394
33394
  } & {
33395
33395
  "/runs/:id/diff": {
33396
33396
  $get: {
33397
- output: string;
33398
- outputFormat: "text";
33399
- status: import("hono/utils/http-status").ContentfulStatusCode;
33397
+ output: {
33398
+ error: string;
33399
+ };
33400
+ outputFormat: "json";
33401
+ status: 404 | 409;
33400
33402
  input: {
33401
33403
  param: {
33402
33404
  id: string;
33403
33405
  };
33404
33406
  };
33405
33407
  } | {
33406
- output: {
33407
- error: string;
33408
- };
33409
- outputFormat: "json";
33410
- status: 404 | 409;
33408
+ output: string;
33409
+ outputFormat: "text";
33410
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33411
33411
  input: {
33412
33412
  param: {
33413
33413
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.19.0-dev.8841",
3
+ "version": "0.19.0-dev.8843",
4
4
  "description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -69,8 +69,8 @@
69
69
  "devDependencies": {
70
70
  "@babel/parser": "^8.0.8",
71
71
  "@babel/types": "^8.0.8",
72
- "@open-mercato/cezar-api-client": "0.19.0-dev.8841",
73
- "@open-mercato/cezar-contract": "0.19.0-dev.8841",
72
+ "@open-mercato/cezar-api-client": "0.19.0-dev.8843",
73
+ "@open-mercato/cezar-contract": "0.19.0-dev.8843",
74
74
  "@types/node": "^24.19.1",
75
75
  "@types/ws": "^8.18.1",
76
76
  "esbuild": "^0.28.1",
@@ -87,5 +87,5 @@
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "gitHead": "0ce0b046ecdd8445952987fadbd84071decf70ab"
90
+ "gitHead": "67b5f1fc0711fa056a9cfd41f4bb406ce89abbbb"
91
91
  }