@hearsay-tools/squawk 0.19.0-pr4549.9010 → 0.19.0-pr4552.9014
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.
- package/dist/ci-wait/controller.d.ts +7 -7
- package/dist/contract/index.js +5 -1
- package/dist/contract/scheduled-tasks.d.ts +6 -0
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/features/automations/automations-routes.d.ts +150 -150
- package/dist/features/automations/prompts.js +1 -1
- package/dist/features/automations/task-template.js +4 -1
- package/dist/features/automations/task-template.js.map +1 -1
- package/dist/features/automations/tool-adapter.js +9 -3
- package/dist/features/automations/tool-adapter.js.map +1 -1
- package/dist/features/automations/tool-catalog.d.ts +1 -0
- package/dist/features/automations/tool-catalog.js +1 -1
- package/dist/features/automations/tool-catalog.js.map +1 -1
- package/dist/features/automations/tools.d.ts +6 -0
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/project-settings-routes.d.ts +107 -107
- package/dist/server/projects-routes.d.ts +45 -45
- package/dist/server/repo-routes.d.ts +13 -13
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/server.d.ts +1180 -1180
- package/package.json +4 -4
|
@@ -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:
|
|
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:
|
|
149
|
+
output: {
|
|
150
|
+
code: string;
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: 401;
|
|
155
155
|
input: {
|
|
156
156
|
json: unknown;
|
|
157
157
|
} & {
|
package/dist/contract/index.js
CHANGED
|
@@ -4821,7 +4821,9 @@ var scheduleFields = {
|
|
|
4821
4821
|
workflow: z35.string().trim().min(1).max(200).optional(),
|
|
4822
4822
|
runner: z35.string().trim().min(1).max(32).optional(),
|
|
4823
4823
|
model: z35.string().trim().min(1).max(200).optional(),
|
|
4824
|
-
effort: z35.string().trim().min(1).max(32).optional()
|
|
4824
|
+
effort: z35.string().trim().min(1).max(32).optional(),
|
|
4825
|
+
/** `false` lets the task ask the user (`cezar_ask`) and wait for the answer. A create defaults to `true`. */
|
|
4826
|
+
autonomous: z35.boolean().optional()
|
|
4825
4827
|
};
|
|
4826
4828
|
var notBoth = (value) => !(value.at && value.delay);
|
|
4827
4829
|
var scheduleTaskRequestSchema = z35.object({
|
|
@@ -4852,6 +4854,8 @@ var scheduledTaskSchema = z35.object({
|
|
|
4852
4854
|
/** When it is due, in UTC: `YYYY-MM-DDTHH:MMZ`, the form `at` takes. */
|
|
4853
4855
|
due_at: z35.string(),
|
|
4854
4856
|
latest_start_minutes: z35.number().optional(),
|
|
4857
|
+
/** Whether the launched task runs autonomous: it never waits for the user's answer. */
|
|
4858
|
+
autonomous: z35.boolean(),
|
|
4855
4859
|
/** The task it launched, once archived with one. */
|
|
4856
4860
|
run_id: z35.string().optional(),
|
|
4857
4861
|
/** The cockpit page of the schedule, when the cockpit's address is known. */
|
|
@@ -45,6 +45,7 @@ export declare const scheduleTaskRequestSchema: z.ZodObject<{
|
|
|
45
45
|
runner: z.ZodOptional<z.ZodString>;
|
|
46
46
|
model: z.ZodOptional<z.ZodString>;
|
|
47
47
|
effort: z.ZodOptional<z.ZodString>;
|
|
48
|
+
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
48
49
|
name: z.ZodString;
|
|
49
50
|
prompt: z.ZodString;
|
|
50
51
|
enable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -68,6 +69,7 @@ export declare const scheduledTasksRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
68
69
|
runner: z.ZodOptional<z.ZodString>;
|
|
69
70
|
model: z.ZodOptional<z.ZodString>;
|
|
70
71
|
effort: z.ZodOptional<z.ZodString>;
|
|
72
|
+
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
71
73
|
action: z.ZodLiteral<"update">;
|
|
72
74
|
id: z.ZodString;
|
|
73
75
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -96,6 +98,7 @@ export declare const scheduledTaskSchema: z.ZodObject<{
|
|
|
96
98
|
}>;
|
|
97
99
|
due_at: z.ZodString;
|
|
98
100
|
latest_start_minutes: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
autonomous: z.ZodBoolean;
|
|
99
102
|
run_id: z.ZodOptional<z.ZodString>;
|
|
100
103
|
url: z.ZodOptional<z.ZodString>;
|
|
101
104
|
}, z.core.$strip>;
|
|
@@ -124,6 +127,7 @@ export declare const scheduleTaskAnswerSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
124
127
|
}>;
|
|
125
128
|
due_at: z.ZodString;
|
|
126
129
|
latest_start_minutes: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
autonomous: z.ZodBoolean;
|
|
127
131
|
run_id: z.ZodOptional<z.ZodString>;
|
|
128
132
|
url: z.ZodOptional<z.ZodString>;
|
|
129
133
|
}, z.core.$strip>;
|
|
@@ -154,6 +158,7 @@ export declare const scheduledTasksAnswerSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
154
158
|
}>;
|
|
155
159
|
due_at: z.ZodString;
|
|
156
160
|
latest_start_minutes: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
autonomous: z.ZodBoolean;
|
|
157
162
|
run_id: z.ZodOptional<z.ZodString>;
|
|
158
163
|
url: z.ZodOptional<z.ZodString>;
|
|
159
164
|
}, z.core.$strip>>;
|
|
@@ -171,6 +176,7 @@ export declare const scheduledTasksAnswerSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
171
176
|
}>;
|
|
172
177
|
due_at: z.ZodString;
|
|
173
178
|
latest_start_minutes: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
autonomous: z.ZodBoolean;
|
|
174
180
|
run_id: z.ZodOptional<z.ZodString>;
|
|
175
181
|
url: z.ZodOptional<z.ZodString>;
|
|
176
182
|
}, z.core.$strip>;
|
|
@@ -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
|
} & {
|
|
@@ -652,6 +652,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
652
652
|
} & {
|
|
653
653
|
"/:workerId": {
|
|
654
654
|
$get: {
|
|
655
|
+
output: {
|
|
656
|
+
error: string;
|
|
657
|
+
code?: "invalid_input" | undefined;
|
|
658
|
+
};
|
|
659
|
+
outputFormat: "json";
|
|
660
|
+
status: 400;
|
|
661
|
+
input: {
|
|
662
|
+
param: {
|
|
663
|
+
workerId: string;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
655
667
|
output: {
|
|
656
668
|
workerId: string;
|
|
657
669
|
settled: boolean;
|
|
@@ -776,7 +788,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
776
788
|
workerId: string;
|
|
777
789
|
};
|
|
778
790
|
};
|
|
779
|
-
}
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
"/:workerId/collect": {
|
|
795
|
+
$post: {
|
|
780
796
|
output: {
|
|
781
797
|
error: string;
|
|
782
798
|
code?: "invalid_input" | undefined;
|
|
@@ -787,12 +803,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
787
803
|
param: {
|
|
788
804
|
workerId: string;
|
|
789
805
|
};
|
|
806
|
+
} & {
|
|
807
|
+
json: Record<string, never>;
|
|
790
808
|
};
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
"/:workerId/collect": {
|
|
795
|
-
$post: {
|
|
809
|
+
} | {
|
|
796
810
|
output: {
|
|
797
811
|
workerId: string;
|
|
798
812
|
parentRunId: string;
|
|
@@ -915,7 +929,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
915
929
|
} & {
|
|
916
930
|
json: Record<string, never>;
|
|
917
931
|
};
|
|
918
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/:workerId/steer": {
|
|
936
|
+
$post: {
|
|
919
937
|
output: {
|
|
920
938
|
error: string;
|
|
921
939
|
code?: "invalid_input" | undefined;
|
|
@@ -927,13 +945,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
927
945
|
workerId: string;
|
|
928
946
|
};
|
|
929
947
|
} & {
|
|
930
|
-
json:
|
|
948
|
+
json: {
|
|
949
|
+
text: string;
|
|
950
|
+
};
|
|
931
951
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/steer": {
|
|
936
|
-
$post: {
|
|
952
|
+
} | {
|
|
937
953
|
output: {
|
|
938
954
|
workerId: string;
|
|
939
955
|
state: "delivered" | "queued";
|
|
@@ -949,7 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
949
965
|
text: string;
|
|
950
966
|
};
|
|
951
967
|
};
|
|
952
|
-
}
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
} & {
|
|
971
|
+
"/:workerId/stop": {
|
|
972
|
+
$post: {
|
|
953
973
|
output: {
|
|
954
974
|
error: string;
|
|
955
975
|
code?: "invalid_input" | undefined;
|
|
@@ -961,15 +981,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
981
|
workerId: string;
|
|
962
982
|
};
|
|
963
983
|
} & {
|
|
964
|
-
json:
|
|
965
|
-
text: string;
|
|
966
|
-
};
|
|
984
|
+
json: Record<string, never>;
|
|
967
985
|
};
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
} & {
|
|
971
|
-
"/:workerId/stop": {
|
|
972
|
-
$post: {
|
|
986
|
+
} | {
|
|
973
987
|
output: {
|
|
974
988
|
workerId: string;
|
|
975
989
|
state: "stopping" | "terminated";
|
|
@@ -983,7 +997,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
983
997
|
} & {
|
|
984
998
|
json: Record<string, never>;
|
|
985
999
|
};
|
|
986
|
-
}
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
} & {
|
|
1003
|
+
"/:workerId/destroy": {
|
|
1004
|
+
$post: {
|
|
987
1005
|
output: {
|
|
988
1006
|
error: string;
|
|
989
1007
|
code?: "invalid_input" | undefined;
|
|
@@ -995,13 +1013,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
995
1013
|
workerId: string;
|
|
996
1014
|
};
|
|
997
1015
|
} & {
|
|
998
|
-
json:
|
|
1016
|
+
json: {
|
|
1017
|
+
discardWork?: true | undefined;
|
|
1018
|
+
};
|
|
999
1019
|
};
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
} & {
|
|
1003
|
-
"/:workerId/destroy": {
|
|
1004
|
-
$post: {
|
|
1020
|
+
} | {
|
|
1005
1021
|
output: {
|
|
1006
1022
|
workerId: string;
|
|
1007
1023
|
state: "complete" | "incomplete";
|
|
@@ -1030,22 +1046,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1030
1046
|
discardWork?: true | undefined;
|
|
1031
1047
|
};
|
|
1032
1048
|
};
|
|
1033
|
-
} | {
|
|
1034
|
-
output: {
|
|
1035
|
-
error: string;
|
|
1036
|
-
code?: "invalid_input" | undefined;
|
|
1037
|
-
};
|
|
1038
|
-
outputFormat: "json";
|
|
1039
|
-
status: 400;
|
|
1040
|
-
input: {
|
|
1041
|
-
param: {
|
|
1042
|
-
workerId: string;
|
|
1043
|
-
};
|
|
1044
|
-
} & {
|
|
1045
|
-
json: {
|
|
1046
|
-
discardWork?: true | undefined;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
1049
|
} | {
|
|
1050
1050
|
output: {
|
|
1051
1051
|
workerId: string;
|
|
@@ -1081,13 +1081,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1081
1081
|
"/:workerId/diff": {
|
|
1082
1082
|
$get: {
|
|
1083
1083
|
output: {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
diff: string;
|
|
1087
|
-
truncated: boolean;
|
|
1084
|
+
error: string;
|
|
1085
|
+
code?: "invalid_input" | undefined;
|
|
1088
1086
|
};
|
|
1089
1087
|
outputFormat: "json";
|
|
1090
|
-
status:
|
|
1088
|
+
status: 400;
|
|
1091
1089
|
input: {
|
|
1092
1090
|
param: {
|
|
1093
1091
|
workerId: string;
|
|
@@ -1095,11 +1093,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1095
1093
|
};
|
|
1096
1094
|
} | {
|
|
1097
1095
|
output: {
|
|
1098
|
-
|
|
1099
|
-
|
|
1096
|
+
workerId: string;
|
|
1097
|
+
baselineSha: string;
|
|
1098
|
+
diff: string;
|
|
1099
|
+
truncated: boolean;
|
|
1100
1100
|
};
|
|
1101
1101
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1102
|
+
status: 200;
|
|
1103
1103
|
input: {
|
|
1104
1104
|
param: {
|
|
1105
1105
|
workerId: string;
|