@sweny-ai/core 0.1.76 → 0.1.77
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/__tests__/cascade.test.js +3 -0
- package/dist/__tests__/executor.test.js +899 -0
- package/dist/__tests__/requires.test.d.ts +1 -0
- package/dist/__tests__/requires.test.js +82 -0
- package/dist/__tests__/retry.test.d.ts +1 -0
- package/dist/__tests__/retry.test.js +213 -0
- package/dist/__tests__/schema.test.js +75 -1
- package/dist/__tests__/spec-conformance.test.js +10 -0
- package/dist/__tests__/testing.test.js +18 -0
- package/dist/claude.d.ts +4 -0
- package/dist/claude.js +41 -0
- package/dist/executor.js +104 -43
- package/dist/executor.test.js +15 -0
- package/dist/requires.d.ts +7 -0
- package/dist/requires.js +34 -0
- package/dist/retry.d.ts +23 -0
- package/dist/retry.js +72 -0
- package/dist/schema.d.ts +603 -48
- package/dist/schema.js +97 -0
- package/dist/testing.d.ts +7 -0
- package/dist/testing.js +7 -0
- package/dist/types.d.ts +64 -0
- package/dist/verify.d.ts +1 -0
- package/dist/verify.js +1 -1
- package/dist/workflow-builder.test.js +6 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -120,8 +120,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
120
120
|
args?: string[] | undefined;
|
|
121
121
|
}>>;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
instruction?: string | undefined;
|
|
124
123
|
name?: string | undefined;
|
|
124
|
+
instruction?: string | undefined;
|
|
125
125
|
description?: string | undefined;
|
|
126
126
|
mcp?: {
|
|
127
127
|
url?: string | undefined;
|
|
@@ -132,8 +132,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
132
132
|
args?: string[] | undefined;
|
|
133
133
|
} | undefined;
|
|
134
134
|
}, {
|
|
135
|
-
instruction?: string | undefined;
|
|
136
135
|
name?: string | undefined;
|
|
136
|
+
instruction?: string | undefined;
|
|
137
137
|
description?: string | undefined;
|
|
138
138
|
mcp?: {
|
|
139
139
|
url?: string | undefined;
|
|
@@ -144,8 +144,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
144
144
|
args?: string[] | undefined;
|
|
145
145
|
} | undefined;
|
|
146
146
|
}>, {
|
|
147
|
-
instruction?: string | undefined;
|
|
148
147
|
name?: string | undefined;
|
|
148
|
+
instruction?: string | undefined;
|
|
149
149
|
description?: string | undefined;
|
|
150
150
|
mcp?: {
|
|
151
151
|
url?: string | undefined;
|
|
@@ -156,8 +156,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
156
156
|
args?: string[] | undefined;
|
|
157
157
|
} | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
instruction?: string | undefined;
|
|
160
159
|
name?: string | undefined;
|
|
160
|
+
instruction?: string | undefined;
|
|
161
161
|
description?: string | undefined;
|
|
162
162
|
mcp?: {
|
|
163
163
|
url?: string | undefined;
|
|
@@ -506,6 +506,102 @@ export declare const nodeVerifyZ: z.ZodEffects<z.ZodObject<{
|
|
|
506
506
|
matches?: string | undefined;
|
|
507
507
|
}[] | undefined;
|
|
508
508
|
}>;
|
|
509
|
+
export declare const nodeRequiresZ: z.ZodEffects<z.ZodObject<{
|
|
510
|
+
output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
511
|
+
output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
512
|
+
path: z.ZodString;
|
|
513
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
514
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
515
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, "strip", z.ZodTypeAny, {
|
|
517
|
+
path: string;
|
|
518
|
+
equals?: unknown;
|
|
519
|
+
in?: unknown[] | undefined;
|
|
520
|
+
matches?: string | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
path: string;
|
|
523
|
+
equals?: unknown;
|
|
524
|
+
in?: unknown[] | undefined;
|
|
525
|
+
matches?: string | undefined;
|
|
526
|
+
}>, {
|
|
527
|
+
path: string;
|
|
528
|
+
equals?: unknown;
|
|
529
|
+
in?: unknown[] | undefined;
|
|
530
|
+
matches?: string | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
path: string;
|
|
533
|
+
equals?: unknown;
|
|
534
|
+
in?: unknown[] | undefined;
|
|
535
|
+
matches?: string | undefined;
|
|
536
|
+
}>, "many">>;
|
|
537
|
+
on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
output_required?: string[] | undefined;
|
|
540
|
+
output_matches?: {
|
|
541
|
+
path: string;
|
|
542
|
+
equals?: unknown;
|
|
543
|
+
in?: unknown[] | undefined;
|
|
544
|
+
matches?: string | undefined;
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
547
|
+
}, {
|
|
548
|
+
output_required?: string[] | undefined;
|
|
549
|
+
output_matches?: {
|
|
550
|
+
path: string;
|
|
551
|
+
equals?: unknown;
|
|
552
|
+
in?: unknown[] | undefined;
|
|
553
|
+
matches?: string | undefined;
|
|
554
|
+
}[] | undefined;
|
|
555
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
556
|
+
}>, {
|
|
557
|
+
output_required?: string[] | undefined;
|
|
558
|
+
output_matches?: {
|
|
559
|
+
path: string;
|
|
560
|
+
equals?: unknown;
|
|
561
|
+
in?: unknown[] | undefined;
|
|
562
|
+
matches?: string | undefined;
|
|
563
|
+
}[] | undefined;
|
|
564
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
565
|
+
}, {
|
|
566
|
+
output_required?: string[] | undefined;
|
|
567
|
+
output_matches?: {
|
|
568
|
+
path: string;
|
|
569
|
+
equals?: unknown;
|
|
570
|
+
in?: unknown[] | undefined;
|
|
571
|
+
matches?: string | undefined;
|
|
572
|
+
}[] | undefined;
|
|
573
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
574
|
+
}>;
|
|
575
|
+
export declare const nodeRetryZ: z.ZodObject<{
|
|
576
|
+
max: z.ZodNumber;
|
|
577
|
+
instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
578
|
+
auto: z.ZodLiteral<true>;
|
|
579
|
+
}, "strict", z.ZodTypeAny, {
|
|
580
|
+
auto: true;
|
|
581
|
+
}, {
|
|
582
|
+
auto: true;
|
|
583
|
+
}>, z.ZodObject<{
|
|
584
|
+
reflect: z.ZodString;
|
|
585
|
+
}, "strict", z.ZodTypeAny, {
|
|
586
|
+
reflect: string;
|
|
587
|
+
}, {
|
|
588
|
+
reflect: string;
|
|
589
|
+
}>]>>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
max: number;
|
|
592
|
+
instruction?: string | {
|
|
593
|
+
auto: true;
|
|
594
|
+
} | {
|
|
595
|
+
reflect: string;
|
|
596
|
+
} | undefined;
|
|
597
|
+
}, {
|
|
598
|
+
max: number;
|
|
599
|
+
instruction?: string | {
|
|
600
|
+
auto: true;
|
|
601
|
+
} | {
|
|
602
|
+
reflect: string;
|
|
603
|
+
} | undefined;
|
|
604
|
+
}>;
|
|
509
605
|
export declare const nodeZ: z.ZodObject<{
|
|
510
606
|
name: z.ZodString;
|
|
511
607
|
instruction: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -741,7 +837,104 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
741
837
|
matches?: string | undefined;
|
|
742
838
|
}[] | undefined;
|
|
743
839
|
}>>;
|
|
840
|
+
requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
841
|
+
output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
842
|
+
output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
843
|
+
path: z.ZodString;
|
|
844
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
845
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
846
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
847
|
+
}, "strip", z.ZodTypeAny, {
|
|
848
|
+
path: string;
|
|
849
|
+
equals?: unknown;
|
|
850
|
+
in?: unknown[] | undefined;
|
|
851
|
+
matches?: string | undefined;
|
|
852
|
+
}, {
|
|
853
|
+
path: string;
|
|
854
|
+
equals?: unknown;
|
|
855
|
+
in?: unknown[] | undefined;
|
|
856
|
+
matches?: string | undefined;
|
|
857
|
+
}>, {
|
|
858
|
+
path: string;
|
|
859
|
+
equals?: unknown;
|
|
860
|
+
in?: unknown[] | undefined;
|
|
861
|
+
matches?: string | undefined;
|
|
862
|
+
}, {
|
|
863
|
+
path: string;
|
|
864
|
+
equals?: unknown;
|
|
865
|
+
in?: unknown[] | undefined;
|
|
866
|
+
matches?: string | undefined;
|
|
867
|
+
}>, "many">>;
|
|
868
|
+
on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
|
|
869
|
+
}, "strip", z.ZodTypeAny, {
|
|
870
|
+
output_required?: string[] | undefined;
|
|
871
|
+
output_matches?: {
|
|
872
|
+
path: string;
|
|
873
|
+
equals?: unknown;
|
|
874
|
+
in?: unknown[] | undefined;
|
|
875
|
+
matches?: string | undefined;
|
|
876
|
+
}[] | undefined;
|
|
877
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
878
|
+
}, {
|
|
879
|
+
output_required?: string[] | undefined;
|
|
880
|
+
output_matches?: {
|
|
881
|
+
path: string;
|
|
882
|
+
equals?: unknown;
|
|
883
|
+
in?: unknown[] | undefined;
|
|
884
|
+
matches?: string | undefined;
|
|
885
|
+
}[] | undefined;
|
|
886
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
887
|
+
}>, {
|
|
888
|
+
output_required?: string[] | undefined;
|
|
889
|
+
output_matches?: {
|
|
890
|
+
path: string;
|
|
891
|
+
equals?: unknown;
|
|
892
|
+
in?: unknown[] | undefined;
|
|
893
|
+
matches?: string | undefined;
|
|
894
|
+
}[] | undefined;
|
|
895
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
output_required?: string[] | undefined;
|
|
898
|
+
output_matches?: {
|
|
899
|
+
path: string;
|
|
900
|
+
equals?: unknown;
|
|
901
|
+
in?: unknown[] | undefined;
|
|
902
|
+
matches?: string | undefined;
|
|
903
|
+
}[] | undefined;
|
|
904
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
905
|
+
}>>;
|
|
906
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
907
|
+
max: z.ZodNumber;
|
|
908
|
+
instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
909
|
+
auto: z.ZodLiteral<true>;
|
|
910
|
+
}, "strict", z.ZodTypeAny, {
|
|
911
|
+
auto: true;
|
|
912
|
+
}, {
|
|
913
|
+
auto: true;
|
|
914
|
+
}>, z.ZodObject<{
|
|
915
|
+
reflect: z.ZodString;
|
|
916
|
+
}, "strict", z.ZodTypeAny, {
|
|
917
|
+
reflect: string;
|
|
918
|
+
}, {
|
|
919
|
+
reflect: string;
|
|
920
|
+
}>]>>;
|
|
921
|
+
}, "strip", z.ZodTypeAny, {
|
|
922
|
+
max: number;
|
|
923
|
+
instruction?: string | {
|
|
924
|
+
auto: true;
|
|
925
|
+
} | {
|
|
926
|
+
reflect: string;
|
|
927
|
+
} | undefined;
|
|
928
|
+
}, {
|
|
929
|
+
max: number;
|
|
930
|
+
instruction?: string | {
|
|
931
|
+
auto: true;
|
|
932
|
+
} | {
|
|
933
|
+
reflect: string;
|
|
934
|
+
} | undefined;
|
|
935
|
+
}>>;
|
|
744
936
|
}, "strip", z.ZodTypeAny, {
|
|
937
|
+
name: string;
|
|
745
938
|
instruction: string | {
|
|
746
939
|
inline: string;
|
|
747
940
|
} | {
|
|
@@ -750,9 +943,16 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
750
943
|
url: string;
|
|
751
944
|
type?: string | undefined;
|
|
752
945
|
};
|
|
753
|
-
name: string;
|
|
754
946
|
skills: string[];
|
|
755
|
-
|
|
947
|
+
retry?: {
|
|
948
|
+
max: number;
|
|
949
|
+
instruction?: string | {
|
|
950
|
+
auto: true;
|
|
951
|
+
} | {
|
|
952
|
+
reflect: string;
|
|
953
|
+
} | undefined;
|
|
954
|
+
} | undefined;
|
|
955
|
+
context?: (string | {
|
|
756
956
|
inline: string;
|
|
757
957
|
} | {
|
|
758
958
|
file: string;
|
|
@@ -770,7 +970,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
770
970
|
})[];
|
|
771
971
|
only?: boolean | undefined;
|
|
772
972
|
} | undefined;
|
|
773
|
-
|
|
973
|
+
rules?: (string | {
|
|
774
974
|
inline: string;
|
|
775
975
|
} | {
|
|
776
976
|
file: string;
|
|
@@ -802,7 +1002,18 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
802
1002
|
matches?: string | undefined;
|
|
803
1003
|
}[] | undefined;
|
|
804
1004
|
} | undefined;
|
|
1005
|
+
requires?: {
|
|
1006
|
+
output_required?: string[] | undefined;
|
|
1007
|
+
output_matches?: {
|
|
1008
|
+
path: string;
|
|
1009
|
+
equals?: unknown;
|
|
1010
|
+
in?: unknown[] | undefined;
|
|
1011
|
+
matches?: string | undefined;
|
|
1012
|
+
}[] | undefined;
|
|
1013
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1014
|
+
} | undefined;
|
|
805
1015
|
}, {
|
|
1016
|
+
name: string;
|
|
806
1017
|
instruction: string | {
|
|
807
1018
|
inline: string;
|
|
808
1019
|
} | {
|
|
@@ -811,8 +1022,15 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
811
1022
|
url: string;
|
|
812
1023
|
type?: string | undefined;
|
|
813
1024
|
};
|
|
814
|
-
|
|
815
|
-
|
|
1025
|
+
retry?: {
|
|
1026
|
+
max: number;
|
|
1027
|
+
instruction?: string | {
|
|
1028
|
+
auto: true;
|
|
1029
|
+
} | {
|
|
1030
|
+
reflect: string;
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
context?: (string | {
|
|
816
1034
|
inline: string;
|
|
817
1035
|
} | {
|
|
818
1036
|
file: string;
|
|
@@ -830,7 +1048,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
830
1048
|
})[];
|
|
831
1049
|
only?: boolean | undefined;
|
|
832
1050
|
} | undefined;
|
|
833
|
-
|
|
1051
|
+
rules?: (string | {
|
|
834
1052
|
inline: string;
|
|
835
1053
|
} | {
|
|
836
1054
|
file: string;
|
|
@@ -848,8 +1066,8 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
848
1066
|
})[];
|
|
849
1067
|
only?: boolean | undefined;
|
|
850
1068
|
} | undefined;
|
|
851
|
-
output?: Record<string, unknown> | undefined;
|
|
852
1069
|
skills?: string[] | undefined;
|
|
1070
|
+
output?: Record<string, unknown> | undefined;
|
|
853
1071
|
max_turns?: number | undefined;
|
|
854
1072
|
verify?: {
|
|
855
1073
|
any_tool_called?: string[] | undefined;
|
|
@@ -863,6 +1081,16 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
863
1081
|
matches?: string | undefined;
|
|
864
1082
|
}[] | undefined;
|
|
865
1083
|
} | undefined;
|
|
1084
|
+
requires?: {
|
|
1085
|
+
output_required?: string[] | undefined;
|
|
1086
|
+
output_matches?: {
|
|
1087
|
+
path: string;
|
|
1088
|
+
equals?: unknown;
|
|
1089
|
+
in?: unknown[] | undefined;
|
|
1090
|
+
matches?: string | undefined;
|
|
1091
|
+
}[] | undefined;
|
|
1092
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1093
|
+
} | undefined;
|
|
866
1094
|
}>;
|
|
867
1095
|
export declare const edgeZ: z.ZodObject<{
|
|
868
1096
|
from: z.ZodString;
|
|
@@ -870,13 +1098,13 @@ export declare const edgeZ: z.ZodObject<{
|
|
|
870
1098
|
when: z.ZodOptional<z.ZodString>;
|
|
871
1099
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
872
1100
|
}, "strip", z.ZodTypeAny, {
|
|
873
|
-
to: string;
|
|
874
1101
|
from: string;
|
|
1102
|
+
to: string;
|
|
875
1103
|
when?: string | undefined;
|
|
876
1104
|
max_iterations?: number | undefined;
|
|
877
1105
|
}, {
|
|
878
|
-
to: string;
|
|
879
1106
|
from: string;
|
|
1107
|
+
to: string;
|
|
880
1108
|
when?: string | undefined;
|
|
881
1109
|
max_iterations?: number | undefined;
|
|
882
1110
|
}>;
|
|
@@ -1119,7 +1347,104 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1119
1347
|
matches?: string | undefined;
|
|
1120
1348
|
}[] | undefined;
|
|
1121
1349
|
}>>;
|
|
1350
|
+
requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1351
|
+
output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1352
|
+
output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1353
|
+
path: z.ZodString;
|
|
1354
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1355
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1356
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
}, "strip", z.ZodTypeAny, {
|
|
1358
|
+
path: string;
|
|
1359
|
+
equals?: unknown;
|
|
1360
|
+
in?: unknown[] | undefined;
|
|
1361
|
+
matches?: string | undefined;
|
|
1362
|
+
}, {
|
|
1363
|
+
path: string;
|
|
1364
|
+
equals?: unknown;
|
|
1365
|
+
in?: unknown[] | undefined;
|
|
1366
|
+
matches?: string | undefined;
|
|
1367
|
+
}>, {
|
|
1368
|
+
path: string;
|
|
1369
|
+
equals?: unknown;
|
|
1370
|
+
in?: unknown[] | undefined;
|
|
1371
|
+
matches?: string | undefined;
|
|
1372
|
+
}, {
|
|
1373
|
+
path: string;
|
|
1374
|
+
equals?: unknown;
|
|
1375
|
+
in?: unknown[] | undefined;
|
|
1376
|
+
matches?: string | undefined;
|
|
1377
|
+
}>, "many">>;
|
|
1378
|
+
on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
|
|
1379
|
+
}, "strip", z.ZodTypeAny, {
|
|
1380
|
+
output_required?: string[] | undefined;
|
|
1381
|
+
output_matches?: {
|
|
1382
|
+
path: string;
|
|
1383
|
+
equals?: unknown;
|
|
1384
|
+
in?: unknown[] | undefined;
|
|
1385
|
+
matches?: string | undefined;
|
|
1386
|
+
}[] | undefined;
|
|
1387
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1388
|
+
}, {
|
|
1389
|
+
output_required?: string[] | undefined;
|
|
1390
|
+
output_matches?: {
|
|
1391
|
+
path: string;
|
|
1392
|
+
equals?: unknown;
|
|
1393
|
+
in?: unknown[] | undefined;
|
|
1394
|
+
matches?: string | undefined;
|
|
1395
|
+
}[] | undefined;
|
|
1396
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1397
|
+
}>, {
|
|
1398
|
+
output_required?: string[] | undefined;
|
|
1399
|
+
output_matches?: {
|
|
1400
|
+
path: string;
|
|
1401
|
+
equals?: unknown;
|
|
1402
|
+
in?: unknown[] | undefined;
|
|
1403
|
+
matches?: string | undefined;
|
|
1404
|
+
}[] | undefined;
|
|
1405
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1406
|
+
}, {
|
|
1407
|
+
output_required?: string[] | undefined;
|
|
1408
|
+
output_matches?: {
|
|
1409
|
+
path: string;
|
|
1410
|
+
equals?: unknown;
|
|
1411
|
+
in?: unknown[] | undefined;
|
|
1412
|
+
matches?: string | undefined;
|
|
1413
|
+
}[] | undefined;
|
|
1414
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1415
|
+
}>>;
|
|
1416
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1417
|
+
max: z.ZodNumber;
|
|
1418
|
+
instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1419
|
+
auto: z.ZodLiteral<true>;
|
|
1420
|
+
}, "strict", z.ZodTypeAny, {
|
|
1421
|
+
auto: true;
|
|
1422
|
+
}, {
|
|
1423
|
+
auto: true;
|
|
1424
|
+
}>, z.ZodObject<{
|
|
1425
|
+
reflect: z.ZodString;
|
|
1426
|
+
}, "strict", z.ZodTypeAny, {
|
|
1427
|
+
reflect: string;
|
|
1428
|
+
}, {
|
|
1429
|
+
reflect: string;
|
|
1430
|
+
}>]>>;
|
|
1431
|
+
}, "strip", z.ZodTypeAny, {
|
|
1432
|
+
max: number;
|
|
1433
|
+
instruction?: string | {
|
|
1434
|
+
auto: true;
|
|
1435
|
+
} | {
|
|
1436
|
+
reflect: string;
|
|
1437
|
+
} | undefined;
|
|
1438
|
+
}, {
|
|
1439
|
+
max: number;
|
|
1440
|
+
instruction?: string | {
|
|
1441
|
+
auto: true;
|
|
1442
|
+
} | {
|
|
1443
|
+
reflect: string;
|
|
1444
|
+
} | undefined;
|
|
1445
|
+
}>>;
|
|
1122
1446
|
}, "strip", z.ZodTypeAny, {
|
|
1447
|
+
name: string;
|
|
1123
1448
|
instruction: string | {
|
|
1124
1449
|
inline: string;
|
|
1125
1450
|
} | {
|
|
@@ -1128,9 +1453,16 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1128
1453
|
url: string;
|
|
1129
1454
|
type?: string | undefined;
|
|
1130
1455
|
};
|
|
1131
|
-
name: string;
|
|
1132
1456
|
skills: string[];
|
|
1133
|
-
|
|
1457
|
+
retry?: {
|
|
1458
|
+
max: number;
|
|
1459
|
+
instruction?: string | {
|
|
1460
|
+
auto: true;
|
|
1461
|
+
} | {
|
|
1462
|
+
reflect: string;
|
|
1463
|
+
} | undefined;
|
|
1464
|
+
} | undefined;
|
|
1465
|
+
context?: (string | {
|
|
1134
1466
|
inline: string;
|
|
1135
1467
|
} | {
|
|
1136
1468
|
file: string;
|
|
@@ -1148,7 +1480,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1148
1480
|
})[];
|
|
1149
1481
|
only?: boolean | undefined;
|
|
1150
1482
|
} | undefined;
|
|
1151
|
-
|
|
1483
|
+
rules?: (string | {
|
|
1152
1484
|
inline: string;
|
|
1153
1485
|
} | {
|
|
1154
1486
|
file: string;
|
|
@@ -1180,7 +1512,18 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1180
1512
|
matches?: string | undefined;
|
|
1181
1513
|
}[] | undefined;
|
|
1182
1514
|
} | undefined;
|
|
1515
|
+
requires?: {
|
|
1516
|
+
output_required?: string[] | undefined;
|
|
1517
|
+
output_matches?: {
|
|
1518
|
+
path: string;
|
|
1519
|
+
equals?: unknown;
|
|
1520
|
+
in?: unknown[] | undefined;
|
|
1521
|
+
matches?: string | undefined;
|
|
1522
|
+
}[] | undefined;
|
|
1523
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1524
|
+
} | undefined;
|
|
1183
1525
|
}, {
|
|
1526
|
+
name: string;
|
|
1184
1527
|
instruction: string | {
|
|
1185
1528
|
inline: string;
|
|
1186
1529
|
} | {
|
|
@@ -1189,8 +1532,15 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1189
1532
|
url: string;
|
|
1190
1533
|
type?: string | undefined;
|
|
1191
1534
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1535
|
+
retry?: {
|
|
1536
|
+
max: number;
|
|
1537
|
+
instruction?: string | {
|
|
1538
|
+
auto: true;
|
|
1539
|
+
} | {
|
|
1540
|
+
reflect: string;
|
|
1541
|
+
} | undefined;
|
|
1542
|
+
} | undefined;
|
|
1543
|
+
context?: (string | {
|
|
1194
1544
|
inline: string;
|
|
1195
1545
|
} | {
|
|
1196
1546
|
file: string;
|
|
@@ -1208,7 +1558,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1208
1558
|
})[];
|
|
1209
1559
|
only?: boolean | undefined;
|
|
1210
1560
|
} | undefined;
|
|
1211
|
-
|
|
1561
|
+
rules?: (string | {
|
|
1212
1562
|
inline: string;
|
|
1213
1563
|
} | {
|
|
1214
1564
|
file: string;
|
|
@@ -1226,8 +1576,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1226
1576
|
})[];
|
|
1227
1577
|
only?: boolean | undefined;
|
|
1228
1578
|
} | undefined;
|
|
1229
|
-
output?: Record<string, unknown> | undefined;
|
|
1230
1579
|
skills?: string[] | undefined;
|
|
1580
|
+
output?: Record<string, unknown> | undefined;
|
|
1231
1581
|
max_turns?: number | undefined;
|
|
1232
1582
|
verify?: {
|
|
1233
1583
|
any_tool_called?: string[] | undefined;
|
|
@@ -1241,6 +1591,16 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1241
1591
|
matches?: string | undefined;
|
|
1242
1592
|
}[] | undefined;
|
|
1243
1593
|
} | undefined;
|
|
1594
|
+
requires?: {
|
|
1595
|
+
output_required?: string[] | undefined;
|
|
1596
|
+
output_matches?: {
|
|
1597
|
+
path: string;
|
|
1598
|
+
equals?: unknown;
|
|
1599
|
+
in?: unknown[] | undefined;
|
|
1600
|
+
matches?: string | undefined;
|
|
1601
|
+
}[] | undefined;
|
|
1602
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1603
|
+
} | undefined;
|
|
1244
1604
|
}>>;
|
|
1245
1605
|
edges: z.ZodArray<z.ZodObject<{
|
|
1246
1606
|
from: z.ZodString;
|
|
@@ -1248,13 +1608,13 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1248
1608
|
when: z.ZodOptional<z.ZodString>;
|
|
1249
1609
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
1250
1610
|
}, "strip", z.ZodTypeAny, {
|
|
1251
|
-
to: string;
|
|
1252
1611
|
from: string;
|
|
1612
|
+
to: string;
|
|
1253
1613
|
when?: string | undefined;
|
|
1254
1614
|
max_iterations?: number | undefined;
|
|
1255
1615
|
}, {
|
|
1256
|
-
to: string;
|
|
1257
1616
|
from: string;
|
|
1617
|
+
to: string;
|
|
1258
1618
|
when?: string | undefined;
|
|
1259
1619
|
max_iterations?: number | undefined;
|
|
1260
1620
|
}>, "many">;
|
|
@@ -1300,8 +1660,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1300
1660
|
args?: string[] | undefined;
|
|
1301
1661
|
}>>;
|
|
1302
1662
|
}, "strip", z.ZodTypeAny, {
|
|
1303
|
-
instruction?: string | undefined;
|
|
1304
1663
|
name?: string | undefined;
|
|
1664
|
+
instruction?: string | undefined;
|
|
1305
1665
|
description?: string | undefined;
|
|
1306
1666
|
mcp?: {
|
|
1307
1667
|
url?: string | undefined;
|
|
@@ -1312,8 +1672,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1312
1672
|
args?: string[] | undefined;
|
|
1313
1673
|
} | undefined;
|
|
1314
1674
|
}, {
|
|
1315
|
-
instruction?: string | undefined;
|
|
1316
1675
|
name?: string | undefined;
|
|
1676
|
+
instruction?: string | undefined;
|
|
1317
1677
|
description?: string | undefined;
|
|
1318
1678
|
mcp?: {
|
|
1319
1679
|
url?: string | undefined;
|
|
@@ -1324,8 +1684,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1324
1684
|
args?: string[] | undefined;
|
|
1325
1685
|
} | undefined;
|
|
1326
1686
|
}>, {
|
|
1327
|
-
instruction?: string | undefined;
|
|
1328
1687
|
name?: string | undefined;
|
|
1688
|
+
instruction?: string | undefined;
|
|
1329
1689
|
description?: string | undefined;
|
|
1330
1690
|
mcp?: {
|
|
1331
1691
|
url?: string | undefined;
|
|
@@ -1336,8 +1696,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1336
1696
|
args?: string[] | undefined;
|
|
1337
1697
|
} | undefined;
|
|
1338
1698
|
}, {
|
|
1339
|
-
instruction?: string | undefined;
|
|
1340
1699
|
name?: string | undefined;
|
|
1700
|
+
instruction?: string | undefined;
|
|
1341
1701
|
description?: string | undefined;
|
|
1342
1702
|
mcp?: {
|
|
1343
1703
|
url?: string | undefined;
|
|
@@ -1397,8 +1757,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1397
1757
|
id: string;
|
|
1398
1758
|
description: string;
|
|
1399
1759
|
skills: Record<string, {
|
|
1400
|
-
instruction?: string | undefined;
|
|
1401
1760
|
name?: string | undefined;
|
|
1761
|
+
instruction?: string | undefined;
|
|
1402
1762
|
description?: string | undefined;
|
|
1403
1763
|
mcp?: {
|
|
1404
1764
|
url?: string | undefined;
|
|
@@ -1410,6 +1770,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1410
1770
|
} | undefined;
|
|
1411
1771
|
}>;
|
|
1412
1772
|
nodes: Record<string, {
|
|
1773
|
+
name: string;
|
|
1413
1774
|
instruction: string | {
|
|
1414
1775
|
inline: string;
|
|
1415
1776
|
} | {
|
|
@@ -1418,9 +1779,16 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1418
1779
|
url: string;
|
|
1419
1780
|
type?: string | undefined;
|
|
1420
1781
|
};
|
|
1421
|
-
name: string;
|
|
1422
1782
|
skills: string[];
|
|
1423
|
-
|
|
1783
|
+
retry?: {
|
|
1784
|
+
max: number;
|
|
1785
|
+
instruction?: string | {
|
|
1786
|
+
auto: true;
|
|
1787
|
+
} | {
|
|
1788
|
+
reflect: string;
|
|
1789
|
+
} | undefined;
|
|
1790
|
+
} | undefined;
|
|
1791
|
+
context?: (string | {
|
|
1424
1792
|
inline: string;
|
|
1425
1793
|
} | {
|
|
1426
1794
|
file: string;
|
|
@@ -1438,7 +1806,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1438
1806
|
})[];
|
|
1439
1807
|
only?: boolean | undefined;
|
|
1440
1808
|
} | undefined;
|
|
1441
|
-
|
|
1809
|
+
rules?: (string | {
|
|
1442
1810
|
inline: string;
|
|
1443
1811
|
} | {
|
|
1444
1812
|
file: string;
|
|
@@ -1470,15 +1838,25 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1470
1838
|
matches?: string | undefined;
|
|
1471
1839
|
}[] | undefined;
|
|
1472
1840
|
} | undefined;
|
|
1841
|
+
requires?: {
|
|
1842
|
+
output_required?: string[] | undefined;
|
|
1843
|
+
output_matches?: {
|
|
1844
|
+
path: string;
|
|
1845
|
+
equals?: unknown;
|
|
1846
|
+
in?: unknown[] | undefined;
|
|
1847
|
+
matches?: string | undefined;
|
|
1848
|
+
}[] | undefined;
|
|
1849
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1850
|
+
} | undefined;
|
|
1473
1851
|
}>;
|
|
1474
1852
|
edges: {
|
|
1475
|
-
to: string;
|
|
1476
1853
|
from: string;
|
|
1854
|
+
to: string;
|
|
1477
1855
|
when?: string | undefined;
|
|
1478
1856
|
max_iterations?: number | undefined;
|
|
1479
1857
|
}[];
|
|
1480
1858
|
entry: string;
|
|
1481
|
-
|
|
1859
|
+
context?: (string | {
|
|
1482
1860
|
inline: string;
|
|
1483
1861
|
} | {
|
|
1484
1862
|
file: string;
|
|
@@ -1486,7 +1864,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1486
1864
|
url: string;
|
|
1487
1865
|
type?: string | undefined;
|
|
1488
1866
|
})[] | undefined;
|
|
1489
|
-
|
|
1867
|
+
rules?: (string | {
|
|
1490
1868
|
inline: string;
|
|
1491
1869
|
} | {
|
|
1492
1870
|
file: string;
|
|
@@ -1498,6 +1876,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1498
1876
|
name: string;
|
|
1499
1877
|
id: string;
|
|
1500
1878
|
nodes: Record<string, {
|
|
1879
|
+
name: string;
|
|
1501
1880
|
instruction: string | {
|
|
1502
1881
|
inline: string;
|
|
1503
1882
|
} | {
|
|
@@ -1506,8 +1885,15 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1506
1885
|
url: string;
|
|
1507
1886
|
type?: string | undefined;
|
|
1508
1887
|
};
|
|
1509
|
-
|
|
1510
|
-
|
|
1888
|
+
retry?: {
|
|
1889
|
+
max: number;
|
|
1890
|
+
instruction?: string | {
|
|
1891
|
+
auto: true;
|
|
1892
|
+
} | {
|
|
1893
|
+
reflect: string;
|
|
1894
|
+
} | undefined;
|
|
1895
|
+
} | undefined;
|
|
1896
|
+
context?: (string | {
|
|
1511
1897
|
inline: string;
|
|
1512
1898
|
} | {
|
|
1513
1899
|
file: string;
|
|
@@ -1525,7 +1911,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1525
1911
|
})[];
|
|
1526
1912
|
only?: boolean | undefined;
|
|
1527
1913
|
} | undefined;
|
|
1528
|
-
|
|
1914
|
+
rules?: (string | {
|
|
1529
1915
|
inline: string;
|
|
1530
1916
|
} | {
|
|
1531
1917
|
file: string;
|
|
@@ -1543,8 +1929,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1543
1929
|
})[];
|
|
1544
1930
|
only?: boolean | undefined;
|
|
1545
1931
|
} | undefined;
|
|
1546
|
-
output?: Record<string, unknown> | undefined;
|
|
1547
1932
|
skills?: string[] | undefined;
|
|
1933
|
+
output?: Record<string, unknown> | undefined;
|
|
1548
1934
|
max_turns?: number | undefined;
|
|
1549
1935
|
verify?: {
|
|
1550
1936
|
any_tool_called?: string[] | undefined;
|
|
@@ -1558,15 +1944,25 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1558
1944
|
matches?: string | undefined;
|
|
1559
1945
|
}[] | undefined;
|
|
1560
1946
|
} | undefined;
|
|
1947
|
+
requires?: {
|
|
1948
|
+
output_required?: string[] | undefined;
|
|
1949
|
+
output_matches?: {
|
|
1950
|
+
path: string;
|
|
1951
|
+
equals?: unknown;
|
|
1952
|
+
in?: unknown[] | undefined;
|
|
1953
|
+
matches?: string | undefined;
|
|
1954
|
+
}[] | undefined;
|
|
1955
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1956
|
+
} | undefined;
|
|
1561
1957
|
}>;
|
|
1562
1958
|
edges: {
|
|
1563
|
-
to: string;
|
|
1564
1959
|
from: string;
|
|
1960
|
+
to: string;
|
|
1565
1961
|
when?: string | undefined;
|
|
1566
1962
|
max_iterations?: number | undefined;
|
|
1567
1963
|
}[];
|
|
1568
1964
|
entry: string;
|
|
1569
|
-
|
|
1965
|
+
context?: (string | {
|
|
1570
1966
|
inline: string;
|
|
1571
1967
|
} | {
|
|
1572
1968
|
file: string;
|
|
@@ -1574,7 +1970,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1574
1970
|
url: string;
|
|
1575
1971
|
type?: string | undefined;
|
|
1576
1972
|
})[] | undefined;
|
|
1577
|
-
|
|
1973
|
+
rules?: (string | {
|
|
1578
1974
|
inline: string;
|
|
1579
1975
|
} | {
|
|
1580
1976
|
file: string;
|
|
@@ -1584,8 +1980,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1584
1980
|
})[] | undefined;
|
|
1585
1981
|
description?: string | undefined;
|
|
1586
1982
|
skills?: Record<string, {
|
|
1587
|
-
instruction?: string | undefined;
|
|
1588
1983
|
name?: string | undefined;
|
|
1984
|
+
instruction?: string | undefined;
|
|
1589
1985
|
description?: string | undefined;
|
|
1590
1986
|
mcp?: {
|
|
1591
1987
|
url?: string | undefined;
|
|
@@ -1603,8 +1999,8 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1603
1999
|
id: string;
|
|
1604
2000
|
description: string;
|
|
1605
2001
|
skills: Record<string, {
|
|
1606
|
-
instruction?: string | undefined;
|
|
1607
2002
|
name?: string | undefined;
|
|
2003
|
+
instruction?: string | undefined;
|
|
1608
2004
|
description?: string | undefined;
|
|
1609
2005
|
mcp?: {
|
|
1610
2006
|
url?: string | undefined;
|
|
@@ -1616,6 +2012,7 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1616
2012
|
} | undefined;
|
|
1617
2013
|
}>;
|
|
1618
2014
|
nodes: Record<string, {
|
|
2015
|
+
name: string;
|
|
1619
2016
|
instruction: string | {
|
|
1620
2017
|
inline: string;
|
|
1621
2018
|
} | {
|
|
@@ -1624,9 +2021,16 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1624
2021
|
url: string;
|
|
1625
2022
|
type?: string | undefined;
|
|
1626
2023
|
};
|
|
1627
|
-
name: string;
|
|
1628
2024
|
skills: string[];
|
|
1629
|
-
|
|
2025
|
+
retry?: {
|
|
2026
|
+
max: number;
|
|
2027
|
+
instruction?: string | {
|
|
2028
|
+
auto: true;
|
|
2029
|
+
} | {
|
|
2030
|
+
reflect: string;
|
|
2031
|
+
} | undefined;
|
|
2032
|
+
} | undefined;
|
|
2033
|
+
context?: (string | {
|
|
1630
2034
|
inline: string;
|
|
1631
2035
|
} | {
|
|
1632
2036
|
file: string;
|
|
@@ -1644,7 +2048,7 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1644
2048
|
})[];
|
|
1645
2049
|
only?: boolean | undefined;
|
|
1646
2050
|
} | undefined;
|
|
1647
|
-
|
|
2051
|
+
rules?: (string | {
|
|
1648
2052
|
inline: string;
|
|
1649
2053
|
} | {
|
|
1650
2054
|
file: string;
|
|
@@ -1676,15 +2080,25 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1676
2080
|
matches?: string | undefined;
|
|
1677
2081
|
}[] | undefined;
|
|
1678
2082
|
} | undefined;
|
|
2083
|
+
requires?: {
|
|
2084
|
+
output_required?: string[] | undefined;
|
|
2085
|
+
output_matches?: {
|
|
2086
|
+
path: string;
|
|
2087
|
+
equals?: unknown;
|
|
2088
|
+
in?: unknown[] | undefined;
|
|
2089
|
+
matches?: string | undefined;
|
|
2090
|
+
}[] | undefined;
|
|
2091
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
2092
|
+
} | undefined;
|
|
1679
2093
|
}>;
|
|
1680
2094
|
edges: {
|
|
1681
|
-
to: string;
|
|
1682
2095
|
from: string;
|
|
2096
|
+
to: string;
|
|
1683
2097
|
when?: string | undefined;
|
|
1684
2098
|
max_iterations?: number | undefined;
|
|
1685
2099
|
}[];
|
|
1686
2100
|
entry: string;
|
|
1687
|
-
|
|
2101
|
+
context?: (string | {
|
|
1688
2102
|
inline: string;
|
|
1689
2103
|
} | {
|
|
1690
2104
|
file: string;
|
|
@@ -1692,7 +2106,7 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1692
2106
|
url: string;
|
|
1693
2107
|
type?: string | undefined;
|
|
1694
2108
|
})[] | undefined;
|
|
1695
|
-
|
|
2109
|
+
rules?: (string | {
|
|
1696
2110
|
inline: string;
|
|
1697
2111
|
} | {
|
|
1698
2112
|
file: string;
|
|
@@ -1863,6 +2277,147 @@ export declare const workflowJsonSchema: {
|
|
|
1863
2277
|
readonly $ref: "#/$defs/NodeSources";
|
|
1864
2278
|
readonly description: "Per-node context. Additive by default; set { only: true } to block cascade.";
|
|
1865
2279
|
};
|
|
2280
|
+
readonly verify: {
|
|
2281
|
+
readonly type: "object";
|
|
2282
|
+
readonly description: "Machine-checked post-conditions evaluated after the LLM finishes.";
|
|
2283
|
+
readonly additionalProperties: false;
|
|
2284
|
+
readonly properties: {
|
|
2285
|
+
readonly any_tool_called: {
|
|
2286
|
+
readonly type: "array";
|
|
2287
|
+
readonly items: {
|
|
2288
|
+
readonly type: "string";
|
|
2289
|
+
readonly minLength: 1;
|
|
2290
|
+
};
|
|
2291
|
+
readonly minItems: 1;
|
|
2292
|
+
};
|
|
2293
|
+
readonly all_tools_called: {
|
|
2294
|
+
readonly type: "array";
|
|
2295
|
+
readonly items: {
|
|
2296
|
+
readonly type: "string";
|
|
2297
|
+
readonly minLength: 1;
|
|
2298
|
+
};
|
|
2299
|
+
readonly minItems: 1;
|
|
2300
|
+
};
|
|
2301
|
+
readonly no_tool_called: {
|
|
2302
|
+
readonly type: "array";
|
|
2303
|
+
readonly items: {
|
|
2304
|
+
readonly type: "string";
|
|
2305
|
+
readonly minLength: 1;
|
|
2306
|
+
};
|
|
2307
|
+
readonly minItems: 1;
|
|
2308
|
+
};
|
|
2309
|
+
readonly output_required: {
|
|
2310
|
+
readonly type: "array";
|
|
2311
|
+
readonly items: {
|
|
2312
|
+
readonly type: "string";
|
|
2313
|
+
readonly minLength: 1;
|
|
2314
|
+
};
|
|
2315
|
+
readonly minItems: 1;
|
|
2316
|
+
};
|
|
2317
|
+
readonly output_matches: {
|
|
2318
|
+
readonly type: "array";
|
|
2319
|
+
readonly items: {
|
|
2320
|
+
readonly type: "object";
|
|
2321
|
+
readonly required: readonly ["path"];
|
|
2322
|
+
readonly additionalProperties: false;
|
|
2323
|
+
readonly properties: {
|
|
2324
|
+
readonly path: {
|
|
2325
|
+
readonly type: "string";
|
|
2326
|
+
readonly minLength: 1;
|
|
2327
|
+
};
|
|
2328
|
+
readonly equals: {};
|
|
2329
|
+
readonly in: {
|
|
2330
|
+
readonly type: "array";
|
|
2331
|
+
};
|
|
2332
|
+
readonly matches: {
|
|
2333
|
+
readonly type: "string";
|
|
2334
|
+
readonly minLength: 1;
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
readonly minItems: 1;
|
|
2339
|
+
};
|
|
2340
|
+
};
|
|
2341
|
+
};
|
|
2342
|
+
readonly requires: {
|
|
2343
|
+
readonly type: "object";
|
|
2344
|
+
readonly description: "Pre-condition checks evaluated before the LLM runs.";
|
|
2345
|
+
readonly additionalProperties: false;
|
|
2346
|
+
readonly properties: {
|
|
2347
|
+
readonly output_required: {
|
|
2348
|
+
readonly type: "array";
|
|
2349
|
+
readonly items: {
|
|
2350
|
+
readonly type: "string";
|
|
2351
|
+
readonly minLength: 1;
|
|
2352
|
+
};
|
|
2353
|
+
readonly minItems: 1;
|
|
2354
|
+
};
|
|
2355
|
+
readonly output_matches: {
|
|
2356
|
+
readonly type: "array";
|
|
2357
|
+
readonly items: {
|
|
2358
|
+
readonly type: "object";
|
|
2359
|
+
readonly required: readonly ["path"];
|
|
2360
|
+
readonly additionalProperties: false;
|
|
2361
|
+
readonly properties: {
|
|
2362
|
+
readonly path: {
|
|
2363
|
+
readonly type: "string";
|
|
2364
|
+
readonly minLength: 1;
|
|
2365
|
+
};
|
|
2366
|
+
readonly equals: {};
|
|
2367
|
+
readonly in: {
|
|
2368
|
+
readonly type: "array";
|
|
2369
|
+
};
|
|
2370
|
+
readonly matches: {
|
|
2371
|
+
readonly type: "string";
|
|
2372
|
+
readonly minLength: 1;
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2376
|
+
readonly minItems: 1;
|
|
2377
|
+
};
|
|
2378
|
+
readonly on_fail: {
|
|
2379
|
+
readonly type: "string";
|
|
2380
|
+
readonly enum: readonly ["fail", "skip"];
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
readonly retry: {
|
|
2385
|
+
readonly type: "object";
|
|
2386
|
+
readonly description: "Node-local retry on verify failure.";
|
|
2387
|
+
readonly required: readonly ["max"];
|
|
2388
|
+
readonly additionalProperties: false;
|
|
2389
|
+
readonly properties: {
|
|
2390
|
+
readonly max: {
|
|
2391
|
+
readonly type: "integer";
|
|
2392
|
+
readonly minimum: 1;
|
|
2393
|
+
};
|
|
2394
|
+
readonly instruction: {
|
|
2395
|
+
readonly oneOf: readonly [{
|
|
2396
|
+
readonly type: "string";
|
|
2397
|
+
readonly minLength: 1;
|
|
2398
|
+
}, {
|
|
2399
|
+
readonly type: "object";
|
|
2400
|
+
readonly required: readonly ["auto"];
|
|
2401
|
+
readonly additionalProperties: false;
|
|
2402
|
+
readonly properties: {
|
|
2403
|
+
readonly auto: {
|
|
2404
|
+
readonly const: true;
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
}, {
|
|
2408
|
+
readonly type: "object";
|
|
2409
|
+
readonly required: readonly ["reflect"];
|
|
2410
|
+
readonly additionalProperties: false;
|
|
2411
|
+
readonly properties: {
|
|
2412
|
+
readonly reflect: {
|
|
2413
|
+
readonly type: "string";
|
|
2414
|
+
readonly minLength: 1;
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
}];
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
1866
2421
|
};
|
|
1867
2422
|
};
|
|
1868
2423
|
};
|