@xemahq/contracts 0.24.0 → 0.26.0

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "algorithm": "sha256/len-framed-v1",
3
- "hash": "534d8ff4f3bf0cb1190183622ff656899875772775b3fa68c3aa757f14f8bc7b",
4
- "fileCount": 527
3
+ "hash": "edea216f81cee7d21921159c5a3d3c8eae2a6dc510377747017fa3502d3cdb48",
4
+ "fileCount": 530
5
5
  }
@@ -362,6 +362,138 @@ export declare const GeneratedBiomeFactsSchema: z.ZodObject<{
362
362
  mechanism: z.ZodEnum<typeof BiomeGeneratedFactMechanism>;
363
363
  }, z.core.$strict>>>;
364
364
  }, z.core.$strict>>>;
365
+ dependencyContract: z.ZodOptional<z.ZodObject<{
366
+ contractVersion: z.ZodLiteral<1>;
367
+ seamTable: z.ZodObject<{
368
+ version: z.ZodNumber;
369
+ sha256: z.ZodString;
370
+ }, z.core.$strict>;
371
+ peers: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
372
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.ServicePeer>;
373
+ consumer: z.ZodObject<{
374
+ componentKey: z.ZodOptional<z.ZodString>;
375
+ }, z.core.$strict>;
376
+ target: z.ZodObject<{
377
+ serviceName: z.ZodString;
378
+ }, z.core.$strict>;
379
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
380
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
381
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
382
+ }, z.core.$strict>, z.ZodObject<{
383
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
384
+ }, z.core.$strict>], "kind">;
385
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
386
+ path: z.ZodString;
387
+ line: z.ZodOptional<z.ZodNumber>;
388
+ jsonPointer: z.ZodOptional<z.ZodString>;
389
+ seam: z.ZodString;
390
+ }, z.core.$strict>>>;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.DatabasePool>;
393
+ consumer: z.ZodObject<{
394
+ componentKey: z.ZodOptional<z.ZodString>;
395
+ }, z.core.$strict>;
396
+ target: z.ZodObject<{
397
+ serviceName: z.ZodString;
398
+ }, z.core.$strict>;
399
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
400
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
401
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
402
+ }, z.core.$strict>, z.ZodObject<{
403
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
404
+ }, z.core.$strict>], "kind">;
405
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
406
+ path: z.ZodString;
407
+ line: z.ZodOptional<z.ZodNumber>;
408
+ jsonPointer: z.ZodOptional<z.ZodString>;
409
+ seam: z.ZodString;
410
+ }, z.core.$strict>>>;
411
+ }, z.core.$strict>, z.ZodObject<{
412
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.EventPlane>;
413
+ consumer: z.ZodObject<{
414
+ componentKey: z.ZodOptional<z.ZodString>;
415
+ }, z.core.$strict>;
416
+ target: z.ZodObject<{
417
+ serviceName: z.ZodString;
418
+ }, z.core.$strict>;
419
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
420
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
421
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
422
+ }, z.core.$strict>, z.ZodObject<{
423
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
424
+ }, z.core.$strict>], "kind">;
425
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
426
+ path: z.ZodString;
427
+ line: z.ZodOptional<z.ZodNumber>;
428
+ jsonPointer: z.ZodOptional<z.ZodString>;
429
+ seam: z.ZodString;
430
+ }, z.core.$strict>>>;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.BiomeDelivery>;
433
+ consumer: z.ZodObject<{
434
+ componentKey: z.ZodOptional<z.ZodString>;
435
+ }, z.core.$strict>;
436
+ target: z.ZodObject<{
437
+ serviceName: z.ZodString;
438
+ }, z.core.$strict>;
439
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
440
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
441
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
442
+ }, z.core.$strict>, z.ZodObject<{
443
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
444
+ }, z.core.$strict>], "kind">;
445
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
446
+ path: z.ZodString;
447
+ line: z.ZodOptional<z.ZodNumber>;
448
+ jsonPointer: z.ZodOptional<z.ZodString>;
449
+ seam: z.ZodString;
450
+ }, z.core.$strict>>>;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.ContributionOwner>;
453
+ consumer: z.ZodObject<{
454
+ componentKey: z.ZodOptional<z.ZodString>;
455
+ }, z.core.$strict>;
456
+ target: z.ZodObject<{
457
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
458
+ }, z.core.$strict>;
459
+ lifecycle: z.ZodLiteral<import("../../biome-dependency").PeerLifecycle.Runtime>;
460
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
461
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
462
+ }, z.core.$strict>, z.ZodObject<{
463
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
464
+ }, z.core.$strict>], "kind">;
465
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
466
+ path: z.ZodString;
467
+ line: z.ZodOptional<z.ZodNumber>;
468
+ jsonPointer: z.ZodOptional<z.ZodString>;
469
+ seam: z.ZodString;
470
+ }, z.core.$strict>>>;
471
+ }, z.core.$strict>], "relationship">>>;
472
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
473
+ consumer: z.ZodObject<{
474
+ componentKey: z.ZodOptional<z.ZodString>;
475
+ }, z.core.$strict>;
476
+ kind: z.ZodEnum<typeof import("../../biome-dependency").DynamicPeerKind>;
477
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
478
+ path: z.ZodString;
479
+ line: z.ZodOptional<z.ZodNumber>;
480
+ jsonPointer: z.ZodOptional<z.ZodString>;
481
+ seam: z.ZodString;
482
+ }, z.core.$strict>>>;
483
+ }, z.core.$strict>>>;
484
+ provides: z.ZodReadonly<z.ZodArray<z.ZodObject<{
485
+ consumer: z.ZodObject<{
486
+ componentKey: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strict>;
488
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
489
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
490
+ path: z.ZodString;
491
+ line: z.ZodOptional<z.ZodNumber>;
492
+ jsonPointer: z.ZodOptional<z.ZodString>;
493
+ seam: z.ZodString;
494
+ }, z.core.$strict>>>;
495
+ }, z.core.$strict>>>;
496
+ }, z.core.$strict>>;
365
497
  }, z.core.$strict>;
366
498
  export type GeneratedBiomeFacts = z.infer<typeof GeneratedBiomeFactsSchema>;
367
499
  export declare function requiredBiomeDependencyIds(facts: GeneratedBiomeFacts): readonly string[];
@@ -544,6 +676,138 @@ export declare const BiomeBundleGeneratedIndexSchema: z.ZodObject<{
544
676
  mechanism: z.ZodEnum<typeof BiomeGeneratedFactMechanism>;
545
677
  }, z.core.$strict>>>;
546
678
  }, z.core.$strict>>>;
679
+ dependencyContract: z.ZodOptional<z.ZodObject<{
680
+ contractVersion: z.ZodLiteral<1>;
681
+ seamTable: z.ZodObject<{
682
+ version: z.ZodNumber;
683
+ sha256: z.ZodString;
684
+ }, z.core.$strict>;
685
+ peers: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
686
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.ServicePeer>;
687
+ consumer: z.ZodObject<{
688
+ componentKey: z.ZodOptional<z.ZodString>;
689
+ }, z.core.$strict>;
690
+ target: z.ZodObject<{
691
+ serviceName: z.ZodString;
692
+ }, z.core.$strict>;
693
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
694
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
695
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
696
+ }, z.core.$strict>, z.ZodObject<{
697
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
698
+ }, z.core.$strict>], "kind">;
699
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
700
+ path: z.ZodString;
701
+ line: z.ZodOptional<z.ZodNumber>;
702
+ jsonPointer: z.ZodOptional<z.ZodString>;
703
+ seam: z.ZodString;
704
+ }, z.core.$strict>>>;
705
+ }, z.core.$strict>, z.ZodObject<{
706
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.DatabasePool>;
707
+ consumer: z.ZodObject<{
708
+ componentKey: z.ZodOptional<z.ZodString>;
709
+ }, z.core.$strict>;
710
+ target: z.ZodObject<{
711
+ serviceName: z.ZodString;
712
+ }, z.core.$strict>;
713
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
714
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
715
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
716
+ }, z.core.$strict>, z.ZodObject<{
717
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
718
+ }, z.core.$strict>], "kind">;
719
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
720
+ path: z.ZodString;
721
+ line: z.ZodOptional<z.ZodNumber>;
722
+ jsonPointer: z.ZodOptional<z.ZodString>;
723
+ seam: z.ZodString;
724
+ }, z.core.$strict>>>;
725
+ }, z.core.$strict>, z.ZodObject<{
726
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.EventPlane>;
727
+ consumer: z.ZodObject<{
728
+ componentKey: z.ZodOptional<z.ZodString>;
729
+ }, z.core.$strict>;
730
+ target: z.ZodObject<{
731
+ serviceName: z.ZodString;
732
+ }, z.core.$strict>;
733
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
734
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
735
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
736
+ }, z.core.$strict>, z.ZodObject<{
737
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
738
+ }, z.core.$strict>], "kind">;
739
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
740
+ path: z.ZodString;
741
+ line: z.ZodOptional<z.ZodNumber>;
742
+ jsonPointer: z.ZodOptional<z.ZodString>;
743
+ seam: z.ZodString;
744
+ }, z.core.$strict>>>;
745
+ }, z.core.$strict>, z.ZodObject<{
746
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.BiomeDelivery>;
747
+ consumer: z.ZodObject<{
748
+ componentKey: z.ZodOptional<z.ZodString>;
749
+ }, z.core.$strict>;
750
+ target: z.ZodObject<{
751
+ serviceName: z.ZodString;
752
+ }, z.core.$strict>;
753
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
754
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
755
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
756
+ }, z.core.$strict>, z.ZodObject<{
757
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
758
+ }, z.core.$strict>], "kind">;
759
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
760
+ path: z.ZodString;
761
+ line: z.ZodOptional<z.ZodNumber>;
762
+ jsonPointer: z.ZodOptional<z.ZodString>;
763
+ seam: z.ZodString;
764
+ }, z.core.$strict>>>;
765
+ }, z.core.$strict>, z.ZodObject<{
766
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.ContributionOwner>;
767
+ consumer: z.ZodObject<{
768
+ componentKey: z.ZodOptional<z.ZodString>;
769
+ }, z.core.$strict>;
770
+ target: z.ZodObject<{
771
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
772
+ }, z.core.$strict>;
773
+ lifecycle: z.ZodLiteral<import("../../biome-dependency").PeerLifecycle.Runtime>;
774
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
775
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
776
+ }, z.core.$strict>, z.ZodObject<{
777
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
778
+ }, z.core.$strict>], "kind">;
779
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
780
+ path: z.ZodString;
781
+ line: z.ZodOptional<z.ZodNumber>;
782
+ jsonPointer: z.ZodOptional<z.ZodString>;
783
+ seam: z.ZodString;
784
+ }, z.core.$strict>>>;
785
+ }, z.core.$strict>], "relationship">>>;
786
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
787
+ consumer: z.ZodObject<{
788
+ componentKey: z.ZodOptional<z.ZodString>;
789
+ }, z.core.$strict>;
790
+ kind: z.ZodEnum<typeof import("../../biome-dependency").DynamicPeerKind>;
791
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
792
+ path: z.ZodString;
793
+ line: z.ZodOptional<z.ZodNumber>;
794
+ jsonPointer: z.ZodOptional<z.ZodString>;
795
+ seam: z.ZodString;
796
+ }, z.core.$strict>>>;
797
+ }, z.core.$strict>>>;
798
+ provides: z.ZodReadonly<z.ZodArray<z.ZodObject<{
799
+ consumer: z.ZodObject<{
800
+ componentKey: z.ZodOptional<z.ZodString>;
801
+ }, z.core.$strict>;
802
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
803
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
804
+ path: z.ZodString;
805
+ line: z.ZodOptional<z.ZodNumber>;
806
+ jsonPointer: z.ZodOptional<z.ZodString>;
807
+ seam: z.ZodString;
808
+ }, z.core.$strict>>>;
809
+ }, z.core.$strict>>>;
810
+ }, z.core.$strict>>;
547
811
  }, z.core.$strict>;
548
812
  }, z.core.$strict>;
549
813
  export type BiomeBundleGeneratedIndex = z.infer<typeof BiomeBundleGeneratedIndexSchema>;
@@ -713,6 +977,138 @@ export declare const BiomeGeneratedIndexSchema: z.ZodObject<{
713
977
  mechanism: z.ZodEnum<typeof BiomeGeneratedFactMechanism>;
714
978
  }, z.core.$strict>>>;
715
979
  }, z.core.$strict>>>;
980
+ dependencyContract: z.ZodOptional<z.ZodObject<{
981
+ contractVersion: z.ZodLiteral<1>;
982
+ seamTable: z.ZodObject<{
983
+ version: z.ZodNumber;
984
+ sha256: z.ZodString;
985
+ }, z.core.$strict>;
986
+ peers: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
987
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.ServicePeer>;
988
+ consumer: z.ZodObject<{
989
+ componentKey: z.ZodOptional<z.ZodString>;
990
+ }, z.core.$strict>;
991
+ target: z.ZodObject<{
992
+ serviceName: z.ZodString;
993
+ }, z.core.$strict>;
994
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
995
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
999
+ }, z.core.$strict>], "kind">;
1000
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1001
+ path: z.ZodString;
1002
+ line: z.ZodOptional<z.ZodNumber>;
1003
+ jsonPointer: z.ZodOptional<z.ZodString>;
1004
+ seam: z.ZodString;
1005
+ }, z.core.$strict>>>;
1006
+ }, z.core.$strict>, z.ZodObject<{
1007
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.DatabasePool>;
1008
+ consumer: z.ZodObject<{
1009
+ componentKey: z.ZodOptional<z.ZodString>;
1010
+ }, z.core.$strict>;
1011
+ target: z.ZodObject<{
1012
+ serviceName: z.ZodString;
1013
+ }, z.core.$strict>;
1014
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
1015
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1016
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
1017
+ }, z.core.$strict>, z.ZodObject<{
1018
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
1019
+ }, z.core.$strict>], "kind">;
1020
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1021
+ path: z.ZodString;
1022
+ line: z.ZodOptional<z.ZodNumber>;
1023
+ jsonPointer: z.ZodOptional<z.ZodString>;
1024
+ seam: z.ZodString;
1025
+ }, z.core.$strict>>>;
1026
+ }, z.core.$strict>, z.ZodObject<{
1027
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.EventPlane>;
1028
+ consumer: z.ZodObject<{
1029
+ componentKey: z.ZodOptional<z.ZodString>;
1030
+ }, z.core.$strict>;
1031
+ target: z.ZodObject<{
1032
+ serviceName: z.ZodString;
1033
+ }, z.core.$strict>;
1034
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
1035
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1036
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
1037
+ }, z.core.$strict>, z.ZodObject<{
1038
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
1039
+ }, z.core.$strict>], "kind">;
1040
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1041
+ path: z.ZodString;
1042
+ line: z.ZodOptional<z.ZodNumber>;
1043
+ jsonPointer: z.ZodOptional<z.ZodString>;
1044
+ seam: z.ZodString;
1045
+ }, z.core.$strict>>>;
1046
+ }, z.core.$strict>, z.ZodObject<{
1047
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.BiomeDelivery>;
1048
+ consumer: z.ZodObject<{
1049
+ componentKey: z.ZodOptional<z.ZodString>;
1050
+ }, z.core.$strict>;
1051
+ target: z.ZodObject<{
1052
+ serviceName: z.ZodString;
1053
+ }, z.core.$strict>;
1054
+ lifecycle: z.ZodEnum<typeof import("../../biome-dependency").PeerLifecycle>;
1055
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1056
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
1057
+ }, z.core.$strict>, z.ZodObject<{
1058
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
1059
+ }, z.core.$strict>], "kind">;
1060
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1061
+ path: z.ZodString;
1062
+ line: z.ZodOptional<z.ZodNumber>;
1063
+ jsonPointer: z.ZodOptional<z.ZodString>;
1064
+ seam: z.ZodString;
1065
+ }, z.core.$strict>>>;
1066
+ }, z.core.$strict>, z.ZodObject<{
1067
+ relationship: z.ZodLiteral<import("../../biome-dependency").PeerRelationship.ContributionOwner>;
1068
+ consumer: z.ZodObject<{
1069
+ componentKey: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strict>;
1071
+ target: z.ZodObject<{
1072
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
1073
+ }, z.core.$strict>;
1074
+ lifecycle: z.ZodLiteral<import("../../biome-dependency").PeerLifecycle.Runtime>;
1075
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1076
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Required>;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ kind: z.ZodLiteral<import("../../biome-dependency").PeerInclusionKind.Optional>;
1079
+ }, z.core.$strict>], "kind">;
1080
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1081
+ path: z.ZodString;
1082
+ line: z.ZodOptional<z.ZodNumber>;
1083
+ jsonPointer: z.ZodOptional<z.ZodString>;
1084
+ seam: z.ZodString;
1085
+ }, z.core.$strict>>>;
1086
+ }, z.core.$strict>], "relationship">>>;
1087
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1088
+ consumer: z.ZodObject<{
1089
+ componentKey: z.ZodOptional<z.ZodString>;
1090
+ }, z.core.$strict>;
1091
+ kind: z.ZodEnum<typeof import("../../biome-dependency").DynamicPeerKind>;
1092
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1093
+ path: z.ZodString;
1094
+ line: z.ZodOptional<z.ZodNumber>;
1095
+ jsonPointer: z.ZodOptional<z.ZodString>;
1096
+ seam: z.ZodString;
1097
+ }, z.core.$strict>>>;
1098
+ }, z.core.$strict>>>;
1099
+ provides: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1100
+ consumer: z.ZodObject<{
1101
+ componentKey: z.ZodOptional<z.ZodString>;
1102
+ }, z.core.$strict>;
1103
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
1104
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1105
+ path: z.ZodString;
1106
+ line: z.ZodOptional<z.ZodNumber>;
1107
+ jsonPointer: z.ZodOptional<z.ZodString>;
1108
+ seam: z.ZodString;
1109
+ }, z.core.$strict>>>;
1110
+ }, z.core.$strict>>>;
1111
+ }, z.core.$strict>>;
716
1112
  }, z.core.$strict>>>;
717
1113
  }, z.core.$strict>;
718
1114
  export type BiomeGeneratedIndex = z.infer<typeof BiomeGeneratedIndexSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"biome-generated-index.d.ts","sourceRoot":"","sources":["../../../src/biome/lib/biome-generated-index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oCAAoC,EAAG,CAAU,CAAC;AAG/D,eAAO,MAAM,8BAA8B,EAAG,uBAAgC,CAAC;AAE/E,oBAAY,sBAAsB;IAChC,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,aAAa;CACrB;AAED,eAAO,MAAM,4BAA4B,0CAExC,CAAC;AAEF,oBAAY,gCAAgC;IAC1C,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,sCAAsC,oDAElD,CAAC;AAEF,oBAAY,2BAA2B;IACrC,kBAAkB,wBAAwB;IAC1C,mBAAmB,0BAA0B;IAC7C,iBAAiB,uBAAuB;IACxC,gBAAgB,uBAAuB;IACvC,oBAAoB,0BAA0B;IAC9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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGzC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBlC,CAAC;AACL,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BiomeGeneratedIndexSchema = exports.BiomeBundleGeneratedIndexSchema = exports.BiomeGeneratedContentFileSchema = exports.GeneratedBiomeFactsSchema = exports.BiomeGeneratedDynamicReferenceSchema = exports.BiomeGeneratedProvisioningFactSchema = exports.BiomeGeneratedAgentFactSchema = exports.BiomeGeneratedContributionFactSchema = exports.BiomeGeneratedEdgeSchema = exports.BiomeGeneratedFactEvidenceSchema = exports.BiomeGeneratedFactMechanismSchema = exports.BiomeGeneratedFactMechanism = exports.BiomeGeneratedDependencyStrengthSchema = exports.BiomeGeneratedDependencyStrength = exports.BiomeGeneratedEdgeKindSchema = exports.BiomeGeneratedEdgeKind = exports.BIOME_GENERATED_INDEX_FILENAME = exports.BIOME_GENERATED_INDEX_SCHEMA_VERSION = void 0;
4
4
  exports.requiredBiomeDependencyIds = requiredBiomeDependencyIds;
5
5
  const capability_1 = require("../../capability");
6
+ const biome_dependency_1 = require("../../biome-dependency");
6
7
  const contribution_1 = require("../../contribution");
7
8
  const zod_1 = require("zod");
8
9
  const biome_target_1 = require("./biome-target");
@@ -155,6 +156,7 @@ exports.GeneratedBiomeFactsSchema = zod_1.z
155
156
  agents: zod_1.z.array(exports.BiomeGeneratedAgentFactSchema).readonly(),
156
157
  provisioning: zod_1.z.array(exports.BiomeGeneratedProvisioningFactSchema).readonly(),
157
158
  dynamicReferences: zod_1.z.array(exports.BiomeGeneratedDynamicReferenceSchema).readonly(),
159
+ dependencyContract: biome_dependency_1.BiomeDependencyContractSchema.optional(),
158
160
  })
159
161
  .strict();
160
162
  function requiredBiomeDependencyIds(facts) {
@@ -209,6 +211,9 @@ function refineGeneratedIndexIntegrity(value, context) {
209
211
  value.biome.agents.forEach((fact) => collectEvidence(fact.evidence));
210
212
  value.biome.provisioning.forEach((fact) => collectEvidence(fact.evidence));
211
213
  value.biome.dynamicReferences.forEach((fact) => collectEvidence(fact.evidence));
214
+ if (value.biome.dependencyContract !== undefined) {
215
+ (0, biome_dependency_1.dependencyContractEvidencePaths)(value.biome.dependencyContract).forEach((path) => evidencePaths.add(path));
216
+ }
212
217
  for (const path of evidencePaths) {
213
218
  if (!packagedPaths.has(path)) {
214
219
  context.addIssue({
@@ -1 +1 @@
1
- {"version":3,"file":"biome-generated-index.js","sourceRoot":"","sources":["../../../src/biome/lib/biome-generated-index.ts"],"names":[],"mappings":";;;AA8MA,gEAaC;AA3ND,iDAAuD;AACvD,qDAA+D;AAC/D,6BAAwB;AACxB,iDAAmD;AAGtC,QAAA,oCAAoC,GAAG,CAAU,CAAC;AAGlD,QAAA,8BAA8B,GAAG,uBAAgC,CAAC;AAE/E,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,6CAAmB,CAAA;IACnB,mDA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C,OAAO,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC;gBAClC,OAAO,EAAE,iCAAiC,KAAK,CAAC,OAAO,GAAG;aAC3D,CAAC,CAAC;QACL,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './lib/biome-dependency-contract';
2
+ export * from './lib/service-peer-contract';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/biome-dependency/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lib/biome-dependency-contract"), exports);
18
+ __exportStar(require("./lib/service-peer-contract"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/biome-dependency/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C"}
@@ -0,0 +1,307 @@
1
+ import { z } from 'zod';
2
+ export declare const BIOME_DEPENDENCY_CONTRACT_VERSION: 1;
3
+ export declare enum PeerRelationship {
4
+ ServicePeer = "service-peer",
5
+ ContributionOwner = "contribution-owner",
6
+ DatabasePool = "database-pool",
7
+ EventPlane = "event-plane",
8
+ BiomeDelivery = "biome-delivery"
9
+ }
10
+ export declare const PeerRelationshipSchema: z.ZodEnum<typeof PeerRelationship>;
11
+ export declare enum PeerLifecycle {
12
+ Startup = "startup",
13
+ Runtime = "runtime"
14
+ }
15
+ export declare const PeerLifecycleSchema: z.ZodEnum<typeof PeerLifecycle>;
16
+ export declare enum DynamicPeerKind {
17
+ ContributionSync = "contribution-sync",
18
+ CapabilityInvoke = "capability-invoke",
19
+ RouteForward = "route-forward",
20
+ AdapterHost = "adapter-host",
21
+ RunnerDispatch = "runner-dispatch"
22
+ }
23
+ export declare const DynamicPeerKindSchema: z.ZodEnum<typeof DynamicPeerKind>;
24
+ export declare enum PeerInclusionKind {
25
+ Required = "required",
26
+ Optional = "optional"
27
+ }
28
+ export declare const PeerInclusionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
32
+ }, z.core.$strict>], "kind">;
33
+ export type PeerInclusion = z.infer<typeof PeerInclusionSchema>;
34
+ export declare const PeerServiceNameSchema: z.ZodString;
35
+ export declare const DependencyContractEvidenceSchema: z.ZodObject<{
36
+ path: z.ZodString;
37
+ line: z.ZodOptional<z.ZodNumber>;
38
+ jsonPointer: z.ZodOptional<z.ZodString>;
39
+ seam: z.ZodString;
40
+ }, z.core.$strict>;
41
+ export type DependencyContractEvidence = z.infer<typeof DependencyContractEvidenceSchema>;
42
+ export declare const DependencyContractConsumerSchema: z.ZodObject<{
43
+ componentKey: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strict>;
45
+ export declare const PeerEdgeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ relationship: z.ZodLiteral<PeerRelationship.ServicePeer>;
47
+ consumer: z.ZodObject<{
48
+ componentKey: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strict>;
50
+ target: z.ZodObject<{
51
+ serviceName: z.ZodString;
52
+ }, z.core.$strict>;
53
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
54
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
58
+ }, z.core.$strict>], "kind">;
59
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
60
+ path: z.ZodString;
61
+ line: z.ZodOptional<z.ZodNumber>;
62
+ jsonPointer: z.ZodOptional<z.ZodString>;
63
+ seam: z.ZodString;
64
+ }, z.core.$strict>>>;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ relationship: z.ZodLiteral<PeerRelationship.DatabasePool>;
67
+ consumer: z.ZodObject<{
68
+ componentKey: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strict>;
70
+ target: z.ZodObject<{
71
+ serviceName: z.ZodString;
72
+ }, z.core.$strict>;
73
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
74
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
78
+ }, z.core.$strict>], "kind">;
79
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
80
+ path: z.ZodString;
81
+ line: z.ZodOptional<z.ZodNumber>;
82
+ jsonPointer: z.ZodOptional<z.ZodString>;
83
+ seam: z.ZodString;
84
+ }, z.core.$strict>>>;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ relationship: z.ZodLiteral<PeerRelationship.EventPlane>;
87
+ consumer: z.ZodObject<{
88
+ componentKey: z.ZodOptional<z.ZodString>;
89
+ }, z.core.$strict>;
90
+ target: z.ZodObject<{
91
+ serviceName: z.ZodString;
92
+ }, z.core.$strict>;
93
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
94
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
95
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
98
+ }, z.core.$strict>], "kind">;
99
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
100
+ path: z.ZodString;
101
+ line: z.ZodOptional<z.ZodNumber>;
102
+ jsonPointer: z.ZodOptional<z.ZodString>;
103
+ seam: z.ZodString;
104
+ }, z.core.$strict>>>;
105
+ }, z.core.$strict>, z.ZodObject<{
106
+ relationship: z.ZodLiteral<PeerRelationship.BiomeDelivery>;
107
+ consumer: z.ZodObject<{
108
+ componentKey: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strict>;
110
+ target: z.ZodObject<{
111
+ serviceName: z.ZodString;
112
+ }, z.core.$strict>;
113
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
114
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
118
+ }, z.core.$strict>], "kind">;
119
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
120
+ path: z.ZodString;
121
+ line: z.ZodOptional<z.ZodNumber>;
122
+ jsonPointer: z.ZodOptional<z.ZodString>;
123
+ seam: z.ZodString;
124
+ }, z.core.$strict>>>;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ relationship: z.ZodLiteral<PeerRelationship.ContributionOwner>;
127
+ consumer: z.ZodObject<{
128
+ componentKey: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strict>;
130
+ target: z.ZodObject<{
131
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
132
+ }, z.core.$strict>;
133
+ lifecycle: z.ZodLiteral<PeerLifecycle.Runtime>;
134
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
138
+ }, z.core.$strict>], "kind">;
139
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
140
+ path: z.ZodString;
141
+ line: z.ZodOptional<z.ZodNumber>;
142
+ jsonPointer: z.ZodOptional<z.ZodString>;
143
+ seam: z.ZodString;
144
+ }, z.core.$strict>>>;
145
+ }, z.core.$strict>], "relationship">;
146
+ export type PeerEdge = z.infer<typeof PeerEdgeSchema>;
147
+ export declare const DynamicPeerSchema: z.ZodObject<{
148
+ consumer: z.ZodObject<{
149
+ componentKey: z.ZodOptional<z.ZodString>;
150
+ }, z.core.$strict>;
151
+ kind: z.ZodEnum<typeof DynamicPeerKind>;
152
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
153
+ path: z.ZodString;
154
+ line: z.ZodOptional<z.ZodNumber>;
155
+ jsonPointer: z.ZodOptional<z.ZodString>;
156
+ seam: z.ZodString;
157
+ }, z.core.$strict>>>;
158
+ }, z.core.$strict>;
159
+ export type DynamicPeer = z.infer<typeof DynamicPeerSchema>;
160
+ export declare const ProvidedContributionKindsSchema: z.ZodObject<{
161
+ consumer: z.ZodObject<{
162
+ componentKey: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strict>;
164
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
165
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
166
+ path: z.ZodString;
167
+ line: z.ZodOptional<z.ZodNumber>;
168
+ jsonPointer: z.ZodOptional<z.ZodString>;
169
+ seam: z.ZodString;
170
+ }, z.core.$strict>>>;
171
+ }, z.core.$strict>;
172
+ export type ProvidedContributionKinds = z.infer<typeof ProvidedContributionKindsSchema>;
173
+ export declare const BiomeDependencyContractSchema: z.ZodObject<{
174
+ contractVersion: z.ZodLiteral<1>;
175
+ seamTable: z.ZodObject<{
176
+ version: z.ZodNumber;
177
+ sha256: z.ZodString;
178
+ }, z.core.$strict>;
179
+ peers: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
180
+ relationship: z.ZodLiteral<PeerRelationship.ServicePeer>;
181
+ consumer: z.ZodObject<{
182
+ componentKey: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strict>;
184
+ target: z.ZodObject<{
185
+ serviceName: z.ZodString;
186
+ }, z.core.$strict>;
187
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
188
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
189
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
192
+ }, z.core.$strict>], "kind">;
193
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
194
+ path: z.ZodString;
195
+ line: z.ZodOptional<z.ZodNumber>;
196
+ jsonPointer: z.ZodOptional<z.ZodString>;
197
+ seam: z.ZodString;
198
+ }, z.core.$strict>>>;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ relationship: z.ZodLiteral<PeerRelationship.DatabasePool>;
201
+ consumer: z.ZodObject<{
202
+ componentKey: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strict>;
204
+ target: z.ZodObject<{
205
+ serviceName: z.ZodString;
206
+ }, z.core.$strict>;
207
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
208
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
210
+ }, z.core.$strict>, z.ZodObject<{
211
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
212
+ }, z.core.$strict>], "kind">;
213
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
214
+ path: z.ZodString;
215
+ line: z.ZodOptional<z.ZodNumber>;
216
+ jsonPointer: z.ZodOptional<z.ZodString>;
217
+ seam: z.ZodString;
218
+ }, z.core.$strict>>>;
219
+ }, z.core.$strict>, z.ZodObject<{
220
+ relationship: z.ZodLiteral<PeerRelationship.EventPlane>;
221
+ consumer: z.ZodObject<{
222
+ componentKey: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$strict>;
224
+ target: z.ZodObject<{
225
+ serviceName: z.ZodString;
226
+ }, z.core.$strict>;
227
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
228
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
229
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
232
+ }, z.core.$strict>], "kind">;
233
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
234
+ path: z.ZodString;
235
+ line: z.ZodOptional<z.ZodNumber>;
236
+ jsonPointer: z.ZodOptional<z.ZodString>;
237
+ seam: z.ZodString;
238
+ }, z.core.$strict>>>;
239
+ }, z.core.$strict>, z.ZodObject<{
240
+ relationship: z.ZodLiteral<PeerRelationship.BiomeDelivery>;
241
+ consumer: z.ZodObject<{
242
+ componentKey: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strict>;
244
+ target: z.ZodObject<{
245
+ serviceName: z.ZodString;
246
+ }, z.core.$strict>;
247
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
248
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
249
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
250
+ }, z.core.$strict>, z.ZodObject<{
251
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
252
+ }, z.core.$strict>], "kind">;
253
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
254
+ path: z.ZodString;
255
+ line: z.ZodOptional<z.ZodNumber>;
256
+ jsonPointer: z.ZodOptional<z.ZodString>;
257
+ seam: z.ZodString;
258
+ }, z.core.$strict>>>;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ relationship: z.ZodLiteral<PeerRelationship.ContributionOwner>;
261
+ consumer: z.ZodObject<{
262
+ componentKey: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strict>;
264
+ target: z.ZodObject<{
265
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
266
+ }, z.core.$strict>;
267
+ lifecycle: z.ZodLiteral<PeerLifecycle.Runtime>;
268
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
269
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
270
+ }, z.core.$strict>, z.ZodObject<{
271
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
272
+ }, z.core.$strict>], "kind">;
273
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
274
+ path: z.ZodString;
275
+ line: z.ZodOptional<z.ZodNumber>;
276
+ jsonPointer: z.ZodOptional<z.ZodString>;
277
+ seam: z.ZodString;
278
+ }, z.core.$strict>>>;
279
+ }, z.core.$strict>], "relationship">>>;
280
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
281
+ consumer: z.ZodObject<{
282
+ componentKey: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>;
284
+ kind: z.ZodEnum<typeof DynamicPeerKind>;
285
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
286
+ path: z.ZodString;
287
+ line: z.ZodOptional<z.ZodNumber>;
288
+ jsonPointer: z.ZodOptional<z.ZodString>;
289
+ seam: z.ZodString;
290
+ }, z.core.$strict>>>;
291
+ }, z.core.$strict>>>;
292
+ provides: z.ZodReadonly<z.ZodArray<z.ZodObject<{
293
+ consumer: z.ZodObject<{
294
+ componentKey: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strict>;
296
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
297
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
298
+ path: z.ZodString;
299
+ line: z.ZodOptional<z.ZodNumber>;
300
+ jsonPointer: z.ZodOptional<z.ZodString>;
301
+ seam: z.ZodString;
302
+ }, z.core.$strict>>>;
303
+ }, z.core.$strict>>>;
304
+ }, z.core.$strict>;
305
+ export type BiomeDependencyContract = z.infer<typeof BiomeDependencyContractSchema>;
306
+ export declare function dependencyContractEvidencePaths(contract: BiomeDependencyContract): readonly string[];
307
+ //# sourceMappingURL=biome-dependency-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-dependency-contract.d.ts","sourceRoot":"","sources":["../../../src/biome-dependency/lib/biome-dependency-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,iCAAiC,EAAG,CAAU,CAAC;AAO5D,oBAAY,gBAAgB;IAE1B,WAAW,iBAAiB;IAE5B,iBAAiB,uBAAuB;IAExC,YAAY,kBAAkB;IAE9B,UAAU,gBAAgB;IAE1B,aAAa,mBAAmB;CACjC;AACD,eAAO,MAAM,sBAAsB,oCAAiC,CAAC;AAGrE,oBAAY,aAAa;IAEvB,OAAO,YAAY;IAEnB,OAAO,YAAY;CACpB;AAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAc/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAGF,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,uBAAuB,GAChC,SAAS,MAAM,EAAE,CAQnB"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BiomeDependencyContractSchema = exports.ProvidedContributionKindsSchema = exports.DynamicPeerSchema = exports.PeerEdgeSchema = exports.DependencyContractConsumerSchema = exports.DependencyContractEvidenceSchema = exports.PeerServiceNameSchema = exports.PeerInclusionSchema = exports.PeerInclusionKind = exports.DynamicPeerKindSchema = exports.DynamicPeerKind = exports.PeerLifecycleSchema = exports.PeerLifecycle = exports.PeerRelationshipSchema = exports.PeerRelationship = exports.BIOME_DEPENDENCY_CONTRACT_VERSION = void 0;
4
+ exports.dependencyContractEvidencePaths = dependencyContractEvidencePaths;
5
+ const contribution_1 = require("../../contribution");
6
+ const zod_1 = require("zod");
7
+ exports.BIOME_DEPENDENCY_CONTRACT_VERSION = 1;
8
+ var PeerRelationship;
9
+ (function (PeerRelationship) {
10
+ PeerRelationship["ServicePeer"] = "service-peer";
11
+ PeerRelationship["ContributionOwner"] = "contribution-owner";
12
+ PeerRelationship["DatabasePool"] = "database-pool";
13
+ PeerRelationship["EventPlane"] = "event-plane";
14
+ PeerRelationship["BiomeDelivery"] = "biome-delivery";
15
+ })(PeerRelationship || (exports.PeerRelationship = PeerRelationship = {}));
16
+ exports.PeerRelationshipSchema = zod_1.z.nativeEnum(PeerRelationship);
17
+ var PeerLifecycle;
18
+ (function (PeerLifecycle) {
19
+ PeerLifecycle["Startup"] = "startup";
20
+ PeerLifecycle["Runtime"] = "runtime";
21
+ })(PeerLifecycle || (exports.PeerLifecycle = PeerLifecycle = {}));
22
+ exports.PeerLifecycleSchema = zod_1.z.nativeEnum(PeerLifecycle);
23
+ var DynamicPeerKind;
24
+ (function (DynamicPeerKind) {
25
+ DynamicPeerKind["ContributionSync"] = "contribution-sync";
26
+ DynamicPeerKind["CapabilityInvoke"] = "capability-invoke";
27
+ DynamicPeerKind["RouteForward"] = "route-forward";
28
+ DynamicPeerKind["AdapterHost"] = "adapter-host";
29
+ DynamicPeerKind["RunnerDispatch"] = "runner-dispatch";
30
+ })(DynamicPeerKind || (exports.DynamicPeerKind = DynamicPeerKind = {}));
31
+ exports.DynamicPeerKindSchema = zod_1.z.nativeEnum(DynamicPeerKind);
32
+ var PeerInclusionKind;
33
+ (function (PeerInclusionKind) {
34
+ PeerInclusionKind["Required"] = "required";
35
+ PeerInclusionKind["Optional"] = "optional";
36
+ })(PeerInclusionKind || (exports.PeerInclusionKind = PeerInclusionKind = {}));
37
+ exports.PeerInclusionSchema = zod_1.z.discriminatedUnion('kind', [
38
+ zod_1.z.object({ kind: zod_1.z.literal(PeerInclusionKind.Required) }).strict(),
39
+ zod_1.z.object({ kind: zod_1.z.literal(PeerInclusionKind.Optional) }).strict(),
40
+ ]);
41
+ const SERVICE_NAME = /^[a-z][a-z0-9-]*$/;
42
+ exports.PeerServiceNameSchema = zod_1.z.string().regex(SERVICE_NAME, {
43
+ message: 'a peer service name is a lowercase slug',
44
+ });
45
+ exports.DependencyContractEvidenceSchema = zod_1.z
46
+ .object({
47
+ path: zod_1.z.string().min(1),
48
+ line: zod_1.z.number().int().positive().optional(),
49
+ jsonPointer: zod_1.z.string().startsWith('/').optional(),
50
+ seam: zod_1.z.string().min(1),
51
+ })
52
+ .strict()
53
+ .refine((evidence) => (evidence.line === undefined) !== (evidence.jsonPointer === undefined), {
54
+ message: 'dependency-contract evidence carries exactly one of line or jsonPointer',
55
+ });
56
+ const EvidenceListSchema = zod_1.z
57
+ .array(exports.DependencyContractEvidenceSchema)
58
+ .min(1)
59
+ .readonly();
60
+ exports.DependencyContractConsumerSchema = zod_1.z
61
+ .object({ componentKey: zod_1.z.string().min(1).optional() })
62
+ .strict();
63
+ const serviceEdge = (relationship) => zod_1.z
64
+ .object({
65
+ relationship: zod_1.z.literal(relationship),
66
+ consumer: exports.DependencyContractConsumerSchema,
67
+ target: zod_1.z.object({ serviceName: exports.PeerServiceNameSchema }).strict(),
68
+ lifecycle: exports.PeerLifecycleSchema,
69
+ inclusion: exports.PeerInclusionSchema,
70
+ evidence: EvidenceListSchema,
71
+ })
72
+ .strict();
73
+ exports.PeerEdgeSchema = zod_1.z.discriminatedUnion('relationship', [
74
+ serviceEdge(PeerRelationship.ServicePeer),
75
+ serviceEdge(PeerRelationship.DatabasePool),
76
+ serviceEdge(PeerRelationship.EventPlane),
77
+ serviceEdge(PeerRelationship.BiomeDelivery),
78
+ zod_1.z
79
+ .object({
80
+ relationship: zod_1.z.literal(PeerRelationship.ContributionOwner),
81
+ consumer: exports.DependencyContractConsumerSchema,
82
+ target: zod_1.z
83
+ .object({ contributionKind: contribution_1.ContributionKindRefSchema })
84
+ .strict(),
85
+ lifecycle: zod_1.z.literal(PeerLifecycle.Runtime),
86
+ inclusion: exports.PeerInclusionSchema,
87
+ evidence: EvidenceListSchema,
88
+ })
89
+ .strict(),
90
+ ]);
91
+ exports.DynamicPeerSchema = zod_1.z
92
+ .object({
93
+ consumer: exports.DependencyContractConsumerSchema,
94
+ kind: exports.DynamicPeerKindSchema,
95
+ evidence: EvidenceListSchema,
96
+ })
97
+ .strict();
98
+ exports.ProvidedContributionKindsSchema = zod_1.z
99
+ .object({
100
+ consumer: exports.DependencyContractConsumerSchema,
101
+ contributionKinds: zod_1.z.array(contribution_1.ContributionKindRefSchema).min(1).readonly(),
102
+ evidence: EvidenceListSchema,
103
+ })
104
+ .strict();
105
+ exports.BiomeDependencyContractSchema = zod_1.z
106
+ .object({
107
+ contractVersion: zod_1.z.literal(exports.BIOME_DEPENDENCY_CONTRACT_VERSION),
108
+ seamTable: zod_1.z
109
+ .object({
110
+ version: zod_1.z.number().int().positive(),
111
+ sha256: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
112
+ })
113
+ .strict(),
114
+ peers: zod_1.z.array(exports.PeerEdgeSchema).readonly(),
115
+ dynamicPeers: zod_1.z.array(exports.DynamicPeerSchema).readonly(),
116
+ provides: zod_1.z.array(exports.ProvidedContributionKindsSchema).readonly(),
117
+ })
118
+ .strict();
119
+ function dependencyContractEvidencePaths(contract) {
120
+ const paths = new Set();
121
+ const add = (evidence) => evidence.forEach(({ path }) => paths.add(path));
122
+ contract.peers.forEach((edge) => add(edge.evidence));
123
+ contract.dynamicPeers.forEach((peer) => add(peer.evidence));
124
+ contract.provides.forEach((fact) => add(fact.evidence));
125
+ return [...paths];
126
+ }
127
+ //# sourceMappingURL=biome-dependency-contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-dependency-contract.js","sourceRoot":"","sources":["../../../src/biome-dependency/lib/biome-dependency-contract.ts"],"names":[],"mappings":";;;AAwNA,0EAUC;AAlOD,qDAA+D;AAC/D,6BAAwB;AAkBX,QAAA,iCAAiC,GAAG,CAAU,CAAC;AAO5D,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAE1B,gDAA4B,CAAA;IAE5B,4DAAwC,CAAA;IAExC,kDAA8B,CAAA;IAE9B,8CAA0B,CAAA;IAE1B,oDAAgC,CAAA;AAClC,CAAC,EAXW,gBAAgB,gCAAhB,gBAAgB,QAW3B;AACY,QAAA,sBAAsB,GAAG,OAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAGrE,IAAY,aAKX;AALD,WAAY,aAAa;IAEvB,oCAAmB,CAAA;IAEnB,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AACY,QAAA,mBAAmB,GAAG,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAQ/D,IAAY,eAWX;AAXD,WAAY,eAAe;IAEzB,yDAAsC,CAAA;IAEtC,yDAAsC,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AA+B,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC;KACD,MAAM,EAAE,CAAC;AAMZ,SAAgB,+BAA+B,CAC7C,QAAiC;IAEjC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,MAAM,GAAG,GAAG,CAAC,QAA+C,EAAE,EAAE,CAC9D,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;AACpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ import { DynamicPeerKind, PeerLifecycle, PeerRelationship, type BiomeDependencyContract } from './biome-dependency-contract';
3
+ export declare const ServicePeerContractSchema: z.ZodObject<{
4
+ contractVersion: z.ZodLiteral<1>;
5
+ peers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
6
+ relationship: z.ZodEnum<{
7
+ "service-peer": PeerRelationship.ServicePeer;
8
+ "database-pool": PeerRelationship.DatabasePool;
9
+ "event-plane": PeerRelationship.EventPlane;
10
+ "biome-delivery": PeerRelationship.BiomeDelivery;
11
+ }>;
12
+ serviceName: z.ZodString;
13
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
14
+ }, z.core.$strict>>>;
15
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof DynamicPeerKind>>>;
16
+ }, z.core.$strict>;
17
+ export type ServicePeerContract = z.infer<typeof ServicePeerContractSchema>;
18
+ export declare function servicePeerContractFor(contract: BiomeDependencyContract, componentKey: string): ServicePeerContract;
19
+ export type PeerResolutionRequest = {
20
+ readonly relationship: PeerRelationship.ServicePeer | PeerRelationship.DatabasePool | PeerRelationship.EventPlane | PeerRelationship.BiomeDelivery;
21
+ readonly serviceName: string;
22
+ readonly phase: PeerLifecycle;
23
+ } | {
24
+ readonly relationship: 'dynamic-peer';
25
+ readonly dynamicKind: DynamicPeerKind;
26
+ readonly serviceName: string;
27
+ readonly phase: PeerLifecycle;
28
+ };
29
+ export declare enum PeerResolutionVerdictKind {
30
+ Declared = "declared",
31
+ Undeclared = "undeclared",
32
+ LifecycleMismatch = "lifecycle-mismatch"
33
+ }
34
+ export type PeerResolutionVerdict = {
35
+ readonly kind: PeerResolutionVerdictKind.Declared;
36
+ } | {
37
+ readonly kind: PeerResolutionVerdictKind.Undeclared | PeerResolutionVerdictKind.LifecycleMismatch;
38
+ readonly message: string;
39
+ };
40
+ export declare function evaluatePeerResolution(contract: ServicePeerContract, request: PeerResolutionRequest): PeerResolutionVerdict;
41
+ //# sourceMappingURL=service-peer-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-peer-contract.d.ts","sourceRoot":"","sources":["../../../src/biome-dependency/lib/service-peer-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,eAAe,EAEf,aAAa,EAEb,gBAAgB,EAEhB,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAC;AAUrC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;kBAqB3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAQ5E,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,uBAAuB,EACjC,YAAY,EAAE,MAAM,GACnB,mBAAmB,CAoCrB;AAOD,MAAM,MAAM,qBAAqB,GAC7B;IACE,QAAQ,CAAC,YAAY,EACjB,gBAAgB,CAAC,WAAW,GAC5B,gBAAgB,CAAC,YAAY,GAC7B,gBAAgB,CAAC,UAAU,GAC3B,gBAAgB,CAAC,aAAa,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;CAC/B,GACD;IACE,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEN,oBAAY,yBAAyB;IACnC,QAAQ,aAAa;IAErB,UAAU,eAAe;IAEzB,iBAAiB,uBAAuB;CACzC;AAED,MAAM,MAAM,qBAAqB,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,QAAQ,CAAA;CAAE,GACrD;IACE,QAAQ,CAAC,IAAI,EACT,yBAAyB,CAAC,UAAU,GACpC,yBAAyB,CAAC,iBAAiB,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAON,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,qBAAqB,GAC7B,qBAAqB,CA8BvB"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PeerResolutionVerdictKind = exports.ServicePeerContractSchema = void 0;
4
+ exports.servicePeerContractFor = servicePeerContractFor;
5
+ exports.evaluatePeerResolution = evaluatePeerResolution;
6
+ const zod_1 = require("zod");
7
+ const biome_dependency_contract_1 = require("./biome-dependency-contract");
8
+ exports.ServicePeerContractSchema = zod_1.z
9
+ .object({
10
+ contractVersion: zod_1.z.literal(biome_dependency_contract_1.BIOME_DEPENDENCY_CONTRACT_VERSION),
11
+ peers: zod_1.z
12
+ .array(zod_1.z
13
+ .object({
14
+ relationship: zod_1.z.enum([
15
+ biome_dependency_contract_1.PeerRelationship.ServicePeer,
16
+ biome_dependency_contract_1.PeerRelationship.DatabasePool,
17
+ biome_dependency_contract_1.PeerRelationship.EventPlane,
18
+ biome_dependency_contract_1.PeerRelationship.BiomeDelivery,
19
+ ]),
20
+ serviceName: biome_dependency_contract_1.PeerServiceNameSchema,
21
+ lifecycle: biome_dependency_contract_1.PeerLifecycleSchema,
22
+ })
23
+ .strict())
24
+ .readonly(),
25
+ dynamicPeers: zod_1.z.array(biome_dependency_contract_1.DynamicPeerKindSchema).readonly(),
26
+ })
27
+ .strict();
28
+ function servicePeerContractFor(contract, componentKey) {
29
+ const applies = (consumer) => consumer.componentKey === undefined ||
30
+ consumer.componentKey === componentKey;
31
+ const seen = new Map();
32
+ for (const edge of contract.peers) {
33
+ if (edge.relationship === biome_dependency_contract_1.PeerRelationship.ContributionOwner)
34
+ continue;
35
+ if (!applies(edge.consumer))
36
+ continue;
37
+ const key = `${edge.relationship}\u0000${edge.target.serviceName}`;
38
+ const previous = seen.get(key);
39
+ if (previous === undefined || edge.lifecycle === biome_dependency_contract_1.PeerLifecycle.Startup) {
40
+ seen.set(key, {
41
+ relationship: edge.relationship,
42
+ serviceName: edge.target.serviceName,
43
+ lifecycle: edge.lifecycle,
44
+ });
45
+ }
46
+ }
47
+ const peers = [...seen.values()].sort((a, b) => a.relationship === b.relationship
48
+ ? compareCodeUnits(a.serviceName, b.serviceName)
49
+ : compareCodeUnits(a.relationship, b.relationship));
50
+ const dynamicPeers = [
51
+ ...new Set(contract.dynamicPeers
52
+ .filter((p) => applies(p.consumer))
53
+ .map((p) => p.kind)),
54
+ ].sort(compareCodeUnits);
55
+ return {
56
+ contractVersion: biome_dependency_contract_1.BIOME_DEPENDENCY_CONTRACT_VERSION,
57
+ peers,
58
+ dynamicPeers,
59
+ };
60
+ }
61
+ function compareCodeUnits(a, b) {
62
+ return a < b ? -1 : a > b ? 1 : 0;
63
+ }
64
+ var PeerResolutionVerdictKind;
65
+ (function (PeerResolutionVerdictKind) {
66
+ PeerResolutionVerdictKind["Declared"] = "declared";
67
+ PeerResolutionVerdictKind["Undeclared"] = "undeclared";
68
+ PeerResolutionVerdictKind["LifecycleMismatch"] = "lifecycle-mismatch";
69
+ })(PeerResolutionVerdictKind || (exports.PeerResolutionVerdictKind = PeerResolutionVerdictKind = {}));
70
+ function evaluatePeerResolution(contract, request) {
71
+ if (request.relationship === 'dynamic-peer') {
72
+ return contract.dynamicPeers.includes(request.dynamicKind)
73
+ ? { kind: PeerResolutionVerdictKind.Declared }
74
+ : {
75
+ kind: PeerResolutionVerdictKind.Undeclared,
76
+ message: `dynamic peer resolution of "${request.serviceName}" via ${request.dynamicKind} is not declared by this service's dependency contract`,
77
+ };
78
+ }
79
+ const edge = contract.peers.find((peer) => peer.relationship === request.relationship &&
80
+ peer.serviceName === request.serviceName);
81
+ if (edge === undefined) {
82
+ return {
83
+ kind: PeerResolutionVerdictKind.Undeclared,
84
+ message: `"${request.serviceName}" is not declared as a ${request.relationship} peer by this service's dependency contract`,
85
+ };
86
+ }
87
+ if (request.phase === biome_dependency_contract_1.PeerLifecycle.Startup &&
88
+ edge.lifecycle === biome_dependency_contract_1.PeerLifecycle.Runtime) {
89
+ return {
90
+ kind: PeerResolutionVerdictKind.LifecycleMismatch,
91
+ message: `"${request.serviceName}" is declared as a runtime ${request.relationship} peer but was resolved at startup`,
92
+ };
93
+ }
94
+ return { kind: PeerResolutionVerdictKind.Declared };
95
+ }
96
+ //# sourceMappingURL=service-peer-contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-peer-contract.js","sourceRoot":"","sources":["../../../src/biome-dependency/lib/service-peer-contract.ts"],"names":[],"mappings":";;;AAmDA,wDAuCC;AA8CD,wDAiCC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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/contracts",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "description": "Consolidated Xema OS kernel wire contracts — pure types + zod schemas for the kernel protocol surfaces. One package, one npm scope, wildcard per-surface subpath exports. No framework/runtime deps.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",