@hearsay-tools/squawk 0.18.0-dev.7998 → 0.18.0-dev.7999

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.
@@ -285,12 +285,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
285
285
  "/api/v1/tools/ask": {
286
286
  $post: {
287
287
  output: {
288
- ok: false;
289
- code: 'unavailable';
288
+ code: 'capability_revoked';
290
289
  message: string;
291
290
  };
292
291
  outputFormat: "json";
293
- status: import("hono/utils/http-status").ContentfulStatusCode;
292
+ status: 401;
294
293
  input: {
295
294
  json: {
296
295
  questions: {
@@ -309,11 +308,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
309
308
  };
310
309
  } | {
311
310
  output: {
312
- code: 'capability_revoked';
311
+ ok: false;
312
+ code: 'unavailable';
313
313
  message: string;
314
314
  };
315
315
  outputFormat: "json";
316
- status: 401;
316
+ status: import("hono/utils/http-status").ContentfulStatusCode;
317
317
  input: {
318
318
  json: {
319
319
  questions: {
@@ -383,12 +383,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
383
383
  "/api/v1/tools/cancel-wait": {
384
384
  $post: {
385
385
  output: {
386
- cancelled: false;
387
- code: 'unavailable';
386
+ code: 'capability_revoked';
388
387
  message: string;
389
388
  };
390
389
  outputFormat: "json";
391
- status: import("hono/utils/http-status").ContentfulStatusCode;
390
+ status: 401;
392
391
  input: {
393
392
  json: {
394
393
  wait_id: string;
@@ -396,11 +395,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
396
395
  };
397
396
  } | {
398
397
  output: {
399
- code: 'capability_revoked';
398
+ cancelled: false;
399
+ code: 'unavailable';
400
400
  message: string;
401
401
  };
402
402
  outputFormat: "json";
403
- status: 401;
403
+ status: import("hono/utils/http-status").ContentfulStatusCode;
404
404
  input: {
405
405
  json: {
406
406
  wait_id: string;
@@ -448,12 +448,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
448
448
  "/api/v1/tools/done": {
449
449
  $post: {
450
450
  output: {
451
- ok: false;
452
- code: 'unavailable';
451
+ code: 'capability_revoked';
453
452
  message: string;
454
453
  };
455
454
  outputFormat: "json";
456
- status: import("hono/utils/http-status").ContentfulStatusCode;
455
+ status: 401;
457
456
  input: {
458
457
  json: {
459
458
  summary?: string | undefined;
@@ -461,11 +460,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
461
460
  };
462
461
  } | {
463
462
  output: {
464
- code: 'capability_revoked';
463
+ ok: false;
464
+ code: 'unavailable';
465
465
  message: string;
466
466
  };
467
467
  outputFormat: "json";
468
- status: 401;
468
+ status: import("hono/utils/http-status").ContentfulStatusCode;
469
469
  input: {
470
470
  json: {
471
471
  summary?: string | undefined;
@@ -548,13 +548,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
548
548
  "/api/v1/tools/preview-stop": {
549
549
  $post: {
550
550
  output: {
551
- ok: boolean;
552
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
551
+ code: 'capability_revoked';
553
552
  message: string;
554
- hint: string;
555
553
  };
556
554
  outputFormat: "json";
557
- status: import("hono/utils/http-status").ContentfulStatusCode;
555
+ status: 401;
558
556
  input: {
559
557
  json: {
560
558
  port: number;
@@ -563,11 +561,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
563
561
  };
564
562
  } | {
565
563
  output: {
566
- code: 'capability_revoked';
564
+ ok: boolean;
565
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
567
566
  message: string;
567
+ hint: string;
568
568
  };
569
569
  outputFormat: "json";
570
- status: 401;
570
+ status: import("hono/utils/http-status").ContentfulStatusCode;
571
571
  input: {
572
572
  json: {
573
573
  port: number;
@@ -580,13 +580,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
580
580
  "/api/v1/tools/preview-serve": {
581
581
  $post: {
582
582
  output: {
583
- ok: boolean;
584
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
583
+ code: 'capability_revoked';
585
584
  message: string;
586
- hint: string;
587
585
  };
588
586
  outputFormat: "json";
589
- status: import("hono/utils/http-status").ContentfulStatusCode;
587
+ status: 401;
590
588
  input: {
591
589
  json: {
592
590
  command: string;
@@ -598,11 +596,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
598
596
  };
599
597
  } | {
600
598
  output: {
601
- code: 'capability_revoked';
599
+ ok: boolean;
600
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
602
601
  message: string;
602
+ hint: string;
603
603
  };
604
604
  outputFormat: "json";
605
- status: 401;
605
+ status: import("hono/utils/http-status").ContentfulStatusCode;
606
606
  input: {
607
607
  json: {
608
608
  command: string;
@@ -618,12 +618,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
618
618
  "/api/v1/tools/automation": {
619
619
  $post: {
620
620
  output: {
621
- ok: false;
622
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
621
+ code: 'capability_revoked';
623
622
  message: string;
624
623
  };
625
624
  outputFormat: "json";
626
- status: import("hono/utils/http-status").ContentfulStatusCode;
625
+ status: 401;
627
626
  input: {
628
627
  json: {
629
628
  action: "create";
@@ -703,11 +702,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
703
702
  };
704
703
  } | {
705
704
  output: {
706
- code: 'capability_revoked';
705
+ ok: false;
706
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
707
707
  message: string;
708
708
  };
709
709
  outputFormat: "json";
710
- status: 401;
710
+ status: import("hono/utils/http-status").ContentfulStatusCode;
711
711
  input: {
712
712
  json: {
713
713
  action: "create";
@@ -963,12 +963,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
963
963
  "/api/v1/tools/schedule-task": {
964
964
  $post: {
965
965
  output: {
966
- ok: false;
967
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
966
+ code: 'capability_revoked';
968
967
  message: string;
969
968
  };
970
969
  outputFormat: "json";
971
- status: import("hono/utils/http-status").ContentfulStatusCode;
970
+ status: 401;
972
971
  input: {
973
972
  json: {
974
973
  at?: string | undefined;
@@ -985,11 +984,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
985
984
  };
986
985
  } | {
987
986
  output: {
988
- code: 'capability_revoked';
987
+ ok: false;
988
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
989
989
  message: string;
990
990
  };
991
991
  outputFormat: "json";
992
- status: 401;
992
+ status: import("hono/utils/http-status").ContentfulStatusCode;
993
993
  input: {
994
994
  json: {
995
995
  at?: string | undefined;
@@ -1044,12 +1044,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1044
1044
  "/api/v1/tools/scheduled-tasks": {
1045
1045
  $post: {
1046
1046
  output: {
1047
- ok: false;
1048
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
1047
+ code: 'capability_revoked';
1049
1048
  message: string;
1050
1049
  };
1051
1050
  outputFormat: "json";
1052
- status: import("hono/utils/http-status").ContentfulStatusCode;
1051
+ status: 401;
1053
1052
  input: {
1054
1053
  json: {
1055
1054
  at?: string | undefined;
@@ -1082,11 +1081,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1082
1081
  };
1083
1082
  } | {
1084
1083
  output: {
1085
- code: 'capability_revoked';
1084
+ ok: false;
1085
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
1086
1086
  message: string;
1087
1087
  };
1088
1088
  outputFormat: "json";
1089
- status: 401;
1089
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1090
1090
  input: {
1091
1091
  json: {
1092
1092
  at?: string | undefined;
@@ -27,18 +27,6 @@ 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
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -85,6 +73,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
85
73
  offset?: string | undefined;
86
74
  };
87
75
  };
76
+ } | {
77
+ output: {
78
+ error: string;
79
+ code?: "invalid_input" | undefined;
80
+ };
81
+ outputFormat: "json";
82
+ status: 400;
83
+ input: {
84
+ query: {
85
+ offset?: string | undefined;
86
+ };
87
+ };
88
88
  };
89
89
  };
90
90
  } & {
@@ -629,18 +629,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
629
629
  } & {
630
630
  "/:workerId": {
631
631
  $get: {
632
- output: {
633
- error: string;
634
- code?: "invalid_input" | undefined;
635
- };
636
- outputFormat: "json";
637
- status: 400;
638
- input: {
639
- param: {
640
- workerId: string;
641
- };
642
- };
643
- } | {
644
632
  output: {
645
633
  workerId: string;
646
634
  settled: boolean;
@@ -758,11 +746,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
758
746
  workerId: string;
759
747
  };
760
748
  };
761
- };
762
- };
763
- } & {
764
- "/:workerId/collect": {
765
- $post: {
749
+ } | {
766
750
  output: {
767
751
  error: string;
768
752
  code?: "invalid_input" | undefined;
@@ -773,10 +757,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
773
757
  param: {
774
758
  workerId: string;
775
759
  };
776
- } & {
777
- json: Record<string, never>;
778
760
  };
779
- } | {
761
+ };
762
+ };
763
+ } & {
764
+ "/:workerId/collect": {
765
+ $post: {
780
766
  output: {
781
767
  workerId: string;
782
768
  parentRunId: string;
@@ -899,11 +885,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
899
885
  } & {
900
886
  json: Record<string, never>;
901
887
  };
902
- };
903
- };
904
- } & {
905
- "/:workerId/steer": {
906
- $post: {
888
+ } | {
907
889
  output: {
908
890
  error: string;
909
891
  code?: "invalid_input" | undefined;
@@ -915,11 +897,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
915
897
  workerId: string;
916
898
  };
917
899
  } & {
918
- json: {
919
- text: string;
920
- };
900
+ json: Record<string, never>;
921
901
  };
922
- } | {
902
+ };
903
+ };
904
+ } & {
905
+ "/:workerId/steer": {
906
+ $post: {
923
907
  output: {
924
908
  workerId: string;
925
909
  state: "delivered" | "queued";
@@ -935,11 +919,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
935
919
  text: string;
936
920
  };
937
921
  };
938
- };
939
- };
940
- } & {
941
- "/:workerId/stop": {
942
- $post: {
922
+ } | {
943
923
  output: {
944
924
  error: string;
945
925
  code?: "invalid_input" | undefined;
@@ -951,9 +931,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
951
931
  workerId: string;
952
932
  };
953
933
  } & {
954
- json: Record<string, never>;
934
+ json: {
935
+ text: string;
936
+ };
955
937
  };
956
- } | {
938
+ };
939
+ };
940
+ } & {
941
+ "/:workerId/stop": {
942
+ $post: {
957
943
  output: {
958
944
  workerId: string;
959
945
  state: "stopping" | "terminated";
@@ -967,11 +953,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
967
953
  } & {
968
954
  json: Record<string, never>;
969
955
  };
970
- };
971
- };
972
- } & {
973
- "/:workerId/destroy": {
974
- $post: {
956
+ } | {
975
957
  output: {
976
958
  error: string;
977
959
  code?: "invalid_input" | undefined;
@@ -983,11 +965,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
983
965
  workerId: string;
984
966
  };
985
967
  } & {
986
- json: {
987
- discardWork?: true | undefined;
988
- };
968
+ json: Record<string, never>;
989
969
  };
990
- } | {
970
+ };
971
+ };
972
+ } & {
973
+ "/:workerId/destroy": {
974
+ $post: {
991
975
  output: {
992
976
  workerId: string;
993
977
  state: "complete" | "incomplete";
@@ -1016,6 +1000,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1016
1000
  discardWork?: true | undefined;
1017
1001
  };
1018
1002
  };
1003
+ } | {
1004
+ output: {
1005
+ error: string;
1006
+ code?: "invalid_input" | undefined;
1007
+ };
1008
+ outputFormat: "json";
1009
+ status: 400;
1010
+ input: {
1011
+ param: {
1012
+ workerId: string;
1013
+ };
1014
+ } & {
1015
+ json: {
1016
+ discardWork?: true | undefined;
1017
+ };
1018
+ };
1019
1019
  } | {
1020
1020
  output: {
1021
1021
  workerId: string;
@@ -1051,11 +1051,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1051
1051
  "/:workerId/diff": {
1052
1052
  $get: {
1053
1053
  output: {
1054
- error: string;
1055
- code?: "invalid_input" | undefined;
1054
+ workerId: string;
1055
+ baselineSha: string;
1056
+ diff: string;
1057
+ truncated: boolean;
1056
1058
  };
1057
1059
  outputFormat: "json";
1058
- status: 400;
1060
+ status: 200;
1059
1061
  input: {
1060
1062
  param: {
1061
1063
  workerId: string;
@@ -1063,13 +1065,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1063
1065
  };
1064
1066
  } | {
1065
1067
  output: {
1066
- workerId: string;
1067
- baselineSha: string;
1068
- diff: string;
1069
- truncated: boolean;
1068
+ error: string;
1069
+ code?: "invalid_input" | undefined;
1070
1070
  };
1071
1071
  outputFormat: "json";
1072
- status: 200;
1072
+ status: 400;
1073
1073
  input: {
1074
1074
  param: {
1075
1075
  workerId: string;