@hearsay-tools/squawk 0.18.0-pr4408.8606 → 0.19.0-rc.1

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;
@@ -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">;
@@ -113,10 +113,42 @@ export declare function createUiStateRoutes(): import("hono/hono-base").HonoBase
113
113
  "/ui-state": {
114
114
  $put: {
115
115
  output: {
116
- error: string;
116
+ [x: string]: import("hono/utils/types").JSONValue;
117
+ sidebarLimits?: {
118
+ overall?: number | null | undefined;
119
+ needsYou?: number | null | undefined;
120
+ finished?: number | null | undefined;
121
+ working?: number | null | undefined;
122
+ } | undefined;
123
+ lastTask?: {
124
+ source: "skill" | "workflow";
125
+ ref: string;
126
+ } | null | undefined;
127
+ recentSources?: {
128
+ source: "skill" | "workflow";
129
+ ref: string;
130
+ }[] | undefined;
131
+ lastWorktree?: boolean | undefined;
132
+ lastAutonomous?: boolean | undefined;
133
+ skillUsage?: {
134
+ [x: string]: number;
135
+ } | undefined;
136
+ runsView?: "list" | "table" | undefined;
137
+ githubView?: "issues" | "prs" | undefined;
138
+ appearance?: {
139
+ accent?: "cezarion" | "lime" | "violet" | undefined;
140
+ density?: "comfortable" | "compact" | "ultra" | undefined;
141
+ width?: "narrow" | "wide" | undefined;
142
+ } | undefined;
143
+ promptTemplates?: {
144
+ id: string;
145
+ label: string;
146
+ text: string;
147
+ skills?: string[] | undefined;
148
+ }[] | undefined;
117
149
  };
118
150
  outputFormat: "json";
119
- status: 500;
151
+ status: import("hono/utils/http-status").ContentfulStatusCode;
120
152
  input: {
121
153
  json: {
122
154
  [x: string]: unknown;
@@ -154,42 +186,10 @@ export declare function createUiStateRoutes(): import("hono/hono-base").HonoBase
154
186
  };
155
187
  } | {
156
188
  output: {
157
- [x: string]: import("hono/utils/types").JSONValue;
158
- sidebarLimits?: {
159
- overall?: number | null | undefined;
160
- needsYou?: number | null | undefined;
161
- finished?: number | null | undefined;
162
- working?: number | null | undefined;
163
- } | undefined;
164
- lastTask?: {
165
- source: "skill" | "workflow";
166
- ref: string;
167
- } | null | undefined;
168
- recentSources?: {
169
- source: "skill" | "workflow";
170
- ref: string;
171
- }[] | undefined;
172
- lastWorktree?: boolean | undefined;
173
- lastAutonomous?: boolean | undefined;
174
- skillUsage?: {
175
- [x: string]: number;
176
- } | undefined;
177
- runsView?: "list" | "table" | undefined;
178
- githubView?: "issues" | "prs" | undefined;
179
- appearance?: {
180
- accent?: "cezarion" | "lime" | "violet" | undefined;
181
- density?: "comfortable" | "compact" | "ultra" | undefined;
182
- width?: "narrow" | "wide" | undefined;
183
- } | undefined;
184
- promptTemplates?: {
185
- id: string;
186
- label: string;
187
- text: string;
188
- skills?: string[] | undefined;
189
- }[] | undefined;
189
+ error: string;
190
190
  };
191
191
  outputFormat: "json";
192
- status: import("hono/utils/http-status").ContentfulStatusCode;
192
+ status: 500;
193
193
  input: {
194
194
  json: {
195
195
  [x: string]: unknown;
@@ -275,11 +275,10 @@ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBa
275
275
  "/workflows": {
276
276
  $post: {
277
277
  output: {
278
- path: string;
279
- name: string;
278
+ error: string;
280
279
  };
281
280
  outputFormat: "json";
282
- status: 201;
281
+ status: 400;
283
282
  input: {
284
283
  json: {
285
284
  name: string;
@@ -312,9 +311,10 @@ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBa
312
311
  } | {
313
312
  output: {
314
313
  error: string;
314
+ exists: true;
315
315
  };
316
316
  outputFormat: "json";
317
- status: 400;
317
+ status: 409;
318
318
  input: {
319
319
  json: {
320
320
  name: string;
@@ -347,10 +347,9 @@ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBa
347
347
  } | {
348
348
  output: {
349
349
  error: string;
350
- exists: true;
351
350
  };
352
351
  outputFormat: "json";
353
- status: 409;
352
+ status: 500;
354
353
  input: {
355
354
  json: {
356
355
  name: string;
@@ -382,10 +381,11 @@ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBa
382
381
  };
383
382
  } | {
384
383
  output: {
385
- error: string;
384
+ path: string;
385
+ name: string;
386
386
  };
387
387
  outputFormat: "json";
388
- status: 500;
388
+ status: 201;
389
389
  input: {
390
390
  json: {
391
391
  name: string;
@@ -421,11 +421,10 @@ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBa
421
421
  "/workflows/:name": {
422
422
  $delete: {
423
423
  output: {
424
- ok: true;
425
- path: string;
424
+ error: string;
426
425
  };
427
426
  outputFormat: "json";
428
- status: import("hono/utils/http-status").ContentfulStatusCode;
427
+ status: 400 | 404 | 409 | 500;
429
428
  input: {
430
429
  param: {
431
430
  name: string;
@@ -433,10 +432,11 @@ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBa
433
432
  };
434
433
  } | {
435
434
  output: {
436
- error: string;
435
+ ok: true;
436
+ path: string;
437
437
  };
438
438
  outputFormat: "json";
439
- status: 400 | 404 | 409 | 500;
439
+ status: import("hono/utils/http-status").ContentfulStatusCode;
440
440
  input: {
441
441
  param: {
442
442
  name: string;
@@ -504,6 +504,18 @@ export interface PlanRouteDeps {
504
504
  export declare function createPlanRoutes(deps: PlanRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
505
505
  "/plan": {
506
506
  $post: {
507
+ output: {
508
+ error: string;
509
+ };
510
+ outputFormat: "json";
511
+ status: 400 | 404 | 409;
512
+ input: {
513
+ json: {
514
+ task: string;
515
+ agentProfile?: string | undefined;
516
+ };
517
+ };
518
+ } | {
507
519
  output: {
508
520
  name?: string;
509
521
  steps: {
@@ -540,18 +552,6 @@ export declare function createPlanRoutes(deps: PlanRouteDeps): import("hono/hono
540
552
  agentProfile?: string | undefined;
541
553
  };
542
554
  };
543
- } | {
544
- output: {
545
- error: string;
546
- };
547
- outputFormat: "json";
548
- status: 400 | 404 | 409;
549
- input: {
550
- json: {
551
- task: string;
552
- agentProfile?: string | undefined;
553
- };
554
- };
555
555
  };
556
556
  };
557
557
  }, "/", "/plan">;
@@ -599,10 +599,34 @@ export declare function createConfigRoutes(deps: ConfigRouteDeps): import("hono/
599
599
  "/config": {
600
600
  $put: {
601
601
  output: {
602
- error: string;
602
+ archiveOnMerge: boolean | null;
603
+ effectiveArchiveOnMerge: boolean;
604
+ archiveOnMergeSource: "default" | "environment" | "global" | "project";
605
+ baseBranch: string | null;
606
+ defaultRunner: string;
607
+ systemPrompt: string | null;
608
+ defaultModels: {
609
+ [x: string]: string | undefined;
610
+ };
611
+ modelsLocked: boolean;
612
+ maxParallel: number;
613
+ memoryLimitMb: number | null;
614
+ worktreeRetention: number;
615
+ liveTitleUpdates: boolean | null;
616
+ reviewGate: boolean | null;
617
+ worktreeSetup: {
618
+ commands: string[];
619
+ timeoutSeconds: number;
620
+ } | null;
621
+ worktreeSetupIssue: string | null;
622
+ worktreeTeardown: {
623
+ commands: string[];
624
+ timeoutSeconds: number;
625
+ } | null;
626
+ worktreeTeardownIssue: string | null;
603
627
  };
604
628
  outputFormat: "json";
605
- status: 409;
629
+ status: import("hono/utils/http-status").ContentfulStatusCode;
606
630
  input: {
607
631
  json: {
608
632
  archiveOnMerge?: boolean | null | undefined;
@@ -630,7 +654,7 @@ export declare function createConfigRoutes(deps: ConfigRouteDeps): import("hono/
630
654
  error: string;
631
655
  };
632
656
  outputFormat: "json";
633
- status: 500;
657
+ status: 409;
634
658
  input: {
635
659
  json: {
636
660
  archiveOnMerge?: boolean | null | undefined;
@@ -655,34 +679,10 @@ export declare function createConfigRoutes(deps: ConfigRouteDeps): import("hono/
655
679
  };
656
680
  } | {
657
681
  output: {
658
- archiveOnMerge: boolean | null;
659
- effectiveArchiveOnMerge: boolean;
660
- archiveOnMergeSource: "default" | "environment" | "global" | "project";
661
- baseBranch: string | null;
662
- defaultRunner: string;
663
- systemPrompt: string | null;
664
- defaultModels: {
665
- [x: string]: string | undefined;
666
- };
667
- modelsLocked: boolean;
668
- maxParallel: number;
669
- memoryLimitMb: number | null;
670
- worktreeRetention: number;
671
- liveTitleUpdates: boolean | null;
672
- reviewGate: boolean | null;
673
- worktreeSetup: {
674
- commands: string[];
675
- timeoutSeconds: number;
676
- } | null;
677
- worktreeSetupIssue: string | null;
678
- worktreeTeardown: {
679
- commands: string[];
680
- timeoutSeconds: number;
681
- } | null;
682
- worktreeTeardownIssue: string | null;
682
+ error: string;
683
683
  };
684
684
  outputFormat: "json";
685
- status: import("hono/utils/http-status").ContentfulStatusCode;
685
+ status: 500;
686
686
  input: {
687
687
  json: {
688
688
  archiveOnMerge?: boolean | null | undefined;
@@ -796,10 +796,14 @@ export declare function createAgentConfigRoutes(capabilities: ServerCapabilities
796
796
  "/agent-config/:id": {
797
797
  $put: {
798
798
  output: {
799
- error: string;
799
+ id: string;
800
+ path: string;
801
+ exists: boolean;
802
+ content: string;
803
+ version: string | null;
800
804
  };
801
805
  outputFormat: "json";
802
- status: 404;
806
+ status: import("hono/utils/http-status").ContentfulStatusCode;
803
807
  input: {
804
808
  json: {
805
809
  content: string;
@@ -812,14 +816,10 @@ export declare function createAgentConfigRoutes(capabilities: ServerCapabilities
812
816
  };
813
817
  } | {
814
818
  output: {
815
- id: string;
816
- path: string;
817
- exists: boolean;
818
- content: string;
819
- version: string | null;
819
+ error: string;
820
820
  };
821
821
  outputFormat: "json";
822
- status: import("hono/utils/http-status").ContentfulStatusCode;
822
+ status: 404;
823
823
  input: {
824
824
  json: {
825
825
  content: string;
@@ -941,12 +941,9 @@ export declare function createAgentWebhooksRoutes(deps: AgentWebhooksRouteDeps):
941
941
  export declare function createSseRoutes(): import("hono/hono-base").HonoBase<ProjectApiEnv, {
942
942
  "/runs/:id/events": {
943
943
  $get: {
944
- output: {
945
- error: string;
946
- code?: "invalid_input" | undefined;
947
- };
948
- outputFormat: "json";
949
- status: 400;
944
+ output: {};
945
+ outputFormat: string;
946
+ status: import("hono/utils/http-status").StatusCode;
950
947
  input: {
951
948
  param: {
952
949
  id: string;
@@ -958,9 +955,12 @@ export declare function createSseRoutes(): import("hono/hono-base").HonoBase<Pro
958
955
  };
959
956
  };
960
957
  } | {
961
- output: {};
962
- outputFormat: string;
963
- status: import("hono/utils/http-status").StatusCode;
958
+ output: {
959
+ error: string;
960
+ code?: "invalid_input" | undefined;
961
+ };
962
+ outputFormat: "json";
963
+ status: 400;
964
964
  input: {
965
965
  param: {
966
966
  id: string;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr4408.8606",
3
+ "version": "0.19.0-rc.1",
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.18.0-pr4408.8606",
73
- "@open-mercato/cezar-contract": "0.18.0-pr4408.8606",
72
+ "@open-mercato/cezar-api-client": "0.19.0-rc.1",
73
+ "@open-mercato/cezar-contract": "0.19.0-rc.1",
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": "1246d031df30ceab46a69401481b3bce9795b7ec"
90
+ "gitHead": "259ec2f8cfde9ec8791fd9292a1c71260c6ae8b2"
91
91
  }