@sweny-ai/core 0.1.76 → 0.1.78
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 +20 -0
- package/dist/claude.js +139 -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/executor.js +104 -43
- 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/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 +667 -80
- package/dist/schema.js +144 -5
- 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/testing.d.ts +7 -0
- package/dist/testing.js +7 -0
- package/dist/types.d.ts +76 -0
- package/dist/verify.d.ts +1 -0
- package/dist/verify.js +43 -5
- package/package.json +8 -4
- package/dist/__tests__/cascade.test.d.ts +0 -11
- package/dist/__tests__/cascade.test.js +0 -449
- 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 -736
- 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__/schema.test.d.ts +0 -1
- package/dist/__tests__/schema.test.js +0 -526
- 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 -1074
- 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 -224
- 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 -603
- 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 -117
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
|
-
}, "
|
|
123
|
-
instruction?: string | undefined;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
124
123
|
name?: 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;
|
|
@@ -132,9 +132,9 @@ 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;
|
|
137
136
|
description?: string | undefined;
|
|
137
|
+
instruction?: string | undefined;
|
|
138
138
|
mcp?: {
|
|
139
139
|
url?: string | undefined;
|
|
140
140
|
type?: "stdio" | "http" | undefined;
|
|
@@ -144,9 +144,9 @@ 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;
|
|
149
148
|
description?: string | undefined;
|
|
149
|
+
instruction?: string | undefined;
|
|
150
150
|
mcp?: {
|
|
151
151
|
url?: string | undefined;
|
|
152
152
|
type?: "stdio" | "http" | undefined;
|
|
@@ -156,9 +156,9 @@ 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;
|
|
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;
|
|
@@ -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
|
+
}, "strict", 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
|
+
}, "strict", 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
|
+
}, "strict", 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<{
|
|
@@ -675,7 +771,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
675
771
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
676
772
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
677
773
|
matches: z.ZodOptional<z.ZodString>;
|
|
678
|
-
}, "
|
|
774
|
+
}, "strict", z.ZodTypeAny, {
|
|
679
775
|
path: string;
|
|
680
776
|
equals?: unknown;
|
|
681
777
|
in?: unknown[] | undefined;
|
|
@@ -696,7 +792,7 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
696
792
|
in?: unknown[] | undefined;
|
|
697
793
|
matches?: string | undefined;
|
|
698
794
|
}>, "many">>;
|
|
699
|
-
}, "
|
|
795
|
+
}, "strict", z.ZodTypeAny, {
|
|
700
796
|
any_tool_called?: string[] | undefined;
|
|
701
797
|
all_tools_called?: string[] | undefined;
|
|
702
798
|
no_tool_called?: string[] | undefined;
|
|
@@ -741,7 +837,104 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
741
837
|
matches?: string | undefined;
|
|
742
838
|
}[] | undefined;
|
|
743
839
|
}>>;
|
|
744
|
-
|
|
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
|
+
}, "strict", 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
|
+
}, "strict", 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
|
+
}, "strict", 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
|
+
}>>;
|
|
936
|
+
}, "strict", z.ZodTypeAny, {
|
|
937
|
+
name: string;
|
|
745
938
|
instruction: string | {
|
|
746
939
|
inline: string;
|
|
747
940
|
} | {
|
|
@@ -750,8 +943,9 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
750
943
|
url: string;
|
|
751
944
|
type?: string | undefined;
|
|
752
945
|
};
|
|
753
|
-
name: string;
|
|
754
946
|
skills: string[];
|
|
947
|
+
output?: Record<string, unknown> | undefined;
|
|
948
|
+
max_turns?: number | undefined;
|
|
755
949
|
rules?: (string | {
|
|
756
950
|
inline: string;
|
|
757
951
|
} | {
|
|
@@ -788,8 +982,6 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
788
982
|
})[];
|
|
789
983
|
only?: boolean | undefined;
|
|
790
984
|
} | undefined;
|
|
791
|
-
output?: Record<string, unknown> | undefined;
|
|
792
|
-
max_turns?: number | undefined;
|
|
793
985
|
verify?: {
|
|
794
986
|
any_tool_called?: string[] | undefined;
|
|
795
987
|
all_tools_called?: string[] | undefined;
|
|
@@ -802,7 +994,26 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
802
994
|
matches?: string | undefined;
|
|
803
995
|
}[] | undefined;
|
|
804
996
|
} | undefined;
|
|
997
|
+
requires?: {
|
|
998
|
+
output_required?: string[] | undefined;
|
|
999
|
+
output_matches?: {
|
|
1000
|
+
path: string;
|
|
1001
|
+
equals?: unknown;
|
|
1002
|
+
in?: unknown[] | undefined;
|
|
1003
|
+
matches?: string | undefined;
|
|
1004
|
+
}[] | undefined;
|
|
1005
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1006
|
+
} | undefined;
|
|
1007
|
+
retry?: {
|
|
1008
|
+
max: number;
|
|
1009
|
+
instruction?: string | {
|
|
1010
|
+
auto: true;
|
|
1011
|
+
} | {
|
|
1012
|
+
reflect: string;
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
} | undefined;
|
|
805
1015
|
}, {
|
|
1016
|
+
name: string;
|
|
806
1017
|
instruction: string | {
|
|
807
1018
|
inline: string;
|
|
808
1019
|
} | {
|
|
@@ -811,7 +1022,9 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
811
1022
|
url: string;
|
|
812
1023
|
type?: string | undefined;
|
|
813
1024
|
};
|
|
814
|
-
|
|
1025
|
+
skills?: string[] | undefined;
|
|
1026
|
+
output?: Record<string, unknown> | undefined;
|
|
1027
|
+
max_turns?: number | undefined;
|
|
815
1028
|
rules?: (string | {
|
|
816
1029
|
inline: string;
|
|
817
1030
|
} | {
|
|
@@ -848,9 +1061,6 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
848
1061
|
})[];
|
|
849
1062
|
only?: boolean | undefined;
|
|
850
1063
|
} | undefined;
|
|
851
|
-
output?: Record<string, unknown> | undefined;
|
|
852
|
-
skills?: string[] | undefined;
|
|
853
|
-
max_turns?: number | undefined;
|
|
854
1064
|
verify?: {
|
|
855
1065
|
any_tool_called?: string[] | undefined;
|
|
856
1066
|
all_tools_called?: string[] | undefined;
|
|
@@ -863,20 +1073,38 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
863
1073
|
matches?: string | undefined;
|
|
864
1074
|
}[] | undefined;
|
|
865
1075
|
} | undefined;
|
|
1076
|
+
requires?: {
|
|
1077
|
+
output_required?: string[] | undefined;
|
|
1078
|
+
output_matches?: {
|
|
1079
|
+
path: string;
|
|
1080
|
+
equals?: unknown;
|
|
1081
|
+
in?: unknown[] | undefined;
|
|
1082
|
+
matches?: string | undefined;
|
|
1083
|
+
}[] | undefined;
|
|
1084
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1085
|
+
} | undefined;
|
|
1086
|
+
retry?: {
|
|
1087
|
+
max: number;
|
|
1088
|
+
instruction?: string | {
|
|
1089
|
+
auto: true;
|
|
1090
|
+
} | {
|
|
1091
|
+
reflect: string;
|
|
1092
|
+
} | undefined;
|
|
1093
|
+
} | undefined;
|
|
866
1094
|
}>;
|
|
867
1095
|
export declare const edgeZ: z.ZodObject<{
|
|
868
1096
|
from: z.ZodString;
|
|
869
1097
|
to: z.ZodString;
|
|
870
1098
|
when: z.ZodOptional<z.ZodString>;
|
|
871
1099
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
872
|
-
}, "
|
|
873
|
-
to: string;
|
|
1100
|
+
}, "strict", z.ZodTypeAny, {
|
|
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
|
}>;
|
|
@@ -1053,7 +1281,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1053
1281
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1054
1282
|
in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1055
1283
|
matches: z.ZodOptional<z.ZodString>;
|
|
1056
|
-
}, "
|
|
1284
|
+
}, "strict", z.ZodTypeAny, {
|
|
1057
1285
|
path: string;
|
|
1058
1286
|
equals?: unknown;
|
|
1059
1287
|
in?: unknown[] | undefined;
|
|
@@ -1074,7 +1302,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1074
1302
|
in?: unknown[] | undefined;
|
|
1075
1303
|
matches?: string | undefined;
|
|
1076
1304
|
}>, "many">>;
|
|
1077
|
-
}, "
|
|
1305
|
+
}, "strict", z.ZodTypeAny, {
|
|
1078
1306
|
any_tool_called?: string[] | undefined;
|
|
1079
1307
|
all_tools_called?: string[] | undefined;
|
|
1080
1308
|
no_tool_called?: string[] | undefined;
|
|
@@ -1119,7 +1347,104 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1119
1347
|
matches?: string | undefined;
|
|
1120
1348
|
}[] | undefined;
|
|
1121
1349
|
}>>;
|
|
1122
|
-
|
|
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
|
+
}, "strict", 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
|
+
}, "strict", 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
|
+
}, "strict", 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
|
+
}>>;
|
|
1446
|
+
}, "strict", z.ZodTypeAny, {
|
|
1447
|
+
name: string;
|
|
1123
1448
|
instruction: string | {
|
|
1124
1449
|
inline: string;
|
|
1125
1450
|
} | {
|
|
@@ -1128,8 +1453,9 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1128
1453
|
url: string;
|
|
1129
1454
|
type?: string | undefined;
|
|
1130
1455
|
};
|
|
1131
|
-
name: string;
|
|
1132
1456
|
skills: string[];
|
|
1457
|
+
output?: Record<string, unknown> | undefined;
|
|
1458
|
+
max_turns?: number | undefined;
|
|
1133
1459
|
rules?: (string | {
|
|
1134
1460
|
inline: string;
|
|
1135
1461
|
} | {
|
|
@@ -1166,8 +1492,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1166
1492
|
})[];
|
|
1167
1493
|
only?: boolean | undefined;
|
|
1168
1494
|
} | undefined;
|
|
1169
|
-
output?: Record<string, unknown> | undefined;
|
|
1170
|
-
max_turns?: number | undefined;
|
|
1171
1495
|
verify?: {
|
|
1172
1496
|
any_tool_called?: string[] | undefined;
|
|
1173
1497
|
all_tools_called?: string[] | undefined;
|
|
@@ -1180,7 +1504,26 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1180
1504
|
matches?: string | undefined;
|
|
1181
1505
|
}[] | undefined;
|
|
1182
1506
|
} | undefined;
|
|
1507
|
+
requires?: {
|
|
1508
|
+
output_required?: string[] | undefined;
|
|
1509
|
+
output_matches?: {
|
|
1510
|
+
path: string;
|
|
1511
|
+
equals?: unknown;
|
|
1512
|
+
in?: unknown[] | undefined;
|
|
1513
|
+
matches?: string | undefined;
|
|
1514
|
+
}[] | undefined;
|
|
1515
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1516
|
+
} | undefined;
|
|
1517
|
+
retry?: {
|
|
1518
|
+
max: number;
|
|
1519
|
+
instruction?: string | {
|
|
1520
|
+
auto: true;
|
|
1521
|
+
} | {
|
|
1522
|
+
reflect: string;
|
|
1523
|
+
} | undefined;
|
|
1524
|
+
} | undefined;
|
|
1183
1525
|
}, {
|
|
1526
|
+
name: string;
|
|
1184
1527
|
instruction: string | {
|
|
1185
1528
|
inline: string;
|
|
1186
1529
|
} | {
|
|
@@ -1189,7 +1532,9 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1189
1532
|
url: string;
|
|
1190
1533
|
type?: string | undefined;
|
|
1191
1534
|
};
|
|
1192
|
-
|
|
1535
|
+
skills?: string[] | undefined;
|
|
1536
|
+
output?: Record<string, unknown> | undefined;
|
|
1537
|
+
max_turns?: number | undefined;
|
|
1193
1538
|
rules?: (string | {
|
|
1194
1539
|
inline: string;
|
|
1195
1540
|
} | {
|
|
@@ -1226,9 +1571,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1226
1571
|
})[];
|
|
1227
1572
|
only?: boolean | undefined;
|
|
1228
1573
|
} | undefined;
|
|
1229
|
-
output?: Record<string, unknown> | undefined;
|
|
1230
|
-
skills?: string[] | undefined;
|
|
1231
|
-
max_turns?: number | undefined;
|
|
1232
1574
|
verify?: {
|
|
1233
1575
|
any_tool_called?: string[] | undefined;
|
|
1234
1576
|
all_tools_called?: string[] | undefined;
|
|
@@ -1241,20 +1583,38 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1241
1583
|
matches?: string | undefined;
|
|
1242
1584
|
}[] | undefined;
|
|
1243
1585
|
} | undefined;
|
|
1586
|
+
requires?: {
|
|
1587
|
+
output_required?: string[] | undefined;
|
|
1588
|
+
output_matches?: {
|
|
1589
|
+
path: string;
|
|
1590
|
+
equals?: unknown;
|
|
1591
|
+
in?: unknown[] | undefined;
|
|
1592
|
+
matches?: string | undefined;
|
|
1593
|
+
}[] | undefined;
|
|
1594
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1595
|
+
} | undefined;
|
|
1596
|
+
retry?: {
|
|
1597
|
+
max: number;
|
|
1598
|
+
instruction?: string | {
|
|
1599
|
+
auto: true;
|
|
1600
|
+
} | {
|
|
1601
|
+
reflect: string;
|
|
1602
|
+
} | undefined;
|
|
1603
|
+
} | undefined;
|
|
1244
1604
|
}>>;
|
|
1245
1605
|
edges: z.ZodArray<z.ZodObject<{
|
|
1246
1606
|
from: z.ZodString;
|
|
1247
1607
|
to: z.ZodString;
|
|
1248
1608
|
when: z.ZodOptional<z.ZodString>;
|
|
1249
1609
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
1250
|
-
}, "
|
|
1251
|
-
to: string;
|
|
1610
|
+
}, "strict", z.ZodTypeAny, {
|
|
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">;
|
|
@@ -1270,7 +1630,7 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1270
1630
|
url: z.ZodOptional<z.ZodString>;
|
|
1271
1631
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1272
1632
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1273
|
-
}, "
|
|
1633
|
+
}, "strict", z.ZodTypeAny, {
|
|
1274
1634
|
url?: string | undefined;
|
|
1275
1635
|
type?: "stdio" | "http" | undefined;
|
|
1276
1636
|
headers?: Record<string, string> | undefined;
|
|
@@ -1299,10 +1659,10 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1299
1659
|
command?: string | undefined;
|
|
1300
1660
|
args?: string[] | undefined;
|
|
1301
1661
|
}>>;
|
|
1302
|
-
}, "
|
|
1303
|
-
instruction?: string | undefined;
|
|
1662
|
+
}, "strict", z.ZodTypeAny, {
|
|
1304
1663
|
name?: string | undefined;
|
|
1305
1664
|
description?: string | undefined;
|
|
1665
|
+
instruction?: string | undefined;
|
|
1306
1666
|
mcp?: {
|
|
1307
1667
|
url?: string | undefined;
|
|
1308
1668
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1312,9 +1672,9 @@ 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;
|
|
1317
1676
|
description?: string | undefined;
|
|
1677
|
+
instruction?: string | undefined;
|
|
1318
1678
|
mcp?: {
|
|
1319
1679
|
url?: string | undefined;
|
|
1320
1680
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1324,9 +1684,9 @@ 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;
|
|
1329
1688
|
description?: string | undefined;
|
|
1689
|
+
instruction?: string | undefined;
|
|
1330
1690
|
mcp?: {
|
|
1331
1691
|
url?: string | undefined;
|
|
1332
1692
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1336,9 +1696,9 @@ 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;
|
|
1341
1700
|
description?: string | undefined;
|
|
1701
|
+
instruction?: string | undefined;
|
|
1342
1702
|
mcp?: {
|
|
1343
1703
|
url?: string | undefined;
|
|
1344
1704
|
type?: "stdio" | "http" | undefined;
|
|
@@ -1393,13 +1753,13 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1393
1753
|
type?: string | undefined;
|
|
1394
1754
|
}>]>, "many">>;
|
|
1395
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1396
|
-
name: string;
|
|
1397
1756
|
id: string;
|
|
1757
|
+
name: string;
|
|
1398
1758
|
description: string;
|
|
1399
1759
|
skills: Record<string, {
|
|
1400
|
-
instruction?: string | undefined;
|
|
1401
1760
|
name?: string | undefined;
|
|
1402
1761
|
description?: string | undefined;
|
|
1762
|
+
instruction?: string | undefined;
|
|
1403
1763
|
mcp?: {
|
|
1404
1764
|
url?: string | undefined;
|
|
1405
1765
|
type?: "stdio" | "http" | 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,8 +1779,9 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1418
1779
|
url: string;
|
|
1419
1780
|
type?: string | undefined;
|
|
1420
1781
|
};
|
|
1421
|
-
name: string;
|
|
1422
1782
|
skills: string[];
|
|
1783
|
+
output?: Record<string, unknown> | undefined;
|
|
1784
|
+
max_turns?: number | undefined;
|
|
1423
1785
|
rules?: (string | {
|
|
1424
1786
|
inline: string;
|
|
1425
1787
|
} | {
|
|
@@ -1456,8 +1818,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1456
1818
|
})[];
|
|
1457
1819
|
only?: boolean | undefined;
|
|
1458
1820
|
} | undefined;
|
|
1459
|
-
output?: Record<string, unknown> | undefined;
|
|
1460
|
-
max_turns?: number | undefined;
|
|
1461
1821
|
verify?: {
|
|
1462
1822
|
any_tool_called?: string[] | undefined;
|
|
1463
1823
|
all_tools_called?: string[] | undefined;
|
|
@@ -1470,10 +1830,28 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1470
1830
|
matches?: string | undefined;
|
|
1471
1831
|
}[] | undefined;
|
|
1472
1832
|
} | undefined;
|
|
1833
|
+
requires?: {
|
|
1834
|
+
output_required?: string[] | undefined;
|
|
1835
|
+
output_matches?: {
|
|
1836
|
+
path: string;
|
|
1837
|
+
equals?: unknown;
|
|
1838
|
+
in?: unknown[] | undefined;
|
|
1839
|
+
matches?: string | undefined;
|
|
1840
|
+
}[] | undefined;
|
|
1841
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1842
|
+
} | undefined;
|
|
1843
|
+
retry?: {
|
|
1844
|
+
max: number;
|
|
1845
|
+
instruction?: string | {
|
|
1846
|
+
auto: true;
|
|
1847
|
+
} | {
|
|
1848
|
+
reflect: string;
|
|
1849
|
+
} | 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
|
}[];
|
|
@@ -1495,9 +1873,10 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1495
1873
|
type?: string | undefined;
|
|
1496
1874
|
})[] | undefined;
|
|
1497
1875
|
}, {
|
|
1498
|
-
name: string;
|
|
1499
1876
|
id: string;
|
|
1877
|
+
name: string;
|
|
1500
1878
|
nodes: Record<string, {
|
|
1879
|
+
name: string;
|
|
1501
1880
|
instruction: string | {
|
|
1502
1881
|
inline: string;
|
|
1503
1882
|
} | {
|
|
@@ -1506,7 +1885,9 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1506
1885
|
url: string;
|
|
1507
1886
|
type?: string | undefined;
|
|
1508
1887
|
};
|
|
1509
|
-
|
|
1888
|
+
skills?: string[] | undefined;
|
|
1889
|
+
output?: Record<string, unknown> | undefined;
|
|
1890
|
+
max_turns?: number | undefined;
|
|
1510
1891
|
rules?: (string | {
|
|
1511
1892
|
inline: string;
|
|
1512
1893
|
} | {
|
|
@@ -1543,9 +1924,6 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1543
1924
|
})[];
|
|
1544
1925
|
only?: boolean | undefined;
|
|
1545
1926
|
} | undefined;
|
|
1546
|
-
output?: Record<string, unknown> | undefined;
|
|
1547
|
-
skills?: string[] | undefined;
|
|
1548
|
-
max_turns?: number | undefined;
|
|
1549
1927
|
verify?: {
|
|
1550
1928
|
any_tool_called?: string[] | undefined;
|
|
1551
1929
|
all_tools_called?: string[] | undefined;
|
|
@@ -1558,14 +1936,46 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1558
1936
|
matches?: string | undefined;
|
|
1559
1937
|
}[] | undefined;
|
|
1560
1938
|
} | undefined;
|
|
1939
|
+
requires?: {
|
|
1940
|
+
output_required?: string[] | undefined;
|
|
1941
|
+
output_matches?: {
|
|
1942
|
+
path: string;
|
|
1943
|
+
equals?: unknown;
|
|
1944
|
+
in?: unknown[] | undefined;
|
|
1945
|
+
matches?: string | undefined;
|
|
1946
|
+
}[] | undefined;
|
|
1947
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
1948
|
+
} | undefined;
|
|
1949
|
+
retry?: {
|
|
1950
|
+
max: number;
|
|
1951
|
+
instruction?: string | {
|
|
1952
|
+
auto: true;
|
|
1953
|
+
} | {
|
|
1954
|
+
reflect: string;
|
|
1955
|
+
} | 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;
|
|
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;
|
|
1569
1979
|
rules?: (string | {
|
|
1570
1980
|
inline: string;
|
|
1571
1981
|
} | {
|
|
@@ -1582,30 +1992,16 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
1582
1992
|
url: string;
|
|
1583
1993
|
type?: string | undefined;
|
|
1584
1994
|
})[] | undefined;
|
|
1585
|
-
description?: string | undefined;
|
|
1586
|
-
skills?: Record<string, {
|
|
1587
|
-
instruction?: string | undefined;
|
|
1588
|
-
name?: string | undefined;
|
|
1589
|
-
description?: string | undefined;
|
|
1590
|
-
mcp?: {
|
|
1591
|
-
url?: string | undefined;
|
|
1592
|
-
type?: "stdio" | "http" | undefined;
|
|
1593
|
-
headers?: Record<string, string> | undefined;
|
|
1594
|
-
env?: Record<string, string> | undefined;
|
|
1595
|
-
command?: string | undefined;
|
|
1596
|
-
args?: string[] | undefined;
|
|
1597
|
-
} | undefined;
|
|
1598
|
-
}> | undefined;
|
|
1599
1995
|
}>;
|
|
1600
1996
|
/** Parse + validate a raw object as a Workflow. Throws on invalid input. */
|
|
1601
1997
|
export declare function parseWorkflow(raw: unknown): {
|
|
1602
|
-
name: string;
|
|
1603
1998
|
id: string;
|
|
1999
|
+
name: string;
|
|
1604
2000
|
description: string;
|
|
1605
2001
|
skills: Record<string, {
|
|
1606
|
-
instruction?: string | undefined;
|
|
1607
2002
|
name?: string | undefined;
|
|
1608
2003
|
description?: string | undefined;
|
|
2004
|
+
instruction?: string | undefined;
|
|
1609
2005
|
mcp?: {
|
|
1610
2006
|
url?: string | undefined;
|
|
1611
2007
|
type?: "stdio" | "http" | 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,8 +2021,9 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1624
2021
|
url: string;
|
|
1625
2022
|
type?: string | undefined;
|
|
1626
2023
|
};
|
|
1627
|
-
name: string;
|
|
1628
2024
|
skills: string[];
|
|
2025
|
+
output?: Record<string, unknown> | undefined;
|
|
2026
|
+
max_turns?: number | undefined;
|
|
1629
2027
|
rules?: (string | {
|
|
1630
2028
|
inline: string;
|
|
1631
2029
|
} | {
|
|
@@ -1662,8 +2060,6 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1662
2060
|
})[];
|
|
1663
2061
|
only?: boolean | undefined;
|
|
1664
2062
|
} | undefined;
|
|
1665
|
-
output?: Record<string, unknown> | undefined;
|
|
1666
|
-
max_turns?: number | undefined;
|
|
1667
2063
|
verify?: {
|
|
1668
2064
|
any_tool_called?: string[] | undefined;
|
|
1669
2065
|
all_tools_called?: string[] | undefined;
|
|
@@ -1676,10 +2072,28 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
1676
2072
|
matches?: string | undefined;
|
|
1677
2073
|
}[] | undefined;
|
|
1678
2074
|
} | undefined;
|
|
2075
|
+
requires?: {
|
|
2076
|
+
output_required?: string[] | undefined;
|
|
2077
|
+
output_matches?: {
|
|
2078
|
+
path: string;
|
|
2079
|
+
equals?: unknown;
|
|
2080
|
+
in?: unknown[] | undefined;
|
|
2081
|
+
matches?: string | undefined;
|
|
2082
|
+
}[] | undefined;
|
|
2083
|
+
on_fail?: "fail" | "skip" | undefined;
|
|
2084
|
+
} | undefined;
|
|
2085
|
+
retry?: {
|
|
2086
|
+
max: number;
|
|
2087
|
+
instruction?: string | {
|
|
2088
|
+
auto: true;
|
|
2089
|
+
} | {
|
|
2090
|
+
reflect: string;
|
|
2091
|
+
} | 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
|
}[];
|
|
@@ -1728,7 +2142,7 @@ export declare const workflowJsonSchema: {
|
|
|
1728
2142
|
readonly description: "A declarative YAML format for AI agent orchestration as a directed graph with natural language routing.";
|
|
1729
2143
|
readonly type: "object";
|
|
1730
2144
|
readonly required: readonly ["id", "name", "nodes", "edges", "entry"];
|
|
1731
|
-
readonly additionalProperties:
|
|
2145
|
+
readonly additionalProperties: true;
|
|
1732
2146
|
readonly $defs: {
|
|
1733
2147
|
readonly Source: {
|
|
1734
2148
|
readonly oneOf: readonly [{
|
|
@@ -1863,6 +2277,167 @@ 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 minProperties: 1;
|
|
2285
|
+
readonly properties: {
|
|
2286
|
+
readonly any_tool_called: {
|
|
2287
|
+
readonly type: "array";
|
|
2288
|
+
readonly items: {
|
|
2289
|
+
readonly type: "string";
|
|
2290
|
+
readonly minLength: 1;
|
|
2291
|
+
};
|
|
2292
|
+
readonly minItems: 1;
|
|
2293
|
+
};
|
|
2294
|
+
readonly all_tools_called: {
|
|
2295
|
+
readonly type: "array";
|
|
2296
|
+
readonly items: {
|
|
2297
|
+
readonly type: "string";
|
|
2298
|
+
readonly minLength: 1;
|
|
2299
|
+
};
|
|
2300
|
+
readonly minItems: 1;
|
|
2301
|
+
};
|
|
2302
|
+
readonly no_tool_called: {
|
|
2303
|
+
readonly type: "array";
|
|
2304
|
+
readonly items: {
|
|
2305
|
+
readonly type: "string";
|
|
2306
|
+
readonly minLength: 1;
|
|
2307
|
+
};
|
|
2308
|
+
readonly minItems: 1;
|
|
2309
|
+
};
|
|
2310
|
+
readonly output_required: {
|
|
2311
|
+
readonly type: "array";
|
|
2312
|
+
readonly items: {
|
|
2313
|
+
readonly type: "string";
|
|
2314
|
+
readonly minLength: 1;
|
|
2315
|
+
};
|
|
2316
|
+
readonly minItems: 1;
|
|
2317
|
+
};
|
|
2318
|
+
readonly output_matches: {
|
|
2319
|
+
readonly type: "array";
|
|
2320
|
+
readonly items: {
|
|
2321
|
+
readonly type: "object";
|
|
2322
|
+
readonly required: readonly ["path"];
|
|
2323
|
+
readonly additionalProperties: false;
|
|
2324
|
+
readonly properties: {
|
|
2325
|
+
readonly path: {
|
|
2326
|
+
readonly type: "string";
|
|
2327
|
+
readonly minLength: 1;
|
|
2328
|
+
};
|
|
2329
|
+
readonly equals: {};
|
|
2330
|
+
readonly in: {
|
|
2331
|
+
readonly type: "array";
|
|
2332
|
+
};
|
|
2333
|
+
readonly matches: {
|
|
2334
|
+
readonly type: "string";
|
|
2335
|
+
readonly minLength: 1;
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
readonly oneOf: readonly [{
|
|
2339
|
+
readonly required: readonly ["equals"];
|
|
2340
|
+
}, {
|
|
2341
|
+
readonly required: readonly ["in"];
|
|
2342
|
+
}, {
|
|
2343
|
+
readonly required: readonly ["matches"];
|
|
2344
|
+
}];
|
|
2345
|
+
};
|
|
2346
|
+
readonly minItems: 1;
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2349
|
+
};
|
|
2350
|
+
readonly requires: {
|
|
2351
|
+
readonly type: "object";
|
|
2352
|
+
readonly description: "Pre-condition checks evaluated before the LLM runs.";
|
|
2353
|
+
readonly additionalProperties: false;
|
|
2354
|
+
readonly anyOf: readonly [{
|
|
2355
|
+
readonly required: readonly ["output_required"];
|
|
2356
|
+
}, {
|
|
2357
|
+
readonly required: readonly ["output_matches"];
|
|
2358
|
+
}];
|
|
2359
|
+
readonly properties: {
|
|
2360
|
+
readonly output_required: {
|
|
2361
|
+
readonly type: "array";
|
|
2362
|
+
readonly items: {
|
|
2363
|
+
readonly type: "string";
|
|
2364
|
+
readonly minLength: 1;
|
|
2365
|
+
};
|
|
2366
|
+
readonly minItems: 1;
|
|
2367
|
+
};
|
|
2368
|
+
readonly output_matches: {
|
|
2369
|
+
readonly type: "array";
|
|
2370
|
+
readonly items: {
|
|
2371
|
+
readonly type: "object";
|
|
2372
|
+
readonly required: readonly ["path"];
|
|
2373
|
+
readonly additionalProperties: false;
|
|
2374
|
+
readonly properties: {
|
|
2375
|
+
readonly path: {
|
|
2376
|
+
readonly type: "string";
|
|
2377
|
+
readonly minLength: 1;
|
|
2378
|
+
};
|
|
2379
|
+
readonly equals: {};
|
|
2380
|
+
readonly in: {
|
|
2381
|
+
readonly type: "array";
|
|
2382
|
+
};
|
|
2383
|
+
readonly matches: {
|
|
2384
|
+
readonly type: "string";
|
|
2385
|
+
readonly minLength: 1;
|
|
2386
|
+
};
|
|
2387
|
+
};
|
|
2388
|
+
readonly oneOf: readonly [{
|
|
2389
|
+
readonly required: readonly ["equals"];
|
|
2390
|
+
}, {
|
|
2391
|
+
readonly required: readonly ["in"];
|
|
2392
|
+
}, {
|
|
2393
|
+
readonly required: readonly ["matches"];
|
|
2394
|
+
}];
|
|
2395
|
+
};
|
|
2396
|
+
readonly minItems: 1;
|
|
2397
|
+
};
|
|
2398
|
+
readonly on_fail: {
|
|
2399
|
+
readonly type: "string";
|
|
2400
|
+
readonly enum: readonly ["fail", "skip"];
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
readonly retry: {
|
|
2405
|
+
readonly type: "object";
|
|
2406
|
+
readonly description: "Node-local retry on verify failure.";
|
|
2407
|
+
readonly required: readonly ["max"];
|
|
2408
|
+
readonly additionalProperties: false;
|
|
2409
|
+
readonly properties: {
|
|
2410
|
+
readonly max: {
|
|
2411
|
+
readonly type: "integer";
|
|
2412
|
+
readonly minimum: 1;
|
|
2413
|
+
};
|
|
2414
|
+
readonly instruction: {
|
|
2415
|
+
readonly oneOf: readonly [{
|
|
2416
|
+
readonly type: "string";
|
|
2417
|
+
readonly minLength: 1;
|
|
2418
|
+
}, {
|
|
2419
|
+
readonly type: "object";
|
|
2420
|
+
readonly required: readonly ["auto"];
|
|
2421
|
+
readonly additionalProperties: false;
|
|
2422
|
+
readonly properties: {
|
|
2423
|
+
readonly auto: {
|
|
2424
|
+
readonly const: true;
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
}, {
|
|
2428
|
+
readonly type: "object";
|
|
2429
|
+
readonly required: readonly ["reflect"];
|
|
2430
|
+
readonly additionalProperties: false;
|
|
2431
|
+
readonly properties: {
|
|
2432
|
+
readonly reflect: {
|
|
2433
|
+
readonly type: "string";
|
|
2434
|
+
readonly minLength: 1;
|
|
2435
|
+
};
|
|
2436
|
+
};
|
|
2437
|
+
}];
|
|
2438
|
+
};
|
|
2439
|
+
};
|
|
2440
|
+
};
|
|
1866
2441
|
};
|
|
1867
2442
|
};
|
|
1868
2443
|
};
|
|
@@ -1898,6 +2473,12 @@ export declare const workflowJsonSchema: {
|
|
|
1898
2473
|
readonly description: "Inline skill definitions scoped to this workflow";
|
|
1899
2474
|
readonly additionalProperties: {
|
|
1900
2475
|
readonly type: "object";
|
|
2476
|
+
readonly anyOf: readonly [{
|
|
2477
|
+
readonly required: readonly ["instruction"];
|
|
2478
|
+
}, {
|
|
2479
|
+
readonly required: readonly ["mcp"];
|
|
2480
|
+
}];
|
|
2481
|
+
readonly additionalProperties: false;
|
|
1901
2482
|
readonly properties: {
|
|
1902
2483
|
readonly name: {
|
|
1903
2484
|
readonly type: "string";
|
|
@@ -1912,6 +2493,12 @@ export declare const workflowJsonSchema: {
|
|
|
1912
2493
|
readonly mcp: {
|
|
1913
2494
|
readonly type: "object";
|
|
1914
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;
|
|
1915
2502
|
readonly properties: {
|
|
1916
2503
|
readonly type: {
|
|
1917
2504
|
readonly type: "string";
|