@hearsay-tools/squawk 0.19.0-pr4574.9076 → 0.19.0-pr4574.9080

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.
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: {
125
- code: string;
126
- message: string;
127
- };
124
+ output: never;
128
125
  outputFormat: "json";
129
- status: 401;
126
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
127
  input: {
131
128
  json: unknown;
132
129
  } & {
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
149
146
  };
150
147
  };
151
148
  } | {
152
- output: never;
149
+ output: {
150
+ code: string;
151
+ message: string;
152
+ };
153
153
  outputFormat: "json";
154
- status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ status: 401;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -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;
@@ -942,7 +956,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
942
956
  } & {
943
957
  json: Record<string, never>;
944
958
  };
945
- } | {
959
+ };
960
+ };
961
+ } & {
962
+ "/:workerId/steer": {
963
+ $post: {
946
964
  output: {
947
965
  error: string;
948
966
  code?: "invalid_input" | undefined;
@@ -954,13 +972,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
954
972
  workerId: string;
955
973
  };
956
974
  } & {
957
- json: Record<string, never>;
975
+ json: {
976
+ text: string;
977
+ };
958
978
  };
959
- };
960
- };
961
- } & {
962
- "/:workerId/steer": {
963
- $post: {
979
+ } | {
964
980
  output: {
965
981
  workerId: string;
966
982
  state: "delivered" | "queued";
@@ -976,7 +992,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
976
992
  text: string;
977
993
  };
978
994
  };
979
- } | {
995
+ };
996
+ };
997
+ } & {
998
+ "/:workerId/stop": {
999
+ $post: {
980
1000
  output: {
981
1001
  error: string;
982
1002
  code?: "invalid_input" | undefined;
@@ -988,15 +1008,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
988
1008
  workerId: string;
989
1009
  };
990
1010
  } & {
991
- json: {
992
- text: string;
993
- };
1011
+ json: Record<string, never>;
994
1012
  };
995
- };
996
- };
997
- } & {
998
- "/:workerId/stop": {
999
- $post: {
1013
+ } | {
1000
1014
  output: {
1001
1015
  workerId: string;
1002
1016
  state: "stopping" | "terminated";
@@ -1010,7 +1024,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1010
1024
  } & {
1011
1025
  json: Record<string, never>;
1012
1026
  };
1013
- } | {
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/:workerId/destroy": {
1031
+ $post: {
1014
1032
  output: {
1015
1033
  error: string;
1016
1034
  code?: "invalid_input" | undefined;
@@ -1022,13 +1040,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1022
1040
  workerId: string;
1023
1041
  };
1024
1042
  } & {
1025
- json: Record<string, never>;
1043
+ json: {
1044
+ discardWork?: true | undefined;
1045
+ };
1026
1046
  };
1027
- };
1028
- };
1029
- } & {
1030
- "/:workerId/destroy": {
1031
- $post: {
1047
+ } | {
1032
1048
  output: {
1033
1049
  workerId: string;
1034
1050
  state: "complete" | "incomplete";
@@ -1057,22 +1073,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1057
1073
  discardWork?: true | undefined;
1058
1074
  };
1059
1075
  };
1060
- } | {
1061
- output: {
1062
- error: string;
1063
- code?: "invalid_input" | undefined;
1064
- };
1065
- outputFormat: "json";
1066
- status: 400;
1067
- input: {
1068
- param: {
1069
- workerId: string;
1070
- };
1071
- } & {
1072
- json: {
1073
- discardWork?: true | undefined;
1074
- };
1075
- };
1076
1076
  } | {
1077
1077
  output: {
1078
1078
  workerId: string;
@@ -1108,18 +1108,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1108
1108
  "/:workerId/summary": {
1109
1109
  $post: {
1110
1110
  output: {
1111
- workerId: string;
1112
- revision: number;
1113
- source: "assistant" | "failure";
1114
- seq: number;
1115
- totalLines: number;
1116
- offset: number;
1117
- lineCount: number;
1118
- text: string;
1119
- nextOffset?: number | undefined;
1111
+ error: string;
1112
+ code?: "invalid_input" | undefined;
1120
1113
  };
1121
1114
  outputFormat: "json";
1122
- status: 200;
1115
+ status: 400;
1123
1116
  input: {
1124
1117
  param: {
1125
1118
  workerId: string;
@@ -1132,11 +1125,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1132
1125
  };
1133
1126
  } | {
1134
1127
  output: {
1135
- error: string;
1136
- code?: "invalid_input" | undefined;
1128
+ workerId: string;
1129
+ revision: number;
1130
+ source: "assistant" | "failure";
1131
+ seq: number;
1132
+ totalLines: number;
1133
+ offset: number;
1134
+ lineCount: number;
1135
+ text: string;
1136
+ nextOffset?: number | undefined;
1137
1137
  };
1138
1138
  outputFormat: "json";
1139
- status: 400;
1139
+ status: 200;
1140
1140
  input: {
1141
1141
  param: {
1142
1142
  workerId: string;
@@ -1153,13 +1153,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1153
1153
  "/:workerId/diff": {
1154
1154
  $get: {
1155
1155
  output: {
1156
- workerId: string;
1157
- baselineSha: string;
1158
- diff: string;
1159
- truncated: boolean;
1156
+ error: string;
1157
+ code?: "invalid_input" | undefined;
1160
1158
  };
1161
1159
  outputFormat: "json";
1162
- status: 200;
1160
+ status: 400;
1163
1161
  input: {
1164
1162
  param: {
1165
1163
  workerId: string;
@@ -1167,11 +1165,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1167
1165
  };
1168
1166
  } | {
1169
1167
  output: {
1170
- error: string;
1171
- code?: "invalid_input" | undefined;
1168
+ workerId: string;
1169
+ baselineSha: string;
1170
+ diff: string;
1171
+ truncated: boolean;
1172
1172
  };
1173
1173
  outputFormat: "json";
1174
- status: 400;
1174
+ status: 200;
1175
1175
  input: {
1176
1176
  param: {
1177
1177
  workerId: string;