@hearsay-tools/squawk 0.18.0-dev.8096 → 0.18.0-dev.8103

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.
@@ -119,9 +119,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
119
119
  } & {
120
120
  "/api/v1/tools/:name": {
121
121
  $post: {
122
- output: never;
122
+ output: {
123
+ code: string;
124
+ message: string;
125
+ };
123
126
  outputFormat: "json";
124
- status: import("hono/utils/http-status").ContentfulStatusCode;
127
+ status: 401;
125
128
  input: {
126
129
  json: unknown;
127
130
  } & {
@@ -144,12 +147,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
144
147
  };
145
148
  };
146
149
  } | {
147
- output: {
148
- code: string;
149
- message: string;
150
- };
150
+ output: never;
151
151
  outputFormat: "json";
152
- status: 401;
152
+ status: import("hono/utils/http-status").ContentfulStatusCode;
153
153
  input: {
154
154
  json: unknown;
155
155
  } & {
@@ -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
  } & {
@@ -641,6 +641,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
641
641
  } & {
642
642
  "/:workerId": {
643
643
  $get: {
644
+ output: {
645
+ error: string;
646
+ code?: "invalid_input" | undefined;
647
+ };
648
+ outputFormat: "json";
649
+ status: 400;
650
+ input: {
651
+ param: {
652
+ workerId: string;
653
+ };
654
+ };
655
+ } | {
644
656
  output: {
645
657
  workerId: string;
646
658
  settled: boolean;
@@ -765,7 +777,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
765
777
  workerId: string;
766
778
  };
767
779
  };
768
- } | {
780
+ };
781
+ };
782
+ } & {
783
+ "/:workerId/collect": {
784
+ $post: {
769
785
  output: {
770
786
  error: string;
771
787
  code?: "invalid_input" | undefined;
@@ -776,12 +792,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
776
792
  param: {
777
793
  workerId: string;
778
794
  };
795
+ } & {
796
+ json: Record<string, never>;
779
797
  };
780
- };
781
- };
782
- } & {
783
- "/:workerId/collect": {
784
- $post: {
798
+ } | {
785
799
  output: {
786
800
  workerId: string;
787
801
  parentRunId: string;
@@ -904,7 +918,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
904
918
  } & {
905
919
  json: Record<string, never>;
906
920
  };
907
- } | {
921
+ };
922
+ };
923
+ } & {
924
+ "/:workerId/steer": {
925
+ $post: {
908
926
  output: {
909
927
  error: string;
910
928
  code?: "invalid_input" | undefined;
@@ -916,13 +934,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
916
934
  workerId: string;
917
935
  };
918
936
  } & {
919
- json: Record<string, never>;
937
+ json: {
938
+ text: string;
939
+ };
920
940
  };
921
- };
922
- };
923
- } & {
924
- "/:workerId/steer": {
925
- $post: {
941
+ } | {
926
942
  output: {
927
943
  workerId: string;
928
944
  state: "delivered" | "queued";
@@ -938,7 +954,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
938
954
  text: string;
939
955
  };
940
956
  };
941
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/stop": {
961
+ $post: {
942
962
  output: {
943
963
  error: string;
944
964
  code?: "invalid_input" | undefined;
@@ -950,15 +970,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
950
970
  workerId: string;
951
971
  };
952
972
  } & {
953
- json: {
954
- text: string;
955
- };
973
+ json: Record<string, never>;
956
974
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/stop": {
961
- $post: {
975
+ } | {
962
976
  output: {
963
977
  workerId: string;
964
978
  state: "stopping" | "terminated";
@@ -972,7 +986,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
972
986
  } & {
973
987
  json: Record<string, never>;
974
988
  };
975
- } | {
989
+ };
990
+ };
991
+ } & {
992
+ "/:workerId/destroy": {
993
+ $post: {
976
994
  output: {
977
995
  error: string;
978
996
  code?: "invalid_input" | undefined;
@@ -984,13 +1002,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
984
1002
  workerId: string;
985
1003
  };
986
1004
  } & {
987
- json: Record<string, never>;
1005
+ json: {
1006
+ discardWork?: true | undefined;
1007
+ };
988
1008
  };
989
- };
990
- };
991
- } & {
992
- "/:workerId/destroy": {
993
- $post: {
1009
+ } | {
994
1010
  output: {
995
1011
  workerId: string;
996
1012
  state: "complete" | "incomplete";
@@ -1019,22 +1035,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1019
1035
  discardWork?: true | undefined;
1020
1036
  };
1021
1037
  };
1022
- } | {
1023
- output: {
1024
- error: string;
1025
- code?: "invalid_input" | undefined;
1026
- };
1027
- outputFormat: "json";
1028
- status: 400;
1029
- input: {
1030
- param: {
1031
- workerId: string;
1032
- };
1033
- } & {
1034
- json: {
1035
- discardWork?: true | undefined;
1036
- };
1037
- };
1038
1038
  } | {
1039
1039
  output: {
1040
1040
  workerId: string;
@@ -1070,13 +1070,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1070
1070
  "/:workerId/diff": {
1071
1071
  $get: {
1072
1072
  output: {
1073
- workerId: string;
1074
- baselineSha: string;
1075
- diff: string;
1076
- truncated: boolean;
1073
+ error: string;
1074
+ code?: "invalid_input" | undefined;
1077
1075
  };
1078
1076
  outputFormat: "json";
1079
- status: 200;
1077
+ status: 400;
1080
1078
  input: {
1081
1079
  param: {
1082
1080
  workerId: string;
@@ -1084,11 +1082,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1084
1082
  };
1085
1083
  } | {
1086
1084
  output: {
1087
- error: string;
1088
- code?: "invalid_input" | undefined;
1085
+ workerId: string;
1086
+ baselineSha: string;
1087
+ diff: string;
1088
+ truncated: boolean;
1089
1089
  };
1090
1090
  outputFormat: "json";
1091
- status: 400;
1091
+ status: 200;
1092
1092
  input: {
1093
1093
  param: {
1094
1094
  workerId: string;
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
+ output: {
6
+ error: string;
7
+ code?: "invalid_input" | undefined;
8
+ };
9
+ outputFormat: "json";
10
+ status: 400;
11
+ input: {
12
+ query: {
13
+ offset?: string | undefined;
14
+ };
15
+ };
16
+ } | {
5
17
  output: {
6
18
  workers: {
7
19
  workerId: string;
@@ -54,18 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
54
66
  offset?: string | undefined;
55
67
  };
56
68
  };
57
- } | {
58
- output: {
59
- error: string;
60
- code?: "invalid_input" | undefined;
61
- };
62
- outputFormat: "json";
63
- status: 400;
64
- input: {
65
- query: {
66
- offset?: string | undefined;
67
- };
68
- };
69
69
  };
70
70
  };
71
71
  } & {
@@ -616,6 +616,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
616
616
  } & {
617
617
  "/:workerId": {
618
618
  $get: {
619
+ output: {
620
+ error: string;
621
+ code?: "invalid_input" | undefined;
622
+ };
623
+ outputFormat: "json";
624
+ status: 400;
625
+ input: {
626
+ param: {
627
+ workerId: string;
628
+ };
629
+ };
630
+ } | {
619
631
  output: {
620
632
  workerId: string;
621
633
  settled: boolean;
@@ -740,7 +752,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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 createDelegationApp(routes: DelegationRoutes): import("h
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;
@@ -58,29 +58,6 @@ export declare function ciProgressPlugs(): {
58
58
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
59
59
  "/workspace/activity": {
60
60
  $get: {
61
- output: {
62
- error: string;
63
- code?: "invalid_input" | undefined;
64
- };
65
- outputFormat: "json";
66
- status: 400;
67
- input: {
68
- query: {
69
- project?: string | undefined;
70
- };
71
- };
72
- } | {
73
- output: {
74
- error: string;
75
- };
76
- outputFormat: "json";
77
- status: 404 | 409 | 503;
78
- input: {
79
- query: {
80
- project?: string | undefined;
81
- };
82
- };
83
- } | {
84
61
  output: {
85
62
  generatedAt: string;
86
63
  projects: {
@@ -327,6 +304,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
327
304
  project?: string | undefined;
328
305
  };
329
306
  };
307
+ } | {
308
+ output: {
309
+ error: string;
310
+ code?: "invalid_input" | undefined;
311
+ };
312
+ outputFormat: "json";
313
+ status: 400;
314
+ input: {
315
+ query: {
316
+ project?: string | undefined;
317
+ };
318
+ };
319
+ } | {
320
+ output: {
321
+ error: string;
322
+ };
323
+ outputFormat: "json";
324
+ status: 404 | 409 | 503;
325
+ input: {
326
+ query: {
327
+ project?: string | undefined;
328
+ };
329
+ };
330
330
  };
331
331
  };
332
332
  }, "/", "/workspace/activity">;
@@ -30,10 +30,19 @@ export declare function createModelsRoutes(options: {
30
30
  };
31
31
  } | {
32
32
  output: {
33
- error: string;
33
+ runner: string;
34
+ models: {
35
+ id: string;
36
+ label: string;
37
+ description: string;
38
+ effortLevels?: import('../contract/index.js').EffortLevel[];
39
+ }[];
40
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
41
+ stale: boolean;
42
+ reason?: string;
34
43
  };
35
44
  outputFormat: "json";
36
- status: 400;
45
+ status: import("hono/utils/http-status").ContentfulStatusCode;
37
46
  input: {
38
47
  query: {
39
48
  runner: string | string[];
@@ -54,19 +63,10 @@ export declare function createModelsRoutes(options: {
54
63
  };
55
64
  } | {
56
65
  output: {
57
- runner: string;
58
- models: {
59
- id: string;
60
- label: string;
61
- description: string;
62
- effortLevels?: import('../contract/index.js').EffortLevel[];
63
- }[];
64
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
65
- stale: boolean;
66
- reason?: string;
66
+ error: string;
67
67
  };
68
68
  outputFormat: "json";
69
- status: import("hono/utils/http-status").ContentfulStatusCode;
69
+ status: 400;
70
70
  input: {
71
71
  query: {
72
72
  runner: string | string[];
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 409;
21
+ status: 400;
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: 400;
33
+ status: 409;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 400;
43
+ status: 409;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;
@@ -58,11 +58,15 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- error: string;
62
- code?: "invalid_input" | undefined;
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;
63
67
  };
64
68
  outputFormat: "json";
65
- status: 400;
69
+ status: 202;
66
70
  input: {
67
71
  param: {
68
72
  runner: string;
@@ -74,15 +78,11 @@ export declare function createRunnersRoutes(options: {
74
78
  };
75
79
  } | {
76
80
  output: {
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;
81
+ error: string;
82
+ code?: "invalid_input" | undefined;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 202;
85
+ status: 400;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;