@hearsay-tools/squawk 0.18.0-pr3964.7517 → 0.18.0-pr3964.7518

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