@sweny-ai/core 0.1.62 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/cascade.test.d.ts +11 -0
- package/dist/__tests__/cascade.test.js +449 -0
- package/dist/cli/main.js +4 -4
- package/dist/cli/marketplace.d.ts +103 -0
- package/dist/cli/marketplace.js +290 -0
- package/dist/cli/marketplace.test.d.ts +1 -0
- package/dist/cli/marketplace.test.js +355 -0
- package/dist/cli/new.d.ts +35 -2
- package/dist/cli/new.js +156 -51
- package/dist/cli/new.test.js +215 -2
- package/dist/executor.js +105 -26
- package/dist/schema.d.ts +724 -0
- package/dist/schema.js +51 -1
- package/dist/source-resolver.d.ts +22 -0
- package/dist/source-resolver.js +174 -0
- package/dist/sources.d.ts +9 -6
- package/dist/sources.js +13 -146
- package/dist/sources.test.js +2 -1
- package/dist/sources.validation.test.js +2 -1
- package/dist/templates.js +2 -1
- package/dist/types.d.ts +20 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -333,6 +333,77 @@ export declare const skillZ: z.ZodEffects<z.ZodObject<{
|
|
|
333
333
|
input_schema: Record<string, unknown>;
|
|
334
334
|
}[] | undefined;
|
|
335
335
|
}>;
|
|
336
|
+
/**
|
|
337
|
+
* NodeSources: either an array of Sources (additive — inherits cascade)
|
|
338
|
+
* or an object `{ only?: boolean, sources: Source[] }` where `only: true`
|
|
339
|
+
* blocks the cascade for that field.
|
|
340
|
+
*/
|
|
341
|
+
export declare const nodeSourcesZ: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
342
|
+
inline: z.ZodString;
|
|
343
|
+
}, "strict", z.ZodTypeAny, {
|
|
344
|
+
inline: string;
|
|
345
|
+
}, {
|
|
346
|
+
inline: string;
|
|
347
|
+
}>, z.ZodObject<{
|
|
348
|
+
file: z.ZodString;
|
|
349
|
+
}, "strict", z.ZodTypeAny, {
|
|
350
|
+
file: string;
|
|
351
|
+
}, {
|
|
352
|
+
file: string;
|
|
353
|
+
}>, z.ZodObject<{
|
|
354
|
+
url: z.ZodString;
|
|
355
|
+
type: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, "strict", z.ZodTypeAny, {
|
|
357
|
+
url: string;
|
|
358
|
+
type?: string | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
url: string;
|
|
361
|
+
type?: string | undefined;
|
|
362
|
+
}>]>, "many">, z.ZodObject<{
|
|
363
|
+
only: z.ZodOptional<z.ZodBoolean>;
|
|
364
|
+
sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
365
|
+
inline: z.ZodString;
|
|
366
|
+
}, "strict", z.ZodTypeAny, {
|
|
367
|
+
inline: string;
|
|
368
|
+
}, {
|
|
369
|
+
inline: string;
|
|
370
|
+
}>, z.ZodObject<{
|
|
371
|
+
file: z.ZodString;
|
|
372
|
+
}, "strict", z.ZodTypeAny, {
|
|
373
|
+
file: string;
|
|
374
|
+
}, {
|
|
375
|
+
file: string;
|
|
376
|
+
}>, z.ZodObject<{
|
|
377
|
+
url: z.ZodString;
|
|
378
|
+
type: z.ZodOptional<z.ZodString>;
|
|
379
|
+
}, "strict", z.ZodTypeAny, {
|
|
380
|
+
url: string;
|
|
381
|
+
type?: string | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
url: string;
|
|
384
|
+
type?: string | undefined;
|
|
385
|
+
}>]>, "many">;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
sources: (string | {
|
|
388
|
+
inline: string;
|
|
389
|
+
} | {
|
|
390
|
+
file: string;
|
|
391
|
+
} | {
|
|
392
|
+
url: string;
|
|
393
|
+
type?: string | undefined;
|
|
394
|
+
})[];
|
|
395
|
+
only?: boolean | undefined;
|
|
396
|
+
}, {
|
|
397
|
+
sources: (string | {
|
|
398
|
+
inline: string;
|
|
399
|
+
} | {
|
|
400
|
+
file: string;
|
|
401
|
+
} | {
|
|
402
|
+
url: string;
|
|
403
|
+
type?: string | undefined;
|
|
404
|
+
})[];
|
|
405
|
+
only?: boolean | undefined;
|
|
406
|
+
}>]>;
|
|
336
407
|
export declare const nodeZ: z.ZodObject<{
|
|
337
408
|
name: z.ZodString;
|
|
338
409
|
instruction: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -360,6 +431,138 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
360
431
|
skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
361
432
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
362
433
|
max_turns: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
435
|
+
inline: z.ZodString;
|
|
436
|
+
}, "strict", z.ZodTypeAny, {
|
|
437
|
+
inline: string;
|
|
438
|
+
}, {
|
|
439
|
+
inline: string;
|
|
440
|
+
}>, z.ZodObject<{
|
|
441
|
+
file: z.ZodString;
|
|
442
|
+
}, "strict", z.ZodTypeAny, {
|
|
443
|
+
file: string;
|
|
444
|
+
}, {
|
|
445
|
+
file: string;
|
|
446
|
+
}>, z.ZodObject<{
|
|
447
|
+
url: z.ZodString;
|
|
448
|
+
type: z.ZodOptional<z.ZodString>;
|
|
449
|
+
}, "strict", z.ZodTypeAny, {
|
|
450
|
+
url: string;
|
|
451
|
+
type?: string | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
url: string;
|
|
454
|
+
type?: string | undefined;
|
|
455
|
+
}>]>, "many">, z.ZodObject<{
|
|
456
|
+
only: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
458
|
+
inline: z.ZodString;
|
|
459
|
+
}, "strict", z.ZodTypeAny, {
|
|
460
|
+
inline: string;
|
|
461
|
+
}, {
|
|
462
|
+
inline: string;
|
|
463
|
+
}>, z.ZodObject<{
|
|
464
|
+
file: z.ZodString;
|
|
465
|
+
}, "strict", z.ZodTypeAny, {
|
|
466
|
+
file: string;
|
|
467
|
+
}, {
|
|
468
|
+
file: string;
|
|
469
|
+
}>, z.ZodObject<{
|
|
470
|
+
url: z.ZodString;
|
|
471
|
+
type: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, "strict", z.ZodTypeAny, {
|
|
473
|
+
url: string;
|
|
474
|
+
type?: string | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
url: string;
|
|
477
|
+
type?: string | undefined;
|
|
478
|
+
}>]>, "many">;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
sources: (string | {
|
|
481
|
+
inline: string;
|
|
482
|
+
} | {
|
|
483
|
+
file: string;
|
|
484
|
+
} | {
|
|
485
|
+
url: string;
|
|
486
|
+
type?: string | undefined;
|
|
487
|
+
})[];
|
|
488
|
+
only?: boolean | undefined;
|
|
489
|
+
}, {
|
|
490
|
+
sources: (string | {
|
|
491
|
+
inline: string;
|
|
492
|
+
} | {
|
|
493
|
+
file: string;
|
|
494
|
+
} | {
|
|
495
|
+
url: string;
|
|
496
|
+
type?: string | undefined;
|
|
497
|
+
})[];
|
|
498
|
+
only?: boolean | undefined;
|
|
499
|
+
}>]>>;
|
|
500
|
+
context: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
501
|
+
inline: z.ZodString;
|
|
502
|
+
}, "strict", z.ZodTypeAny, {
|
|
503
|
+
inline: string;
|
|
504
|
+
}, {
|
|
505
|
+
inline: string;
|
|
506
|
+
}>, z.ZodObject<{
|
|
507
|
+
file: z.ZodString;
|
|
508
|
+
}, "strict", z.ZodTypeAny, {
|
|
509
|
+
file: string;
|
|
510
|
+
}, {
|
|
511
|
+
file: string;
|
|
512
|
+
}>, z.ZodObject<{
|
|
513
|
+
url: z.ZodString;
|
|
514
|
+
type: z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, "strict", z.ZodTypeAny, {
|
|
516
|
+
url: string;
|
|
517
|
+
type?: string | undefined;
|
|
518
|
+
}, {
|
|
519
|
+
url: string;
|
|
520
|
+
type?: string | undefined;
|
|
521
|
+
}>]>, "many">, z.ZodObject<{
|
|
522
|
+
only: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
524
|
+
inline: z.ZodString;
|
|
525
|
+
}, "strict", z.ZodTypeAny, {
|
|
526
|
+
inline: string;
|
|
527
|
+
}, {
|
|
528
|
+
inline: string;
|
|
529
|
+
}>, z.ZodObject<{
|
|
530
|
+
file: z.ZodString;
|
|
531
|
+
}, "strict", z.ZodTypeAny, {
|
|
532
|
+
file: string;
|
|
533
|
+
}, {
|
|
534
|
+
file: string;
|
|
535
|
+
}>, z.ZodObject<{
|
|
536
|
+
url: z.ZodString;
|
|
537
|
+
type: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, "strict", z.ZodTypeAny, {
|
|
539
|
+
url: string;
|
|
540
|
+
type?: string | undefined;
|
|
541
|
+
}, {
|
|
542
|
+
url: string;
|
|
543
|
+
type?: string | undefined;
|
|
544
|
+
}>]>, "many">;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
sources: (string | {
|
|
547
|
+
inline: string;
|
|
548
|
+
} | {
|
|
549
|
+
file: string;
|
|
550
|
+
} | {
|
|
551
|
+
url: string;
|
|
552
|
+
type?: string | undefined;
|
|
553
|
+
})[];
|
|
554
|
+
only?: boolean | undefined;
|
|
555
|
+
}, {
|
|
556
|
+
sources: (string | {
|
|
557
|
+
inline: string;
|
|
558
|
+
} | {
|
|
559
|
+
file: string;
|
|
560
|
+
} | {
|
|
561
|
+
url: string;
|
|
562
|
+
type?: string | undefined;
|
|
563
|
+
})[];
|
|
564
|
+
only?: boolean | undefined;
|
|
565
|
+
}>]>>;
|
|
363
566
|
}, "strip", z.ZodTypeAny, {
|
|
364
567
|
instruction: string | {
|
|
365
568
|
inline: string;
|
|
@@ -371,6 +574,42 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
371
574
|
};
|
|
372
575
|
name: string;
|
|
373
576
|
skills: string[];
|
|
577
|
+
rules?: (string | {
|
|
578
|
+
inline: string;
|
|
579
|
+
} | {
|
|
580
|
+
file: string;
|
|
581
|
+
} | {
|
|
582
|
+
url: string;
|
|
583
|
+
type?: string | undefined;
|
|
584
|
+
})[] | {
|
|
585
|
+
sources: (string | {
|
|
586
|
+
inline: string;
|
|
587
|
+
} | {
|
|
588
|
+
file: string;
|
|
589
|
+
} | {
|
|
590
|
+
url: string;
|
|
591
|
+
type?: string | undefined;
|
|
592
|
+
})[];
|
|
593
|
+
only?: boolean | undefined;
|
|
594
|
+
} | undefined;
|
|
595
|
+
context?: (string | {
|
|
596
|
+
inline: string;
|
|
597
|
+
} | {
|
|
598
|
+
file: string;
|
|
599
|
+
} | {
|
|
600
|
+
url: string;
|
|
601
|
+
type?: string | undefined;
|
|
602
|
+
})[] | {
|
|
603
|
+
sources: (string | {
|
|
604
|
+
inline: string;
|
|
605
|
+
} | {
|
|
606
|
+
file: string;
|
|
607
|
+
} | {
|
|
608
|
+
url: string;
|
|
609
|
+
type?: string | undefined;
|
|
610
|
+
})[];
|
|
611
|
+
only?: boolean | undefined;
|
|
612
|
+
} | undefined;
|
|
374
613
|
output?: Record<string, unknown> | undefined;
|
|
375
614
|
max_turns?: number | undefined;
|
|
376
615
|
}, {
|
|
@@ -383,6 +622,42 @@ export declare const nodeZ: z.ZodObject<{
|
|
|
383
622
|
type?: string | undefined;
|
|
384
623
|
};
|
|
385
624
|
name: string;
|
|
625
|
+
rules?: (string | {
|
|
626
|
+
inline: string;
|
|
627
|
+
} | {
|
|
628
|
+
file: string;
|
|
629
|
+
} | {
|
|
630
|
+
url: string;
|
|
631
|
+
type?: string | undefined;
|
|
632
|
+
})[] | {
|
|
633
|
+
sources: (string | {
|
|
634
|
+
inline: string;
|
|
635
|
+
} | {
|
|
636
|
+
file: string;
|
|
637
|
+
} | {
|
|
638
|
+
url: string;
|
|
639
|
+
type?: string | undefined;
|
|
640
|
+
})[];
|
|
641
|
+
only?: boolean | undefined;
|
|
642
|
+
} | undefined;
|
|
643
|
+
context?: (string | {
|
|
644
|
+
inline: string;
|
|
645
|
+
} | {
|
|
646
|
+
file: string;
|
|
647
|
+
} | {
|
|
648
|
+
url: string;
|
|
649
|
+
type?: string | undefined;
|
|
650
|
+
})[] | {
|
|
651
|
+
sources: (string | {
|
|
652
|
+
inline: string;
|
|
653
|
+
} | {
|
|
654
|
+
file: string;
|
|
655
|
+
} | {
|
|
656
|
+
url: string;
|
|
657
|
+
type?: string | undefined;
|
|
658
|
+
})[];
|
|
659
|
+
only?: boolean | undefined;
|
|
660
|
+
} | undefined;
|
|
386
661
|
output?: Record<string, unknown> | undefined;
|
|
387
662
|
skills?: string[] | undefined;
|
|
388
663
|
max_turns?: number | undefined;
|
|
@@ -434,6 +709,138 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
434
709
|
skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
435
710
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
436
711
|
max_turns: z.ZodOptional<z.ZodNumber>;
|
|
712
|
+
rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
713
|
+
inline: z.ZodString;
|
|
714
|
+
}, "strict", z.ZodTypeAny, {
|
|
715
|
+
inline: string;
|
|
716
|
+
}, {
|
|
717
|
+
inline: string;
|
|
718
|
+
}>, z.ZodObject<{
|
|
719
|
+
file: z.ZodString;
|
|
720
|
+
}, "strict", z.ZodTypeAny, {
|
|
721
|
+
file: string;
|
|
722
|
+
}, {
|
|
723
|
+
file: string;
|
|
724
|
+
}>, z.ZodObject<{
|
|
725
|
+
url: z.ZodString;
|
|
726
|
+
type: z.ZodOptional<z.ZodString>;
|
|
727
|
+
}, "strict", z.ZodTypeAny, {
|
|
728
|
+
url: string;
|
|
729
|
+
type?: string | undefined;
|
|
730
|
+
}, {
|
|
731
|
+
url: string;
|
|
732
|
+
type?: string | undefined;
|
|
733
|
+
}>]>, "many">, z.ZodObject<{
|
|
734
|
+
only: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
+
sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
736
|
+
inline: z.ZodString;
|
|
737
|
+
}, "strict", z.ZodTypeAny, {
|
|
738
|
+
inline: string;
|
|
739
|
+
}, {
|
|
740
|
+
inline: string;
|
|
741
|
+
}>, z.ZodObject<{
|
|
742
|
+
file: z.ZodString;
|
|
743
|
+
}, "strict", z.ZodTypeAny, {
|
|
744
|
+
file: string;
|
|
745
|
+
}, {
|
|
746
|
+
file: string;
|
|
747
|
+
}>, z.ZodObject<{
|
|
748
|
+
url: z.ZodString;
|
|
749
|
+
type: z.ZodOptional<z.ZodString>;
|
|
750
|
+
}, "strict", z.ZodTypeAny, {
|
|
751
|
+
url: string;
|
|
752
|
+
type?: string | undefined;
|
|
753
|
+
}, {
|
|
754
|
+
url: string;
|
|
755
|
+
type?: string | undefined;
|
|
756
|
+
}>]>, "many">;
|
|
757
|
+
}, "strip", z.ZodTypeAny, {
|
|
758
|
+
sources: (string | {
|
|
759
|
+
inline: string;
|
|
760
|
+
} | {
|
|
761
|
+
file: string;
|
|
762
|
+
} | {
|
|
763
|
+
url: string;
|
|
764
|
+
type?: string | undefined;
|
|
765
|
+
})[];
|
|
766
|
+
only?: boolean | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
sources: (string | {
|
|
769
|
+
inline: string;
|
|
770
|
+
} | {
|
|
771
|
+
file: string;
|
|
772
|
+
} | {
|
|
773
|
+
url: string;
|
|
774
|
+
type?: string | undefined;
|
|
775
|
+
})[];
|
|
776
|
+
only?: boolean | undefined;
|
|
777
|
+
}>]>>;
|
|
778
|
+
context: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
779
|
+
inline: z.ZodString;
|
|
780
|
+
}, "strict", z.ZodTypeAny, {
|
|
781
|
+
inline: string;
|
|
782
|
+
}, {
|
|
783
|
+
inline: string;
|
|
784
|
+
}>, z.ZodObject<{
|
|
785
|
+
file: z.ZodString;
|
|
786
|
+
}, "strict", z.ZodTypeAny, {
|
|
787
|
+
file: string;
|
|
788
|
+
}, {
|
|
789
|
+
file: string;
|
|
790
|
+
}>, z.ZodObject<{
|
|
791
|
+
url: z.ZodString;
|
|
792
|
+
type: z.ZodOptional<z.ZodString>;
|
|
793
|
+
}, "strict", z.ZodTypeAny, {
|
|
794
|
+
url: string;
|
|
795
|
+
type?: string | undefined;
|
|
796
|
+
}, {
|
|
797
|
+
url: string;
|
|
798
|
+
type?: string | undefined;
|
|
799
|
+
}>]>, "many">, z.ZodObject<{
|
|
800
|
+
only: z.ZodOptional<z.ZodBoolean>;
|
|
801
|
+
sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
802
|
+
inline: z.ZodString;
|
|
803
|
+
}, "strict", z.ZodTypeAny, {
|
|
804
|
+
inline: string;
|
|
805
|
+
}, {
|
|
806
|
+
inline: string;
|
|
807
|
+
}>, z.ZodObject<{
|
|
808
|
+
file: z.ZodString;
|
|
809
|
+
}, "strict", z.ZodTypeAny, {
|
|
810
|
+
file: string;
|
|
811
|
+
}, {
|
|
812
|
+
file: string;
|
|
813
|
+
}>, z.ZodObject<{
|
|
814
|
+
url: z.ZodString;
|
|
815
|
+
type: z.ZodOptional<z.ZodString>;
|
|
816
|
+
}, "strict", z.ZodTypeAny, {
|
|
817
|
+
url: string;
|
|
818
|
+
type?: string | undefined;
|
|
819
|
+
}, {
|
|
820
|
+
url: string;
|
|
821
|
+
type?: string | undefined;
|
|
822
|
+
}>]>, "many">;
|
|
823
|
+
}, "strip", z.ZodTypeAny, {
|
|
824
|
+
sources: (string | {
|
|
825
|
+
inline: string;
|
|
826
|
+
} | {
|
|
827
|
+
file: string;
|
|
828
|
+
} | {
|
|
829
|
+
url: string;
|
|
830
|
+
type?: string | undefined;
|
|
831
|
+
})[];
|
|
832
|
+
only?: boolean | undefined;
|
|
833
|
+
}, {
|
|
834
|
+
sources: (string | {
|
|
835
|
+
inline: string;
|
|
836
|
+
} | {
|
|
837
|
+
file: string;
|
|
838
|
+
} | {
|
|
839
|
+
url: string;
|
|
840
|
+
type?: string | undefined;
|
|
841
|
+
})[];
|
|
842
|
+
only?: boolean | undefined;
|
|
843
|
+
}>]>>;
|
|
437
844
|
}, "strip", z.ZodTypeAny, {
|
|
438
845
|
instruction: string | {
|
|
439
846
|
inline: string;
|
|
@@ -445,6 +852,42 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
445
852
|
};
|
|
446
853
|
name: string;
|
|
447
854
|
skills: string[];
|
|
855
|
+
rules?: (string | {
|
|
856
|
+
inline: string;
|
|
857
|
+
} | {
|
|
858
|
+
file: string;
|
|
859
|
+
} | {
|
|
860
|
+
url: string;
|
|
861
|
+
type?: string | undefined;
|
|
862
|
+
})[] | {
|
|
863
|
+
sources: (string | {
|
|
864
|
+
inline: string;
|
|
865
|
+
} | {
|
|
866
|
+
file: string;
|
|
867
|
+
} | {
|
|
868
|
+
url: string;
|
|
869
|
+
type?: string | undefined;
|
|
870
|
+
})[];
|
|
871
|
+
only?: boolean | undefined;
|
|
872
|
+
} | undefined;
|
|
873
|
+
context?: (string | {
|
|
874
|
+
inline: string;
|
|
875
|
+
} | {
|
|
876
|
+
file: string;
|
|
877
|
+
} | {
|
|
878
|
+
url: string;
|
|
879
|
+
type?: string | undefined;
|
|
880
|
+
})[] | {
|
|
881
|
+
sources: (string | {
|
|
882
|
+
inline: string;
|
|
883
|
+
} | {
|
|
884
|
+
file: string;
|
|
885
|
+
} | {
|
|
886
|
+
url: string;
|
|
887
|
+
type?: string | undefined;
|
|
888
|
+
})[];
|
|
889
|
+
only?: boolean | undefined;
|
|
890
|
+
} | undefined;
|
|
448
891
|
output?: Record<string, unknown> | undefined;
|
|
449
892
|
max_turns?: number | undefined;
|
|
450
893
|
}, {
|
|
@@ -457,6 +900,42 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
457
900
|
type?: string | undefined;
|
|
458
901
|
};
|
|
459
902
|
name: string;
|
|
903
|
+
rules?: (string | {
|
|
904
|
+
inline: string;
|
|
905
|
+
} | {
|
|
906
|
+
file: string;
|
|
907
|
+
} | {
|
|
908
|
+
url: string;
|
|
909
|
+
type?: string | undefined;
|
|
910
|
+
})[] | {
|
|
911
|
+
sources: (string | {
|
|
912
|
+
inline: string;
|
|
913
|
+
} | {
|
|
914
|
+
file: string;
|
|
915
|
+
} | {
|
|
916
|
+
url: string;
|
|
917
|
+
type?: string | undefined;
|
|
918
|
+
})[];
|
|
919
|
+
only?: boolean | undefined;
|
|
920
|
+
} | undefined;
|
|
921
|
+
context?: (string | {
|
|
922
|
+
inline: string;
|
|
923
|
+
} | {
|
|
924
|
+
file: string;
|
|
925
|
+
} | {
|
|
926
|
+
url: string;
|
|
927
|
+
type?: string | undefined;
|
|
928
|
+
})[] | {
|
|
929
|
+
sources: (string | {
|
|
930
|
+
inline: string;
|
|
931
|
+
} | {
|
|
932
|
+
file: string;
|
|
933
|
+
} | {
|
|
934
|
+
url: string;
|
|
935
|
+
type?: string | undefined;
|
|
936
|
+
})[];
|
|
937
|
+
only?: boolean | undefined;
|
|
938
|
+
} | undefined;
|
|
460
939
|
output?: Record<string, unknown> | undefined;
|
|
461
940
|
skills?: string[] | undefined;
|
|
462
941
|
max_turns?: number | undefined;
|
|
@@ -567,6 +1046,50 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
567
1046
|
args?: string[] | undefined;
|
|
568
1047
|
} | undefined;
|
|
569
1048
|
}>>>;
|
|
1049
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1050
|
+
inline: z.ZodString;
|
|
1051
|
+
}, "strict", z.ZodTypeAny, {
|
|
1052
|
+
inline: string;
|
|
1053
|
+
}, {
|
|
1054
|
+
inline: string;
|
|
1055
|
+
}>, z.ZodObject<{
|
|
1056
|
+
file: z.ZodString;
|
|
1057
|
+
}, "strict", z.ZodTypeAny, {
|
|
1058
|
+
file: string;
|
|
1059
|
+
}, {
|
|
1060
|
+
file: string;
|
|
1061
|
+
}>, z.ZodObject<{
|
|
1062
|
+
url: z.ZodString;
|
|
1063
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
}, "strict", z.ZodTypeAny, {
|
|
1065
|
+
url: string;
|
|
1066
|
+
type?: string | undefined;
|
|
1067
|
+
}, {
|
|
1068
|
+
url: string;
|
|
1069
|
+
type?: string | undefined;
|
|
1070
|
+
}>]>, "many">>;
|
|
1071
|
+
context: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1072
|
+
inline: z.ZodString;
|
|
1073
|
+
}, "strict", z.ZodTypeAny, {
|
|
1074
|
+
inline: string;
|
|
1075
|
+
}, {
|
|
1076
|
+
inline: string;
|
|
1077
|
+
}>, z.ZodObject<{
|
|
1078
|
+
file: z.ZodString;
|
|
1079
|
+
}, "strict", z.ZodTypeAny, {
|
|
1080
|
+
file: string;
|
|
1081
|
+
}, {
|
|
1082
|
+
file: string;
|
|
1083
|
+
}>, z.ZodObject<{
|
|
1084
|
+
url: z.ZodString;
|
|
1085
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, "strict", z.ZodTypeAny, {
|
|
1087
|
+
url: string;
|
|
1088
|
+
type?: string | undefined;
|
|
1089
|
+
}, {
|
|
1090
|
+
url: string;
|
|
1091
|
+
type?: string | undefined;
|
|
1092
|
+
}>]>, "many">>;
|
|
570
1093
|
}, "strip", z.ZodTypeAny, {
|
|
571
1094
|
name: string;
|
|
572
1095
|
id: string;
|
|
@@ -595,6 +1118,42 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
595
1118
|
};
|
|
596
1119
|
name: string;
|
|
597
1120
|
skills: string[];
|
|
1121
|
+
rules?: (string | {
|
|
1122
|
+
inline: string;
|
|
1123
|
+
} | {
|
|
1124
|
+
file: string;
|
|
1125
|
+
} | {
|
|
1126
|
+
url: string;
|
|
1127
|
+
type?: string | undefined;
|
|
1128
|
+
})[] | {
|
|
1129
|
+
sources: (string | {
|
|
1130
|
+
inline: string;
|
|
1131
|
+
} | {
|
|
1132
|
+
file: string;
|
|
1133
|
+
} | {
|
|
1134
|
+
url: string;
|
|
1135
|
+
type?: string | undefined;
|
|
1136
|
+
})[];
|
|
1137
|
+
only?: boolean | undefined;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
context?: (string | {
|
|
1140
|
+
inline: string;
|
|
1141
|
+
} | {
|
|
1142
|
+
file: string;
|
|
1143
|
+
} | {
|
|
1144
|
+
url: string;
|
|
1145
|
+
type?: string | undefined;
|
|
1146
|
+
})[] | {
|
|
1147
|
+
sources: (string | {
|
|
1148
|
+
inline: string;
|
|
1149
|
+
} | {
|
|
1150
|
+
file: string;
|
|
1151
|
+
} | {
|
|
1152
|
+
url: string;
|
|
1153
|
+
type?: string | undefined;
|
|
1154
|
+
})[];
|
|
1155
|
+
only?: boolean | undefined;
|
|
1156
|
+
} | undefined;
|
|
598
1157
|
output?: Record<string, unknown> | undefined;
|
|
599
1158
|
max_turns?: number | undefined;
|
|
600
1159
|
}>;
|
|
@@ -605,6 +1164,22 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
605
1164
|
max_iterations?: number | undefined;
|
|
606
1165
|
}[];
|
|
607
1166
|
entry: string;
|
|
1167
|
+
rules?: (string | {
|
|
1168
|
+
inline: string;
|
|
1169
|
+
} | {
|
|
1170
|
+
file: string;
|
|
1171
|
+
} | {
|
|
1172
|
+
url: string;
|
|
1173
|
+
type?: string | undefined;
|
|
1174
|
+
})[] | undefined;
|
|
1175
|
+
context?: (string | {
|
|
1176
|
+
inline: string;
|
|
1177
|
+
} | {
|
|
1178
|
+
file: string;
|
|
1179
|
+
} | {
|
|
1180
|
+
url: string;
|
|
1181
|
+
type?: string | undefined;
|
|
1182
|
+
})[] | undefined;
|
|
608
1183
|
}, {
|
|
609
1184
|
name: string;
|
|
610
1185
|
id: string;
|
|
@@ -618,6 +1193,42 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
618
1193
|
type?: string | undefined;
|
|
619
1194
|
};
|
|
620
1195
|
name: string;
|
|
1196
|
+
rules?: (string | {
|
|
1197
|
+
inline: string;
|
|
1198
|
+
} | {
|
|
1199
|
+
file: string;
|
|
1200
|
+
} | {
|
|
1201
|
+
url: string;
|
|
1202
|
+
type?: string | undefined;
|
|
1203
|
+
})[] | {
|
|
1204
|
+
sources: (string | {
|
|
1205
|
+
inline: string;
|
|
1206
|
+
} | {
|
|
1207
|
+
file: string;
|
|
1208
|
+
} | {
|
|
1209
|
+
url: string;
|
|
1210
|
+
type?: string | undefined;
|
|
1211
|
+
})[];
|
|
1212
|
+
only?: boolean | undefined;
|
|
1213
|
+
} | undefined;
|
|
1214
|
+
context?: (string | {
|
|
1215
|
+
inline: string;
|
|
1216
|
+
} | {
|
|
1217
|
+
file: string;
|
|
1218
|
+
} | {
|
|
1219
|
+
url: string;
|
|
1220
|
+
type?: string | undefined;
|
|
1221
|
+
})[] | {
|
|
1222
|
+
sources: (string | {
|
|
1223
|
+
inline: string;
|
|
1224
|
+
} | {
|
|
1225
|
+
file: string;
|
|
1226
|
+
} | {
|
|
1227
|
+
url: string;
|
|
1228
|
+
type?: string | undefined;
|
|
1229
|
+
})[];
|
|
1230
|
+
only?: boolean | undefined;
|
|
1231
|
+
} | undefined;
|
|
621
1232
|
output?: Record<string, unknown> | undefined;
|
|
622
1233
|
skills?: string[] | undefined;
|
|
623
1234
|
max_turns?: number | undefined;
|
|
@@ -629,6 +1240,22 @@ export declare const workflowZ: z.ZodObject<{
|
|
|
629
1240
|
max_iterations?: number | undefined;
|
|
630
1241
|
}[];
|
|
631
1242
|
entry: string;
|
|
1243
|
+
rules?: (string | {
|
|
1244
|
+
inline: string;
|
|
1245
|
+
} | {
|
|
1246
|
+
file: string;
|
|
1247
|
+
} | {
|
|
1248
|
+
url: string;
|
|
1249
|
+
type?: string | undefined;
|
|
1250
|
+
})[] | undefined;
|
|
1251
|
+
context?: (string | {
|
|
1252
|
+
inline: string;
|
|
1253
|
+
} | {
|
|
1254
|
+
file: string;
|
|
1255
|
+
} | {
|
|
1256
|
+
url: string;
|
|
1257
|
+
type?: string | undefined;
|
|
1258
|
+
})[] | undefined;
|
|
632
1259
|
description?: string | undefined;
|
|
633
1260
|
skills?: Record<string, {
|
|
634
1261
|
instruction?: string | undefined;
|
|
@@ -673,6 +1300,42 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
673
1300
|
};
|
|
674
1301
|
name: string;
|
|
675
1302
|
skills: string[];
|
|
1303
|
+
rules?: (string | {
|
|
1304
|
+
inline: string;
|
|
1305
|
+
} | {
|
|
1306
|
+
file: string;
|
|
1307
|
+
} | {
|
|
1308
|
+
url: string;
|
|
1309
|
+
type?: string | undefined;
|
|
1310
|
+
})[] | {
|
|
1311
|
+
sources: (string | {
|
|
1312
|
+
inline: string;
|
|
1313
|
+
} | {
|
|
1314
|
+
file: string;
|
|
1315
|
+
} | {
|
|
1316
|
+
url: string;
|
|
1317
|
+
type?: string | undefined;
|
|
1318
|
+
})[];
|
|
1319
|
+
only?: boolean | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
context?: (string | {
|
|
1322
|
+
inline: string;
|
|
1323
|
+
} | {
|
|
1324
|
+
file: string;
|
|
1325
|
+
} | {
|
|
1326
|
+
url: string;
|
|
1327
|
+
type?: string | undefined;
|
|
1328
|
+
})[] | {
|
|
1329
|
+
sources: (string | {
|
|
1330
|
+
inline: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
file: string;
|
|
1333
|
+
} | {
|
|
1334
|
+
url: string;
|
|
1335
|
+
type?: string | undefined;
|
|
1336
|
+
})[];
|
|
1337
|
+
only?: boolean | undefined;
|
|
1338
|
+
} | undefined;
|
|
676
1339
|
output?: Record<string, unknown> | undefined;
|
|
677
1340
|
max_turns?: number | undefined;
|
|
678
1341
|
}>;
|
|
@@ -683,6 +1346,22 @@ export declare function parseWorkflow(raw: unknown): {
|
|
|
683
1346
|
max_iterations?: number | undefined;
|
|
684
1347
|
}[];
|
|
685
1348
|
entry: string;
|
|
1349
|
+
rules?: (string | {
|
|
1350
|
+
inline: string;
|
|
1351
|
+
} | {
|
|
1352
|
+
file: string;
|
|
1353
|
+
} | {
|
|
1354
|
+
url: string;
|
|
1355
|
+
type?: string | undefined;
|
|
1356
|
+
})[] | undefined;
|
|
1357
|
+
context?: (string | {
|
|
1358
|
+
inline: string;
|
|
1359
|
+
} | {
|
|
1360
|
+
file: string;
|
|
1361
|
+
} | {
|
|
1362
|
+
url: string;
|
|
1363
|
+
type?: string | undefined;
|
|
1364
|
+
})[] | undefined;
|
|
686
1365
|
};
|
|
687
1366
|
export interface WorkflowError {
|
|
688
1367
|
code: "MISSING_ENTRY" | "UNKNOWN_EDGE_SOURCE" | "UNKNOWN_EDGE_TARGET" | "UNREACHABLE_NODE" | "UNKNOWN_SKILL" | "SELF_LOOP" | "UNBOUNDED_CYCLE" | "INVALID_INLINE_SKILL";
|
|
@@ -752,6 +1431,29 @@ export declare const workflowJsonSchema: {
|
|
|
752
1431
|
readonly additionalProperties: false;
|
|
753
1432
|
}];
|
|
754
1433
|
};
|
|
1434
|
+
readonly NodeSources: {
|
|
1435
|
+
readonly oneOf: readonly [{
|
|
1436
|
+
readonly type: "array";
|
|
1437
|
+
readonly items: {
|
|
1438
|
+
readonly $ref: "#/$defs/Source";
|
|
1439
|
+
};
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly type: "object";
|
|
1442
|
+
readonly required: readonly ["sources"];
|
|
1443
|
+
readonly additionalProperties: false;
|
|
1444
|
+
readonly properties: {
|
|
1445
|
+
readonly only: {
|
|
1446
|
+
readonly type: "boolean";
|
|
1447
|
+
};
|
|
1448
|
+
readonly sources: {
|
|
1449
|
+
readonly type: "array";
|
|
1450
|
+
readonly items: {
|
|
1451
|
+
readonly $ref: "#/$defs/Source";
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
}];
|
|
1456
|
+
};
|
|
755
1457
|
};
|
|
756
1458
|
readonly properties: {
|
|
757
1459
|
readonly id: {
|
|
@@ -770,6 +1472,20 @@ export declare const workflowJsonSchema: {
|
|
|
770
1472
|
readonly minLength: 1;
|
|
771
1473
|
readonly description: "ID of the entry node";
|
|
772
1474
|
};
|
|
1475
|
+
readonly rules: {
|
|
1476
|
+
readonly type: "array";
|
|
1477
|
+
readonly items: {
|
|
1478
|
+
readonly $ref: "#/$defs/Source";
|
|
1479
|
+
};
|
|
1480
|
+
readonly description: "Directives prepended to every node's instruction.";
|
|
1481
|
+
};
|
|
1482
|
+
readonly context: {
|
|
1483
|
+
readonly type: "array";
|
|
1484
|
+
readonly items: {
|
|
1485
|
+
readonly $ref: "#/$defs/Source";
|
|
1486
|
+
};
|
|
1487
|
+
readonly description: "Background knowledge prepended to every node's instruction.";
|
|
1488
|
+
};
|
|
773
1489
|
readonly nodes: {
|
|
774
1490
|
readonly type: "object";
|
|
775
1491
|
readonly additionalProperties: {
|
|
@@ -801,6 +1517,14 @@ export declare const workflowJsonSchema: {
|
|
|
801
1517
|
readonly minimum: 1;
|
|
802
1518
|
readonly description: "Max AI model turns for this node. When absent, the executor's default applies.";
|
|
803
1519
|
};
|
|
1520
|
+
readonly rules: {
|
|
1521
|
+
readonly $ref: "#/$defs/NodeSources";
|
|
1522
|
+
readonly description: "Per-node rules. Additive by default; set { only: true } to block cascade.";
|
|
1523
|
+
};
|
|
1524
|
+
readonly context: {
|
|
1525
|
+
readonly $ref: "#/$defs/NodeSources";
|
|
1526
|
+
readonly description: "Per-node context. Additive by default; set { only: true } to block cascade.";
|
|
1527
|
+
};
|
|
804
1528
|
};
|
|
805
1529
|
};
|
|
806
1530
|
};
|