@teamix-evo/registry 0.8.0 → 0.9.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.
package/dist/index.cjs CHANGED
@@ -39,6 +39,9 @@ __export(index_exports, {
39
39
  ProjectConfigSchema: () => ProjectConfigSchema,
40
40
  ProjectConfigV1Schema: () => ProjectConfigV1Schema,
41
41
  ProjectConfigV2Schema: () => ProjectConfigV2Schema,
42
+ PromoteFeatureVectorSchema: () => PromoteFeatureVectorSchema,
43
+ PromoteFileTypeSchema: () => PromoteFileTypeSchema,
44
+ PromoteModeSchema: () => PromoteModeSchema,
42
45
  ResourceSchema: () => ResourceSchema,
43
46
  ResourceTypeSchema: () => ResourceTypeSchema,
44
47
  SkillEntrySchema: () => SkillEntrySchema,
@@ -68,6 +71,7 @@ __export(index_exports, {
68
71
  UpgradeStagingEntrySchema: () => UpgradeStagingEntrySchema,
69
72
  UpgradeStagingIncomingSchema: () => UpgradeStagingIncomingSchema,
70
73
  UpgradeStagingManifestSchema: () => UpgradeStagingManifestSchema,
74
+ UpgradeStagingPromotionSchema: () => UpgradeStagingPromotionSchema,
71
75
  UpgradeStagingTriggerSchema: () => UpgradeStagingTriggerSchema,
72
76
  VariantManifestSchema: () => VariantManifestSchema,
73
77
  VariantUiPackageCatalogSchema: () => VariantUiPackageCatalogSchema,
@@ -575,7 +579,26 @@ var InstalledResourceSchema = import_zod5.z.object({
575
579
  /** IDE this resource was installed for (skill resources only) */
576
580
  ide: SkillIdeSchema.optional(),
577
581
  /** Install scope (skill resources only) */
578
- scope: SkillScopeSchema.optional()
582
+ scope: SkillScopeSchema.optional(),
583
+ /**
584
+ * Origin of the file content. Optional for backwards compatibility — older
585
+ * manifests without this field still validate.
586
+ *
587
+ * - `teamix-evo` : installed from `@teamix-evo/ui` (or biz-ui)
588
+ * - `shadcn-native` : matches an upstream registry entry verbatim
589
+ * - `custom` : user-modified or hand-authored, no upstream match
590
+ * - `custom-legacy` : user version preserved during a Coexist promotion
591
+ * (see ADR / promote-to-biz)
592
+ * - `detected` : adopted via `ui add --adopt`, registry id matched but
593
+ * content has not been verified against upstream hash
594
+ */
595
+ sourceLineage: import_zod5.z.enum([
596
+ "teamix-evo",
597
+ "shadcn-native",
598
+ "custom",
599
+ "custom-legacy",
600
+ "detected"
601
+ ]).optional()
579
602
  });
580
603
  var InstalledPackageSchema = import_zod5.z.object({
581
604
  /** Full package name (e.g. "@teamix-evo/tokens") */
@@ -679,6 +702,54 @@ var UpgradeStagingDiffSchema = import_zod7.z.object({
679
702
  */
680
703
  diffRelPath: import_zod7.z.string().optional()
681
704
  });
705
+ var PromoteFileTypeSchema = import_zod7.z.enum([
706
+ "component",
707
+ "hook",
708
+ "util",
709
+ "type",
710
+ "provider"
711
+ ]);
712
+ var PromoteModeSchema = import_zod7.z.enum([
713
+ "Coexist",
714
+ "Preset",
715
+ "Wrapper",
716
+ "Compose",
717
+ "Variant",
718
+ "Fork",
719
+ "TokenOnly",
720
+ "ManualReview"
721
+ ]);
722
+ var PromoteFeatureVectorSchema = import_zod7.z.object({
723
+ apiDelta: import_zod7.z.object({
724
+ added: import_zod7.z.array(import_zod7.z.string()),
725
+ removed: import_zod7.z.array(import_zod7.z.string()),
726
+ signatureChanged: import_zod7.z.boolean()
727
+ }),
728
+ styleDelta: import_zod7.z.object({
729
+ classNameDiff: import_zod7.z.boolean(),
730
+ tokenUsageDiff: import_zod7.z.boolean()
731
+ }),
732
+ logicDelta: import_zod7.z.object({
733
+ hasState: import_zod7.z.boolean(),
734
+ hasEffect: import_zod7.z.boolean(),
735
+ hasExtraImports: import_zod7.z.boolean()
736
+ }),
737
+ cvaDelta: import_zod7.z.object({
738
+ addedVariants: import_zod7.z.array(import_zod7.z.string()),
739
+ modifiedVariants: import_zod7.z.array(import_zod7.z.string())
740
+ }),
741
+ structureDelta: import_zod7.z.object({
742
+ isComposition: import_zod7.z.boolean(),
743
+ atomicChildren: import_zod7.z.array(import_zod7.z.string())
744
+ })
745
+ });
746
+ var UpgradeStagingPromotionSchema = import_zod7.z.object({
747
+ fileType: PromoteFileTypeSchema,
748
+ featureVector: PromoteFeatureVectorSchema,
749
+ recommendedModes: import_zod7.z.array(PromoteModeSchema),
750
+ confidence: import_zod7.z.number().min(0).max(1),
751
+ reasons: import_zod7.z.array(import_zod7.z.string())
752
+ });
682
753
  var UpgradeStagingEntrySchema = import_zod7.z.object({
683
754
  /** Component identifier matching the upstream registry (e.g. `"button"`). */
684
755
  id: import_zod7.z.string().min(1),
@@ -687,7 +758,13 @@ var UpgradeStagingEntrySchema = import_zod7.z.object({
687
758
  current: UpgradeStagingCurrentSchema,
688
759
  /** Absent when the entry is `breaking` (no incoming) or `foreign` (no upstream). */
689
760
  incoming: UpgradeStagingIncomingSchema.optional(),
690
- diff: UpgradeStagingDiffSchema
761
+ diff: UpgradeStagingDiffSchema,
762
+ /**
763
+ * Optional promotion-planning payload (Init landing plan Phase 2.C.2). Only
764
+ * emitted when the CLI was able to compare current/incoming sources —
765
+ * `breaking` / `foreign` entries leave it undefined.
766
+ */
767
+ promotion: UpgradeStagingPromotionSchema.optional()
691
768
  });
692
769
  var UpgradeStagingManifestSchema = import_zod7.z.object({
693
770
  schemaVersion: import_zod7.z.literal(1),
@@ -1225,6 +1302,9 @@ function getUpdateAction(strategy, options) {
1225
1302
  ProjectConfigSchema,
1226
1303
  ProjectConfigV1Schema,
1227
1304
  ProjectConfigV2Schema,
1305
+ PromoteFeatureVectorSchema,
1306
+ PromoteFileTypeSchema,
1307
+ PromoteModeSchema,
1228
1308
  ResourceSchema,
1229
1309
  ResourceTypeSchema,
1230
1310
  SkillEntrySchema,
@@ -1254,6 +1334,7 @@ function getUpdateAction(strategy, options) {
1254
1334
  UpgradeStagingEntrySchema,
1255
1335
  UpgradeStagingIncomingSchema,
1256
1336
  UpgradeStagingManifestSchema,
1337
+ UpgradeStagingPromotionSchema,
1257
1338
  UpgradeStagingTriggerSchema,
1258
1339
  VariantManifestSchema,
1259
1340
  VariantUiPackageCatalogSchema,