@hearsay-tools/squawk 0.18.0-pr3963.7510 → 0.18.0-pr3964.7511

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.
@@ -282,11 +282,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
282
282
  "/api/v1/tools/ask": {
283
283
  $post: {
284
284
  output: {
285
- code: 'capability_revoked';
285
+ ok: false;
286
+ code: 'unavailable';
286
287
  message: string;
287
288
  };
288
289
  outputFormat: "json";
289
- status: 401;
290
+ status: import("hono/utils/http-status").ContentfulStatusCode;
290
291
  input: {
291
292
  json: {
292
293
  questions: {
@@ -304,12 +305,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
304
305
  };
305
306
  } | {
306
307
  output: {
307
- ok: false;
308
- code: 'unavailable';
308
+ code: 'capability_revoked';
309
309
  message: string;
310
310
  };
311
311
  outputFormat: "json";
312
- status: import("hono/utils/http-status").ContentfulStatusCode;
312
+ status: 401;
313
313
  input: {
314
314
  json: {
315
315
  questions: {
@@ -377,11 +377,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
377
377
  "/api/v1/tools/cancel-wait": {
378
378
  $post: {
379
379
  output: {
380
- code: 'capability_revoked';
380
+ cancelled: false;
381
+ code: 'unavailable';
381
382
  message: string;
382
383
  };
383
384
  outputFormat: "json";
384
- status: 401;
385
+ status: import("hono/utils/http-status").ContentfulStatusCode;
385
386
  input: {
386
387
  json: {
387
388
  wait_id: string;
@@ -389,12 +390,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
389
390
  };
390
391
  } | {
391
392
  output: {
392
- cancelled: false;
393
- code: 'unavailable';
393
+ code: 'capability_revoked';
394
394
  message: string;
395
395
  };
396
396
  outputFormat: "json";
397
- status: import("hono/utils/http-status").ContentfulStatusCode;
397
+ status: 401;
398
398
  input: {
399
399
  json: {
400
400
  wait_id: string;
@@ -442,11 +442,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
442
442
  "/api/v1/tools/done": {
443
443
  $post: {
444
444
  output: {
445
- code: 'capability_revoked';
445
+ ok: false;
446
+ code: 'unavailable';
446
447
  message: string;
447
448
  };
448
449
  outputFormat: "json";
449
- status: 401;
450
+ status: import("hono/utils/http-status").ContentfulStatusCode;
450
451
  input: {
451
452
  json: {
452
453
  summary?: string | undefined;
@@ -454,12 +455,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
454
455
  };
455
456
  } | {
456
457
  output: {
457
- ok: false;
458
- code: 'unavailable';
458
+ code: 'capability_revoked';
459
459
  message: string;
460
460
  };
461
461
  outputFormat: "json";
462
- status: import("hono/utils/http-status").ContentfulStatusCode;
462
+ status: 401;
463
463
  input: {
464
464
  json: {
465
465
  summary?: string | undefined;
@@ -542,11 +542,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
542
542
  "/api/v1/tools/preview-stop": {
543
543
  $post: {
544
544
  output: {
545
- code: 'capability_revoked';
545
+ ok: boolean;
546
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
546
547
  message: string;
548
+ hint: string;
547
549
  };
548
550
  outputFormat: "json";
549
- status: 401;
551
+ status: import("hono/utils/http-status").ContentfulStatusCode;
550
552
  input: {
551
553
  json: {
552
554
  port: number;
@@ -555,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
555
557
  };
556
558
  } | {
557
559
  output: {
558
- ok: boolean;
559
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
560
+ code: 'capability_revoked';
560
561
  message: string;
561
- hint: string;
562
562
  };
563
563
  outputFormat: "json";
564
- status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ status: 401;
565
565
  input: {
566
566
  json: {
567
567
  port: number;
@@ -574,11 +574,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
574
574
  "/api/v1/tools/preview-serve": {
575
575
  $post: {
576
576
  output: {
577
- code: 'capability_revoked';
577
+ ok: boolean;
578
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
578
579
  message: string;
580
+ hint: string;
579
581
  };
580
582
  outputFormat: "json";
581
- status: 401;
583
+ status: import("hono/utils/http-status").ContentfulStatusCode;
582
584
  input: {
583
585
  json: {
584
586
  command: string;
@@ -590,13 +592,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
590
592
  };
591
593
  } | {
592
594
  output: {
593
- ok: boolean;
594
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
595
+ code: 'capability_revoked';
595
596
  message: string;
596
- hint: string;
597
597
  };
598
598
  outputFormat: "json";
599
- status: import("hono/utils/http-status").ContentfulStatusCode;
599
+ status: 401;
600
600
  input: {
601
601
  json: {
602
602
  command: string;
@@ -612,11 +612,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
612
612
  "/api/v1/tools/automation": {
613
613
  $post: {
614
614
  output: {
615
- code: 'capability_revoked';
615
+ ok: false;
616
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
616
617
  message: string;
617
618
  };
618
619
  outputFormat: "json";
619
- status: 401;
620
+ status: import("hono/utils/http-status").ContentfulStatusCode;
620
621
  input: {
621
622
  json: {
622
623
  action: "create";
@@ -696,12 +697,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
696
697
  };
697
698
  } | {
698
699
  output: {
699
- ok: false;
700
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
700
+ code: 'capability_revoked';
701
701
  message: string;
702
702
  };
703
703
  outputFormat: "json";
704
- status: import("hono/utils/http-status").ContentfulStatusCode;
704
+ status: 401;
705
705
  input: {
706
706
  json: {
707
707
  action: "create";
@@ -957,11 +957,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
957
957
  "/api/v1/tools/schedule-task": {
958
958
  $post: {
959
959
  output: {
960
- code: 'capability_revoked';
960
+ ok: false;
961
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
961
962
  message: string;
962
963
  };
963
964
  outputFormat: "json";
964
- status: 401;
965
+ status: import("hono/utils/http-status").ContentfulStatusCode;
965
966
  input: {
966
967
  json: {
967
968
  at?: string | undefined;
@@ -978,12 +979,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
978
979
  };
979
980
  } | {
980
981
  output: {
981
- ok: false;
982
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
982
+ code: 'capability_revoked';
983
983
  message: string;
984
984
  };
985
985
  outputFormat: "json";
986
- status: import("hono/utils/http-status").ContentfulStatusCode;
986
+ status: 401;
987
987
  input: {
988
988
  json: {
989
989
  at?: string | undefined;
@@ -1038,11 +1038,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1038
1038
  "/api/v1/tools/scheduled-tasks": {
1039
1039
  $post: {
1040
1040
  output: {
1041
- code: 'capability_revoked';
1041
+ ok: false;
1042
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
1042
1043
  message: string;
1043
1044
  };
1044
1045
  outputFormat: "json";
1045
- status: 401;
1046
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1046
1047
  input: {
1047
1048
  json: {
1048
1049
  at?: string | undefined;
@@ -1075,12 +1076,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1075
1076
  };
1076
1077
  } | {
1077
1078
  output: {
1078
- ok: false;
1079
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
1079
+ code: 'capability_revoked';
1080
1080
  message: string;
1081
1081
  };
1082
1082
  outputFormat: "json";
1083
- status: import("hono/utils/http-status").ContentfulStatusCode;
1083
+ status: 401;
1084
1084
  input: {
1085
1085
  json: {
1086
1086
  at?: string | undefined;
@@ -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;
@@ -73,18 +85,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
73
85
  offset?: string | undefined;
74
86
  };
75
87
  };
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
  } & {
@@ -623,6 +623,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
623
623
  } & {
624
624
  "/:workerId": {
625
625
  $get: {
626
+ output: {
627
+ error: string;
628
+ code?: "invalid_input" | undefined;
629
+ };
630
+ outputFormat: "json";
631
+ status: 400;
632
+ input: {
633
+ param: {
634
+ workerId: string;
635
+ };
636
+ };
637
+ } | {
626
638
  output: {
627
639
  workerId: string;
628
640
  settled: boolean;
@@ -740,7 +752,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
740
752
  workerId: string;
741
753
  };
742
754
  };
743
- } | {
755
+ };
756
+ };
757
+ } & {
758
+ "/:workerId/collect": {
759
+ $post: {
744
760
  output: {
745
761
  error: string;
746
762
  code?: "invalid_input" | undefined;
@@ -751,12 +767,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
751
767
  param: {
752
768
  workerId: string;
753
769
  };
770
+ } & {
771
+ json: Record<string, never>;
754
772
  };
755
- };
756
- };
757
- } & {
758
- "/:workerId/collect": {
759
- $post: {
773
+ } | {
760
774
  output: {
761
775
  workerId: string;
762
776
  parentRunId: string;
@@ -879,7 +893,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
879
893
  } & {
880
894
  json: Record<string, never>;
881
895
  };
882
- } | {
896
+ };
897
+ };
898
+ } & {
899
+ "/:workerId/steer": {
900
+ $post: {
883
901
  output: {
884
902
  error: string;
885
903
  code?: "invalid_input" | undefined;
@@ -891,13 +909,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
891
909
  workerId: string;
892
910
  };
893
911
  } & {
894
- json: Record<string, never>;
912
+ json: {
913
+ text: string;
914
+ };
895
915
  };
896
- };
897
- };
898
- } & {
899
- "/:workerId/steer": {
900
- $post: {
916
+ } | {
901
917
  output: {
902
918
  workerId: string;
903
919
  state: "delivered" | "queued";
@@ -913,7 +929,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
913
929
  text: string;
914
930
  };
915
931
  };
916
- } | {
932
+ };
933
+ };
934
+ } & {
935
+ "/:workerId/stop": {
936
+ $post: {
917
937
  output: {
918
938
  error: string;
919
939
  code?: "invalid_input" | undefined;
@@ -925,15 +945,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
925
945
  workerId: string;
926
946
  };
927
947
  } & {
928
- json: {
929
- text: string;
930
- };
948
+ json: Record<string, never>;
931
949
  };
932
- };
933
- };
934
- } & {
935
- "/:workerId/stop": {
936
- $post: {
950
+ } | {
937
951
  output: {
938
952
  workerId: string;
939
953
  state: "stopping" | "terminated";
@@ -947,7 +961,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
947
961
  } & {
948
962
  json: Record<string, never>;
949
963
  };
950
- } | {
964
+ };
965
+ };
966
+ } & {
967
+ "/:workerId/destroy": {
968
+ $post: {
951
969
  output: {
952
970
  error: string;
953
971
  code?: "invalid_input" | undefined;
@@ -959,13 +977,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
959
977
  workerId: string;
960
978
  };
961
979
  } & {
962
- json: Record<string, never>;
980
+ json: {
981
+ discardWork?: true | undefined;
982
+ };
963
983
  };
964
- };
965
- };
966
- } & {
967
- "/:workerId/destroy": {
968
- $post: {
984
+ } | {
969
985
  output: {
970
986
  workerId: string;
971
987
  state: "complete" | "incomplete";
@@ -994,22 +1010,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
994
1010
  discardWork?: true | undefined;
995
1011
  };
996
1012
  };
997
- } | {
998
- output: {
999
- error: string;
1000
- code?: "invalid_input" | undefined;
1001
- };
1002
- outputFormat: "json";
1003
- status: 400;
1004
- input: {
1005
- param: {
1006
- workerId: string;
1007
- };
1008
- } & {
1009
- json: {
1010
- discardWork?: true | undefined;
1011
- };
1012
- };
1013
1013
  } | {
1014
1014
  output: {
1015
1015
  workerId: string;
@@ -1045,13 +1045,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1045
1045
  "/:workerId/diff": {
1046
1046
  $get: {
1047
1047
  output: {
1048
- workerId: string;
1049
- baselineSha: string;
1050
- diff: string;
1051
- truncated: boolean;
1048
+ error: string;
1049
+ code?: "invalid_input" | undefined;
1052
1050
  };
1053
1051
  outputFormat: "json";
1054
- status: 200;
1052
+ status: 400;
1055
1053
  input: {
1056
1054
  param: {
1057
1055
  workerId: string;
@@ -1059,11 +1057,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1059
1057
  };
1060
1058
  } | {
1061
1059
  output: {
1062
- error: string;
1063
- code?: "invalid_input" | undefined;
1060
+ workerId: string;
1061
+ baselineSha: string;
1062
+ diff: string;
1063
+ truncated: boolean;
1064
1064
  };
1065
1065
  outputFormat: "json";
1066
- status: 400;
1066
+ status: 200;
1067
1067
  input: {
1068
1068
  param: {
1069
1069
  workerId: string;