@sweny-ai/core 0.1.77 → 0.1.79
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/browser.d.ts +11 -5
- package/dist/browser.js +11 -11
- package/dist/claude.d.ts +16 -0
- package/dist/claude.js +98 -9
- package/dist/cli/config.d.ts +22 -0
- package/dist/cli/config.js +56 -9
- package/dist/cli/main.d.ts +1 -1
- package/dist/cli/main.js +56 -57
- package/dist/cli/marketplace.js +35 -9
- package/dist/cli/publish.d.ts +10 -0
- package/dist/cli/publish.js +22 -14
- package/dist/loader.d.ts +40 -0
- package/dist/loader.js +73 -0
- package/dist/mcp-catalog.d.ts +47 -0
- package/dist/mcp-catalog.js +304 -0
- package/dist/mcp.d.ts +6 -9
- package/dist/mcp.js +24 -314
- package/dist/schema.d.ts +183 -151
- package/dist/schema.js +49 -7
- package/dist/skills/custom-loader.d.ts +40 -0
- package/dist/skills/custom-loader.js +107 -32
- package/dist/skills/index.d.ts +13 -1
- package/dist/skills/index.js +12 -3
- package/dist/studio.js +4 -1
- package/dist/templates.d.ts +29 -8
- package/dist/templates.js +30 -20
- package/dist/types.d.ts +12 -0
- package/dist/verify.js +96 -7
- package/package.json +8 -4
- package/dist/__tests__/cascade.test.d.ts +0 -11
- package/dist/__tests__/cascade.test.js +0 -452
- package/dist/__tests__/claude.test.d.ts +0 -1
- package/dist/__tests__/claude.test.js +0 -427
- package/dist/__tests__/custom-loader.test.d.ts +0 -1
- package/dist/__tests__/custom-loader.test.js +0 -116
- package/dist/__tests__/executor.test.d.ts +0 -1
- package/dist/__tests__/executor.test.js +0 -1635
- package/dist/__tests__/integration/datadog.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/datadog.integration.test.js +0 -23
- package/dist/__tests__/integration/e2e-workflow.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/e2e-workflow.integration.test.js +0 -75
- package/dist/__tests__/integration/github.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/github.integration.test.js +0 -37
- package/dist/__tests__/integration/harness.d.ts +0 -24
- package/dist/__tests__/integration/harness.js +0 -34
- package/dist/__tests__/integration/linear.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/linear.integration.test.js +0 -15
- package/dist/__tests__/integration/sentry.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/sentry.integration.test.js +0 -20
- package/dist/__tests__/integration/slack.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/slack.integration.test.js +0 -22
- package/dist/__tests__/integration/sources.integration.test.d.ts +0 -1
- package/dist/__tests__/integration/sources.integration.test.js +0 -123
- package/dist/__tests__/publish.test.d.ts +0 -1
- package/dist/__tests__/publish.test.js +0 -180
- package/dist/__tests__/requires.test.d.ts +0 -1
- package/dist/__tests__/requires.test.js +0 -82
- package/dist/__tests__/retry.test.d.ts +0 -1
- package/dist/__tests__/retry.test.js +0 -213
- package/dist/__tests__/schema.test.d.ts +0 -1
- package/dist/__tests__/schema.test.js +0 -600
- package/dist/__tests__/skill-config-integration.test.d.ts +0 -1
- package/dist/__tests__/skill-config-integration.test.js +0 -204
- package/dist/__tests__/skills-index.test.d.ts +0 -1
- package/dist/__tests__/skills-index.test.js +0 -119
- package/dist/__tests__/skills.test.d.ts +0 -1
- package/dist/__tests__/skills.test.js +0 -565
- package/dist/__tests__/spec-conformance.test.d.ts +0 -18
- package/dist/__tests__/spec-conformance.test.js +0 -1084
- package/dist/__tests__/studio.test.d.ts +0 -1
- package/dist/__tests__/studio.test.js +0 -403
- package/dist/__tests__/templates.test.d.ts +0 -1
- package/dist/__tests__/templates.test.js +0 -49
- package/dist/__tests__/testing.test.d.ts +0 -1
- package/dist/__tests__/testing.test.js +0 -242
- package/dist/__tests__/verify.test.d.ts +0 -1
- package/dist/__tests__/verify.test.js +0 -517
- package/dist/__tests__/version-consistency.test.d.ts +0 -1
- package/dist/__tests__/version-consistency.test.js +0 -312
- package/dist/__tests__/workflow-builder.test.d.ts +0 -1
- package/dist/__tests__/workflow-builder.test.js +0 -110
- package/dist/__tests__/workflow-yaml.test.d.ts +0 -1
- package/dist/__tests__/workflow-yaml.test.js +0 -201
- package/dist/cli/__tests__/diagram.test.d.ts +0 -1
- package/dist/cli/__tests__/diagram.test.js +0 -225
- package/dist/cli/__tests__/report-cloud.test.d.ts +0 -1
- package/dist/cli/__tests__/report-cloud.test.js +0 -165
- package/dist/cli/__tests__/upgrade.test.d.ts +0 -1
- package/dist/cli/__tests__/upgrade.test.js +0 -317
- package/dist/cli/__tests__/version-check.test.d.ts +0 -1
- package/dist/cli/__tests__/version-check.test.js +0 -209
- package/dist/cli/config.test.d.ts +0 -1
- package/dist/cli/config.test.js +0 -200
- package/dist/cli/credentials.test.d.ts +0 -1
- package/dist/cli/credentials.test.js +0 -172
- package/dist/cli/e2e.test.d.ts +0 -1
- package/dist/cli/e2e.test.js +0 -690
- package/dist/cli/marketplace.test.d.ts +0 -1
- package/dist/cli/marketplace.test.js +0 -355
- package/dist/cli/new.test.d.ts +0 -1
- package/dist/cli/new.test.js +0 -1043
- package/dist/cli/output.test.d.ts +0 -1
- package/dist/cli/output.test.js +0 -180
- package/dist/cli/publish.test.d.ts +0 -1
- package/dist/cli/publish.test.js +0 -610
- package/dist/cli/renderer.test.d.ts +0 -1
- package/dist/cli/renderer.test.js +0 -302
- package/dist/executor.test.d.ts +0 -1
- package/dist/executor.test.js +0 -618
- package/dist/mcp.test.d.ts +0 -1
- package/dist/mcp.test.js +0 -735
- package/dist/mermaid.test.d.ts +0 -1
- package/dist/mermaid.test.js +0 -256
- package/dist/sources.test.d.ts +0 -1
- package/dist/sources.test.js +0 -265
- package/dist/sources.validation.test.d.ts +0 -12
- package/dist/sources.validation.test.js +0 -380
- package/dist/workflow-builder.test.d.ts +0 -1
- package/dist/workflow-builder.test.js +0 -123
package/dist/schema.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare const mcpServerConfigZ: z.ZodEffects<z.ZodObject<{
|
|
|
50
50
|
url: z.ZodOptional<z.ZodString>;
|
|
51
51
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52
52
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
|
-
}, "
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
54
|
url?: string | undefined;
|
|
55
55
|
type?: "stdio" | "http" | undefined;
|
|
56
56
|
headers?: Record<string, string> | undefined;
|
|
@@ -90,7 +90,7 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
90
90
|
url: z.ZodOptional<z.ZodString>;
|
|
91
91
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
92
92
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
93
|
-
}, "
|
|
93
|
+
}, "strict", z.ZodTypeAny, {
|
|
94
94
|
url?: string | undefined;
|
|
95
95
|
type?: "stdio" | "http" | undefined;
|
|
96
96
|
headers?: Record<string, string> | undefined;
|
|
@@ -119,10 +119,10 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
119
119
|
command?: string | undefined;
|
|
120
120
|
args?: string[] | undefined;
|
|
121
121
|
}>>;
|
|
122
|
-
}, "
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
123
|
name?: string | undefined;
|
|
124
|
-
instruction?: string | undefined;
|
|
125
124
|
description?: string | undefined;
|
|
125
|
+
instruction?: string | undefined;
|
|
126
126
|
mcp?: {
|
|
127
127
|
url?: string | undefined;
|
|
128
128
|
type?: "stdio" | "http" | undefined;
|
|
@@ -133,8 +133,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
133
133
|
} | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
name?: string | undefined;
|
|
136
|
-
instruction?: string | undefined;
|
|
137
136
|
description?: string | undefined;
|
|
137
|
+
instruction?: string | undefined;
|
|
138
138
|
mcp?: {
|
|
139
139
|
url?: string | undefined;
|
|
140
140
|
type?: "stdio" | "http" | undefined;
|
|
@@ -145,8 +145,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
145
145
|
} | undefined;
|
|
146
146
|
}>, {
|
|
147
147
|
name?: string | undefined;
|
|
148
|
-
instruction?: string | undefined;
|
|
149
148
|
description?: string | undefined;
|
|
149
|
+
instruction?: string | undefined;
|
|
150
150
|
mcp?: {
|
|
151
151
|
url?: string | undefined;
|
|
152
152
|
type?: "stdio" | "http" | undefined;
|
|
@@ -157,8 +157,8 @@ export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
|
|
|
157
157
|
} | undefined;
|
|
158
158
|
}, {
|
|
159
159
|
name?: string | undefined;
|
|
160
|
-
instruction?: string | undefined;
|
|
161
160
|
description?: string | undefined;
|
|
161
|
+
instruction?: string | undefined;
|
|
162
162
|
mcp?: {
|
|
163
163
|
url?: string | undefined;
|
|
164
164
|
type?: "stdio" | "http" | undefined;
|
|
@@ -207,7 +207,7 @@ export declare const skillZ: z.ZodEffects<z.ZodObject<{
|
|
|
207
207
|
url: z.ZodOptional<z.ZodString>;
|
|
208
208
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
209
209
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
210
|
-
}, "
|
|
210
|
+
}, "strict", z.ZodTypeAny, {
|
|
211
211
|
url?: string | undefined;
|
|
212
212
|
type?: "stdio" | "http" | undefined;
|
|
213
213
|
headers?: Record<string, string> | undefined;
|
|
@@ -237,8 +237,8 @@ export declare const skillZ: z.ZodEffects<z.ZodObject<{
|
|
|
237
237
|
args?: string[] | undefined;
|
|
238
238
|
}>>;
|
|
239
239
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
name: string;
|
|
241
240
|
id: string;
|
|
241
|
+
name: string;
|
|
242
242
|
description: string;
|
|
243
243
|
category: "git" | "observability" | "tasks" | "notification" | "general";
|
|
244
244
|
config: Record<string, {
|
|
@@ -261,8 +261,8 @@ export declare const skillZ: z.ZodEffects<z.ZodObject<{
|
|
|
261
261
|
args?: string[] | undefined;
|
|
262
262
|
} | undefined;
|
|
263
263
|
}, {
|
|
264
|
-
name: string;
|
|
265
264
|
id: string;
|
|
265
|
+
name: string;
|
|
266
266
|
description: string;
|
|
267
267
|
category: "git" | "observability" | "tasks" | "notification" | "general";
|
|
268
268
|
instruction?: string | undefined;
|
|
@@ -285,8 +285,8 @@ export declare const skillZ: z.ZodEffects<z.ZodObject<{
|
|
|
285
285
|
input_schema: Record<string, unknown>;
|
|
286
286
|
}[] | undefined;
|
|
287
287
|
}>, {
|
|
288
|
-
name: string;
|
|
289
288
|
id: string;
|
|
289
|
+
name: string;
|
|
290
290
|
description: string;
|
|
291
291
|
category: "git" | "observability" | "tasks" | "notification" | "general";
|
|
292
292
|
config: Record<string, {
|
|
@@ -309,8 +309,8 @@ export declare const skillZ: z.ZodEffects<z.ZodObject<{
|
|
|
309
309
|
args?: string[] | undefined;
|
|
310
310
|
} | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
name: string;
|
|
313
312
|
id: string;
|
|
313
|
+
name: string;
|
|
314
314
|
description: string;
|
|
315
315
|
category: "git" | "observability" | "tasks" | "notification" | "general";
|
|
316
316
|
instruction?: string | undefined;
|
|
@@ -409,7 +409,7 @@ export declare const outputMatchZ: z.ZodEffects<z.ZodObject<{
|
|
|
409
409
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
410
410
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
411
411
|
matches: z.ZodOptional<z.ZodString>;
|
|
412
|
-
}, "
|
|
412
|
+
}, "strict", z.ZodTypeAny, {
|
|
413
413
|
path: string;
|
|
414
414
|
equals?: unknown;
|
|
415
415
|
in?: unknown[] | undefined;
|
|
@@ -440,7 +440,7 @@ export declare const nodeVerifyZ: z.ZodEffects<z.ZodObject<{
|
|
|
440
440
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
441
441
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
442
442
|
matches: z.ZodOptional<z.ZodString>;
|
|
443
|
-
}, "
|
|
443
|
+
}, "strict", z.ZodTypeAny, {
|
|
444
444
|
path: string;
|
|
445
445
|
equals?: unknown;
|
|
446
446
|
in?: unknown[] | undefined;
|
|
@@ -461,7 +461,7 @@ export declare const nodeVerifyZ: z.ZodEffects<z.ZodObject<{
|
|
|
461
461
|
in?: unknown[] | undefined;
|
|
462
462
|
matches?: string | undefined;
|
|
463
463
|
}>, "many">>;
|
|
464
|
-
}, "
|
|
464
|
+
}, "strict", z.ZodTypeAny, {
|
|
465
465
|
any_tool_called?: string[] | undefined;
|
|
466
466
|
all_tools_called?: string[] | undefined;
|
|
467
467
|
no_tool_called?: string[] | undefined;
|
|
@@ -513,7 +513,7 @@ export declare const nodeRequiresZ: z.ZodEffects<z.ZodObject<{
|
|
|
513
513
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
514
514
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
515
515
|
matches: z.ZodOptional<z.ZodString>;
|
|
516
|
-
}, "
|
|
516
|
+
}, "strict", z.ZodTypeAny, {
|
|
517
517
|
path: string;
|
|
518
518
|
equals?: unknown;
|
|
519
519
|
in?: unknown[] | undefined;
|
|
@@ -535,7 +535,7 @@ export declare const nodeRequiresZ: z.ZodEffects<z.ZodObject<{
|
|
|
535
535
|
matches?: string | undefined;
|
|
536
536
|
}>, "many">>;
|
|
537
537
|
on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
|
|
538
|
-
}, "
|
|
538
|
+
}, "strict", z.ZodTypeAny, {
|
|
539
539
|
output_required?: string[] | undefined;
|
|
540
540
|
output_matches?: {
|
|
541
541
|
path: string;
|
|
@@ -587,7 +587,7 @@ export declare const nodeRetryZ: z.ZodObject<{
|
|
|
587
587
|
}, {
|
|
588
588
|
reflect: string;
|
|
589
589
|
}>]>>;
|
|
590
|
-
}, "
|
|
590
|
+
}, "strict", z.ZodTypeAny, {
|
|
591
591
|
max: number;
|
|
592
592
|
instruction?: string | {
|
|
593
593
|
auto: true;
|
|
@@ -771,7 +771,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
771
771
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
772
772
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
773
773
|
matches: z.ZodOptional<z.ZodString>;
|
|
774
|
-
}, "
|
|
774
|
+
}, "strict", z.ZodTypeAny, {
|
|
775
775
|
path: string;
|
|
776
776
|
equals?: unknown;
|
|
777
777
|
in?: unknown[] | undefined;
|
|
@@ -792,7 +792,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
792
792
|
in?: unknown[] | undefined;
|
|
793
793
|
matches?: string | undefined;
|
|
794
794
|
}>, "many">>;
|
|
795
|
-
}, "
|
|
795
|
+
}, "strict", z.ZodTypeAny, {
|
|
796
796
|
any_tool_called?: string[] | undefined;
|
|
797
797
|
all_tools_called?: string[] | undefined;
|
|
798
798
|
no_tool_called?: string[] | undefined;
|
|
@@ -844,7 +844,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
844
844
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
845
845
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
846
846
|
matches: z.ZodOptional<z.ZodString>;
|
|
847
|
-
}, "
|
|
847
|
+
}, "strict", z.ZodTypeAny, {
|
|
848
848
|
path: string;
|
|
849
849
|
equals?: unknown;
|
|
850
850
|
in?: unknown[] | undefined;
|
|
@@ -866,7 +866,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
866
866
|
matches?: string | undefined;
|
|
867
867
|
}>, "many">>;
|
|
868
868
|
on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
|
|
869
|
-
}, "
|
|
869
|
+
}, "strict", z.ZodTypeAny, {
|
|
870
870
|
output_required?: string[] | undefined;
|
|
871
871
|
output_matches?: {
|
|
872
872
|
path: string;
|
|
@@ -918,7 +918,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
918
918
|
}, {
|
|
919
919
|
reflect: string;
|
|
920
920
|
}>]>>;
|
|
921
|
-
}, "
|
|
921
|
+
}, "strict", z.ZodTypeAny, {
|
|
922
922
|
max: number;
|
|
923
923
|
instruction?: string | {
|
|
924
924
|
auto: true;
|
|
@@ -933,7 +933,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
933
933
|
reflect: string;
|
|
934
934
|
} | undefined;
|
|
935
935
|
}>>;
|
|
936
|
-
}, "
|
|
936
|
+
}, "strict", z.ZodTypeAny, {
|
|
937
937
|
name: string;
|
|
938
938
|
instruction: string | {
|
|
939
939
|
inline: string;
|
|
@@ -944,15 +944,9 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
944
944
|
type?: string | undefined;
|
|
945
945
|
};
|
|
946
946
|
skills: string[];
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
auto: true;
|
|
951
|
-
} | {
|
|
952
|
-
reflect: string;
|
|
953
|
-
} | undefined;
|
|
954
|
-
} | undefined;
|
|
955
|
-
context?: (string | {
|
|
947
|
+
output?: Record<string, unknown> | undefined;
|
|
948
|
+
max_turns?: number | undefined;
|
|
949
|
+
rules?: (string | {
|
|
956
950
|
inline: string;
|
|
957
951
|
} | {
|
|
958
952
|
file: string;
|
|
@@ -970,7 +964,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
970
964
|
})[];
|
|
971
965
|
only?: boolean | undefined;
|
|
972
966
|
} | undefined;
|
|
973
|
-
|
|
967
|
+
context?: (string | {
|
|
974
968
|
inline: string;
|
|
975
969
|
} | {
|
|
976
970
|
file: string;
|
|
@@ -988,8 +982,6 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
988
982
|
})[];
|
|
989
983
|
only?: boolean | undefined;
|
|
990
984
|
} | undefined;
|
|
991
|
-
output?: Record<string, unknown> | undefined;
|
|
992
|
-
max_turns?: number | undefined;
|
|
993
985
|
verify?: {
|
|
994
986
|
any_tool_called?: string[] | undefined;
|
|
995
987
|
all_tools_called?: string[] | undefined;
|
|
@@ -1012,6 +1004,14 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
1012
1004
|
}[] | undefined;
|
|
1013
1005
|
on_fail?: "fail" | "skip" | undefined;
|
|
1014
1006
|
} | undefined;
|
|
1007
|
+
retry?: {
|
|
1008
|
+
max: number;
|
|
1009
|
+
instruction?: string | {
|
|
1010
|
+
auto: true;
|
|
1011
|
+
} | {
|
|
1012
|
+
reflect: string;
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
} | undefined;
|
|
1015
1015
|
}, {
|
|
1016
1016
|
name: string;
|
|
1017
1017
|
instruction: string | {
|
|
@@ -1022,15 +1022,10 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
1022
1022
|
url: string;
|
|
1023
1023
|
type?: string | undefined;
|
|
1024
1024
|
};
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
} | {
|
|
1030
|
-
reflect: string;
|
|
1031
|
-
} | undefined;
|
|
1032
|
-
} | undefined;
|
|
1033
|
-
context?: (string | {
|
|
1025
|
+
skills?: string[] | undefined;
|
|
1026
|
+
output?: Record<string, unknown> | undefined;
|
|
1027
|
+
max_turns?: number | undefined;
|
|
1028
|
+
rules?: (string | {
|
|
1034
1029
|
inline: string;
|
|
1035
1030
|
} | {
|
|
1036
1031
|
file: string;
|
|
@@ -1048,7 +1043,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
1048
1043
|
})[];
|
|
1049
1044
|
only?: boolean | undefined;
|
|
1050
1045
|
} | undefined;
|
|
1051
|
-
|
|
1046
|
+
context?: (string | {
|
|
1052
1047
|
inline: string;
|
|
1053
1048
|
} | {
|
|
1054
1049
|
file: string;
|
|
@@ -1066,9 +1061,6 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
1066
1061
|
})[];
|
|
1067
1062
|
only?: boolean | undefined;
|
|
1068
1063
|
} | undefined;
|
|
1069
|
-
skills?: string[] | undefined;
|
|
1070
|
-
output?: Record<string, unknown> | undefined;
|
|
1071
|
-
max_turns?: number | undefined;
|
|
1072
1064
|
verify?: {
|
|
1073
1065
|
any_tool_called?: string[] | undefined;
|
|
1074
1066
|
all_tools_called?: string[] | undefined;
|
|
@@ -1091,13 +1083,21 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
1091
1083
|
}[] | undefined;
|
|
1092
1084
|
on_fail?: "fail" | "skip" | undefined;
|
|
1093
1085
|
} | undefined;
|
|
1086
|
+
retry?: {
|
|
1087
|
+
max: number;
|
|
1088
|
+
instruction?: string | {
|
|
1089
|
+
auto: true;
|
|
1090
|
+
} | {
|
|
1091
|
+
reflect: string;
|
|
1092
|
+
} | undefined;
|
|
1093
|
+
} | undefined;
|
|
1094
1094
|
}>;
|
|
1095
1095
|
export declare const edgeZ: z.ZodObject<{
|
|
1096
1096
|
from: z.ZodString;
|
|
1097
1097
|
to: z.ZodString;
|
|
1098
1098
|
when: z.ZodOptional<z.ZodString>;
|
|
1099
1099
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
-
}, "
|
|
1100
|
+
}, "strict", z.ZodTypeAny, {
|
|
1101
1101
|
from: string;
|
|
1102
1102
|
to: string;
|
|
1103
1103
|
when?: string | undefined;
|
|
@@ -1281,7 +1281,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1281
1281
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1282
1282
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1283
1283
|
matches: z.ZodOptional<z.ZodString>;
|
|
1284
|
-
}, "
|
|
1284
|
+
}, "strict", z.ZodTypeAny, {
|
|
1285
1285
|
path: string;
|
|
1286
1286
|
equals?: unknown;
|
|
1287
1287
|
in?: unknown[] | undefined;
|
|
@@ -1302,7 +1302,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1302
1302
|
in?: unknown[] | undefined;
|
|
1303
1303
|
matches?: string | undefined;
|
|
1304
1304
|
}>, "many">>;
|
|
1305
|
-
}, "
|
|
1305
|
+
}, "strict", z.ZodTypeAny, {
|
|
1306
1306
|
any_tool_called?: string[] | undefined;
|
|
1307
1307
|
all_tools_called?: string[] | undefined;
|
|
1308
1308
|
no_tool_called?: string[] | undefined;
|
|
@@ -1354,7 +1354,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1354
1354
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1355
1355
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1356
1356
|
matches: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
}, "
|
|
1357
|
+
}, "strict", z.ZodTypeAny, {
|
|
1358
1358
|
path: string;
|
|
1359
1359
|
equals?: unknown;
|
|
1360
1360
|
in?: unknown[] | undefined;
|
|
@@ -1376,7 +1376,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1376
1376
|
matches?: string | undefined;
|
|
1377
1377
|
}>, "many">>;
|
|
1378
1378
|
on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
|
|
1379
|
-
}, "
|
|
1379
|
+
}, "strict", z.ZodTypeAny, {
|
|
1380
1380
|
output_required?: string[] | undefined;
|
|
1381
1381
|
output_matches?: {
|
|
1382
1382
|
path: string;
|
|
@@ -1428,7 +1428,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1428
1428
|
}, {
|
|
1429
1429
|
reflect: string;
|
|
1430
1430
|
}>]>>;
|
|
1431
|
-
}, "
|
|
1431
|
+
}, "strict", z.ZodTypeAny, {
|
|
1432
1432
|
max: number;
|
|
1433
1433
|
instruction?: string | {
|
|
1434
1434
|
auto: true;
|
|
@@ -1443,7 +1443,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1443
1443
|
reflect: string;
|
|
1444
1444
|
} | undefined;
|
|
1445
1445
|
}>>;
|
|
1446
|
-
}, "
|
|
1446
|
+
}, "strict", z.ZodTypeAny, {
|
|
1447
1447
|
name: string;
|
|
1448
1448
|
instruction: string | {
|
|
1449
1449
|
inline: string;
|
|
@@ -1454,15 +1454,9 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1454
1454
|
type?: string | undefined;
|
|
1455
1455
|
};
|
|
1456
1456
|
skills: string[];
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
auto: true;
|
|
1461
|
-
} | {
|
|
1462
|
-
reflect: string;
|
|
1463
|
-
} | undefined;
|
|
1464
|
-
} | undefined;
|
|
1465
|
-
context?: (string | {
|
|
1457
|
+
output?: Record<string, unknown> | undefined;
|
|
1458
|
+
max_turns?: number | undefined;
|
|
1459
|
+
rules?: (string | {
|
|
1466
1460
|
inline: string;
|
|
1467
1461
|
} | {
|
|
1468
1462
|
file: string;
|
|
@@ -1480,7 +1474,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1480
1474
|
})[];
|
|
1481
1475
|
only?: boolean | undefined;
|
|
1482
1476
|
} | undefined;
|
|
1483
|
-
|
|
1477
|
+
context?: (string | {
|
|
1484
1478
|
inline: string;
|
|
1485
1479
|
} | {
|
|
1486
1480
|
file: string;
|
|
@@ -1498,8 +1492,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1498
1492
|
})[];
|
|
1499
1493
|
only?: boolean | undefined;
|
|
1500
1494
|
} | undefined;
|
|
1501
|
-
output?: Record<string, unknown> | undefined;
|
|
1502
|
-
max_turns?: number | undefined;
|
|
1503
1495
|
verify?: {
|
|
1504
1496
|
any_tool_called?: string[] | undefined;
|
|
1505
1497
|
all_tools_called?: string[] | undefined;
|
|
@@ -1522,6 +1514,14 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1522
1514
|
}[] | undefined;
|
|
1523
1515
|
on_fail?: "fail" | "skip" | undefined;
|
|
1524
1516
|
} | undefined;
|
|
1517
|
+
retry?: {
|
|
1518
|
+
max: number;
|
|
1519
|
+
instruction?: string | {
|
|
1520
|
+
auto: true;
|
|
1521
|
+
} | {
|
|
1522
|
+
reflect: string;
|
|
1523
|
+
} | undefined;
|
|
1524
|
+
} | undefined;
|
|
1525
1525
|
}, {
|
|
1526
1526
|
name: string;
|
|
1527
1527
|
instruction: string | {
|
|
@@ -1532,15 +1532,10 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1532
1532
|
url: string;
|
|
1533
1533
|
type?: string | undefined;
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
} | {
|
|
1540
|
-
reflect: string;
|
|
1541
|
-
} | undefined;
|
|
1542
|
-
} | undefined;
|
|
1543
|
-
context?: (string | {
|
|
1535
|
+
skills?: string[] | undefined;
|
|
1536
|
+
output?: Record<string, unknown> | undefined;
|
|
1537
|
+
max_turns?: number | undefined;
|
|
1538
|
+
rules?: (string | {
|
|
1544
1539
|
inline: string;
|
|
1545
1540
|
} | {
|
|
1546
1541
|
file: string;
|
|
@@ -1558,7 +1553,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1558
1553
|
})[];
|
|
1559
1554
|
only?: boolean | undefined;
|
|
1560
1555
|
} | undefined;
|
|
1561
|
-
|
|
1556
|
+
context?: (string | {
|
|
1562
1557
|
inline: string;
|
|
1563
1558
|
} | {
|
|
1564
1559
|
file: string;
|
|
@@ -1576,9 +1571,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1576
1571
|
})[];
|
|
1577
1572
|
only?: boolean | undefined;
|
|
1578
1573
|
} | undefined;
|
|
1579
|
-
skills?: string[] | undefined;
|
|
1580
|
-
output?: Record<string, unknown> | undefined;
|
|
1581
|
-
max_turns?: number | undefined;
|
|
1582
1574
|
verify?: {
|
|
1583
1575
|
any_tool_called?: string[] | undefined;
|
|
1584
1576
|
all_tools_called?: string[] | undefined;
|
|
@@ -1601,13 +1593,21 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1601
1593
|
}[] | undefined;
|
|
1602
1594
|
on_fail?: "fail" | "skip" | undefined;
|
|
1603
1595
|
} | undefined;
|
|
1596
|
+
retry?: {
|
|
1597
|
+
max: number;
|
|
1598
|
+
instruction?: string | {
|
|
1599
|
+
auto: true;
|
|
1600
|
+
} | {
|
|
1601
|
+
reflect: string;
|
|
1602
|
+
} | undefined;
|
|
1603
|
+
} | undefined;
|
|
1604
1604
|
}>>;
|
|
1605
1605
|
edges: z.ZodArray<z.ZodObject<{
|
|
1606
1606
|
from: z.ZodString;
|
|
1607
1607
|
to: z.ZodString;
|
|
1608
1608
|
when: z.ZodOptional<z.ZodString>;
|
|
1609
1609
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
1610
|
-
}, "
|
|
1610
|
+
}, "strict", z.ZodTypeAny, {
|
|
1611
1611
|
from: string;
|
|
1612
1612
|
to: string;
|
|
1613
1613
|
when?: string | undefined;
|
|
@@ -1630,7 +1630,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1630
1630
|
url: z.ZodOptional<z.ZodString>;
|
|
1631
1631
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1632
1632
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1633
|
-
}, "
|
|
1633
|
+
}, "strict", z.ZodTypeAny, {
|
|
1634
1634
|
url?: string | undefined;
|
|
1635
1635
|
type?: "stdio" | "http" | undefined;
|
|
1636
1636
|
headers?: Record<string, string> | undefined;
|
|
@@ -1659,10 +1659,10 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1659
1659
|
command?: string | undefined;
|
|
1660
1660
|
args?: string[] | undefined;
|
|
1661
1661
|
}>>;
|
|
1662
|
-
}, "
|
|
1662
|
+
}, "strict", z.ZodTypeAny, {
|
|
1663
1663
|
name?: string | undefined;
|
|
1664
|
-
instruction?: string | undefined;
|
|
1665
1664
|
description?: string | undefined;
|
|
1665
|
+
instruction?: string | undefined;
|
|
1666
1666
|
mcp?: {
|
|
1667
1667
|
url?: string | undefined;
|
|
1668
1668
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1673,8 +1673,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1673
1673
|
} | undefined;
|
|
1674
1674
|
}, {
|
|
1675
1675
|
name?: string | undefined;
|
|
1676
|
-
instruction?: string | undefined;
|
|
1677
1676
|
description?: string | undefined;
|
|
1677
|
+
instruction?: string | undefined;
|
|
1678
1678
|
mcp?: {
|
|
1679
1679
|
url?: string | undefined;
|
|
1680
1680
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1685,8 +1685,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1685
1685
|
} | undefined;
|
|
1686
1686
|
}>, {
|
|
1687
1687
|
name?: string | undefined;
|
|
1688
|
-
instruction?: string | undefined;
|
|
1689
1688
|
description?: string | undefined;
|
|
1689
|
+
instruction?: string | undefined;
|
|
1690
1690
|
mcp?: {
|
|
1691
1691
|
url?: string | undefined;
|
|
1692
1692
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1697,8 +1697,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1697
1697
|
} | undefined;
|
|
1698
1698
|
}, {
|
|
1699
1699
|
name?: string | undefined;
|
|
1700
|
-
instruction?: string | undefined;
|
|
1701
1700
|
description?: string | undefined;
|
|
1701
|
+
instruction?: string | undefined;
|
|
1702
1702
|
mcp?: {
|
|
1703
1703
|
url?: string | undefined;
|
|
1704
1704
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1753,13 +1753,13 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1753
1753
|
type?: string | undefined;
|
|
1754
1754
|
}>]>, "many">>;
|
|
1755
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1756
|
-
name: string;
|
|
1757
1756
|
id: string;
|
|
1757
|
+
name: string;
|
|
1758
1758
|
description: string;
|
|
1759
1759
|
skills: Record<string, {
|
|
1760
1760
|
name?: string | undefined;
|
|
1761
|
-
instruction?: string | undefined;
|
|
1762
1761
|
description?: string | undefined;
|
|
1762
|
+
instruction?: string | undefined;
|
|
1763
1763
|
mcp?: {
|
|
1764
1764
|
url?: string | undefined;
|
|
1765
1765
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1780,15 +1780,9 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1780
1780
|
type?: string | undefined;
|
|
1781
1781
|
};
|
|
1782
1782
|
skills: string[];
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
auto: true;
|
|
1787
|
-
} | {
|
|
1788
|
-
reflect: string;
|
|
1789
|
-
} | undefined;
|
|
1790
|
-
} | undefined;
|
|
1791
|
-
context?: (string | {
|
|
1783
|
+
output?: Record<string, unknown> | undefined;
|
|
1784
|
+
max_turns?: number | undefined;
|
|
1785
|
+
rules?: (string | {
|
|
1792
1786
|
inline: string;
|
|
1793
1787
|
} | {
|
|
1794
1788
|
file: string;
|
|
@@ -1806,7 +1800,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1806
1800
|
})[];
|
|
1807
1801
|
only?: boolean | undefined;
|
|
1808
1802
|
} | undefined;
|
|
1809
|
-
|
|
1803
|
+
context?: (string | {
|
|
1810
1804
|
inline: string;
|
|
1811
1805
|
} | {
|
|
1812
1806
|
file: string;
|
|
@@ -1824,8 +1818,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1824
1818
|
})[];
|
|
1825
1819
|
only?: boolean | undefined;
|
|
1826
1820
|
} | undefined;
|
|
1827
|
-
output?: Record<string, unknown> | undefined;
|
|
1828
|
-
max_turns?: number | undefined;
|
|
1829
1821
|
verify?: {
|
|
1830
1822
|
any_tool_called?: string[] | undefined;
|
|
1831
1823
|
all_tools_called?: string[] | undefined;
|
|
@@ -1848,6 +1840,14 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1848
1840
|
}[] | undefined;
|
|
1849
1841
|
on_fail?: "fail" | "skip" | undefined;
|
|
1850
1842
|
} | undefined;
|
|
1843
|
+
retry?: {
|
|
1844
|
+
max: number;
|
|
1845
|
+
instruction?: string | {
|
|
1846
|
+
auto: true;
|
|
1847
|
+
} | {
|
|
1848
|
+
reflect: string;
|
|
1849
|
+
} | undefined;
|
|
1850
|
+
} | undefined;
|
|
1851
1851
|
}>;
|
|
1852
1852
|
edges: {
|
|
1853
1853
|
from: string;
|
|
@@ -1856,7 +1856,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1856
1856
|
max_iterations?: number | undefined;
|
|
1857
1857
|
}[];
|
|
1858
1858
|
entry: string;
|
|
1859
|
-
|
|
1859
|
+
rules?: (string | {
|
|
1860
1860
|
inline: string;
|
|
1861
1861
|
} | {
|
|
1862
1862
|
file: string;
|
|
@@ -1864,7 +1864,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1864
1864
|
url: string;
|
|
1865
1865
|
type?: string | undefined;
|
|
1866
1866
|
})[] | undefined;
|
|
1867
|
-
|
|
1867
|
+
context?: (string | {
|
|
1868
1868
|
inline: string;
|
|
1869
1869
|
} | {
|
|
1870
1870
|
file: string;
|
|
@@ -1873,8 +1873,8 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1873
1873
|
type?: string | undefined;
|
|
1874
1874
|
})[] | undefined;
|
|
1875
1875
|
}, {
|
|
1876
|
-
name: string;
|
|
1877
1876
|
id: string;
|
|
1877
|
+
name: string;
|
|
1878
1878
|
nodes: Record<string, {
|
|
1879
1879
|
name: string;
|
|
1880
1880
|
instruction: string | {
|
|
@@ -1885,15 +1885,10 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1885
1885
|
url: string;
|
|
1886
1886
|
type?: string | undefined;
|
|
1887
1887
|
};
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
} | {
|
|
1893
|
-
reflect: string;
|
|
1894
|
-
} | undefined;
|
|
1895
|
-
} | undefined;
|
|
1896
|
-
context?: (string | {
|
|
1888
|
+
skills?: string[] | undefined;
|
|
1889
|
+
output?: Record<string, unknown> | undefined;
|
|
1890
|
+
max_turns?: number | undefined;
|
|
1891
|
+
rules?: (string | {
|
|
1897
1892
|
inline: string;
|
|
1898
1893
|
} | {
|
|
1899
1894
|
file: string;
|
|
@@ -1911,7 +1906,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1911
1906
|
})[];
|
|
1912
1907
|
only?: boolean | undefined;
|
|
1913
1908
|
} | undefined;
|
|
1914
|
-
|
|
1909
|
+
context?: (string | {
|
|
1915
1910
|
inline: string;
|
|
1916
1911
|
} | {
|
|
1917
1912
|
file: string;
|
|
@@ -1929,9 +1924,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1929
1924
|
})[];
|
|
1930
1925
|
only?: boolean | undefined;
|
|
1931
1926
|
} | undefined;
|
|
1932
|
-
skills?: string[] | undefined;
|
|
1933
|
-
output?: Record<string, unknown> | undefined;
|
|
1934
|
-
max_turns?: number | undefined;
|
|
1935
1927
|
verify?: {
|
|
1936
1928
|
any_tool_called?: string[] | undefined;
|
|
1937
1929
|
all_tools_called?: string[] | undefined;
|
|
@@ -1954,6 +1946,14 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1954
1946
|
}[] | undefined;
|
|
1955
1947
|
on_fail?: "fail" | "skip" | undefined;
|
|
1956
1948
|
} | undefined;
|
|
1949
|
+
retry?: {
|
|
1950
|
+
max: number;
|
|
1951
|
+
instruction?: string | {
|
|
1952
|
+
auto: true;
|
|
1953
|
+
} | {
|
|
1954
|
+
reflect: string;
|
|
1955
|
+
} | undefined;
|
|
1956
|
+
} | undefined;
|
|
1957
1957
|
}>;
|
|
1958
1958
|
edges: {
|
|
1959
1959
|
from: string;
|
|
@@ -1962,7 +1962,21 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1962
1962
|
max_iterations?: number | undefined;
|
|
1963
1963
|
}[];
|
|
1964
1964
|
entry: string;
|
|
1965
|
-
|
|
1965
|
+
description?: string | undefined;
|
|
1966
|
+
skills?: Record<string, {
|
|
1967
|
+
name?: string | undefined;
|
|
1968
|
+
description?: string | undefined;
|
|
1969
|
+
instruction?: string | undefined;
|
|
1970
|
+
mcp?: {
|
|
1971
|
+
url?: string | undefined;
|
|
1972
|
+
type?: "stdio" | "http" | undefined;
|
|
1973
|
+
headers?: Record<string, string> | undefined;
|
|
1974
|
+
env?: Record<string, string> | undefined;
|
|
1975
|
+
command?: string | undefined;
|
|
1976
|
+
args?: string[] | undefined;
|
|
1977
|
+
} | undefined;
|
|
1978
|
+
}> | undefined;
|
|
1979
|
+
rules?: (string | {
|
|
1966
1980
|
inline: string;
|
|
1967
1981
|
} | {
|
|
1968
1982
|
file: string;
|
|
@@ -1970,7 +1984,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1970
1984
|
url: string;
|
|
1971
1985
|
type?: string | undefined;
|
|
1972
1986
|
})[] | undefined;
|
|
1973
|
-
|
|
1987
|
+
context?: (string | {
|
|
1974
1988
|
inline: string;
|
|
1975
1989
|
} | {
|
|
1976
1990
|
file: string;
|
|
@@ -1978,30 +1992,16 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1978
1992
|
url: string;
|
|
1979
1993
|
type?: string | undefined;
|
|
1980
1994
|
})[] | undefined;
|
|
1981
|
-
description?: string | undefined;
|
|
1982
|
-
skills?: Record<string, {
|
|
1983
|
-
name?: string | undefined;
|
|
1984
|
-
instruction?: string | undefined;
|
|
1985
|
-
description?: string | undefined;
|
|
1986
|
-
mcp?: {
|
|
1987
|
-
url?: string | undefined;
|
|
1988
|
-
type?: "stdio" | "http" | undefined;
|
|
1989
|
-
headers?: Record<string, string> | undefined;
|
|
1990
|
-
env?: Record<string, string> | undefined;
|
|
1991
|
-
command?: string | undefined;
|
|
1992
|
-
args?: string[] | undefined;
|
|
1993
|
-
} | undefined;
|
|
1994
|
-
}> | undefined;
|
|
1995
1995
|
}>;
|
|
1996
1996
|
/** Parse + validate a raw object as a Workflow. Throws on invalid input. */
|
|
1997
1997
|
export declare function parseWorkflow(raw: unknown): {
|
|
1998
|
-
name: string;
|
|
1999
1998
|
id: string;
|
|
1999
|
+
name: string;
|
|
2000
2000
|
description: string;
|
|
2001
2001
|
skills: Record<string, {
|
|
2002
2002
|
name?: string | undefined;
|
|
2003
|
-
instruction?: string | undefined;
|
|
2004
2003
|
description?: string | undefined;
|
|
2004
|
+
instruction?: string | undefined;
|
|
2005
2005
|
mcp?: {
|
|
2006
2006
|
url?: string | undefined;
|
|
2007
2007
|
type?: "stdio" | "http" | undefined;
|
|
@@ -2022,15 +2022,9 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
2022
2022
|
type?: string | undefined;
|
|
2023
2023
|
};
|
|
2024
2024
|
skills: string[];
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
auto: true;
|
|
2029
|
-
} | {
|
|
2030
|
-
reflect: string;
|
|
2031
|
-
} | undefined;
|
|
2032
|
-
} | undefined;
|
|
2033
|
-
context?: (string | {
|
|
2025
|
+
output?: Record<string, unknown> | undefined;
|
|
2026
|
+
max_turns?: number | undefined;
|
|
2027
|
+
rules?: (string | {
|
|
2034
2028
|
inline: string;
|
|
2035
2029
|
} | {
|
|
2036
2030
|
file: string;
|
|
@@ -2048,7 +2042,7 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
2048
2042
|
})[];
|
|
2049
2043
|
only?: boolean | undefined;
|
|
2050
2044
|
} | undefined;
|
|
2051
|
-
|
|
2045
|
+
context?: (string | {
|
|
2052
2046
|
inline: string;
|
|
2053
2047
|
} | {
|
|
2054
2048
|
file: string;
|
|
@@ -2066,8 +2060,6 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
2066
2060
|
})[];
|
|
2067
2061
|
only?: boolean | undefined;
|
|
2068
2062
|
} | undefined;
|
|
2069
|
-
output?: Record<string, unknown> | undefined;
|
|
2070
|
-
max_turns?: number | undefined;
|
|
2071
2063
|
verify?: {
|
|
2072
2064
|
any_tool_called?: string[] | undefined;
|
|
2073
2065
|
all_tools_called?: string[] | undefined;
|
|
@@ -2090,6 +2082,14 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
2090
2082
|
}[] | undefined;
|
|
2091
2083
|
on_fail?: "fail" | "skip" | undefined;
|
|
2092
2084
|
} | undefined;
|
|
2085
|
+
retry?: {
|
|
2086
|
+
max: number;
|
|
2087
|
+
instruction?: string | {
|
|
2088
|
+
auto: true;
|
|
2089
|
+
} | {
|
|
2090
|
+
reflect: string;
|
|
2091
|
+
} | undefined;
|
|
2092
|
+
} | undefined;
|
|
2093
2093
|
}>;
|
|
2094
2094
|
edges: {
|
|
2095
2095
|
from: string;
|
|
@@ -2098,7 +2098,7 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
2098
2098
|
max_iterations?: number | undefined;
|
|
2099
2099
|
}[];
|
|
2100
2100
|
entry: string;
|
|
2101
|
-
|
|
2101
|
+
rules?: (string | {
|
|
2102
2102
|
inline: string;
|
|
2103
2103
|
} | {
|
|
2104
2104
|
file: string;
|
|
@@ -2106,7 +2106,7 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
2106
2106
|
url: string;
|
|
2107
2107
|
type?: string | undefined;
|
|
2108
2108
|
})[] | undefined;
|
|
2109
|
-
|
|
2109
|
+
context?: (string | {
|
|
2110
2110
|
inline: string;
|
|
2111
2111
|
} | {
|
|
2112
2112
|
file: string;
|
|
@@ -2142,7 +2142,7 @@ export declare const workflowJsonSchema: {
|
|
|
2142
2142
|
readonly description: "A declarative YAML format for AI agent orchestration as a directed graph with natural language routing.";
|
|
2143
2143
|
readonly type: "object";
|
|
2144
2144
|
readonly required: readonly ["id", "name", "nodes", "edges", "entry"];
|
|
2145
|
-
readonly additionalProperties:
|
|
2145
|
+
readonly additionalProperties: true;
|
|
2146
2146
|
readonly $defs: {
|
|
2147
2147
|
readonly Source: {
|
|
2148
2148
|
readonly oneOf: readonly [{
|
|
@@ -2281,6 +2281,7 @@ export declare const workflowJsonSchema: {
|
|
|
2281
2281
|
readonly type: "object";
|
|
2282
2282
|
readonly description: "Machine-checked post-conditions evaluated after the LLM finishes.";
|
|
2283
2283
|
readonly additionalProperties: false;
|
|
2284
|
+
readonly minProperties: 1;
|
|
2284
2285
|
readonly properties: {
|
|
2285
2286
|
readonly any_tool_called: {
|
|
2286
2287
|
readonly type: "array";
|
|
@@ -2334,6 +2335,13 @@ export declare const workflowJsonSchema: {
|
|
|
2334
2335
|
readonly minLength: 1;
|
|
2335
2336
|
};
|
|
2336
2337
|
};
|
|
2338
|
+
readonly oneOf: readonly [{
|
|
2339
|
+
readonly required: readonly ["equals"];
|
|
2340
|
+
}, {
|
|
2341
|
+
readonly required: readonly ["in"];
|
|
2342
|
+
}, {
|
|
2343
|
+
readonly required: readonly ["matches"];
|
|
2344
|
+
}];
|
|
2337
2345
|
};
|
|
2338
2346
|
readonly minItems: 1;
|
|
2339
2347
|
};
|
|
@@ -2343,6 +2351,11 @@ export declare const workflowJsonSchema: {
|
|
|
2343
2351
|
readonly type: "object";
|
|
2344
2352
|
readonly description: "Pre-condition checks evaluated before the LLM runs.";
|
|
2345
2353
|
readonly additionalProperties: false;
|
|
2354
|
+
readonly anyOf: readonly [{
|
|
2355
|
+
readonly required: readonly ["output_required"];
|
|
2356
|
+
}, {
|
|
2357
|
+
readonly required: readonly ["output_matches"];
|
|
2358
|
+
}];
|
|
2346
2359
|
readonly properties: {
|
|
2347
2360
|
readonly output_required: {
|
|
2348
2361
|
readonly type: "array";
|
|
@@ -2372,6 +2385,13 @@ export declare const workflowJsonSchema: {
|
|
|
2372
2385
|
readonly minLength: 1;
|
|
2373
2386
|
};
|
|
2374
2387
|
};
|
|
2388
|
+
readonly oneOf: readonly [{
|
|
2389
|
+
readonly required: readonly ["equals"];
|
|
2390
|
+
}, {
|
|
2391
|
+
readonly required: readonly ["in"];
|
|
2392
|
+
}, {
|
|
2393
|
+
readonly required: readonly ["matches"];
|
|
2394
|
+
}];
|
|
2375
2395
|
};
|
|
2376
2396
|
readonly minItems: 1;
|
|
2377
2397
|
};
|
|
@@ -2453,6 +2473,12 @@ export declare const workflowJsonSchema: {
|
|
|
2453
2473
|
readonly description: "Inline skill definitions scoped to this workflow";
|
|
2454
2474
|
readonly additionalProperties: {
|
|
2455
2475
|
readonly type: "object";
|
|
2476
|
+
readonly anyOf: readonly [{
|
|
2477
|
+
readonly required: readonly ["instruction"];
|
|
2478
|
+
}, {
|
|
2479
|
+
readonly required: readonly ["mcp"];
|
|
2480
|
+
}];
|
|
2481
|
+
readonly additionalProperties: false;
|
|
2456
2482
|
readonly properties: {
|
|
2457
2483
|
readonly name: {
|
|
2458
2484
|
readonly type: "string";
|
|
@@ -2467,6 +2493,12 @@ export declare const workflowJsonSchema: {
|
|
|
2467
2493
|
readonly mcp: {
|
|
2468
2494
|
readonly type: "object";
|
|
2469
2495
|
readonly description: "External MCP server definition";
|
|
2496
|
+
readonly anyOf: readonly [{
|
|
2497
|
+
readonly required: readonly ["command"];
|
|
2498
|
+
}, {
|
|
2499
|
+
readonly required: readonly ["url"];
|
|
2500
|
+
}];
|
|
2501
|
+
readonly additionalProperties: false;
|
|
2470
2502
|
readonly properties: {
|
|
2471
2503
|
readonly type: {
|
|
2472
2504
|
readonly type: "string";
|