@monotykamary/localterm-server 2.41.0 → 2.42.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 +41 -0
- package/dist/agent-runner.d.ts.map +1 -0
- package/dist/agent-runner.js +873 -0
- package/dist/agent-runner.js.map +1 -0
- package/dist/agent-skills.d.ts +4 -0
- package/dist/agent-skills.d.ts.map +1 -0
- package/dist/agent-skills.js +169 -0
- package/dist/agent-skills.js.map +1 -0
- package/dist/automation-run-tracker.js +1 -1
- package/dist/automation-run-tracker.js.map +1 -1
- package/dist/automation-store.d.ts +4 -0
- package/dist/automation-store.d.ts.map +1 -1
- package/dist/automation-store.js +178 -14
- package/dist/automation-store.js.map +1 -1
- package/dist/constants.d.ts +15 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +53 -4
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +221 -11
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/schemas.d.ts +730 -8
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +199 -11
- package/dist/schemas.js.map +1 -1
- package/dist/session-manager.d.ts +3 -1
- package/dist/session-manager.d.ts.map +1 -1
- package/dist/session-manager.js +20 -2
- package/dist/session-manager.js.map +1 -1
- package/dist/types.d.ts +10 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/strip-ansi.d.ts +2 -0
- package/dist/utils/strip-ansi.d.ts.map +1 -0
- package/dist/utils/strip-ansi.js +16 -0
- package/dist/utils/strip-ansi.js.map +1 -0
- package/package.json +2 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -754,6 +754,124 @@ export declare const triggerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
754
754
|
}, z.core.$strict>, z.ZodObject<{
|
|
755
755
|
kind: z.ZodLiteral<"webhook">;
|
|
756
756
|
}, z.core.$strict>], "kind">;
|
|
757
|
+
export declare const agentHarnessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
758
|
+
kind: z.ZodLiteral<"pi">;
|
|
759
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
760
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
761
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
762
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
763
|
+
kind: z.ZodLiteral<"custom">;
|
|
764
|
+
command: z.ZodString;
|
|
765
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
766
|
+
}, z.core.$strict>], "kind">;
|
|
767
|
+
export declare const agentModelInfoSchema: z.ZodObject<{
|
|
768
|
+
id: z.ZodString;
|
|
769
|
+
name: z.ZodString;
|
|
770
|
+
provider: z.ZodString;
|
|
771
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
772
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
773
|
+
}, z.core.$strict>;
|
|
774
|
+
export declare const agentSkillInfoSchema: z.ZodObject<{
|
|
775
|
+
name: z.ZodString;
|
|
776
|
+
description: z.ZodString;
|
|
777
|
+
disabled: z.ZodBoolean;
|
|
778
|
+
source: z.ZodEnum<{
|
|
779
|
+
"global-pi": "global-pi";
|
|
780
|
+
"global-agents": "global-agents";
|
|
781
|
+
"project-pi": "project-pi";
|
|
782
|
+
"project-agents": "project-agents";
|
|
783
|
+
}>;
|
|
784
|
+
}, z.core.$strict>;
|
|
785
|
+
export declare const agentSessionEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
786
|
+
type: z.ZodLiteral<"user">;
|
|
787
|
+
text: z.ZodString;
|
|
788
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
789
|
+
type: z.ZodLiteral<"assistant">;
|
|
790
|
+
text: z.ZodString;
|
|
791
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
793
|
+
type: z.ZodLiteral<"tool">;
|
|
794
|
+
name: z.ZodString;
|
|
795
|
+
input: z.ZodOptional<z.ZodString>;
|
|
796
|
+
text: z.ZodString;
|
|
797
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
798
|
+
type: z.ZodLiteral<"compaction">;
|
|
799
|
+
summary: z.ZodString;
|
|
800
|
+
tokensBefore: z.ZodOptional<z.ZodNumber>;
|
|
801
|
+
}, z.core.$strict>], "type">;
|
|
802
|
+
export declare const agentLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
803
|
+
type: z.ZodLiteral<"user">;
|
|
804
|
+
text: z.ZodString;
|
|
805
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
806
|
+
type: z.ZodLiteral<"assistant">;
|
|
807
|
+
text: z.ZodString;
|
|
808
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
809
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
810
|
+
type: z.ZodLiteral<"tool">;
|
|
811
|
+
name: z.ZodString;
|
|
812
|
+
input: z.ZodOptional<z.ZodString>;
|
|
813
|
+
text: z.ZodString;
|
|
814
|
+
}, z.core.$strict>], "type">;
|
|
815
|
+
export declare const automationRunnerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
816
|
+
kind: z.ZodLiteral<"shell">;
|
|
817
|
+
command: z.ZodString;
|
|
818
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
819
|
+
kind: z.ZodLiteral<"agent">;
|
|
820
|
+
prompt: z.ZodString;
|
|
821
|
+
sessionMode: z.ZodEnum<{
|
|
822
|
+
fresh: "fresh";
|
|
823
|
+
thread: "thread";
|
|
824
|
+
}>;
|
|
825
|
+
model: z.ZodOptional<z.ZodString>;
|
|
826
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
827
|
+
off: "off";
|
|
828
|
+
minimal: "minimal";
|
|
829
|
+
low: "low";
|
|
830
|
+
medium: "medium";
|
|
831
|
+
high: "high";
|
|
832
|
+
xhigh: "xhigh";
|
|
833
|
+
}>>;
|
|
834
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
835
|
+
kind: z.ZodLiteral<"pi">;
|
|
836
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
837
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
838
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
839
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
840
|
+
kind: z.ZodLiteral<"custom">;
|
|
841
|
+
command: z.ZodString;
|
|
842
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
843
|
+
}, z.core.$strict>], "kind">>;
|
|
844
|
+
}, z.core.$strict>], "kind">;
|
|
845
|
+
export declare const runnerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
|
+
kind: z.ZodLiteral<"shell">;
|
|
847
|
+
command: z.ZodString;
|
|
848
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
849
|
+
kind: z.ZodLiteral<"agent">;
|
|
850
|
+
prompt: z.ZodString;
|
|
851
|
+
sessionMode: z.ZodEnum<{
|
|
852
|
+
fresh: "fresh";
|
|
853
|
+
thread: "thread";
|
|
854
|
+
}>;
|
|
855
|
+
model: z.ZodOptional<z.ZodString>;
|
|
856
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
857
|
+
off: "off";
|
|
858
|
+
minimal: "minimal";
|
|
859
|
+
low: "low";
|
|
860
|
+
medium: "medium";
|
|
861
|
+
high: "high";
|
|
862
|
+
xhigh: "xhigh";
|
|
863
|
+
}>>;
|
|
864
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
865
|
+
kind: z.ZodLiteral<"pi">;
|
|
866
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
867
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
868
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
869
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
870
|
+
kind: z.ZodLiteral<"custom">;
|
|
871
|
+
command: z.ZodString;
|
|
872
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
873
|
+
}, z.core.$strict>], "kind">>;
|
|
874
|
+
}, z.core.$strict>], "kind">;
|
|
757
875
|
export declare const automationRunLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
758
876
|
kind: z.ZodLiteral<"forever">;
|
|
759
877
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -802,6 +920,22 @@ export declare const automationRunRecordSchema: z.ZodObject<{
|
|
|
802
920
|
manual: "manual";
|
|
803
921
|
}>;
|
|
804
922
|
countsTowardLimit: z.ZodBoolean;
|
|
923
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
924
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
925
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
926
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
927
|
+
type: z.ZodLiteral<"user">;
|
|
928
|
+
text: z.ZodString;
|
|
929
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
930
|
+
type: z.ZodLiteral<"assistant">;
|
|
931
|
+
text: z.ZodString;
|
|
932
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
934
|
+
type: z.ZodLiteral<"tool">;
|
|
935
|
+
name: z.ZodString;
|
|
936
|
+
input: z.ZodOptional<z.ZodString>;
|
|
937
|
+
text: z.ZodString;
|
|
938
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
805
939
|
}, z.core.$strict>;
|
|
806
940
|
export declare const automationLastRunSchema: z.ZodObject<{
|
|
807
941
|
runId: z.ZodString;
|
|
@@ -894,7 +1028,36 @@ export declare const automationSchema: z.ZodObject<{
|
|
|
894
1028
|
id: z.ZodString;
|
|
895
1029
|
}, z.core.$strict>], "kind">;
|
|
896
1030
|
cwd: z.ZodString;
|
|
897
|
-
|
|
1031
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1032
|
+
kind: z.ZodLiteral<"shell">;
|
|
1033
|
+
command: z.ZodString;
|
|
1034
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1035
|
+
kind: z.ZodLiteral<"agent">;
|
|
1036
|
+
prompt: z.ZodString;
|
|
1037
|
+
sessionMode: z.ZodEnum<{
|
|
1038
|
+
fresh: "fresh";
|
|
1039
|
+
thread: "thread";
|
|
1040
|
+
}>;
|
|
1041
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1042
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1043
|
+
off: "off";
|
|
1044
|
+
minimal: "minimal";
|
|
1045
|
+
low: "low";
|
|
1046
|
+
medium: "medium";
|
|
1047
|
+
high: "high";
|
|
1048
|
+
xhigh: "xhigh";
|
|
1049
|
+
}>>;
|
|
1050
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1051
|
+
kind: z.ZodLiteral<"pi">;
|
|
1052
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1053
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1054
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1055
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1056
|
+
kind: z.ZodLiteral<"custom">;
|
|
1057
|
+
command: z.ZodString;
|
|
1058
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
}, z.core.$strict>], "kind">>;
|
|
1060
|
+
}, z.core.$strict>], "kind">;
|
|
898
1061
|
enabled: z.ZodBoolean;
|
|
899
1062
|
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
900
1063
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -931,6 +1094,22 @@ export declare const automationSchema: z.ZodObject<{
|
|
|
931
1094
|
manual: "manual";
|
|
932
1095
|
}>;
|
|
933
1096
|
countsTowardLimit: z.ZodBoolean;
|
|
1097
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1098
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1099
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1100
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1101
|
+
type: z.ZodLiteral<"user">;
|
|
1102
|
+
text: z.ZodString;
|
|
1103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1104
|
+
type: z.ZodLiteral<"assistant">;
|
|
1105
|
+
text: z.ZodString;
|
|
1106
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1108
|
+
type: z.ZodLiteral<"tool">;
|
|
1109
|
+
name: z.ZodString;
|
|
1110
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
text: z.ZodString;
|
|
1112
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
934
1113
|
}, z.core.$strict>>;
|
|
935
1114
|
createdAt: z.ZodNumber;
|
|
936
1115
|
updatedAt: z.ZodNumber;
|
|
@@ -1028,7 +1207,36 @@ export declare const automationWithNextRunSchema: z.ZodObject<{
|
|
|
1028
1207
|
id: z.ZodString;
|
|
1029
1208
|
}, z.core.$strict>], "kind">;
|
|
1030
1209
|
cwd: z.ZodString;
|
|
1031
|
-
|
|
1210
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1211
|
+
kind: z.ZodLiteral<"shell">;
|
|
1212
|
+
command: z.ZodString;
|
|
1213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1214
|
+
kind: z.ZodLiteral<"agent">;
|
|
1215
|
+
prompt: z.ZodString;
|
|
1216
|
+
sessionMode: z.ZodEnum<{
|
|
1217
|
+
fresh: "fresh";
|
|
1218
|
+
thread: "thread";
|
|
1219
|
+
}>;
|
|
1220
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1222
|
+
off: "off";
|
|
1223
|
+
minimal: "minimal";
|
|
1224
|
+
low: "low";
|
|
1225
|
+
medium: "medium";
|
|
1226
|
+
high: "high";
|
|
1227
|
+
xhigh: "xhigh";
|
|
1228
|
+
}>>;
|
|
1229
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1230
|
+
kind: z.ZodLiteral<"pi">;
|
|
1231
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1232
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1233
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1234
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1235
|
+
kind: z.ZodLiteral<"custom">;
|
|
1236
|
+
command: z.ZodString;
|
|
1237
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
}, z.core.$strict>], "kind">>;
|
|
1239
|
+
}, z.core.$strict>], "kind">;
|
|
1032
1240
|
enabled: z.ZodBoolean;
|
|
1033
1241
|
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1034
1242
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -1065,12 +1273,28 @@ export declare const automationWithNextRunSchema: z.ZodObject<{
|
|
|
1065
1273
|
manual: "manual";
|
|
1066
1274
|
}>;
|
|
1067
1275
|
countsTowardLimit: z.ZodBoolean;
|
|
1276
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1277
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1278
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1279
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1280
|
+
type: z.ZodLiteral<"user">;
|
|
1281
|
+
text: z.ZodString;
|
|
1282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1283
|
+
type: z.ZodLiteral<"assistant">;
|
|
1284
|
+
text: z.ZodString;
|
|
1285
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1287
|
+
type: z.ZodLiteral<"tool">;
|
|
1288
|
+
name: z.ZodString;
|
|
1289
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
text: z.ZodString;
|
|
1291
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1068
1292
|
}, z.core.$strict>>;
|
|
1069
1293
|
createdAt: z.ZodNumber;
|
|
1070
1294
|
updatedAt: z.ZodNumber;
|
|
1071
1295
|
}, z.core.$strict>;
|
|
1072
1296
|
export declare const automationsFileSchema: z.ZodObject<{
|
|
1073
|
-
version: z.ZodLiteral<
|
|
1297
|
+
version: z.ZodLiteral<4>;
|
|
1074
1298
|
automations: z.ZodArray<z.ZodObject<{
|
|
1075
1299
|
id: z.ZodString;
|
|
1076
1300
|
name: z.ZodString;
|
|
@@ -1149,7 +1373,36 @@ export declare const automationsFileSchema: z.ZodObject<{
|
|
|
1149
1373
|
id: z.ZodString;
|
|
1150
1374
|
}, z.core.$strict>], "kind">;
|
|
1151
1375
|
cwd: z.ZodString;
|
|
1152
|
-
|
|
1376
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1377
|
+
kind: z.ZodLiteral<"shell">;
|
|
1378
|
+
command: z.ZodString;
|
|
1379
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1380
|
+
kind: z.ZodLiteral<"agent">;
|
|
1381
|
+
prompt: z.ZodString;
|
|
1382
|
+
sessionMode: z.ZodEnum<{
|
|
1383
|
+
fresh: "fresh";
|
|
1384
|
+
thread: "thread";
|
|
1385
|
+
}>;
|
|
1386
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
1388
|
+
off: "off";
|
|
1389
|
+
minimal: "minimal";
|
|
1390
|
+
low: "low";
|
|
1391
|
+
medium: "medium";
|
|
1392
|
+
high: "high";
|
|
1393
|
+
xhigh: "xhigh";
|
|
1394
|
+
}>>;
|
|
1395
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1396
|
+
kind: z.ZodLiteral<"pi">;
|
|
1397
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
1398
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
1399
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
1400
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1401
|
+
kind: z.ZodLiteral<"custom">;
|
|
1402
|
+
command: z.ZodString;
|
|
1403
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
}, z.core.$strict>], "kind">>;
|
|
1405
|
+
}, z.core.$strict>], "kind">;
|
|
1153
1406
|
enabled: z.ZodBoolean;
|
|
1154
1407
|
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1155
1408
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -1186,6 +1439,22 @@ export declare const automationsFileSchema: z.ZodObject<{
|
|
|
1186
1439
|
manual: "manual";
|
|
1187
1440
|
}>;
|
|
1188
1441
|
countsTowardLimit: z.ZodBoolean;
|
|
1442
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1443
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1444
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1445
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1446
|
+
type: z.ZodLiteral<"user">;
|
|
1447
|
+
text: z.ZodString;
|
|
1448
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1449
|
+
type: z.ZodLiteral<"assistant">;
|
|
1450
|
+
text: z.ZodString;
|
|
1451
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1453
|
+
type: z.ZodLiteral<"tool">;
|
|
1454
|
+
name: z.ZodString;
|
|
1455
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
text: z.ZodString;
|
|
1457
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1189
1458
|
}, z.core.$strict>>;
|
|
1190
1459
|
createdAt: z.ZodNumber;
|
|
1191
1460
|
updatedAt: z.ZodNumber;
|
|
@@ -1320,6 +1589,22 @@ export declare const automationV2Schema: z.ZodObject<{
|
|
|
1320
1589
|
manual: "manual";
|
|
1321
1590
|
}>;
|
|
1322
1591
|
countsTowardLimit: z.ZodBoolean;
|
|
1592
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1593
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1594
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1595
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1596
|
+
type: z.ZodLiteral<"user">;
|
|
1597
|
+
text: z.ZodString;
|
|
1598
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1599
|
+
type: z.ZodLiteral<"assistant">;
|
|
1600
|
+
text: z.ZodString;
|
|
1601
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1602
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1603
|
+
type: z.ZodLiteral<"tool">;
|
|
1604
|
+
name: z.ZodString;
|
|
1605
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1606
|
+
text: z.ZodString;
|
|
1607
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1323
1608
|
}, z.core.$strict>>;
|
|
1324
1609
|
createdAt: z.ZodNumber;
|
|
1325
1610
|
updatedAt: z.ZodNumber;
|
|
@@ -1408,6 +1693,295 @@ export declare const automationsFileV2Schema: z.ZodObject<{
|
|
|
1408
1693
|
manual: "manual";
|
|
1409
1694
|
}>;
|
|
1410
1695
|
countsTowardLimit: z.ZodBoolean;
|
|
1696
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1697
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1698
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1699
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1700
|
+
type: z.ZodLiteral<"user">;
|
|
1701
|
+
text: z.ZodString;
|
|
1702
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1703
|
+
type: z.ZodLiteral<"assistant">;
|
|
1704
|
+
text: z.ZodString;
|
|
1705
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1707
|
+
type: z.ZodLiteral<"tool">;
|
|
1708
|
+
name: z.ZodString;
|
|
1709
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
text: z.ZodString;
|
|
1711
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1712
|
+
}, z.core.$strict>>;
|
|
1713
|
+
createdAt: z.ZodNumber;
|
|
1714
|
+
updatedAt: z.ZodNumber;
|
|
1715
|
+
}, z.core.$strict>>;
|
|
1716
|
+
}, z.core.$strict>;
|
|
1717
|
+
export declare const automationV3Schema: z.ZodObject<{
|
|
1718
|
+
id: z.ZodString;
|
|
1719
|
+
name: z.ZodString;
|
|
1720
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1721
|
+
kind: z.ZodLiteral<"schedule">;
|
|
1722
|
+
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1723
|
+
kind: z.ZodLiteral<"hourly">;
|
|
1724
|
+
minute: z.ZodNumber;
|
|
1725
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1726
|
+
kind: z.ZodLiteral<"daily">;
|
|
1727
|
+
hour: z.ZodNumber;
|
|
1728
|
+
minute: z.ZodNumber;
|
|
1729
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1730
|
+
kind: z.ZodLiteral<"timesOfDay">;
|
|
1731
|
+
times: z.ZodArray<z.ZodObject<{
|
|
1732
|
+
hour: z.ZodNumber;
|
|
1733
|
+
minute: z.ZodNumber;
|
|
1734
|
+
}, z.core.$strict>>;
|
|
1735
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1736
|
+
kind: z.ZodLiteral<"weekdaysPreset">;
|
|
1737
|
+
preset: z.ZodEnum<{
|
|
1738
|
+
weekdays: "weekdays";
|
|
1739
|
+
weekends: "weekends";
|
|
1740
|
+
}>;
|
|
1741
|
+
hour: z.ZodNumber;
|
|
1742
|
+
minute: z.ZodNumber;
|
|
1743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1744
|
+
kind: z.ZodLiteral<"weekly">;
|
|
1745
|
+
daysOfWeek: z.ZodArray<z.ZodNumber>;
|
|
1746
|
+
hour: z.ZodNumber;
|
|
1747
|
+
minute: z.ZodNumber;
|
|
1748
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1749
|
+
kind: z.ZodLiteral<"monthly">;
|
|
1750
|
+
daysOfMonth: z.ZodArray<z.ZodNumber>;
|
|
1751
|
+
hour: z.ZodNumber;
|
|
1752
|
+
minute: z.ZodNumber;
|
|
1753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1754
|
+
kind: z.ZodLiteral<"everyNMinutes">;
|
|
1755
|
+
step: z.ZodNumber;
|
|
1756
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1757
|
+
kind: z.ZodLiteral<"everyNHours">;
|
|
1758
|
+
step: z.ZodNumber;
|
|
1759
|
+
minute: z.ZodNumber;
|
|
1760
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1761
|
+
kind: z.ZodLiteral<"cron">;
|
|
1762
|
+
expression: z.ZodString;
|
|
1763
|
+
}, z.core.$strict>], "kind">;
|
|
1764
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1765
|
+
kind: z.ZodLiteral<"watch">;
|
|
1766
|
+
recursive: z.ZodBoolean;
|
|
1767
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1769
|
+
kind: z.ZodLiteral<"event">;
|
|
1770
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
1771
|
+
cwd: "cwd";
|
|
1772
|
+
exit: "exit";
|
|
1773
|
+
foreground: "foreground";
|
|
1774
|
+
notification: "notification";
|
|
1775
|
+
"git-head-change": "git-head-change";
|
|
1776
|
+
"git-branch-change": "git-branch-change";
|
|
1777
|
+
"git-tag-change": "git-tag-change";
|
|
1778
|
+
"git-remote-change": "git-remote-change";
|
|
1779
|
+
"git-stash-change": "git-stash-change";
|
|
1780
|
+
"git-commit": "git-commit";
|
|
1781
|
+
"git-checkout": "git-checkout";
|
|
1782
|
+
"git-reset": "git-reset";
|
|
1783
|
+
"git-merge": "git-merge";
|
|
1784
|
+
"git-rebase": "git-rebase";
|
|
1785
|
+
"git-cherry-pick": "git-cherry-pick";
|
|
1786
|
+
"git-fetch": "git-fetch";
|
|
1787
|
+
"git-stash": "git-stash";
|
|
1788
|
+
"git-tag": "git-tag";
|
|
1789
|
+
}>>;
|
|
1790
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1791
|
+
kind: z.ZodLiteral<"webhook">;
|
|
1792
|
+
id: z.ZodString;
|
|
1793
|
+
}, z.core.$strict>], "kind">;
|
|
1794
|
+
cwd: z.ZodString;
|
|
1795
|
+
command: z.ZodString;
|
|
1796
|
+
enabled: z.ZodBoolean;
|
|
1797
|
+
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1798
|
+
kind: z.ZodLiteral<"forever">;
|
|
1799
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1800
|
+
kind: z.ZodLiteral<"count">;
|
|
1801
|
+
max: z.ZodNumber;
|
|
1802
|
+
}, z.core.$strict>], "kind">;
|
|
1803
|
+
closeOnFinish: z.ZodDefault<z.ZodBoolean>;
|
|
1804
|
+
requestedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1805
|
+
runCount: z.ZodNumber;
|
|
1806
|
+
lifecycle: z.ZodEnum<{
|
|
1807
|
+
active: "active";
|
|
1808
|
+
finished: "finished";
|
|
1809
|
+
}>;
|
|
1810
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1811
|
+
runId: z.ZodString;
|
|
1812
|
+
scheduledFor: z.ZodNumber;
|
|
1813
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1814
|
+
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1815
|
+
status: z.ZodEnum<{
|
|
1816
|
+
running: "running";
|
|
1817
|
+
launched: "launched";
|
|
1818
|
+
completed: "completed";
|
|
1819
|
+
failed: "failed";
|
|
1820
|
+
missed: "missed";
|
|
1821
|
+
skipped: "skipped";
|
|
1822
|
+
}>;
|
|
1823
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1824
|
+
trigger: z.ZodEnum<{
|
|
1825
|
+
schedule: "schedule";
|
|
1826
|
+
watch: "watch";
|
|
1827
|
+
event: "event";
|
|
1828
|
+
webhook: "webhook";
|
|
1829
|
+
manual: "manual";
|
|
1830
|
+
}>;
|
|
1831
|
+
countsTowardLimit: z.ZodBoolean;
|
|
1832
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1833
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1834
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1835
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1836
|
+
type: z.ZodLiteral<"user">;
|
|
1837
|
+
text: z.ZodString;
|
|
1838
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1839
|
+
type: z.ZodLiteral<"assistant">;
|
|
1840
|
+
text: z.ZodString;
|
|
1841
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1843
|
+
type: z.ZodLiteral<"tool">;
|
|
1844
|
+
name: z.ZodString;
|
|
1845
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
text: z.ZodString;
|
|
1847
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1848
|
+
}, z.core.$strict>>;
|
|
1849
|
+
createdAt: z.ZodNumber;
|
|
1850
|
+
updatedAt: z.ZodNumber;
|
|
1851
|
+
}, z.core.$strict>;
|
|
1852
|
+
export declare const automationsFileV3Schema: z.ZodObject<{
|
|
1853
|
+
version: z.ZodLiteral<3>;
|
|
1854
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
1855
|
+
id: z.ZodString;
|
|
1856
|
+
name: z.ZodString;
|
|
1857
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1858
|
+
kind: z.ZodLiteral<"schedule">;
|
|
1859
|
+
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1860
|
+
kind: z.ZodLiteral<"hourly">;
|
|
1861
|
+
minute: z.ZodNumber;
|
|
1862
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1863
|
+
kind: z.ZodLiteral<"daily">;
|
|
1864
|
+
hour: z.ZodNumber;
|
|
1865
|
+
minute: z.ZodNumber;
|
|
1866
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1867
|
+
kind: z.ZodLiteral<"timesOfDay">;
|
|
1868
|
+
times: z.ZodArray<z.ZodObject<{
|
|
1869
|
+
hour: z.ZodNumber;
|
|
1870
|
+
minute: z.ZodNumber;
|
|
1871
|
+
}, z.core.$strict>>;
|
|
1872
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1873
|
+
kind: z.ZodLiteral<"weekdaysPreset">;
|
|
1874
|
+
preset: z.ZodEnum<{
|
|
1875
|
+
weekdays: "weekdays";
|
|
1876
|
+
weekends: "weekends";
|
|
1877
|
+
}>;
|
|
1878
|
+
hour: z.ZodNumber;
|
|
1879
|
+
minute: z.ZodNumber;
|
|
1880
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1881
|
+
kind: z.ZodLiteral<"weekly">;
|
|
1882
|
+
daysOfWeek: z.ZodArray<z.ZodNumber>;
|
|
1883
|
+
hour: z.ZodNumber;
|
|
1884
|
+
minute: z.ZodNumber;
|
|
1885
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1886
|
+
kind: z.ZodLiteral<"monthly">;
|
|
1887
|
+
daysOfMonth: z.ZodArray<z.ZodNumber>;
|
|
1888
|
+
hour: z.ZodNumber;
|
|
1889
|
+
minute: z.ZodNumber;
|
|
1890
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1891
|
+
kind: z.ZodLiteral<"everyNMinutes">;
|
|
1892
|
+
step: z.ZodNumber;
|
|
1893
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1894
|
+
kind: z.ZodLiteral<"everyNHours">;
|
|
1895
|
+
step: z.ZodNumber;
|
|
1896
|
+
minute: z.ZodNumber;
|
|
1897
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1898
|
+
kind: z.ZodLiteral<"cron">;
|
|
1899
|
+
expression: z.ZodString;
|
|
1900
|
+
}, z.core.$strict>], "kind">;
|
|
1901
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1902
|
+
kind: z.ZodLiteral<"watch">;
|
|
1903
|
+
recursive: z.ZodBoolean;
|
|
1904
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1906
|
+
kind: z.ZodLiteral<"event">;
|
|
1907
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
1908
|
+
cwd: "cwd";
|
|
1909
|
+
exit: "exit";
|
|
1910
|
+
foreground: "foreground";
|
|
1911
|
+
notification: "notification";
|
|
1912
|
+
"git-head-change": "git-head-change";
|
|
1913
|
+
"git-branch-change": "git-branch-change";
|
|
1914
|
+
"git-tag-change": "git-tag-change";
|
|
1915
|
+
"git-remote-change": "git-remote-change";
|
|
1916
|
+
"git-stash-change": "git-stash-change";
|
|
1917
|
+
"git-commit": "git-commit";
|
|
1918
|
+
"git-checkout": "git-checkout";
|
|
1919
|
+
"git-reset": "git-reset";
|
|
1920
|
+
"git-merge": "git-merge";
|
|
1921
|
+
"git-rebase": "git-rebase";
|
|
1922
|
+
"git-cherry-pick": "git-cherry-pick";
|
|
1923
|
+
"git-fetch": "git-fetch";
|
|
1924
|
+
"git-stash": "git-stash";
|
|
1925
|
+
"git-tag": "git-tag";
|
|
1926
|
+
}>>;
|
|
1927
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1928
|
+
kind: z.ZodLiteral<"webhook">;
|
|
1929
|
+
id: z.ZodString;
|
|
1930
|
+
}, z.core.$strict>], "kind">;
|
|
1931
|
+
cwd: z.ZodString;
|
|
1932
|
+
command: z.ZodString;
|
|
1933
|
+
enabled: z.ZodBoolean;
|
|
1934
|
+
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1935
|
+
kind: z.ZodLiteral<"forever">;
|
|
1936
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1937
|
+
kind: z.ZodLiteral<"count">;
|
|
1938
|
+
max: z.ZodNumber;
|
|
1939
|
+
}, z.core.$strict>], "kind">;
|
|
1940
|
+
closeOnFinish: z.ZodDefault<z.ZodBoolean>;
|
|
1941
|
+
requestedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1942
|
+
runCount: z.ZodNumber;
|
|
1943
|
+
lifecycle: z.ZodEnum<{
|
|
1944
|
+
active: "active";
|
|
1945
|
+
finished: "finished";
|
|
1946
|
+
}>;
|
|
1947
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1948
|
+
runId: z.ZodString;
|
|
1949
|
+
scheduledFor: z.ZodNumber;
|
|
1950
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
1951
|
+
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
1952
|
+
status: z.ZodEnum<{
|
|
1953
|
+
running: "running";
|
|
1954
|
+
launched: "launched";
|
|
1955
|
+
completed: "completed";
|
|
1956
|
+
failed: "failed";
|
|
1957
|
+
missed: "missed";
|
|
1958
|
+
skipped: "skipped";
|
|
1959
|
+
}>;
|
|
1960
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1961
|
+
trigger: z.ZodEnum<{
|
|
1962
|
+
schedule: "schedule";
|
|
1963
|
+
watch: "watch";
|
|
1964
|
+
event: "event";
|
|
1965
|
+
webhook: "webhook";
|
|
1966
|
+
manual: "manual";
|
|
1967
|
+
}>;
|
|
1968
|
+
countsTowardLimit: z.ZodBoolean;
|
|
1969
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1970
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1971
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
1972
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1973
|
+
type: z.ZodLiteral<"user">;
|
|
1974
|
+
text: z.ZodString;
|
|
1975
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1976
|
+
type: z.ZodLiteral<"assistant">;
|
|
1977
|
+
text: z.ZodString;
|
|
1978
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
1979
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1980
|
+
type: z.ZodLiteral<"tool">;
|
|
1981
|
+
name: z.ZodString;
|
|
1982
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1983
|
+
text: z.ZodString;
|
|
1984
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1411
1985
|
}, z.core.$strict>>;
|
|
1412
1986
|
createdAt: z.ZodNumber;
|
|
1413
1987
|
updatedAt: z.ZodNumber;
|
|
@@ -1489,7 +2063,36 @@ export declare const createAutomationInputSchema: z.ZodObject<{
|
|
|
1489
2063
|
kind: z.ZodLiteral<"webhook">;
|
|
1490
2064
|
}, z.core.$strict>], "kind">;
|
|
1491
2065
|
cwd: z.ZodString;
|
|
1492
|
-
|
|
2066
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2067
|
+
kind: z.ZodLiteral<"shell">;
|
|
2068
|
+
command: z.ZodString;
|
|
2069
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2070
|
+
kind: z.ZodLiteral<"agent">;
|
|
2071
|
+
prompt: z.ZodString;
|
|
2072
|
+
sessionMode: z.ZodEnum<{
|
|
2073
|
+
fresh: "fresh";
|
|
2074
|
+
thread: "thread";
|
|
2075
|
+
}>;
|
|
2076
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2078
|
+
off: "off";
|
|
2079
|
+
minimal: "minimal";
|
|
2080
|
+
low: "low";
|
|
2081
|
+
medium: "medium";
|
|
2082
|
+
high: "high";
|
|
2083
|
+
xhigh: "xhigh";
|
|
2084
|
+
}>>;
|
|
2085
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2086
|
+
kind: z.ZodLiteral<"pi">;
|
|
2087
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2088
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2089
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2090
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2091
|
+
kind: z.ZodLiteral<"custom">;
|
|
2092
|
+
command: z.ZodString;
|
|
2093
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
}, z.core.$strict>], "kind">>;
|
|
2095
|
+
}, z.core.$strict>], "kind">;
|
|
1493
2096
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1494
2097
|
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1495
2098
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -1576,7 +2179,36 @@ export declare const updateAutomationInputSchema: z.ZodObject<{
|
|
|
1576
2179
|
kind: z.ZodLiteral<"webhook">;
|
|
1577
2180
|
}, z.core.$strict>], "kind">>;
|
|
1578
2181
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1579
|
-
|
|
2182
|
+
runner: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2183
|
+
kind: z.ZodLiteral<"shell">;
|
|
2184
|
+
command: z.ZodString;
|
|
2185
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2186
|
+
kind: z.ZodLiteral<"agent">;
|
|
2187
|
+
prompt: z.ZodString;
|
|
2188
|
+
sessionMode: z.ZodEnum<{
|
|
2189
|
+
fresh: "fresh";
|
|
2190
|
+
thread: "thread";
|
|
2191
|
+
}>;
|
|
2192
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2194
|
+
off: "off";
|
|
2195
|
+
minimal: "minimal";
|
|
2196
|
+
low: "low";
|
|
2197
|
+
medium: "medium";
|
|
2198
|
+
high: "high";
|
|
2199
|
+
xhigh: "xhigh";
|
|
2200
|
+
}>>;
|
|
2201
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2202
|
+
kind: z.ZodLiteral<"pi">;
|
|
2203
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2204
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2205
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2206
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2207
|
+
kind: z.ZodLiteral<"custom">;
|
|
2208
|
+
command: z.ZodString;
|
|
2209
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2210
|
+
}, z.core.$strict>], "kind">>;
|
|
2211
|
+
}, z.core.$strict>], "kind">>;
|
|
1580
2212
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1581
2213
|
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1582
2214
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -1684,7 +2316,36 @@ export declare const automationsListResponseSchema: z.ZodObject<{
|
|
|
1684
2316
|
id: z.ZodString;
|
|
1685
2317
|
}, z.core.$strict>], "kind">;
|
|
1686
2318
|
cwd: z.ZodString;
|
|
1687
|
-
|
|
2319
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2320
|
+
kind: z.ZodLiteral<"shell">;
|
|
2321
|
+
command: z.ZodString;
|
|
2322
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2323
|
+
kind: z.ZodLiteral<"agent">;
|
|
2324
|
+
prompt: z.ZodString;
|
|
2325
|
+
sessionMode: z.ZodEnum<{
|
|
2326
|
+
fresh: "fresh";
|
|
2327
|
+
thread: "thread";
|
|
2328
|
+
}>;
|
|
2329
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2330
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2331
|
+
off: "off";
|
|
2332
|
+
minimal: "minimal";
|
|
2333
|
+
low: "low";
|
|
2334
|
+
medium: "medium";
|
|
2335
|
+
high: "high";
|
|
2336
|
+
xhigh: "xhigh";
|
|
2337
|
+
}>>;
|
|
2338
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2339
|
+
kind: z.ZodLiteral<"pi">;
|
|
2340
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2341
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2342
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2343
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2344
|
+
kind: z.ZodLiteral<"custom">;
|
|
2345
|
+
command: z.ZodString;
|
|
2346
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2347
|
+
}, z.core.$strict>], "kind">>;
|
|
2348
|
+
}, z.core.$strict>], "kind">;
|
|
1688
2349
|
enabled: z.ZodBoolean;
|
|
1689
2350
|
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1690
2351
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -1721,6 +2382,22 @@ export declare const automationsListResponseSchema: z.ZodObject<{
|
|
|
1721
2382
|
manual: "manual";
|
|
1722
2383
|
}>;
|
|
1723
2384
|
countsTowardLimit: z.ZodBoolean;
|
|
2385
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2386
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2387
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
2388
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2389
|
+
type: z.ZodLiteral<"user">;
|
|
2390
|
+
text: z.ZodString;
|
|
2391
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2392
|
+
type: z.ZodLiteral<"assistant">;
|
|
2393
|
+
text: z.ZodString;
|
|
2394
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
2395
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2396
|
+
type: z.ZodLiteral<"tool">;
|
|
2397
|
+
name: z.ZodString;
|
|
2398
|
+
input: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
text: z.ZodString;
|
|
2400
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
1724
2401
|
}, z.core.$strict>>;
|
|
1725
2402
|
createdAt: z.ZodNumber;
|
|
1726
2403
|
updatedAt: z.ZodNumber;
|
|
@@ -2033,7 +2710,36 @@ export declare const serverToClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2033
2710
|
id: z.ZodString;
|
|
2034
2711
|
}, z.core.$strict>], "kind">;
|
|
2035
2712
|
cwd: z.ZodString;
|
|
2036
|
-
|
|
2713
|
+
runner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2714
|
+
kind: z.ZodLiteral<"shell">;
|
|
2715
|
+
command: z.ZodString;
|
|
2716
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2717
|
+
kind: z.ZodLiteral<"agent">;
|
|
2718
|
+
prompt: z.ZodString;
|
|
2719
|
+
sessionMode: z.ZodEnum<{
|
|
2720
|
+
fresh: "fresh";
|
|
2721
|
+
thread: "thread";
|
|
2722
|
+
}>;
|
|
2723
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2724
|
+
thinking: z.ZodOptional<z.ZodEnum<{
|
|
2725
|
+
off: "off";
|
|
2726
|
+
minimal: "minimal";
|
|
2727
|
+
low: "low";
|
|
2728
|
+
medium: "medium";
|
|
2729
|
+
high: "high";
|
|
2730
|
+
xhigh: "xhigh";
|
|
2731
|
+
}>>;
|
|
2732
|
+
harness: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2733
|
+
kind: z.ZodLiteral<"pi">;
|
|
2734
|
+
extensions: z.ZodDefault<z.ZodBoolean>;
|
|
2735
|
+
skills: z.ZodDefault<z.ZodBoolean>;
|
|
2736
|
+
contextFiles: z.ZodDefault<z.ZodBoolean>;
|
|
2737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2738
|
+
kind: z.ZodLiteral<"custom">;
|
|
2739
|
+
command: z.ZodString;
|
|
2740
|
+
compactCommand: z.ZodOptional<z.ZodString>;
|
|
2741
|
+
}, z.core.$strict>], "kind">>;
|
|
2742
|
+
}, z.core.$strict>], "kind">;
|
|
2037
2743
|
enabled: z.ZodBoolean;
|
|
2038
2744
|
limit: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2039
2745
|
kind: z.ZodLiteral<"forever">;
|
|
@@ -2070,6 +2776,22 @@ export declare const serverToClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2070
2776
|
manual: "manual";
|
|
2071
2777
|
}>;
|
|
2072
2778
|
countsTowardLimit: z.ZodBoolean;
|
|
2779
|
+
findings: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2780
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2781
|
+
unread: z.ZodDefault<z.ZodBoolean>;
|
|
2782
|
+
log: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2783
|
+
type: z.ZodLiteral<"user">;
|
|
2784
|
+
text: z.ZodString;
|
|
2785
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2786
|
+
type: z.ZodLiteral<"assistant">;
|
|
2787
|
+
text: z.ZodString;
|
|
2788
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
2789
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2790
|
+
type: z.ZodLiteral<"tool">;
|
|
2791
|
+
name: z.ZodString;
|
|
2792
|
+
input: z.ZodOptional<z.ZodString>;
|
|
2793
|
+
text: z.ZodString;
|
|
2794
|
+
}, z.core.$strict>], "type">>]>>>;
|
|
2073
2795
|
}, z.core.$strict>>;
|
|
2074
2796
|
createdAt: z.ZodNumber;
|
|
2075
2797
|
updatedAt: z.ZodNumber;
|