@requence/service 0.8.2-edge.1149 → 0.8.2-edge.1154

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.
Files changed (27) hide show
  1. package/build/chunk-974rc2jy.js.map +1 -1
  2. package/build/index.js +29 -7
  3. package/build/index.js.map +4 -4
  4. package/build/types/helpers/src/index.d.ts +1 -0
  5. package/build/types/helpers/src/index.d.ts.map +1 -1
  6. package/build/types/helpers/src/protocol/NodeTree.d.ts +21 -0
  7. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  8. package/build/types/helpers/src/protocol/clientProperties.d.ts +50 -0
  9. package/build/types/helpers/src/protocol/clientProperties.d.ts.map +1 -1
  10. package/build/types/helpers/src/protocol/command.d.ts +799 -0
  11. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  12. package/build/types/helpers/src/protocol/index.d.ts +1 -0
  13. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  14. package/build/types/helpers/src/protocol/nodeType.d.ts +14 -0
  15. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  16. package/build/types/helpers/src/protocol/sliceTreeList.d.ts +81 -0
  17. package/build/types/helpers/src/protocol/sliceTreeList.d.ts.map +1 -0
  18. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
  19. package/build/types/helpers/src/protocol/treeNodes.d.ts +629 -4
  20. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  21. package/build/types/helpers/src/protocol/update.d.ts +14 -0
  22. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  23. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +113 -18
  24. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -1
  25. package/build/types/helpers/src/utils/sliceClock.d.ts +61 -0
  26. package/build/types/helpers/src/utils/sliceClock.d.ts.map +1 -0
  27. package/package.json +1 -1
@@ -44,6 +44,13 @@ export declare const treeSchema: z.ZodObject<{
44
44
  json: "json";
45
45
  msgpack: "msgpack";
46
46
  }>>;
47
+ wireCodecReason: z.ZodOptional<z.ZodEnum<{
48
+ "fleet-capable": "fleet-capable";
49
+ "missing-capability": "missing-capability";
50
+ "no-replicas": "no-replicas";
51
+ "presence-unavailable": "presence-unavailable";
52
+ "replicas-unaccounted": "replicas-unaccounted";
53
+ }>>;
47
54
  configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
48
55
  }, z.core.$strict>, z.ZodObject<{
49
56
  outputs: z.ZodArray<z.ZodObject<{
@@ -109,7 +116,7 @@ export declare const treeSchema: z.ZodObject<{
109
116
  }, z.core.$strip>>;
110
117
  }, z.core.$strict>;
111
118
  export type Tree = z.output<typeof treeSchema>;
112
- declare const extendedTreeSchema: z.ZodObject<{
119
+ export declare const extendedTreeSchema: z.ZodObject<{
113
120
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
114
121
  id: z.ZodDefault<z.ZodUUID>;
115
122
  type: z.ZodLiteral<"entry">;
@@ -154,6 +161,13 @@ declare const extendedTreeSchema: z.ZodObject<{
154
161
  json: "json";
155
162
  msgpack: "msgpack";
156
163
  }>>;
164
+ wireCodecReason: z.ZodOptional<z.ZodEnum<{
165
+ "fleet-capable": "fleet-capable";
166
+ "missing-capability": "missing-capability";
167
+ "no-replicas": "no-replicas";
168
+ "presence-unavailable": "presence-unavailable";
169
+ "replicas-unaccounted": "replicas-unaccounted";
170
+ }>>;
157
171
  configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
158
172
  }, z.core.$strict>, z.ZodObject<{
159
173
  outputs: z.ZodArray<z.ZodObject<{
@@ -220,6 +234,16 @@ declare const extendedTreeSchema: z.ZodObject<{
220
234
  allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
221
235
  }, z.core.$strict>;
222
236
  export type ExtendendTree = z.output<typeof extendedTreeSchema>;
237
+ /**
238
+ * EVERY STRUCTURAL RULE OF A TREE, as a plain function of already-parsed nodes
239
+ * and edges. Throws `NodeTransformError`; never touches zod.
240
+ *
241
+ * Extracted from `validatedTreeSchema`'s transform (where it used to live
242
+ * inline) so the sliced validator of `sliceTreeList.ts` can run the SAME checks
243
+ * after validating the nodes and edges one at a time (#134). Two copies of these
244
+ * rules would be two definitions of what a valid task is.
245
+ */
246
+ export declare function checkTreeStructure({ nodes, edges, allowMultipleOutputs, }: ExtendendTree): Tree;
223
247
  export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
224
248
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
225
249
  id: z.ZodDefault<z.ZodUUID>;
@@ -265,6 +289,13 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
265
289
  json: "json";
266
290
  msgpack: "msgpack";
267
291
  }>>;
292
+ wireCodecReason: z.ZodOptional<z.ZodEnum<{
293
+ "fleet-capable": "fleet-capable";
294
+ "missing-capability": "missing-capability";
295
+ "no-replicas": "no-replicas";
296
+ "presence-unavailable": "presence-unavailable";
297
+ "replicas-unaccounted": "replicas-unaccounted";
298
+ }>>;
268
299
  configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
269
300
  }, z.core.$strict>, z.ZodObject<{
270
301
  outputs: z.ZodArray<z.ZodObject<{
@@ -368,6 +399,557 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
368
399
  mode: "CONTINUOUS" | "LINEAR";
369
400
  privileged: boolean;
370
401
  wireCodec?: "json" | "msgpack" | undefined;
402
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
403
+ configurationServices?: {
404
+ outputs: {
405
+ name: string | null;
406
+ schema: import("json-schema").JSONSchema7 | null;
407
+ }[];
408
+ id: string;
409
+ type: "service";
410
+ alias?: string | undefined;
411
+ inputSchema: {
412
+ type: "null";
413
+ } | ({
414
+ type: "object";
415
+ } & import("json-schema").JSONSchema7) | ({
416
+ $ref: string;
417
+ } & import("json-schema").JSONSchema7) | ({
418
+ oneOf: ({
419
+ type: "null";
420
+ } | ({
421
+ type: "object";
422
+ } & import("json-schema").JSONSchema7) | ({
423
+ $ref: string;
424
+ } & import("json-schema").JSONSchema7))[];
425
+ } & import("json-schema").JSONSchema7);
426
+ name: string;
427
+ version: string;
428
+ configuration?: any;
429
+ configurationSchema: import("json-schema").JSONSchema7;
430
+ ttl?: number | undefined;
431
+ retry: number;
432
+ retryDelay?: number | undefined;
433
+ mode: "CONTINUOUS" | "LINEAR";
434
+ privileged: boolean;
435
+ wireCodec?: "json" | "msgpack" | undefined;
436
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
437
+ configurationServices?: /*elided*/ any[] | undefined;
438
+ }[] | undefined;
439
+ } | {
440
+ outputs: {
441
+ name: string | null;
442
+ schema: import("json-schema").JSONSchema7 | null;
443
+ }[];
444
+ id: string;
445
+ type: "logic";
446
+ alias?: string | undefined;
447
+ script: string;
448
+ concurrency: boolean;
449
+ language: "javascript" | "python" | "typescript";
450
+ maxExecutionTime: number;
451
+ } | {
452
+ id: string;
453
+ type: "or";
454
+ alias?: string | undefined;
455
+ } | {
456
+ outputs: {
457
+ name: string | null;
458
+ schema: import("json-schema").JSONSchema7 | null;
459
+ }[];
460
+ id: string;
461
+ type: "reference";
462
+ alias?: string | undefined;
463
+ reference: string;
464
+ enabled: boolean;
465
+ inputSchema: {
466
+ type: "null";
467
+ } | ({
468
+ type: "object";
469
+ } & import("json-schema").JSONSchema7) | ({
470
+ $ref: string;
471
+ } & import("json-schema").JSONSchema7) | ({
472
+ oneOf: ({
473
+ type: "null";
474
+ } | ({
475
+ type: "object";
476
+ } & import("json-schema").JSONSchema7) | ({
477
+ $ref: string;
478
+ } & import("json-schema").JSONSchema7))[];
479
+ } & import("json-schema").JSONSchema7);
480
+ } | {
481
+ id: string;
482
+ type: "exit";
483
+ alias?: string | undefined;
484
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
485
+ } | {
486
+ id: string;
487
+ type: "comment";
488
+ text: string;
489
+ alias?: string | undefined;
490
+ })[];
491
+ edges: {
492
+ id: string;
493
+ source: string;
494
+ sourceHandle: string | null;
495
+ target: string;
496
+ }[];
497
+ }, {
498
+ nodes: ({
499
+ id: string;
500
+ type: "entry";
501
+ alias?: string | undefined;
502
+ inputSchema: import("json-schema").JSONSchema7;
503
+ } | {
504
+ outputs: {
505
+ name: string | null;
506
+ schema: import("json-schema").JSONSchema7 | null;
507
+ }[];
508
+ id: string;
509
+ type: "service";
510
+ alias?: string | undefined;
511
+ inputSchema: {
512
+ type: "null";
513
+ } | ({
514
+ type: "object";
515
+ } & import("json-schema").JSONSchema7) | ({
516
+ $ref: string;
517
+ } & import("json-schema").JSONSchema7) | ({
518
+ oneOf: ({
519
+ type: "null";
520
+ } | ({
521
+ type: "object";
522
+ } & import("json-schema").JSONSchema7) | ({
523
+ $ref: string;
524
+ } & import("json-schema").JSONSchema7))[];
525
+ } & import("json-schema").JSONSchema7);
526
+ name: string;
527
+ version: string;
528
+ configuration?: any;
529
+ configurationSchema: import("json-schema").JSONSchema7;
530
+ ttl?: number | undefined;
531
+ retry: number;
532
+ retryDelay?: number | undefined;
533
+ mode: "CONTINUOUS" | "LINEAR";
534
+ privileged: boolean;
535
+ wireCodec?: "json" | "msgpack" | undefined;
536
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
537
+ configurationServices?: {
538
+ outputs: {
539
+ name: string | null;
540
+ schema: import("json-schema").JSONSchema7 | null;
541
+ }[];
542
+ id: string;
543
+ type: "service";
544
+ alias?: string | undefined;
545
+ inputSchema: {
546
+ type: "null";
547
+ } | ({
548
+ type: "object";
549
+ } & import("json-schema").JSONSchema7) | ({
550
+ $ref: string;
551
+ } & import("json-schema").JSONSchema7) | ({
552
+ oneOf: ({
553
+ type: "null";
554
+ } | ({
555
+ type: "object";
556
+ } & import("json-schema").JSONSchema7) | ({
557
+ $ref: string;
558
+ } & import("json-schema").JSONSchema7))[];
559
+ } & import("json-schema").JSONSchema7);
560
+ name: string;
561
+ version: string;
562
+ configuration?: any;
563
+ configurationSchema: import("json-schema").JSONSchema7;
564
+ ttl?: number | undefined;
565
+ retry: number;
566
+ retryDelay?: number | undefined;
567
+ mode: "CONTINUOUS" | "LINEAR";
568
+ privileged: boolean;
569
+ wireCodec?: "json" | "msgpack" | undefined;
570
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
571
+ configurationServices?: any[] | undefined;
572
+ }[] | undefined;
573
+ } | {
574
+ outputs: {
575
+ name: string | null;
576
+ schema: import("json-schema").JSONSchema7 | null;
577
+ }[];
578
+ id: string;
579
+ type: "logic";
580
+ alias?: string | undefined;
581
+ script: string;
582
+ concurrency: boolean;
583
+ language: "javascript" | "python" | "typescript";
584
+ maxExecutionTime: number;
585
+ } | {
586
+ id: string;
587
+ type: "or";
588
+ alias?: string | undefined;
589
+ } | {
590
+ outputs: {
591
+ name: string | null;
592
+ schema: import("json-schema").JSONSchema7 | null;
593
+ }[];
594
+ id: string;
595
+ type: "reference";
596
+ alias?: string | undefined;
597
+ reference: string;
598
+ enabled: boolean;
599
+ inputSchema: {
600
+ type: "null";
601
+ } | ({
602
+ type: "object";
603
+ } & import("json-schema").JSONSchema7) | ({
604
+ $ref: string;
605
+ } & import("json-schema").JSONSchema7) | ({
606
+ oneOf: ({
607
+ type: "null";
608
+ } | ({
609
+ type: "object";
610
+ } & import("json-schema").JSONSchema7) | ({
611
+ $ref: string;
612
+ } & import("json-schema").JSONSchema7))[];
613
+ } & import("json-schema").JSONSchema7);
614
+ } | {
615
+ id: string;
616
+ type: "exit";
617
+ alias?: string | undefined;
618
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
619
+ } | {
620
+ id: string;
621
+ type: "comment";
622
+ text: string;
623
+ alias?: string | undefined;
624
+ })[];
625
+ edges: {
626
+ id: string;
627
+ source: string;
628
+ sourceHandle: string | null;
629
+ target: string;
630
+ }[];
631
+ allowMultipleOutputs: boolean;
632
+ }>>;
633
+ /**
634
+ * `validatedTreeSchema` for a tree whose nodes and edges are ALREADY validated.
635
+ *
636
+ * The sliced validator (#134) parses nodes and edges one at a time so it can
637
+ * yield to the event loop between them, and then needs the structural pass — the
638
+ * part that has to see the whole graph at once. Running it through this twin
639
+ * rather than calling `checkTreeStructure` directly is what makes its issue
640
+ * identical to the one `validatedTreeSchema` produces: same `safeTransform`,
641
+ * same zod finalisation, no hand-built issue to drift from.
642
+ *
643
+ * `z.custom` with no validator accepts anything, which is exactly right here:
644
+ * the items were validated by `nodeSchema`/`edgeSchema` a moment ago and must
645
+ * not pay for it twice.
646
+ */
647
+ export declare const preparsedTreeSchema: z.ZodPipe<z.ZodObject<{
648
+ allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
649
+ nodes: z.ZodArray<z.ZodCustom<{
650
+ id: string;
651
+ type: "entry";
652
+ alias?: string | undefined;
653
+ inputSchema: import("json-schema").JSONSchema7;
654
+ } | {
655
+ outputs: {
656
+ name: string | null;
657
+ schema: import("json-schema").JSONSchema7 | null;
658
+ }[];
659
+ id: string;
660
+ type: "service";
661
+ alias?: string | undefined;
662
+ inputSchema: {
663
+ type: "null";
664
+ } | ({
665
+ type: "object";
666
+ } & import("json-schema").JSONSchema7) | ({
667
+ $ref: string;
668
+ } & import("json-schema").JSONSchema7) | ({
669
+ oneOf: ({
670
+ type: "null";
671
+ } | ({
672
+ type: "object";
673
+ } & import("json-schema").JSONSchema7) | ({
674
+ $ref: string;
675
+ } & import("json-schema").JSONSchema7))[];
676
+ } & import("json-schema").JSONSchema7);
677
+ name: string;
678
+ version: string;
679
+ configuration?: any;
680
+ configurationSchema: import("json-schema").JSONSchema7;
681
+ ttl?: number | undefined;
682
+ retry: number;
683
+ retryDelay?: number | undefined;
684
+ mode: "CONTINUOUS" | "LINEAR";
685
+ privileged: boolean;
686
+ wireCodec?: "json" | "msgpack" | undefined;
687
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
688
+ configurationServices?: {
689
+ outputs: {
690
+ name: string | null;
691
+ schema: import("json-schema").JSONSchema7 | null;
692
+ }[];
693
+ id: string;
694
+ type: "service";
695
+ alias?: string | undefined;
696
+ inputSchema: {
697
+ type: "null";
698
+ } | ({
699
+ type: "object";
700
+ } & import("json-schema").JSONSchema7) | ({
701
+ $ref: string;
702
+ } & import("json-schema").JSONSchema7) | ({
703
+ oneOf: ({
704
+ type: "null";
705
+ } | ({
706
+ type: "object";
707
+ } & import("json-schema").JSONSchema7) | ({
708
+ $ref: string;
709
+ } & import("json-schema").JSONSchema7))[];
710
+ } & import("json-schema").JSONSchema7);
711
+ name: string;
712
+ version: string;
713
+ configuration?: any;
714
+ configurationSchema: import("json-schema").JSONSchema7;
715
+ ttl?: number | undefined;
716
+ retry: number;
717
+ retryDelay?: number | undefined;
718
+ mode: "CONTINUOUS" | "LINEAR";
719
+ privileged: boolean;
720
+ wireCodec?: "json" | "msgpack" | undefined;
721
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
722
+ configurationServices?: /*elided*/ any[] | undefined;
723
+ }[] | undefined;
724
+ } | {
725
+ outputs: {
726
+ name: string | null;
727
+ schema: import("json-schema").JSONSchema7 | null;
728
+ }[];
729
+ id: string;
730
+ type: "logic";
731
+ alias?: string | undefined;
732
+ script: string;
733
+ concurrency: boolean;
734
+ language: "javascript" | "python" | "typescript";
735
+ maxExecutionTime: number;
736
+ } | {
737
+ id: string;
738
+ type: "or";
739
+ alias?: string | undefined;
740
+ } | {
741
+ outputs: {
742
+ name: string | null;
743
+ schema: import("json-schema").JSONSchema7 | null;
744
+ }[];
745
+ id: string;
746
+ type: "reference";
747
+ alias?: string | undefined;
748
+ reference: string;
749
+ enabled: boolean;
750
+ inputSchema: {
751
+ type: "null";
752
+ } | ({
753
+ type: "object";
754
+ } & import("json-schema").JSONSchema7) | ({
755
+ $ref: string;
756
+ } & import("json-schema").JSONSchema7) | ({
757
+ oneOf: ({
758
+ type: "null";
759
+ } | ({
760
+ type: "object";
761
+ } & import("json-schema").JSONSchema7) | ({
762
+ $ref: string;
763
+ } & import("json-schema").JSONSchema7))[];
764
+ } & import("json-schema").JSONSchema7);
765
+ } | {
766
+ id: string;
767
+ type: "exit";
768
+ alias?: string | undefined;
769
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
770
+ } | {
771
+ id: string;
772
+ type: "comment";
773
+ text: string;
774
+ alias?: string | undefined;
775
+ }, {
776
+ id: string;
777
+ type: "entry";
778
+ alias?: string | undefined;
779
+ inputSchema: import("json-schema").JSONSchema7;
780
+ } | {
781
+ outputs: {
782
+ name: string | null;
783
+ schema: import("json-schema").JSONSchema7 | null;
784
+ }[];
785
+ id: string;
786
+ type: "service";
787
+ alias?: string | undefined;
788
+ inputSchema: {
789
+ type: "null";
790
+ } | ({
791
+ type: "object";
792
+ } & import("json-schema").JSONSchema7) | ({
793
+ $ref: string;
794
+ } & import("json-schema").JSONSchema7) | ({
795
+ oneOf: ({
796
+ type: "null";
797
+ } | ({
798
+ type: "object";
799
+ } & import("json-schema").JSONSchema7) | ({
800
+ $ref: string;
801
+ } & import("json-schema").JSONSchema7))[];
802
+ } & import("json-schema").JSONSchema7);
803
+ name: string;
804
+ version: string;
805
+ configuration?: any;
806
+ configurationSchema: import("json-schema").JSONSchema7;
807
+ ttl?: number | undefined;
808
+ retry: number;
809
+ retryDelay?: number | undefined;
810
+ mode: "CONTINUOUS" | "LINEAR";
811
+ privileged: boolean;
812
+ wireCodec?: "json" | "msgpack" | undefined;
813
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
814
+ configurationServices?: {
815
+ outputs: {
816
+ name: string | null;
817
+ schema: import("json-schema").JSONSchema7 | null;
818
+ }[];
819
+ id: string;
820
+ type: "service";
821
+ alias?: string | undefined;
822
+ inputSchema: {
823
+ type: "null";
824
+ } | ({
825
+ type: "object";
826
+ } & import("json-schema").JSONSchema7) | ({
827
+ $ref: string;
828
+ } & import("json-schema").JSONSchema7) | ({
829
+ oneOf: ({
830
+ type: "null";
831
+ } | ({
832
+ type: "object";
833
+ } & import("json-schema").JSONSchema7) | ({
834
+ $ref: string;
835
+ } & import("json-schema").JSONSchema7))[];
836
+ } & import("json-schema").JSONSchema7);
837
+ name: string;
838
+ version: string;
839
+ configuration?: any;
840
+ configurationSchema: import("json-schema").JSONSchema7;
841
+ ttl?: number | undefined;
842
+ retry: number;
843
+ retryDelay?: number | undefined;
844
+ mode: "CONTINUOUS" | "LINEAR";
845
+ privileged: boolean;
846
+ wireCodec?: "json" | "msgpack" | undefined;
847
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
848
+ configurationServices?: any[] | undefined;
849
+ }[] | undefined;
850
+ } | {
851
+ outputs: {
852
+ name: string | null;
853
+ schema: import("json-schema").JSONSchema7 | null;
854
+ }[];
855
+ id: string;
856
+ type: "logic";
857
+ alias?: string | undefined;
858
+ script: string;
859
+ concurrency: boolean;
860
+ language: "javascript" | "python" | "typescript";
861
+ maxExecutionTime: number;
862
+ } | {
863
+ id: string;
864
+ type: "or";
865
+ alias?: string | undefined;
866
+ } | {
867
+ outputs: {
868
+ name: string | null;
869
+ schema: import("json-schema").JSONSchema7 | null;
870
+ }[];
871
+ id: string;
872
+ type: "reference";
873
+ alias?: string | undefined;
874
+ reference: string;
875
+ enabled: boolean;
876
+ inputSchema: {
877
+ type: "null";
878
+ } | ({
879
+ type: "object";
880
+ } & import("json-schema").JSONSchema7) | ({
881
+ $ref: string;
882
+ } & import("json-schema").JSONSchema7) | ({
883
+ oneOf: ({
884
+ type: "null";
885
+ } | ({
886
+ type: "object";
887
+ } & import("json-schema").JSONSchema7) | ({
888
+ $ref: string;
889
+ } & import("json-schema").JSONSchema7))[];
890
+ } & import("json-schema").JSONSchema7);
891
+ } | {
892
+ id: string;
893
+ type: "exit";
894
+ alias?: string | undefined;
895
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
896
+ } | {
897
+ id: string;
898
+ type: "comment";
899
+ text: string;
900
+ alias?: string | undefined;
901
+ }>>;
902
+ edges: z.ZodArray<z.ZodCustom<{
903
+ id: string;
904
+ source: string;
905
+ sourceHandle: string | null;
906
+ target: string;
907
+ }, {
908
+ id: string;
909
+ source: string;
910
+ sourceHandle: string | null;
911
+ target: string;
912
+ }>>;
913
+ }, z.core.$strict>, z.ZodTransform<{
914
+ nodes: ({
915
+ id: string;
916
+ type: "entry";
917
+ alias?: string | undefined;
918
+ inputSchema: import("json-schema").JSONSchema7;
919
+ } | {
920
+ outputs: {
921
+ name: string | null;
922
+ schema: import("json-schema").JSONSchema7 | null;
923
+ }[];
924
+ id: string;
925
+ type: "service";
926
+ alias?: string | undefined;
927
+ inputSchema: {
928
+ type: "null";
929
+ } | ({
930
+ type: "object";
931
+ } & import("json-schema").JSONSchema7) | ({
932
+ $ref: string;
933
+ } & import("json-schema").JSONSchema7) | ({
934
+ oneOf: ({
935
+ type: "null";
936
+ } | ({
937
+ type: "object";
938
+ } & import("json-schema").JSONSchema7) | ({
939
+ $ref: string;
940
+ } & import("json-schema").JSONSchema7))[];
941
+ } & import("json-schema").JSONSchema7);
942
+ name: string;
943
+ version: string;
944
+ configuration?: any;
945
+ configurationSchema: import("json-schema").JSONSchema7;
946
+ ttl?: number | undefined;
947
+ retry: number;
948
+ retryDelay?: number | undefined;
949
+ mode: "CONTINUOUS" | "LINEAR";
950
+ privileged: boolean;
951
+ wireCodec?: "json" | "msgpack" | undefined;
952
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
371
953
  configurationServices?: {
372
954
  outputs: {
373
955
  name: string | null;
@@ -401,7 +983,8 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
401
983
  mode: "CONTINUOUS" | "LINEAR";
402
984
  privileged: boolean;
403
985
  wireCodec?: "json" | "msgpack" | undefined;
404
- configurationServices?: /*elided*/ any[] | undefined;
986
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
987
+ configurationServices?: any[] | undefined;
405
988
  }[] | undefined;
406
989
  } | {
407
990
  outputs: {
@@ -462,6 +1045,7 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
462
1045
  target: string;
463
1046
  }[];
464
1047
  }, {
1048
+ allowMultipleOutputs: boolean;
465
1049
  nodes: ({
466
1050
  id: string;
467
1051
  type: "entry";
@@ -500,6 +1084,7 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
500
1084
  mode: "CONTINUOUS" | "LINEAR";
501
1085
  privileged: boolean;
502
1086
  wireCodec?: "json" | "msgpack" | undefined;
1087
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
503
1088
  configurationServices?: {
504
1089
  outputs: {
505
1090
  name: string | null;
@@ -533,6 +1118,7 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
533
1118
  mode: "CONTINUOUS" | "LINEAR";
534
1119
  privileged: boolean;
535
1120
  wireCodec?: "json" | "msgpack" | undefined;
1121
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
536
1122
  configurationServices?: any[] | undefined;
537
1123
  }[] | undefined;
538
1124
  } | {
@@ -593,7 +1179,6 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
593
1179
  sourceHandle: string | null;
594
1180
  target: string;
595
1181
  }[];
596
- allowMultipleOutputs: boolean;
597
1182
  }>>;
598
1183
  export declare const treeReferenceSchema: z.ZodObject<{
599
1184
  id: z.ZodString;
@@ -649,6 +1234,13 @@ export declare const treeReferenceSchema: z.ZodObject<{
649
1234
  json: "json";
650
1235
  msgpack: "msgpack";
651
1236
  }>>;
1237
+ wireCodecReason: z.ZodOptional<z.ZodEnum<{
1238
+ "fleet-capable": "fleet-capable";
1239
+ "missing-capability": "missing-capability";
1240
+ "no-replicas": "no-replicas";
1241
+ "presence-unavailable": "presence-unavailable";
1242
+ "replicas-unaccounted": "replicas-unaccounted";
1243
+ }>>;
652
1244
  configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
653
1245
  }, z.core.$strict>, z.ZodObject<{
654
1246
  outputs: z.ZodArray<z.ZodObject<{
@@ -715,6 +1307,22 @@ export declare const treeReferenceSchema: z.ZodObject<{
715
1307
  }, z.core.$strip>;
716
1308
  }, z.core.$strip>;
717
1309
  export type TreeReference = z.output<typeof treeReferenceSchema>;
1310
+ /**
1311
+ * That rule on its own, for a tree list that is already validated.
1312
+ *
1313
+ * The sliced validator (#134) runs this as its last step, in place of the
1314
+ * `.check` below. A schema rather than a bare call so its issue is finalised by
1315
+ * zod exactly as the inline one is — the same reason `preparsedTreeSchema`
1316
+ * exists. `z.custom` accepts anything, which is right: by the time either path
1317
+ * gets here the value has been validated in full.
1318
+ */
1319
+ export declare const definedReferencesSchema: z.ZodCustom<{
1320
+ tree: Tree;
1321
+ references?: ReadonlyArray<Pick<TreeReference, 'id'>>;
1322
+ }, {
1323
+ tree: Tree;
1324
+ references?: ReadonlyArray<Pick<TreeReference, 'id'>>;
1325
+ }>;
718
1326
  export declare const treeListSchema: z.ZodObject<{
719
1327
  tree: z.ZodPipe<z.ZodObject<{
720
1328
  nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -761,6 +1369,13 @@ export declare const treeListSchema: z.ZodObject<{
761
1369
  json: "json";
762
1370
  msgpack: "msgpack";
763
1371
  }>>;
1372
+ wireCodecReason: z.ZodOptional<z.ZodEnum<{
1373
+ "fleet-capable": "fleet-capable";
1374
+ "missing-capability": "missing-capability";
1375
+ "no-replicas": "no-replicas";
1376
+ "presence-unavailable": "presence-unavailable";
1377
+ "replicas-unaccounted": "replicas-unaccounted";
1378
+ }>>;
764
1379
  configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
765
1380
  }, z.core.$strict>, z.ZodObject<{
766
1381
  outputs: z.ZodArray<z.ZodObject<{
@@ -864,6 +1479,7 @@ export declare const treeListSchema: z.ZodObject<{
864
1479
  mode: "CONTINUOUS" | "LINEAR";
865
1480
  privileged: boolean;
866
1481
  wireCodec?: "json" | "msgpack" | undefined;
1482
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
867
1483
  configurationServices?: {
868
1484
  outputs: {
869
1485
  name: string | null;
@@ -897,6 +1513,7 @@ export declare const treeListSchema: z.ZodObject<{
897
1513
  mode: "CONTINUOUS" | "LINEAR";
898
1514
  privileged: boolean;
899
1515
  wireCodec?: "json" | "msgpack" | undefined;
1516
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
900
1517
  configurationServices?: /*elided*/ any[] | undefined;
901
1518
  }[] | undefined;
902
1519
  } | {
@@ -996,6 +1613,7 @@ export declare const treeListSchema: z.ZodObject<{
996
1613
  mode: "CONTINUOUS" | "LINEAR";
997
1614
  privileged: boolean;
998
1615
  wireCodec?: "json" | "msgpack" | undefined;
1616
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
999
1617
  configurationServices?: {
1000
1618
  outputs: {
1001
1619
  name: string | null;
@@ -1029,6 +1647,7 @@ export declare const treeListSchema: z.ZodObject<{
1029
1647
  mode: "CONTINUOUS" | "LINEAR";
1030
1648
  privileged: boolean;
1031
1649
  wireCodec?: "json" | "msgpack" | undefined;
1650
+ wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
1032
1651
  configurationServices?: any[] | undefined;
1033
1652
  }[] | undefined;
1034
1653
  } | {
@@ -1145,6 +1764,13 @@ export declare const treeListSchema: z.ZodObject<{
1145
1764
  json: "json";
1146
1765
  msgpack: "msgpack";
1147
1766
  }>>;
1767
+ wireCodecReason: z.ZodOptional<z.ZodEnum<{
1768
+ "fleet-capable": "fleet-capable";
1769
+ "missing-capability": "missing-capability";
1770
+ "no-replicas": "no-replicas";
1771
+ "presence-unavailable": "presence-unavailable";
1772
+ "replicas-unaccounted": "replicas-unaccounted";
1773
+ }>>;
1148
1774
  configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject<any, z.core.$strict>>>;
1149
1775
  }, z.core.$strict>, z.ZodObject<{
1150
1776
  outputs: z.ZodArray<z.ZodObject<{
@@ -1214,5 +1840,4 @@ export declare const treeListSchema: z.ZodObject<{
1214
1840
  }, z.core.$strip>;
1215
1841
  export type TreeList = z.output<typeof treeListSchema>;
1216
1842
  export type InputTreeList = z.input<typeof treeListSchema>;
1217
- export {};
1218
1843
  //# sourceMappingURL=treeNodes.d.ts.map