@monotykamary/localterm-server 2.80.2 → 2.81.0
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/agent-runner.d.ts +1 -0
- package/dist/agent-runner.d.ts.map +1 -1
- package/dist/agent-runner.js +203 -151
- package/dist/agent-runner.js.map +1 -1
- package/dist/automation-dispatcher.d.ts +27 -0
- package/dist/automation-dispatcher.d.ts.map +1 -0
- package/dist/automation-dispatcher.js +195 -0
- package/dist/automation-dispatcher.js.map +1 -0
- package/dist/automation-run-tracker.d.ts +1 -1
- package/dist/automation-run-tracker.d.ts.map +1 -1
- package/dist/automation-run-tracker.js +2 -2
- package/dist/automation-run-tracker.js.map +1 -1
- package/dist/automation-scheduler.d.ts +7 -4
- package/dist/automation-scheduler.d.ts.map +1 -1
- package/dist/automation-scheduler.js +59 -39
- package/dist/automation-scheduler.js.map +1 -1
- package/dist/automation-store.d.ts +1 -0
- package/dist/automation-store.d.ts.map +1 -1
- package/dist/automation-store.js +59 -23
- package/dist/automation-store.js.map +1 -1
- package/dist/constants.d.ts +12 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +13 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +195 -213
- package/dist/index.js.map +1 -1
- package/dist/pi-rpc-client.d.ts +9 -3
- package/dist/pi-rpc-client.d.ts.map +1 -1
- package/dist/pi-rpc-client.js +133 -32
- package/dist/pi-rpc-client.js.map +1 -1
- package/dist/protocol.d.ts +2 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +2 -0
- package/dist/protocol.js.map +1 -1
- package/dist/schemas.d.ts +882 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +57 -8
- package/dist/schemas.js.map +1 -1
- package/dist/utils/compile-schedule.d.ts +1 -1
- package/dist/utils/compile-schedule.d.ts.map +1 -1
- package/dist/utils/compile-schedule.js +7 -6
- package/dist/utils/compile-schedule.js.map +1 -1
- package/dist/utils/compute-next-automation-run-at.d.ts.map +1 -1
- package/dist/utils/compute-next-automation-run-at.js +3 -18
- package/dist/utils/compute-next-automation-run-at.js.map +1 -1
- package/dist/utils/is-active-automation-run.d.ts +3 -0
- package/dist/utils/is-active-automation-run.d.ts.map +1 -0
- package/dist/utils/is-active-automation-run.js +2 -0
- package/dist/utils/is-active-automation-run.js.map +1 -0
- package/dist/utils/is-valid-time-zone.d.ts +2 -0
- package/dist/utils/is-valid-time-zone.d.ts.map +1 -0
- package/dist/utils/is-valid-time-zone.js +14 -0
- package/dist/utils/is-valid-time-zone.js.map +1 -0
- package/dist/utils/next-schedule-occurrence.d.ts +4 -0
- package/dist/utils/next-schedule-occurrence.d.ts.map +1 -0
- package/dist/utils/next-schedule-occurrence.js +201 -0
- package/dist/utils/next-schedule-occurrence.js.map +1 -0
- package/dist/utils/reconcile-downtime.d.ts.map +1 -1
- package/dist/utils/reconcile-downtime.js +4 -24
- package/dist/utils/reconcile-downtime.js.map +1 -1
- package/dist/utils/trim-automation-runs.d.ts +3 -0
- package/dist/utils/trim-automation-runs.d.ts.map +1 -0
- package/dist/utils/trim-automation-runs.js +7 -0
- package/dist/utils/trim-automation-runs.js.map +1 -0
- package/package.json +1 -1
- package/vendor/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/vendor/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/vendor/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/vendor/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
package/dist/schemas.d.ts
CHANGED
|
@@ -556,6 +556,15 @@ export declare const launchInputSchema: z.ZodObject<{
|
|
|
556
556
|
command: z.ZodString;
|
|
557
557
|
}, z.core.$strict>;
|
|
558
558
|
export declare const automationScheduleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
559
|
+
kind: z.ZodLiteral<"interval">;
|
|
560
|
+
every: z.ZodNumber;
|
|
561
|
+
unit: z.ZodEnum<{
|
|
562
|
+
days: "days";
|
|
563
|
+
hours: "hours";
|
|
564
|
+
minutes: "minutes";
|
|
565
|
+
}>;
|
|
566
|
+
anchorAt: z.ZodNumber;
|
|
567
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
559
568
|
kind: z.ZodLiteral<"hourly">;
|
|
560
569
|
minute: z.ZodNumber;
|
|
561
570
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -620,6 +629,15 @@ export declare const automationSessionEventSchema: z.ZodEnum<{
|
|
|
620
629
|
export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
621
630
|
kind: z.ZodLiteral<"schedule">;
|
|
622
631
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
632
|
+
kind: z.ZodLiteral<"interval">;
|
|
633
|
+
every: z.ZodNumber;
|
|
634
|
+
unit: z.ZodEnum<{
|
|
635
|
+
days: "days";
|
|
636
|
+
hours: "hours";
|
|
637
|
+
minutes: "minutes";
|
|
638
|
+
}>;
|
|
639
|
+
anchorAt: z.ZodNumber;
|
|
640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
623
641
|
kind: z.ZodLiteral<"hourly">;
|
|
624
642
|
minute: z.ZodNumber;
|
|
625
643
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -692,6 +710,15 @@ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
692
710
|
id: z.ZodString;
|
|
693
711
|
}, z.core.$strict>], "kind">;
|
|
694
712
|
export declare const scheduleInputSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
713
|
+
kind: z.ZodLiteral<"interval">;
|
|
714
|
+
every: z.ZodNumber;
|
|
715
|
+
unit: z.ZodEnum<{
|
|
716
|
+
days: "days";
|
|
717
|
+
hours: "hours";
|
|
718
|
+
minutes: "minutes";
|
|
719
|
+
}>;
|
|
720
|
+
anchorAt: z.ZodNumber;
|
|
721
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
695
722
|
kind: z.ZodLiteral<"hourly">;
|
|
696
723
|
minute: z.ZodNumber;
|
|
697
724
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -736,6 +763,15 @@ export declare const scheduleInputSchema: z.ZodUnion<readonly [z.ZodDiscriminate
|
|
|
736
763
|
export declare const triggerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
737
764
|
kind: z.ZodLiteral<"schedule">;
|
|
738
765
|
schedule: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
766
|
+
kind: z.ZodLiteral<"interval">;
|
|
767
|
+
every: z.ZodNumber;
|
|
768
|
+
unit: z.ZodEnum<{
|
|
769
|
+
days: "days";
|
|
770
|
+
hours: "hours";
|
|
771
|
+
minutes: "minutes";
|
|
772
|
+
}>;
|
|
773
|
+
anchorAt: z.ZodNumber;
|
|
774
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
739
775
|
kind: z.ZodLiteral<"hourly">;
|
|
740
776
|
minute: z.ZodNumber;
|
|
741
777
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -937,18 +973,24 @@ export declare const automationLifecycleSchema: z.ZodEnum<{
|
|
|
937
973
|
finished: "finished";
|
|
938
974
|
}>;
|
|
939
975
|
export declare const automationRunStatusSchema: z.ZodEnum<{
|
|
976
|
+
cancelled: "cancelled";
|
|
940
977
|
completed: "completed";
|
|
941
978
|
failed: "failed";
|
|
979
|
+
interrupted: "interrupted";
|
|
942
980
|
launched: "launched";
|
|
943
981
|
missed: "missed";
|
|
982
|
+
queued: "queued";
|
|
944
983
|
running: "running";
|
|
945
984
|
skipped: "skipped";
|
|
946
985
|
}>;
|
|
947
986
|
export declare const automationLastRunStatusSchema: z.ZodEnum<{
|
|
987
|
+
cancelled: "cancelled";
|
|
948
988
|
completed: "completed";
|
|
949
989
|
failed: "failed";
|
|
990
|
+
interrupted: "interrupted";
|
|
950
991
|
launched: "launched";
|
|
951
992
|
missed: "missed";
|
|
993
|
+
queued: "queued";
|
|
952
994
|
running: "running";
|
|
953
995
|
skipped: "skipped";
|
|
954
996
|
}>;
|
|
@@ -971,13 +1013,27 @@ export declare const automationRunRecordSchema: z.ZodObject<{
|
|
|
971
1013
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
972
1014
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
973
1015
|
status: z.ZodEnum<{
|
|
1016
|
+
cancelled: "cancelled";
|
|
974
1017
|
completed: "completed";
|
|
975
1018
|
failed: "failed";
|
|
1019
|
+
interrupted: "interrupted";
|
|
976
1020
|
launched: "launched";
|
|
977
1021
|
missed: "missed";
|
|
1022
|
+
queued: "queued";
|
|
978
1023
|
running: "running";
|
|
979
1024
|
skipped: "skipped";
|
|
980
1025
|
}>;
|
|
1026
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
+
cancelled: "cancelled";
|
|
1028
|
+
capacity: "capacity";
|
|
1029
|
+
disabled: "disabled";
|
|
1030
|
+
downtime: "downtime";
|
|
1031
|
+
"launch-failed": "launch-failed";
|
|
1032
|
+
limit: "limit";
|
|
1033
|
+
overlap: "overlap";
|
|
1034
|
+
restart: "restart";
|
|
1035
|
+
superseded: "superseded";
|
|
1036
|
+
}>>;
|
|
981
1037
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
982
1038
|
trigger: z.ZodEnum<{
|
|
983
1039
|
event: "event";
|
|
@@ -1003,6 +1059,43 @@ export declare const automationRunRecordSchema: z.ZodObject<{
|
|
|
1003
1059
|
input: z.ZodOptional<z.ZodString>;
|
|
1004
1060
|
text: z.ZodString;
|
|
1005
1061
|
}, z.core.$strict>], "type">>]>>>;
|
|
1062
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
1063
|
+
cwd: z.ZodString;
|
|
1064
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1065
|
+
kind: z.ZodLiteral<"shell">;
|
|
1066
|
+
command: z.ZodString;
|
|
1067
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1068
|
+
kind: z.ZodLiteral<"agent">;
|
|
1069
|
+
prompt: z.ZodString;
|
|
1070
|
+
sessionMode: z.ZodEnum<{
|
|
1071
|
+
fresh: "fresh";
|
|
1072
|
+
thread: "thread";
|
|
1073
|
+
}>;
|
|
1074
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1076
|
+
high: "high";
|
|
1077
|
+
low: "low";
|
|
1078
|
+
max: "max";
|
|
1079
|
+
medium: "medium";
|
|
1080
|
+
minimal: "minimal";
|
|
1081
|
+
off: "off";
|
|
1082
|
+
xhigh: "xhigh";
|
|
1083
|
+
}>>;
|
|
1084
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1085
|
+
kind: z.ZodLiteral<"pi">;
|
|
1086
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1087
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1088
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1089
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1090
|
+
kind: z.ZodLiteral<"custom">;
|
|
1091
|
+
command: z.ZodString;
|
|
1092
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
}, z.core.$strict>], "kind">>;
|
|
1094
|
+
}, z.core.$strict>], "kind">;
|
|
1095
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
1096
|
+
redactOutput: z.ZodBoolean;
|
|
1097
|
+
closeOnFinish: z.ZodBoolean;
|
|
1098
|
+
}, z.core.$strict>>;
|
|
1006
1099
|
}, z.core.$strict>;
|
|
1007
1100
|
export declare const automationRunWireSchema: z.ZodObject<{
|
|
1008
1101
|
runId: z.ZodString;
|
|
@@ -1010,13 +1103,27 @@ export declare const automationRunWireSchema: z.ZodObject<{
|
|
|
1010
1103
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1011
1104
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1012
1105
|
status: z.ZodEnum<{
|
|
1106
|
+
cancelled: "cancelled";
|
|
1013
1107
|
completed: "completed";
|
|
1014
1108
|
failed: "failed";
|
|
1109
|
+
interrupted: "interrupted";
|
|
1015
1110
|
launched: "launched";
|
|
1016
1111
|
missed: "missed";
|
|
1112
|
+
queued: "queued";
|
|
1017
1113
|
running: "running";
|
|
1018
1114
|
skipped: "skipped";
|
|
1019
1115
|
}>;
|
|
1116
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1117
|
+
cancelled: "cancelled";
|
|
1118
|
+
capacity: "capacity";
|
|
1119
|
+
disabled: "disabled";
|
|
1120
|
+
downtime: "downtime";
|
|
1121
|
+
"launch-failed": "launch-failed";
|
|
1122
|
+
limit: "limit";
|
|
1123
|
+
overlap: "overlap";
|
|
1124
|
+
restart: "restart";
|
|
1125
|
+
superseded: "superseded";
|
|
1126
|
+
}>>;
|
|
1020
1127
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1021
1128
|
trigger: z.ZodEnum<{
|
|
1022
1129
|
event: "event";
|
|
@@ -1035,21 +1142,44 @@ export declare const automationLastRunSchema: z.ZodObject<{
|
|
|
1035
1142
|
runId: z.ZodString;
|
|
1036
1143
|
at: z.ZodNumber;
|
|
1037
1144
|
status: z.ZodEnum<{
|
|
1145
|
+
cancelled: "cancelled";
|
|
1038
1146
|
completed: "completed";
|
|
1039
1147
|
failed: "failed";
|
|
1148
|
+
interrupted: "interrupted";
|
|
1040
1149
|
launched: "launched";
|
|
1041
1150
|
missed: "missed";
|
|
1151
|
+
queued: "queued";
|
|
1042
1152
|
running: "running";
|
|
1043
1153
|
skipped: "skipped";
|
|
1044
1154
|
}>;
|
|
1045
1155
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1046
1156
|
}, z.core.$strict>;
|
|
1047
1157
|
export declare const automationSchema: z.ZodObject<{
|
|
1158
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1159
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1160
|
+
allow: "allow";
|
|
1161
|
+
"queue-latest": "queue-latest";
|
|
1162
|
+
skip: "skip";
|
|
1163
|
+
}>>;
|
|
1164
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1165
|
+
"run-latest": "run-latest";
|
|
1166
|
+
skip: "skip";
|
|
1167
|
+
}>>;
|
|
1168
|
+
lastScheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
1048
1169
|
id: z.ZodString;
|
|
1049
1170
|
name: z.ZodString;
|
|
1050
1171
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1051
1172
|
kind: z.ZodLiteral<"schedule">;
|
|
1052
1173
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1174
|
+
kind: z.ZodLiteral<"interval">;
|
|
1175
|
+
every: z.ZodNumber;
|
|
1176
|
+
unit: z.ZodEnum<{
|
|
1177
|
+
days: "days";
|
|
1178
|
+
hours: "hours";
|
|
1179
|
+
minutes: "minutes";
|
|
1180
|
+
}>;
|
|
1181
|
+
anchorAt: z.ZodNumber;
|
|
1182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1053
1183
|
kind: z.ZodLiteral<"hourly">;
|
|
1054
1184
|
minute: z.ZodNumber;
|
|
1055
1185
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1174,13 +1304,27 @@ export declare const automationSchema: z.ZodObject<{
|
|
|
1174
1304
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1175
1305
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1176
1306
|
status: z.ZodEnum<{
|
|
1307
|
+
cancelled: "cancelled";
|
|
1177
1308
|
completed: "completed";
|
|
1178
1309
|
failed: "failed";
|
|
1310
|
+
interrupted: "interrupted";
|
|
1179
1311
|
launched: "launched";
|
|
1180
1312
|
missed: "missed";
|
|
1313
|
+
queued: "queued";
|
|
1181
1314
|
running: "running";
|
|
1182
1315
|
skipped: "skipped";
|
|
1183
1316
|
}>;
|
|
1317
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1318
|
+
cancelled: "cancelled";
|
|
1319
|
+
capacity: "capacity";
|
|
1320
|
+
disabled: "disabled";
|
|
1321
|
+
downtime: "downtime";
|
|
1322
|
+
"launch-failed": "launch-failed";
|
|
1323
|
+
limit: "limit";
|
|
1324
|
+
overlap: "overlap";
|
|
1325
|
+
restart: "restart";
|
|
1326
|
+
superseded: "superseded";
|
|
1327
|
+
}>>;
|
|
1184
1328
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1185
1329
|
trigger: z.ZodEnum<{
|
|
1186
1330
|
event: "event";
|
|
@@ -1206,16 +1350,73 @@ export declare const automationSchema: z.ZodObject<{
|
|
|
1206
1350
|
input: z.ZodOptional<z.ZodString>;
|
|
1207
1351
|
text: z.ZodString;
|
|
1208
1352
|
}, z.core.$strict>], "type">>]>>>;
|
|
1353
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
1354
|
+
cwd: z.ZodString;
|
|
1355
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1356
|
+
kind: z.ZodLiteral<"shell">;
|
|
1357
|
+
command: z.ZodString;
|
|
1358
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1359
|
+
kind: z.ZodLiteral<"agent">;
|
|
1360
|
+
prompt: z.ZodString;
|
|
1361
|
+
sessionMode: z.ZodEnum<{
|
|
1362
|
+
fresh: "fresh";
|
|
1363
|
+
thread: "thread";
|
|
1364
|
+
}>;
|
|
1365
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1367
|
+
high: "high";
|
|
1368
|
+
low: "low";
|
|
1369
|
+
max: "max";
|
|
1370
|
+
medium: "medium";
|
|
1371
|
+
minimal: "minimal";
|
|
1372
|
+
off: "off";
|
|
1373
|
+
xhigh: "xhigh";
|
|
1374
|
+
}>>;
|
|
1375
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1376
|
+
kind: z.ZodLiteral<"pi">;
|
|
1377
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1378
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1379
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1380
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1381
|
+
kind: z.ZodLiteral<"custom">;
|
|
1382
|
+
command: z.ZodString;
|
|
1383
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
}, z.core.$strict>], "kind">>;
|
|
1385
|
+
}, z.core.$strict>], "kind">;
|
|
1386
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
1387
|
+
redactOutput: z.ZodBoolean;
|
|
1388
|
+
closeOnFinish: z.ZodBoolean;
|
|
1389
|
+
}, z.core.$strict>>;
|
|
1209
1390
|
}, z.core.$strict>>;
|
|
1210
1391
|
createdAt: z.ZodNumber;
|
|
1211
1392
|
updatedAt: z.ZodNumber;
|
|
1212
1393
|
}, z.core.$strict>;
|
|
1213
1394
|
export declare const automationWithNextRunSchema: z.ZodObject<{
|
|
1395
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1397
|
+
allow: "allow";
|
|
1398
|
+
"queue-latest": "queue-latest";
|
|
1399
|
+
skip: "skip";
|
|
1400
|
+
}>>;
|
|
1401
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
+
"run-latest": "run-latest";
|
|
1403
|
+
skip: "skip";
|
|
1404
|
+
}>>;
|
|
1405
|
+
lastScheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
1214
1406
|
id: z.ZodString;
|
|
1215
1407
|
name: z.ZodString;
|
|
1216
1408
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1217
1409
|
kind: z.ZodLiteral<"schedule">;
|
|
1218
1410
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1411
|
+
kind: z.ZodLiteral<"interval">;
|
|
1412
|
+
every: z.ZodNumber;
|
|
1413
|
+
unit: z.ZodEnum<{
|
|
1414
|
+
days: "days";
|
|
1415
|
+
hours: "hours";
|
|
1416
|
+
minutes: "minutes";
|
|
1417
|
+
}>;
|
|
1418
|
+
anchorAt: z.ZodNumber;
|
|
1419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1219
1420
|
kind: z.ZodLiteral<"hourly">;
|
|
1220
1421
|
minute: z.ZodNumber;
|
|
1221
1422
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1342,13 +1543,27 @@ export declare const automationWithNextRunSchema: z.ZodObject<{
|
|
|
1342
1543
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1343
1544
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1344
1545
|
status: z.ZodEnum<{
|
|
1546
|
+
cancelled: "cancelled";
|
|
1345
1547
|
completed: "completed";
|
|
1346
1548
|
failed: "failed";
|
|
1549
|
+
interrupted: "interrupted";
|
|
1347
1550
|
launched: "launched";
|
|
1348
1551
|
missed: "missed";
|
|
1552
|
+
queued: "queued";
|
|
1349
1553
|
running: "running";
|
|
1350
1554
|
skipped: "skipped";
|
|
1351
1555
|
}>;
|
|
1556
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1557
|
+
cancelled: "cancelled";
|
|
1558
|
+
capacity: "capacity";
|
|
1559
|
+
disabled: "disabled";
|
|
1560
|
+
downtime: "downtime";
|
|
1561
|
+
"launch-failed": "launch-failed";
|
|
1562
|
+
limit: "limit";
|
|
1563
|
+
overlap: "overlap";
|
|
1564
|
+
restart: "restart";
|
|
1565
|
+
superseded: "superseded";
|
|
1566
|
+
}>>;
|
|
1352
1567
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1353
1568
|
trigger: z.ZodEnum<{
|
|
1354
1569
|
event: "event";
|
|
@@ -1369,24 +1584,287 @@ export declare const automationWithNextRunSchema: z.ZodObject<{
|
|
|
1369
1584
|
runId: z.ZodString;
|
|
1370
1585
|
at: z.ZodNumber;
|
|
1371
1586
|
status: z.ZodEnum<{
|
|
1587
|
+
cancelled: "cancelled";
|
|
1372
1588
|
completed: "completed";
|
|
1373
1589
|
failed: "failed";
|
|
1590
|
+
interrupted: "interrupted";
|
|
1374
1591
|
launched: "launched";
|
|
1375
1592
|
missed: "missed";
|
|
1593
|
+
queued: "queued";
|
|
1376
1594
|
running: "running";
|
|
1377
1595
|
skipped: "skipped";
|
|
1378
1596
|
}>;
|
|
1379
1597
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1380
1598
|
}, z.core.$strict>>;
|
|
1381
1599
|
}, z.core.$strict>;
|
|
1382
|
-
export declare const
|
|
1600
|
+
export declare const automationsFileV4Schema: z.ZodObject<{
|
|
1383
1601
|
version: z.ZodLiteral<4>;
|
|
1384
1602
|
automations: z.ZodArray<z.ZodObject<{
|
|
1603
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1604
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1605
|
+
allow: "allow";
|
|
1606
|
+
"queue-latest": "queue-latest";
|
|
1607
|
+
skip: "skip";
|
|
1608
|
+
}>>;
|
|
1609
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1610
|
+
"run-latest": "run-latest";
|
|
1611
|
+
skip: "skip";
|
|
1612
|
+
}>>;
|
|
1613
|
+
lastScheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
1614
|
+
id: z.ZodString;
|
|
1615
|
+
name: z.ZodString;
|
|
1616
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1617
|
+
kind: z.ZodLiteral<"schedule">;
|
|
1618
|
+
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1619
|
+
kind: z.ZodLiteral<"interval">;
|
|
1620
|
+
every: z.ZodNumber;
|
|
1621
|
+
unit: z.ZodEnum<{
|
|
1622
|
+
days: "days";
|
|
1623
|
+
hours: "hours";
|
|
1624
|
+
minutes: "minutes";
|
|
1625
|
+
}>;
|
|
1626
|
+
anchorAt: z.ZodNumber;
|
|
1627
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1628
|
+
kind: z.ZodLiteral<"hourly">;
|
|
1629
|
+
minute: z.ZodNumber;
|
|
1630
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1631
|
+
kind: z.ZodLiteral<"daily">;
|
|
1632
|
+
hour: z.ZodNumber;
|
|
1633
|
+
minute: z.ZodNumber;
|
|
1634
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1635
|
+
kind: z.ZodLiteral<"timesOfDay">;
|
|
1636
|
+
times: z.ZodArray<z.ZodObject<{
|
|
1637
|
+
hour: z.ZodNumber;
|
|
1638
|
+
minute: z.ZodNumber;
|
|
1639
|
+
}, z.core.$strict>>;
|
|
1640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1641
|
+
kind: z.ZodLiteral<"weekdaysPreset">;
|
|
1642
|
+
preset: z.ZodEnum<{
|
|
1643
|
+
weekdays: "weekdays";
|
|
1644
|
+
weekends: "weekends";
|
|
1645
|
+
}>;
|
|
1646
|
+
hour: z.ZodNumber;
|
|
1647
|
+
minute: z.ZodNumber;
|
|
1648
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1649
|
+
kind: z.ZodLiteral<"weekly">;
|
|
1650
|
+
daysOfWeek: z.ZodArray<z.ZodNumber>;
|
|
1651
|
+
hour: z.ZodNumber;
|
|
1652
|
+
minute: z.ZodNumber;
|
|
1653
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1654
|
+
kind: z.ZodLiteral<"monthly">;
|
|
1655
|
+
daysOfMonth: z.ZodArray<z.ZodNumber>;
|
|
1656
|
+
hour: z.ZodNumber;
|
|
1657
|
+
minute: z.ZodNumber;
|
|
1658
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1659
|
+
kind: z.ZodLiteral<"everyNMinutes">;
|
|
1660
|
+
step: z.ZodNumber;
|
|
1661
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1662
|
+
kind: z.ZodLiteral<"everyNHours">;
|
|
1663
|
+
step: z.ZodNumber;
|
|
1664
|
+
minute: z.ZodNumber;
|
|
1665
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1666
|
+
kind: z.ZodLiteral<"cron">;
|
|
1667
|
+
expression: z.ZodString;
|
|
1668
|
+
}, z.core.$strict>], "kind">;
|
|
1669
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1670
|
+
kind: z.ZodLiteral<"watch">;
|
|
1671
|
+
recursive: z.ZodBoolean;
|
|
1672
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1674
|
+
kind: z.ZodLiteral<"event">;
|
|
1675
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
1676
|
+
cwd: "cwd";
|
|
1677
|
+
exit: "exit";
|
|
1678
|
+
foreground: "foreground";
|
|
1679
|
+
"git-branch-change": "git-branch-change";
|
|
1680
|
+
"git-checkout": "git-checkout";
|
|
1681
|
+
"git-cherry-pick": "git-cherry-pick";
|
|
1682
|
+
"git-commit": "git-commit";
|
|
1683
|
+
"git-fetch": "git-fetch";
|
|
1684
|
+
"git-head-change": "git-head-change";
|
|
1685
|
+
"git-merge": "git-merge";
|
|
1686
|
+
"git-rebase": "git-rebase";
|
|
1687
|
+
"git-remote-change": "git-remote-change";
|
|
1688
|
+
"git-reset": "git-reset";
|
|
1689
|
+
"git-stash": "git-stash";
|
|
1690
|
+
"git-stash-change": "git-stash-change";
|
|
1691
|
+
"git-tag": "git-tag";
|
|
1692
|
+
"git-tag-change": "git-tag-change";
|
|
1693
|
+
notification: "notification";
|
|
1694
|
+
}>>;
|
|
1695
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1696
|
+
kind: z.ZodLiteral<"webhook">;
|
|
1697
|
+
id: z.ZodString;
|
|
1698
|
+
}, z.core.$strict>], "kind">;
|
|
1699
|
+
cwd: z.ZodString;
|
|
1700
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1701
|
+
kind: z.ZodLiteral<"shell">;
|
|
1702
|
+
command: z.ZodString;
|
|
1703
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1704
|
+
kind: z.ZodLiteral<"agent">;
|
|
1705
|
+
prompt: z.ZodString;
|
|
1706
|
+
sessionMode: z.ZodEnum<{
|
|
1707
|
+
fresh: "fresh";
|
|
1708
|
+
thread: "thread";
|
|
1709
|
+
}>;
|
|
1710
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1712
|
+
high: "high";
|
|
1713
|
+
low: "low";
|
|
1714
|
+
max: "max";
|
|
1715
|
+
medium: "medium";
|
|
1716
|
+
minimal: "minimal";
|
|
1717
|
+
off: "off";
|
|
1718
|
+
xhigh: "xhigh";
|
|
1719
|
+
}>>;
|
|
1720
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1721
|
+
kind: z.ZodLiteral<"pi">;
|
|
1722
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1723
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1724
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1725
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1726
|
+
kind: z.ZodLiteral<"custom">;
|
|
1727
|
+
command: z.ZodString;
|
|
1728
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
}, z.core.$strict>], "kind">>;
|
|
1730
|
+
}, z.core.$strict>], "kind">;
|
|
1731
|
+
enabled: z.ZodBoolean;
|
|
1732
|
+
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1733
|
+
kind: z.ZodLiteral<"forever">;
|
|
1734
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1735
|
+
kind: z.ZodLiteral<"count">;
|
|
1736
|
+
max: z.ZodNumber;
|
|
1737
|
+
}, z.core.$strict>], "kind">;
|
|
1738
|
+
closeOnFinish: z.ZodDefault<z.ZodBoolean>;
|
|
1739
|
+
requestedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1740
|
+
redactOutput: z.ZodDefault<z.ZodBoolean>;
|
|
1741
|
+
runCount: z.ZodNumber;
|
|
1742
|
+
lifecycle: z.ZodEnum<{
|
|
1743
|
+
active: "active";
|
|
1744
|
+
finished: "finished";
|
|
1745
|
+
}>;
|
|
1746
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1747
|
+
runId: z.ZodString;
|
|
1748
|
+
scheduledFor: z.ZodNumber;
|
|
1749
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1750
|
+
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1751
|
+
status: z.ZodEnum<{
|
|
1752
|
+
cancelled: "cancelled";
|
|
1753
|
+
completed: "completed";
|
|
1754
|
+
failed: "failed";
|
|
1755
|
+
interrupted: "interrupted";
|
|
1756
|
+
launched: "launched";
|
|
1757
|
+
missed: "missed";
|
|
1758
|
+
queued: "queued";
|
|
1759
|
+
running: "running";
|
|
1760
|
+
skipped: "skipped";
|
|
1761
|
+
}>;
|
|
1762
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1763
|
+
cancelled: "cancelled";
|
|
1764
|
+
capacity: "capacity";
|
|
1765
|
+
disabled: "disabled";
|
|
1766
|
+
downtime: "downtime";
|
|
1767
|
+
"launch-failed": "launch-failed";
|
|
1768
|
+
limit: "limit";
|
|
1769
|
+
overlap: "overlap";
|
|
1770
|
+
restart: "restart";
|
|
1771
|
+
superseded: "superseded";
|
|
1772
|
+
}>>;
|
|
1773
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1774
|
+
trigger: z.ZodEnum<{
|
|
1775
|
+
event: "event";
|
|
1776
|
+
manual: "manual";
|
|
1777
|
+
schedule: "schedule";
|
|
1778
|
+
watch: "watch";
|
|
1779
|
+
webhook: "webhook";
|
|
1780
|
+
}>;
|
|
1781
|
+
countsTowardLimit: z.ZodBoolean;
|
|
1782
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1783
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1784
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1785
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1786
|
+
type: z.ZodLiteral<"user">;
|
|
1787
|
+
text: z.ZodString;
|
|
1788
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1789
|
+
type: z.ZodLiteral<"assistant">;
|
|
1790
|
+
text: z.ZodString;
|
|
1791
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1792
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1793
|
+
type: z.ZodLiteral<"tool">;
|
|
1794
|
+
name: z.ZodString;
|
|
1795
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1796
|
+
text: z.ZodString;
|
|
1797
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1798
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
1799
|
+
cwd: z.ZodString;
|
|
1800
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1801
|
+
kind: z.ZodLiteral<"shell">;
|
|
1802
|
+
command: z.ZodString;
|
|
1803
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1804
|
+
kind: z.ZodLiteral<"agent">;
|
|
1805
|
+
prompt: z.ZodString;
|
|
1806
|
+
sessionMode: z.ZodEnum<{
|
|
1807
|
+
fresh: "fresh";
|
|
1808
|
+
thread: "thread";
|
|
1809
|
+
}>;
|
|
1810
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1812
|
+
high: "high";
|
|
1813
|
+
low: "low";
|
|
1814
|
+
max: "max";
|
|
1815
|
+
medium: "medium";
|
|
1816
|
+
minimal: "minimal";
|
|
1817
|
+
off: "off";
|
|
1818
|
+
xhigh: "xhigh";
|
|
1819
|
+
}>>;
|
|
1820
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1821
|
+
kind: z.ZodLiteral<"pi">;
|
|
1822
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1823
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1824
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1825
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1826
|
+
kind: z.ZodLiteral<"custom">;
|
|
1827
|
+
command: z.ZodString;
|
|
1828
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1829
|
+
}, z.core.$strict>], "kind">>;
|
|
1830
|
+
}, z.core.$strict>], "kind">;
|
|
1831
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
1832
|
+
redactOutput: z.ZodBoolean;
|
|
1833
|
+
closeOnFinish: z.ZodBoolean;
|
|
1834
|
+
}, z.core.$strict>>;
|
|
1835
|
+
}, z.core.$strict>>;
|
|
1836
|
+
createdAt: z.ZodNumber;
|
|
1837
|
+
updatedAt: z.ZodNumber;
|
|
1838
|
+
}, z.core.$strict>>;
|
|
1839
|
+
}, z.core.$strict>;
|
|
1840
|
+
export declare const automationsFileSchema: z.ZodObject<{
|
|
1841
|
+
version: z.ZodLiteral<5>;
|
|
1842
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
1843
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1845
|
+
allow: "allow";
|
|
1846
|
+
"queue-latest": "queue-latest";
|
|
1847
|
+
skip: "skip";
|
|
1848
|
+
}>>;
|
|
1849
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1850
|
+
"run-latest": "run-latest";
|
|
1851
|
+
skip: "skip";
|
|
1852
|
+
}>>;
|
|
1853
|
+
lastScheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
1385
1854
|
id: z.ZodString;
|
|
1386
1855
|
name: z.ZodString;
|
|
1387
1856
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1388
1857
|
kind: z.ZodLiteral<"schedule">;
|
|
1389
1858
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1859
|
+
kind: z.ZodLiteral<"interval">;
|
|
1860
|
+
every: z.ZodNumber;
|
|
1861
|
+
unit: z.ZodEnum<{
|
|
1862
|
+
days: "days";
|
|
1863
|
+
hours: "hours";
|
|
1864
|
+
minutes: "minutes";
|
|
1865
|
+
}>;
|
|
1866
|
+
anchorAt: z.ZodNumber;
|
|
1867
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1390
1868
|
kind: z.ZodLiteral<"hourly">;
|
|
1391
1869
|
minute: z.ZodNumber;
|
|
1392
1870
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1511,13 +1989,27 @@ export declare const automationsFileSchema: z.ZodObject<{
|
|
|
1511
1989
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1512
1990
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1513
1991
|
status: z.ZodEnum<{
|
|
1992
|
+
cancelled: "cancelled";
|
|
1514
1993
|
completed: "completed";
|
|
1515
1994
|
failed: "failed";
|
|
1995
|
+
interrupted: "interrupted";
|
|
1516
1996
|
launched: "launched";
|
|
1517
1997
|
missed: "missed";
|
|
1998
|
+
queued: "queued";
|
|
1518
1999
|
running: "running";
|
|
1519
2000
|
skipped: "skipped";
|
|
1520
2001
|
}>;
|
|
2002
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2003
|
+
cancelled: "cancelled";
|
|
2004
|
+
capacity: "capacity";
|
|
2005
|
+
disabled: "disabled";
|
|
2006
|
+
downtime: "downtime";
|
|
2007
|
+
"launch-failed": "launch-failed";
|
|
2008
|
+
limit: "limit";
|
|
2009
|
+
overlap: "overlap";
|
|
2010
|
+
restart: "restart";
|
|
2011
|
+
superseded: "superseded";
|
|
2012
|
+
}>>;
|
|
1521
2013
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1522
2014
|
trigger: z.ZodEnum<{
|
|
1523
2015
|
event: "event";
|
|
@@ -1543,6 +2035,43 @@ export declare const automationsFileSchema: z.ZodObject<{
|
|
|
1543
2035
|
input: z.ZodOptional<z.ZodString>;
|
|
1544
2036
|
text: z.ZodString;
|
|
1545
2037
|
}, z.core.$strict>], "type">>]>>>;
|
|
2038
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2039
|
+
cwd: z.ZodString;
|
|
2040
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2041
|
+
kind: z.ZodLiteral<"shell">;
|
|
2042
|
+
command: z.ZodString;
|
|
2043
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2044
|
+
kind: z.ZodLiteral<"agent">;
|
|
2045
|
+
prompt: z.ZodString;
|
|
2046
|
+
sessionMode: z.ZodEnum<{
|
|
2047
|
+
fresh: "fresh";
|
|
2048
|
+
thread: "thread";
|
|
2049
|
+
}>;
|
|
2050
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2052
|
+
high: "high";
|
|
2053
|
+
low: "low";
|
|
2054
|
+
max: "max";
|
|
2055
|
+
medium: "medium";
|
|
2056
|
+
minimal: "minimal";
|
|
2057
|
+
off: "off";
|
|
2058
|
+
xhigh: "xhigh";
|
|
2059
|
+
}>>;
|
|
2060
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2061
|
+
kind: z.ZodLiteral<"pi">;
|
|
2062
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2063
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2064
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2065
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2066
|
+
kind: z.ZodLiteral<"custom">;
|
|
2067
|
+
command: z.ZodString;
|
|
2068
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2069
|
+
}, z.core.$strict>], "kind">>;
|
|
2070
|
+
}, z.core.$strict>], "kind">;
|
|
2071
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
2072
|
+
redactOutput: z.ZodBoolean;
|
|
2073
|
+
closeOnFinish: z.ZodBoolean;
|
|
2074
|
+
}, z.core.$strict>>;
|
|
1546
2075
|
}, z.core.$strict>>;
|
|
1547
2076
|
createdAt: z.ZodNumber;
|
|
1548
2077
|
updatedAt: z.ZodNumber;
|
|
@@ -1599,6 +2128,15 @@ export declare const automationV2Schema: z.ZodObject<{
|
|
|
1599
2128
|
id: z.ZodString;
|
|
1600
2129
|
name: z.ZodString;
|
|
1601
2130
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2131
|
+
kind: z.ZodLiteral<"interval">;
|
|
2132
|
+
every: z.ZodNumber;
|
|
2133
|
+
unit: z.ZodEnum<{
|
|
2134
|
+
days: "days";
|
|
2135
|
+
hours: "hours";
|
|
2136
|
+
minutes: "minutes";
|
|
2137
|
+
}>;
|
|
2138
|
+
anchorAt: z.ZodNumber;
|
|
2139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1602
2140
|
kind: z.ZodLiteral<"hourly">;
|
|
1603
2141
|
minute: z.ZodNumber;
|
|
1604
2142
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1661,13 +2199,27 @@ export declare const automationV2Schema: z.ZodObject<{
|
|
|
1661
2199
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1662
2200
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1663
2201
|
status: z.ZodEnum<{
|
|
2202
|
+
cancelled: "cancelled";
|
|
1664
2203
|
completed: "completed";
|
|
1665
2204
|
failed: "failed";
|
|
2205
|
+
interrupted: "interrupted";
|
|
1666
2206
|
launched: "launched";
|
|
1667
2207
|
missed: "missed";
|
|
2208
|
+
queued: "queued";
|
|
1668
2209
|
running: "running";
|
|
1669
2210
|
skipped: "skipped";
|
|
1670
2211
|
}>;
|
|
2212
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2213
|
+
cancelled: "cancelled";
|
|
2214
|
+
capacity: "capacity";
|
|
2215
|
+
disabled: "disabled";
|
|
2216
|
+
downtime: "downtime";
|
|
2217
|
+
"launch-failed": "launch-failed";
|
|
2218
|
+
limit: "limit";
|
|
2219
|
+
overlap: "overlap";
|
|
2220
|
+
restart: "restart";
|
|
2221
|
+
superseded: "superseded";
|
|
2222
|
+
}>>;
|
|
1671
2223
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1672
2224
|
trigger: z.ZodEnum<{
|
|
1673
2225
|
event: "event";
|
|
@@ -1693,6 +2245,43 @@ export declare const automationV2Schema: z.ZodObject<{
|
|
|
1693
2245
|
input: z.ZodOptional<z.ZodString>;
|
|
1694
2246
|
text: z.ZodString;
|
|
1695
2247
|
}, z.core.$strict>], "type">>]>>>;
|
|
2248
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2249
|
+
cwd: z.ZodString;
|
|
2250
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2251
|
+
kind: z.ZodLiteral<"shell">;
|
|
2252
|
+
command: z.ZodString;
|
|
2253
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2254
|
+
kind: z.ZodLiteral<"agent">;
|
|
2255
|
+
prompt: z.ZodString;
|
|
2256
|
+
sessionMode: z.ZodEnum<{
|
|
2257
|
+
fresh: "fresh";
|
|
2258
|
+
thread: "thread";
|
|
2259
|
+
}>;
|
|
2260
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2261
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2262
|
+
high: "high";
|
|
2263
|
+
low: "low";
|
|
2264
|
+
max: "max";
|
|
2265
|
+
medium: "medium";
|
|
2266
|
+
minimal: "minimal";
|
|
2267
|
+
off: "off";
|
|
2268
|
+
xhigh: "xhigh";
|
|
2269
|
+
}>>;
|
|
2270
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2271
|
+
kind: z.ZodLiteral<"pi">;
|
|
2272
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2273
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2274
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2276
|
+
kind: z.ZodLiteral<"custom">;
|
|
2277
|
+
command: z.ZodString;
|
|
2278
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2279
|
+
}, z.core.$strict>], "kind">>;
|
|
2280
|
+
}, z.core.$strict>], "kind">;
|
|
2281
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
2282
|
+
redactOutput: z.ZodBoolean;
|
|
2283
|
+
closeOnFinish: z.ZodBoolean;
|
|
2284
|
+
}, z.core.$strict>>;
|
|
1696
2285
|
}, z.core.$strict>>;
|
|
1697
2286
|
createdAt: z.ZodNumber;
|
|
1698
2287
|
updatedAt: z.ZodNumber;
|
|
@@ -1703,6 +2292,15 @@ export declare const automationsFileV2Schema: z.ZodObject<{
|
|
|
1703
2292
|
id: z.ZodString;
|
|
1704
2293
|
name: z.ZodString;
|
|
1705
2294
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2295
|
+
kind: z.ZodLiteral<"interval">;
|
|
2296
|
+
every: z.ZodNumber;
|
|
2297
|
+
unit: z.ZodEnum<{
|
|
2298
|
+
days: "days";
|
|
2299
|
+
hours: "hours";
|
|
2300
|
+
minutes: "minutes";
|
|
2301
|
+
}>;
|
|
2302
|
+
anchorAt: z.ZodNumber;
|
|
2303
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1706
2304
|
kind: z.ZodLiteral<"hourly">;
|
|
1707
2305
|
minute: z.ZodNumber;
|
|
1708
2306
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1765,13 +2363,27 @@ export declare const automationsFileV2Schema: z.ZodObject<{
|
|
|
1765
2363
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1766
2364
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1767
2365
|
status: z.ZodEnum<{
|
|
2366
|
+
cancelled: "cancelled";
|
|
1768
2367
|
completed: "completed";
|
|
1769
2368
|
failed: "failed";
|
|
2369
|
+
interrupted: "interrupted";
|
|
1770
2370
|
launched: "launched";
|
|
1771
2371
|
missed: "missed";
|
|
2372
|
+
queued: "queued";
|
|
1772
2373
|
running: "running";
|
|
1773
2374
|
skipped: "skipped";
|
|
1774
2375
|
}>;
|
|
2376
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2377
|
+
cancelled: "cancelled";
|
|
2378
|
+
capacity: "capacity";
|
|
2379
|
+
disabled: "disabled";
|
|
2380
|
+
downtime: "downtime";
|
|
2381
|
+
"launch-failed": "launch-failed";
|
|
2382
|
+
limit: "limit";
|
|
2383
|
+
overlap: "overlap";
|
|
2384
|
+
restart: "restart";
|
|
2385
|
+
superseded: "superseded";
|
|
2386
|
+
}>>;
|
|
1775
2387
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1776
2388
|
trigger: z.ZodEnum<{
|
|
1777
2389
|
event: "event";
|
|
@@ -1797,6 +2409,43 @@ export declare const automationsFileV2Schema: z.ZodObject<{
|
|
|
1797
2409
|
input: z.ZodOptional<z.ZodString>;
|
|
1798
2410
|
text: z.ZodString;
|
|
1799
2411
|
}, z.core.$strict>], "type">>]>>>;
|
|
2412
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2413
|
+
cwd: z.ZodString;
|
|
2414
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2415
|
+
kind: z.ZodLiteral<"shell">;
|
|
2416
|
+
command: z.ZodString;
|
|
2417
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2418
|
+
kind: z.ZodLiteral<"agent">;
|
|
2419
|
+
prompt: z.ZodString;
|
|
2420
|
+
sessionMode: z.ZodEnum<{
|
|
2421
|
+
fresh: "fresh";
|
|
2422
|
+
thread: "thread";
|
|
2423
|
+
}>;
|
|
2424
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2426
|
+
high: "high";
|
|
2427
|
+
low: "low";
|
|
2428
|
+
max: "max";
|
|
2429
|
+
medium: "medium";
|
|
2430
|
+
minimal: "minimal";
|
|
2431
|
+
off: "off";
|
|
2432
|
+
xhigh: "xhigh";
|
|
2433
|
+
}>>;
|
|
2434
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2435
|
+
kind: z.ZodLiteral<"pi">;
|
|
2436
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2437
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2438
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2440
|
+
kind: z.ZodLiteral<"custom">;
|
|
2441
|
+
command: z.ZodString;
|
|
2442
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2443
|
+
}, z.core.$strict>], "kind">>;
|
|
2444
|
+
}, z.core.$strict>], "kind">;
|
|
2445
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
2446
|
+
redactOutput: z.ZodBoolean;
|
|
2447
|
+
closeOnFinish: z.ZodBoolean;
|
|
2448
|
+
}, z.core.$strict>>;
|
|
1800
2449
|
}, z.core.$strict>>;
|
|
1801
2450
|
createdAt: z.ZodNumber;
|
|
1802
2451
|
updatedAt: z.ZodNumber;
|
|
@@ -1808,6 +2457,15 @@ export declare const automationV3Schema: z.ZodObject<{
|
|
|
1808
2457
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1809
2458
|
kind: z.ZodLiteral<"schedule">;
|
|
1810
2459
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2460
|
+
kind: z.ZodLiteral<"interval">;
|
|
2461
|
+
every: z.ZodNumber;
|
|
2462
|
+
unit: z.ZodEnum<{
|
|
2463
|
+
days: "days";
|
|
2464
|
+
hours: "hours";
|
|
2465
|
+
minutes: "minutes";
|
|
2466
|
+
}>;
|
|
2467
|
+
anchorAt: z.ZodNumber;
|
|
2468
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1811
2469
|
kind: z.ZodLiteral<"hourly">;
|
|
1812
2470
|
minute: z.ZodNumber;
|
|
1813
2471
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1901,13 +2559,27 @@ export declare const automationV3Schema: z.ZodObject<{
|
|
|
1901
2559
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1902
2560
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1903
2561
|
status: z.ZodEnum<{
|
|
2562
|
+
cancelled: "cancelled";
|
|
1904
2563
|
completed: "completed";
|
|
1905
2564
|
failed: "failed";
|
|
2565
|
+
interrupted: "interrupted";
|
|
1906
2566
|
launched: "launched";
|
|
1907
2567
|
missed: "missed";
|
|
2568
|
+
queued: "queued";
|
|
1908
2569
|
running: "running";
|
|
1909
2570
|
skipped: "skipped";
|
|
1910
2571
|
}>;
|
|
2572
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2573
|
+
cancelled: "cancelled";
|
|
2574
|
+
capacity: "capacity";
|
|
2575
|
+
disabled: "disabled";
|
|
2576
|
+
downtime: "downtime";
|
|
2577
|
+
"launch-failed": "launch-failed";
|
|
2578
|
+
limit: "limit";
|
|
2579
|
+
overlap: "overlap";
|
|
2580
|
+
restart: "restart";
|
|
2581
|
+
superseded: "superseded";
|
|
2582
|
+
}>>;
|
|
1911
2583
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1912
2584
|
trigger: z.ZodEnum<{
|
|
1913
2585
|
event: "event";
|
|
@@ -1933,6 +2605,43 @@ export declare const automationV3Schema: z.ZodObject<{
|
|
|
1933
2605
|
input: z.ZodOptional<z.ZodString>;
|
|
1934
2606
|
text: z.ZodString;
|
|
1935
2607
|
}, z.core.$strict>], "type">>]>>>;
|
|
2608
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2609
|
+
cwd: z.ZodString;
|
|
2610
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2611
|
+
kind: z.ZodLiteral<"shell">;
|
|
2612
|
+
command: z.ZodString;
|
|
2613
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2614
|
+
kind: z.ZodLiteral<"agent">;
|
|
2615
|
+
prompt: z.ZodString;
|
|
2616
|
+
sessionMode: z.ZodEnum<{
|
|
2617
|
+
fresh: "fresh";
|
|
2618
|
+
thread: "thread";
|
|
2619
|
+
}>;
|
|
2620
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2621
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2622
|
+
high: "high";
|
|
2623
|
+
low: "low";
|
|
2624
|
+
max: "max";
|
|
2625
|
+
medium: "medium";
|
|
2626
|
+
minimal: "minimal";
|
|
2627
|
+
off: "off";
|
|
2628
|
+
xhigh: "xhigh";
|
|
2629
|
+
}>>;
|
|
2630
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2631
|
+
kind: z.ZodLiteral<"pi">;
|
|
2632
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2633
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2634
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2636
|
+
kind: z.ZodLiteral<"custom">;
|
|
2637
|
+
command: z.ZodString;
|
|
2638
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2639
|
+
}, z.core.$strict>], "kind">>;
|
|
2640
|
+
}, z.core.$strict>], "kind">;
|
|
2641
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
2642
|
+
redactOutput: z.ZodBoolean;
|
|
2643
|
+
closeOnFinish: z.ZodBoolean;
|
|
2644
|
+
}, z.core.$strict>>;
|
|
1936
2645
|
}, z.core.$strict>>;
|
|
1937
2646
|
createdAt: z.ZodNumber;
|
|
1938
2647
|
updatedAt: z.ZodNumber;
|
|
@@ -1945,6 +2654,15 @@ export declare const automationsFileV3Schema: z.ZodObject<{
|
|
|
1945
2654
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1946
2655
|
kind: z.ZodLiteral<"schedule">;
|
|
1947
2656
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2657
|
+
kind: z.ZodLiteral<"interval">;
|
|
2658
|
+
every: z.ZodNumber;
|
|
2659
|
+
unit: z.ZodEnum<{
|
|
2660
|
+
days: "days";
|
|
2661
|
+
hours: "hours";
|
|
2662
|
+
minutes: "minutes";
|
|
2663
|
+
}>;
|
|
2664
|
+
anchorAt: z.ZodNumber;
|
|
2665
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1948
2666
|
kind: z.ZodLiteral<"hourly">;
|
|
1949
2667
|
minute: z.ZodNumber;
|
|
1950
2668
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2038,13 +2756,27 @@ export declare const automationsFileV3Schema: z.ZodObject<{
|
|
|
2038
2756
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
2039
2757
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
2040
2758
|
status: z.ZodEnum<{
|
|
2759
|
+
cancelled: "cancelled";
|
|
2041
2760
|
completed: "completed";
|
|
2042
2761
|
failed: "failed";
|
|
2762
|
+
interrupted: "interrupted";
|
|
2043
2763
|
launched: "launched";
|
|
2044
2764
|
missed: "missed";
|
|
2765
|
+
queued: "queued";
|
|
2045
2766
|
running: "running";
|
|
2046
2767
|
skipped: "skipped";
|
|
2047
2768
|
}>;
|
|
2769
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
2770
|
+
cancelled: "cancelled";
|
|
2771
|
+
capacity: "capacity";
|
|
2772
|
+
disabled: "disabled";
|
|
2773
|
+
downtime: "downtime";
|
|
2774
|
+
"launch-failed": "launch-failed";
|
|
2775
|
+
limit: "limit";
|
|
2776
|
+
overlap: "overlap";
|
|
2777
|
+
restart: "restart";
|
|
2778
|
+
superseded: "superseded";
|
|
2779
|
+
}>>;
|
|
2048
2780
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2049
2781
|
trigger: z.ZodEnum<{
|
|
2050
2782
|
event: "event";
|
|
@@ -2070,16 +2802,72 @@ export declare const automationsFileV3Schema: z.ZodObject<{
|
|
|
2070
2802
|
input: z.ZodOptional<z.ZodString>;
|
|
2071
2803
|
text: z.ZodString;
|
|
2072
2804
|
}, z.core.$strict>], "type">>]>>>;
|
|
2805
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2806
|
+
cwd: z.ZodString;
|
|
2807
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2808
|
+
kind: z.ZodLiteral<"shell">;
|
|
2809
|
+
command: z.ZodString;
|
|
2810
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2811
|
+
kind: z.ZodLiteral<"agent">;
|
|
2812
|
+
prompt: z.ZodString;
|
|
2813
|
+
sessionMode: z.ZodEnum<{
|
|
2814
|
+
fresh: "fresh";
|
|
2815
|
+
thread: "thread";
|
|
2816
|
+
}>;
|
|
2817
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2818
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2819
|
+
high: "high";
|
|
2820
|
+
low: "low";
|
|
2821
|
+
max: "max";
|
|
2822
|
+
medium: "medium";
|
|
2823
|
+
minimal: "minimal";
|
|
2824
|
+
off: "off";
|
|
2825
|
+
xhigh: "xhigh";
|
|
2826
|
+
}>>;
|
|
2827
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2828
|
+
kind: z.ZodLiteral<"pi">;
|
|
2829
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2830
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2831
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2832
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2833
|
+
kind: z.ZodLiteral<"custom">;
|
|
2834
|
+
command: z.ZodString;
|
|
2835
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2836
|
+
}, z.core.$strict>], "kind">>;
|
|
2837
|
+
}, z.core.$strict>], "kind">;
|
|
2838
|
+
requestedSecrets: z.ZodArray<z.ZodString>;
|
|
2839
|
+
redactOutput: z.ZodBoolean;
|
|
2840
|
+
closeOnFinish: z.ZodBoolean;
|
|
2841
|
+
}, z.core.$strict>>;
|
|
2073
2842
|
}, z.core.$strict>>;
|
|
2074
2843
|
createdAt: z.ZodNumber;
|
|
2075
2844
|
updatedAt: z.ZodNumber;
|
|
2076
2845
|
}, z.core.$strict>>;
|
|
2077
2846
|
}, z.core.$strict>;
|
|
2078
2847
|
export declare const createAutomationInputSchema: z.ZodObject<{
|
|
2848
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2849
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
2850
|
+
allow: "allow";
|
|
2851
|
+
"queue-latest": "queue-latest";
|
|
2852
|
+
skip: "skip";
|
|
2853
|
+
}>>;
|
|
2854
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
2855
|
+
"run-latest": "run-latest";
|
|
2856
|
+
skip: "skip";
|
|
2857
|
+
}>>;
|
|
2079
2858
|
name: z.ZodString;
|
|
2080
2859
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2081
2860
|
kind: z.ZodLiteral<"schedule">;
|
|
2082
2861
|
schedule: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2862
|
+
kind: z.ZodLiteral<"interval">;
|
|
2863
|
+
every: z.ZodNumber;
|
|
2864
|
+
unit: z.ZodEnum<{
|
|
2865
|
+
days: "days";
|
|
2866
|
+
hours: "hours";
|
|
2867
|
+
minutes: "minutes";
|
|
2868
|
+
}>;
|
|
2869
|
+
anchorAt: z.ZodNumber;
|
|
2870
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2083
2871
|
kind: z.ZodLiteral<"hourly">;
|
|
2084
2872
|
minute: z.ZodNumber;
|
|
2085
2873
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2194,10 +2982,29 @@ export declare const createAutomationInputSchema: z.ZodObject<{
|
|
|
2194
2982
|
redactOutput: z.ZodOptional<z.ZodBoolean>;
|
|
2195
2983
|
}, z.core.$strict>;
|
|
2196
2984
|
export declare const updateAutomationInputSchema: z.ZodObject<{
|
|
2985
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2986
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
2987
|
+
allow: "allow";
|
|
2988
|
+
"queue-latest": "queue-latest";
|
|
2989
|
+
skip: "skip";
|
|
2990
|
+
}>>;
|
|
2991
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
2992
|
+
"run-latest": "run-latest";
|
|
2993
|
+
skip: "skip";
|
|
2994
|
+
}>>;
|
|
2197
2995
|
name: z.ZodOptional<z.ZodString>;
|
|
2198
2996
|
trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2199
2997
|
kind: z.ZodLiteral<"schedule">;
|
|
2200
2998
|
schedule: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2999
|
+
kind: z.ZodLiteral<"interval">;
|
|
3000
|
+
every: z.ZodNumber;
|
|
3001
|
+
unit: z.ZodEnum<{
|
|
3002
|
+
days: "days";
|
|
3003
|
+
hours: "hours";
|
|
3004
|
+
minutes: "minutes";
|
|
3005
|
+
}>;
|
|
3006
|
+
anchorAt: z.ZodNumber;
|
|
3007
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2201
3008
|
kind: z.ZodLiteral<"hourly">;
|
|
2202
3009
|
minute: z.ZodNumber;
|
|
2203
3010
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2316,11 +3123,31 @@ export declare const resetAutomationInputSchema: z.ZodObject<{
|
|
|
2316
3123
|
}, z.core.$strict>;
|
|
2317
3124
|
export declare const automationsListResponseSchema: z.ZodObject<{
|
|
2318
3125
|
automations: z.ZodArray<z.ZodObject<{
|
|
3126
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
3127
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
3128
|
+
allow: "allow";
|
|
3129
|
+
"queue-latest": "queue-latest";
|
|
3130
|
+
skip: "skip";
|
|
3131
|
+
}>>;
|
|
3132
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
3133
|
+
"run-latest": "run-latest";
|
|
3134
|
+
skip: "skip";
|
|
3135
|
+
}>>;
|
|
3136
|
+
lastScheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
2319
3137
|
id: z.ZodString;
|
|
2320
3138
|
name: z.ZodString;
|
|
2321
3139
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2322
3140
|
kind: z.ZodLiteral<"schedule">;
|
|
2323
3141
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3142
|
+
kind: z.ZodLiteral<"interval">;
|
|
3143
|
+
every: z.ZodNumber;
|
|
3144
|
+
unit: z.ZodEnum<{
|
|
3145
|
+
days: "days";
|
|
3146
|
+
hours: "hours";
|
|
3147
|
+
minutes: "minutes";
|
|
3148
|
+
}>;
|
|
3149
|
+
anchorAt: z.ZodNumber;
|
|
3150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2324
3151
|
kind: z.ZodLiteral<"hourly">;
|
|
2325
3152
|
minute: z.ZodNumber;
|
|
2326
3153
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2447,13 +3274,27 @@ export declare const automationsListResponseSchema: z.ZodObject<{
|
|
|
2447
3274
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
2448
3275
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
2449
3276
|
status: z.ZodEnum<{
|
|
3277
|
+
cancelled: "cancelled";
|
|
2450
3278
|
completed: "completed";
|
|
2451
3279
|
failed: "failed";
|
|
3280
|
+
interrupted: "interrupted";
|
|
2452
3281
|
launched: "launched";
|
|
2453
3282
|
missed: "missed";
|
|
3283
|
+
queued: "queued";
|
|
2454
3284
|
running: "running";
|
|
2455
3285
|
skipped: "skipped";
|
|
2456
3286
|
}>;
|
|
3287
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3288
|
+
cancelled: "cancelled";
|
|
3289
|
+
capacity: "capacity";
|
|
3290
|
+
disabled: "disabled";
|
|
3291
|
+
downtime: "downtime";
|
|
3292
|
+
"launch-failed": "launch-failed";
|
|
3293
|
+
limit: "limit";
|
|
3294
|
+
overlap: "overlap";
|
|
3295
|
+
restart: "restart";
|
|
3296
|
+
superseded: "superseded";
|
|
3297
|
+
}>>;
|
|
2457
3298
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2458
3299
|
trigger: z.ZodEnum<{
|
|
2459
3300
|
event: "event";
|
|
@@ -2474,10 +3315,13 @@ export declare const automationsListResponseSchema: z.ZodObject<{
|
|
|
2474
3315
|
runId: z.ZodString;
|
|
2475
3316
|
at: z.ZodNumber;
|
|
2476
3317
|
status: z.ZodEnum<{
|
|
3318
|
+
cancelled: "cancelled";
|
|
2477
3319
|
completed: "completed";
|
|
2478
3320
|
failed: "failed";
|
|
3321
|
+
interrupted: "interrupted";
|
|
2479
3322
|
launched: "launched";
|
|
2480
3323
|
missed: "missed";
|
|
3324
|
+
queued: "queued";
|
|
2481
3325
|
running: "running";
|
|
2482
3326
|
skipped: "skipped";
|
|
2483
3327
|
}>;
|
|
@@ -2964,11 +3808,31 @@ export declare const serverToClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2964
3808
|
}, z.core.$strict>, z.ZodObject<{
|
|
2965
3809
|
type: z.ZodLiteral<"automations">;
|
|
2966
3810
|
automations: z.ZodArray<z.ZodObject<{
|
|
3811
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
3812
|
+
concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
|
|
3813
|
+
allow: "allow";
|
|
3814
|
+
"queue-latest": "queue-latest";
|
|
3815
|
+
skip: "skip";
|
|
3816
|
+
}>>;
|
|
3817
|
+
missedRunPolicy: z.ZodOptional<z.ZodEnum<{
|
|
3818
|
+
"run-latest": "run-latest";
|
|
3819
|
+
skip: "skip";
|
|
3820
|
+
}>>;
|
|
3821
|
+
lastScheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
2967
3822
|
id: z.ZodString;
|
|
2968
3823
|
name: z.ZodString;
|
|
2969
3824
|
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2970
3825
|
kind: z.ZodLiteral<"schedule">;
|
|
2971
3826
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3827
|
+
kind: z.ZodLiteral<"interval">;
|
|
3828
|
+
every: z.ZodNumber;
|
|
3829
|
+
unit: z.ZodEnum<{
|
|
3830
|
+
days: "days";
|
|
3831
|
+
hours: "hours";
|
|
3832
|
+
minutes: "minutes";
|
|
3833
|
+
}>;
|
|
3834
|
+
anchorAt: z.ZodNumber;
|
|
3835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2972
3836
|
kind: z.ZodLiteral<"hourly">;
|
|
2973
3837
|
minute: z.ZodNumber;
|
|
2974
3838
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3095,13 +3959,27 @@ export declare const serverToClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3095
3959
|
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
3096
3960
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
3097
3961
|
status: z.ZodEnum<{
|
|
3962
|
+
cancelled: "cancelled";
|
|
3098
3963
|
completed: "completed";
|
|
3099
3964
|
failed: "failed";
|
|
3965
|
+
interrupted: "interrupted";
|
|
3100
3966
|
launched: "launched";
|
|
3101
3967
|
missed: "missed";
|
|
3968
|
+
queued: "queued";
|
|
3102
3969
|
running: "running";
|
|
3103
3970
|
skipped: "skipped";
|
|
3104
3971
|
}>;
|
|
3972
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3973
|
+
cancelled: "cancelled";
|
|
3974
|
+
capacity: "capacity";
|
|
3975
|
+
disabled: "disabled";
|
|
3976
|
+
downtime: "downtime";
|
|
3977
|
+
"launch-failed": "launch-failed";
|
|
3978
|
+
limit: "limit";
|
|
3979
|
+
overlap: "overlap";
|
|
3980
|
+
restart: "restart";
|
|
3981
|
+
superseded: "superseded";
|
|
3982
|
+
}>>;
|
|
3105
3983
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
3106
3984
|
trigger: z.ZodEnum<{
|
|
3107
3985
|
event: "event";
|
|
@@ -3122,10 +4000,13 @@ export declare const serverToClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3122
4000
|
runId: z.ZodString;
|
|
3123
4001
|
at: z.ZodNumber;
|
|
3124
4002
|
status: z.ZodEnum<{
|
|
4003
|
+
cancelled: "cancelled";
|
|
3125
4004
|
completed: "completed";
|
|
3126
4005
|
failed: "failed";
|
|
4006
|
+
interrupted: "interrupted";
|
|
3127
4007
|
launched: "launched";
|
|
3128
4008
|
missed: "missed";
|
|
4009
|
+
queued: "queued";
|
|
3129
4010
|
running: "running";
|
|
3130
4011
|
skipped: "skipped";
|
|
3131
4012
|
}>;
|