@usefragments/core 1.0.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.
Files changed (228) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chunk-243QYRUF.js +2145 -0
  3. package/dist/chunk-243QYRUF.js.map +1 -0
  4. package/dist/chunk-3LLRNCPX.js +111 -0
  5. package/dist/chunk-3LLRNCPX.js.map +1 -0
  6. package/dist/chunk-EIYNNS77.js +48 -0
  7. package/dist/chunk-EIYNNS77.js.map +1 -0
  8. package/dist/chunk-JNBFJ34I.js +326 -0
  9. package/dist/chunk-JNBFJ34I.js.map +1 -0
  10. package/dist/chunk-R3X7UBHU.js +228 -0
  11. package/dist/chunk-R3X7UBHU.js.map +1 -0
  12. package/dist/chunk-SH4KPIYH.js +393 -0
  13. package/dist/chunk-SH4KPIYH.js.map +1 -0
  14. package/dist/chunk-V4VQB57N.js +56 -0
  15. package/dist/chunk-V4VQB57N.js.map +1 -0
  16. package/dist/chunk-X34IA4LR.js +319 -0
  17. package/dist/chunk-X34IA4LR.js.map +1 -0
  18. package/dist/chunk-YF65VYRY.js +493 -0
  19. package/dist/chunk-YF65VYRY.js.map +1 -0
  20. package/dist/codes/index.d.ts +40 -0
  21. package/dist/codes/index.js +23 -0
  22. package/dist/codes/index.js.map +1 -0
  23. package/dist/compiled-types/index.d.ts +5 -0
  24. package/dist/compiled-types/index.js +1 -0
  25. package/dist/compiled-types/index.js.map +1 -0
  26. package/dist/generate/index.d.ts +47 -0
  27. package/dist/generate/index.js +11 -0
  28. package/dist/generate/index.js.map +1 -0
  29. package/dist/governance-BOa3KyiJ.d.ts +3279 -0
  30. package/dist/graph/index.d.ts +66 -0
  31. package/dist/graph/index.js +17 -0
  32. package/dist/graph/index.js.map +1 -0
  33. package/dist/index.d.ts +11388 -0
  34. package/dist/index.js +8711 -0
  35. package/dist/index.js.map +1 -0
  36. package/dist/package-identity.d.ts +42 -0
  37. package/dist/package-identity.js +23 -0
  38. package/dist/package-identity.js.map +1 -0
  39. package/dist/preview/index.d.ts +484 -0
  40. package/dist/preview/index.js +1129 -0
  41. package/dist/preview/index.js.map +1 -0
  42. package/dist/react-types.d.ts +22 -0
  43. package/dist/react-types.js +1 -0
  44. package/dist/react-types.js.map +1 -0
  45. package/dist/registry.d.ts +2367 -0
  46. package/dist/registry.js +62 -0
  47. package/dist/registry.js.map +1 -0
  48. package/dist/schemas/index.d.ts +2584 -0
  49. package/dist/schemas/index.js +55 -0
  50. package/dist/schemas/index.js.map +1 -0
  51. package/dist/severity.d.ts +18 -0
  52. package/dist/severity.js +27 -0
  53. package/dist/severity.js.map +1 -0
  54. package/dist/test-utils.d.ts +14 -0
  55. package/dist/test-utils.js +63 -0
  56. package/dist/test-utils.js.map +1 -0
  57. package/dist/topology/index.d.ts +48 -0
  58. package/dist/topology/index.js +7 -0
  59. package/dist/topology/index.js.map +1 -0
  60. package/dist/types-xJ2xyp_G.d.ts +119 -0
  61. package/package.json +120 -0
  62. package/src/__tests__/contract-parser.test.ts +614 -0
  63. package/src/__tests__/dtcg-generators.test.ts +439 -0
  64. package/src/__tests__/dtcg-parser.test.ts +884 -0
  65. package/src/__tests__/preview-runtime.test.tsx +111 -0
  66. package/src/__tests__/schema.test.ts +31 -0
  67. package/src/__tests__/severity.test.ts +34 -0
  68. package/src/__tests__/style-comparison.test.ts +662 -0
  69. package/src/__tests__/tokens-compat.test.ts +51 -0
  70. package/src/agent-format.test.ts +105 -0
  71. package/src/agent-format.ts +141 -0
  72. package/src/bundle.ts +149 -0
  73. package/src/codes/__tests__/codes.test.ts +73 -0
  74. package/src/codes/codes.ts +463 -0
  75. package/src/codes/index.ts +7 -0
  76. package/src/codes/source-finding-bridge.ts +113 -0
  77. package/src/compiled-types/index.ts +293 -0
  78. package/src/component-contract.ts +231 -0
  79. package/src/component-discovery.ts +80 -0
  80. package/src/composition.test.ts +262 -0
  81. package/src/composition.ts +318 -0
  82. package/src/config-paths.test.ts +78 -0
  83. package/src/config-paths.ts +47 -0
  84. package/src/config.ts +18 -0
  85. package/src/conform-prove.test.ts +274 -0
  86. package/src/conform-prove.ts +326 -0
  87. package/src/conform.ts +160 -0
  88. package/src/constants.ts +114 -0
  89. package/src/context.ts +2 -0
  90. package/src/contract/fixture.ts +110 -0
  91. package/src/contract/hash.test.ts +86 -0
  92. package/src/contract/hash.ts +195 -0
  93. package/src/contract/index.ts +43 -0
  94. package/src/contract/preimage.test.ts +254 -0
  95. package/src/contract/preimage.ts +365 -0
  96. package/src/contract/stamp.test.ts +100 -0
  97. package/src/contract/stamp.ts +105 -0
  98. package/src/contract-parser.ts +141 -0
  99. package/src/defineFragment.test.ts +257 -0
  100. package/src/defineFragment.ts +293 -0
  101. package/src/dtcg-generators.ts +324 -0
  102. package/src/dtcg-parser.ts +1 -0
  103. package/src/dtcg.ts +237 -0
  104. package/src/facts/__snapshots__/facts.test.ts.snap +124 -0
  105. package/src/facts/builders.ts +835 -0
  106. package/src/facts/compile.ts +422 -0
  107. package/src/facts/fact-index.ts +394 -0
  108. package/src/facts/facts.test.ts +494 -0
  109. package/src/facts/ids.ts +125 -0
  110. package/src/facts/index.ts +119 -0
  111. package/src/facts/types.ts +614 -0
  112. package/src/figma.ts +263 -0
  113. package/src/fragment-types.ts +214 -0
  114. package/src/generate/generate.test.ts +594 -0
  115. package/src/generate/index.ts +438 -0
  116. package/src/governance-integrity.test.ts +186 -0
  117. package/src/governance-integrity.ts +282 -0
  118. package/src/governance.test.ts +300 -0
  119. package/src/governance.ts +605 -0
  120. package/src/governance.type-test.ts +75 -0
  121. package/src/graph/engine.ts +446 -0
  122. package/src/graph/graph.test.ts +746 -0
  123. package/src/graph/index.ts +32 -0
  124. package/src/graph/serialization.ts +55 -0
  125. package/src/graph/types.ts +178 -0
  126. package/src/index.ts +891 -0
  127. package/src/local-canonical.ts +102 -0
  128. package/src/mcp-snapshot.ts +222 -0
  129. package/src/package-identity-match.ts +33 -0
  130. package/src/package-identity.generated.ts +233 -0
  131. package/src/package-identity.test.ts +99 -0
  132. package/src/package-identity.ts +157 -0
  133. package/src/performance-presets.ts +142 -0
  134. package/src/preview/comparison-artifact.test.ts +228 -0
  135. package/src/preview/comparison-artifact.ts +181 -0
  136. package/src/preview/comparison-context.ts +93 -0
  137. package/src/preview/comparison-evidence.ts +112 -0
  138. package/src/preview/comparison-format.ts +21 -0
  139. package/src/preview/comparison-presentation.ts +187 -0
  140. package/src/preview/comparison-references.test.ts +430 -0
  141. package/src/preview/comparison-references.ts +72 -0
  142. package/src/preview/comparison-score.ts +59 -0
  143. package/src/preview/comparison-styles.ts +197 -0
  144. package/src/preview/comparison.test.ts +559 -0
  145. package/src/preview/comparison.ts +488 -0
  146. package/src/preview/index.ts +10 -0
  147. package/src/preview/types.ts +309 -0
  148. package/src/preview/validation.test.ts +290 -0
  149. package/src/preview/validation.ts +356 -0
  150. package/src/preview-runtime.tsx +144 -0
  151. package/src/raw-html-canonical.test.ts +41 -0
  152. package/src/raw-html-canonical.ts +179 -0
  153. package/src/react-types.ts +21 -0
  154. package/src/registry-install-plan.ts +344 -0
  155. package/src/registry.test.ts +245 -0
  156. package/src/registry.ts +369 -0
  157. package/src/rules/a11y-required-accessible-name.ts +93 -0
  158. package/src/rules/color-math.test.ts +72 -0
  159. package/src/rules/color-math.ts +192 -0
  160. package/src/rules/components-forbidden-prop-value.ts +108 -0
  161. package/src/rules/components-prefer-library.ts +943 -0
  162. package/src/rules/components-unknown-prop.ts +94 -0
  163. package/src/rules/composition-pattern-schema.ts +125 -0
  164. package/src/rules/composition-pattern.test.ts +320 -0
  165. package/src/rules/composition-pattern.ts +271 -0
  166. package/src/rules/emit-gate.test.ts +42 -0
  167. package/src/rules/emit-gate.ts +60 -0
  168. package/src/rules/finding.ts +54 -0
  169. package/src/rules/index.ts +235 -0
  170. package/src/rules/jsx-preferred-component.ts +68 -0
  171. package/src/rules/jsx-preferred-import-path.ts +67 -0
  172. package/src/rules/presets.ts +57 -0
  173. package/src/rules/props-invalid-value.ts +115 -0
  174. package/src/rules/rules.test.ts +3636 -0
  175. package/src/rules/spacing-resolution.ts +184 -0
  176. package/src/rules/styles-no-raw-color.ts +329 -0
  177. package/src/rules/styles-no-raw-dimensions.ts +357 -0
  178. package/src/rules/styles-no-raw-spacing.ts +236 -0
  179. package/src/rules/styles-no-raw-typography.ts +237 -0
  180. package/src/rules/tailwind-arbitrary-color.test.ts +128 -0
  181. package/src/rules/tailwind-arbitrary-color.ts +93 -0
  182. package/src/rules/tailwind-arbitrary-spacing.test.ts +157 -0
  183. package/src/rules/tailwind-arbitrary-spacing.ts +120 -0
  184. package/src/rules/tailwind-forbidden-palette.test.ts +116 -0
  185. package/src/rules/tailwind-forbidden-palette.ts +107 -0
  186. package/src/rules/tailwind-off-scale-spacing-token.test.ts +100 -0
  187. package/src/rules/tailwind-off-scale-spacing-token.ts +108 -0
  188. package/src/rules/tailwind-raw-color-via-token.test.ts +108 -0
  189. package/src/rules/tailwind-raw-color-via-token.ts +82 -0
  190. package/src/rules/tailwind-rule-utils.ts +106 -0
  191. package/src/rules/tailwind-unknown-class.test.ts +157 -0
  192. package/src/rules/tailwind-unknown-class.ts +121 -0
  193. package/src/rules/taxonomy.test.ts +238 -0
  194. package/src/rules/theme-no-theme-coupled-literal.ts +132 -0
  195. package/src/rules/tiers.ts +111 -0
  196. package/src/rules/tokens-css-vars-must-be-defined.test.ts +244 -0
  197. package/src/rules/tokens-css-vars-must-be-defined.ts +156 -0
  198. package/src/rules/tokens-require-dual-fallback.ts +78 -0
  199. package/src/rules/types.ts +27 -0
  200. package/src/rules/utils.test.ts +110 -0
  201. package/src/rules/utils.ts +599 -0
  202. package/src/schema.ts +427 -0
  203. package/src/schemas/index.ts +275 -0
  204. package/src/schemas/schemas.test.ts +124 -0
  205. package/src/severity.ts +54 -0
  206. package/src/storyAdapter.test.ts +571 -0
  207. package/src/storyAdapter.ts +761 -0
  208. package/src/storyFilters.test.ts +350 -0
  209. package/src/storyFilters.ts +253 -0
  210. package/src/storybook-csf.ts +11 -0
  211. package/src/style-comparison.ts +423 -0
  212. package/src/test-utils.ts +68 -0
  213. package/src/token-parser.ts +2 -0
  214. package/src/token-types.ts +287 -0
  215. package/src/tokens/categories.ts +131 -0
  216. package/src/tokens/color.ts +193 -0
  217. package/src/tokens/design-token-parser.test.ts +159 -0
  218. package/src/tokens/design-token-parser.ts +402 -0
  219. package/src/tokens/dtcg.ts +428 -0
  220. package/src/tokens/index.ts +130 -0
  221. package/src/tokens/lookup.ts +19 -0
  222. package/src/tokens/scss.ts +171 -0
  223. package/src/tokens/tailwind-v4.ts +187 -0
  224. package/src/tokens/types.ts +43 -0
  225. package/src/topology/index.ts +9 -0
  226. package/src/topology/resolve-area.test.ts +174 -0
  227. package/src/topology/resolve-area.ts +215 -0
  228. package/src/types.ts +1057 -0
@@ -0,0 +1,2367 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const REGISTRY_MANIFEST_SCHEMA_VERSION = "fragments.registry.v1";
4
+ declare const REGISTRY_ARTIFACT_SCHEMA_VERSION = "fragments.registry-artifact.v1";
5
+ declare const REGISTRY_INSTALL_RECEIPT_SCHEMA_VERSION = "fragments.registry-lock.v1";
6
+ declare const registryDependencyTypeSchema: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
7
+ declare const registryDependencySchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ versionRange: z.ZodString;
10
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
11
+ optional: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "runtime" | "peer" | "dev" | "optional";
14
+ name: string;
15
+ versionRange: string;
16
+ optional?: boolean | undefined;
17
+ }, {
18
+ type: "runtime" | "peer" | "dev" | "optional";
19
+ name: string;
20
+ versionRange: string;
21
+ optional?: boolean | undefined;
22
+ }>;
23
+ declare const registryFileRoleSchema: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
24
+ declare const registryFileSchema: z.ZodObject<{
25
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
26
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
27
+ sha256: z.ZodString;
28
+ size: z.ZodNumber;
29
+ contentType: z.ZodString;
30
+ contentRef: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ path: string;
33
+ size: number;
34
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
35
+ contentType: string;
36
+ sha256: string;
37
+ contentRef: string;
38
+ }, {
39
+ path: string;
40
+ size: number;
41
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
42
+ contentType: string;
43
+ sha256: string;
44
+ contentRef: string;
45
+ }>;
46
+ declare const registryFileContentSchema: z.ZodObject<{
47
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
48
+ content: z.ZodString;
49
+ sha256: z.ZodString;
50
+ size: z.ZodNumber;
51
+ contentType: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ path: string;
54
+ size: number;
55
+ contentType: string;
56
+ sha256: string;
57
+ content: string;
58
+ }, {
59
+ path: string;
60
+ size: number;
61
+ contentType: string;
62
+ sha256: string;
63
+ content: string;
64
+ }>;
65
+ declare const registrySourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
66
+ kind: z.ZodLiteral<"package">;
67
+ packageName: z.ZodString;
68
+ version: z.ZodOptional<z.ZodString>;
69
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
70
+ commitSha: z.ZodOptional<z.ZodString>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ kind: "package";
73
+ packageName: string;
74
+ version?: string | undefined;
75
+ rootPath?: string | undefined;
76
+ commitSha?: string | undefined;
77
+ }, {
78
+ kind: "package";
79
+ packageName: string;
80
+ version?: string | undefined;
81
+ rootPath?: string | undefined;
82
+ commitSha?: string | undefined;
83
+ }>, z.ZodObject<{
84
+ kind: z.ZodLiteral<"github">;
85
+ repoFullName: z.ZodString;
86
+ commitSha: z.ZodString;
87
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ kind: "github";
90
+ repoFullName: string;
91
+ commitSha: string;
92
+ path?: string | undefined;
93
+ }, {
94
+ kind: "github";
95
+ repoFullName: string;
96
+ commitSha: string;
97
+ path?: string | undefined;
98
+ }>, z.ZodObject<{
99
+ kind: z.ZodLiteral<"local">;
100
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
101
+ commitSha: z.ZodOptional<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ kind: "local";
104
+ rootPath?: string | undefined;
105
+ commitSha?: string | undefined;
106
+ }, {
107
+ kind: "local";
108
+ rootPath?: string | undefined;
109
+ commitSha?: string | undefined;
110
+ }>, z.ZodObject<{
111
+ kind: z.ZodLiteral<"manual">;
112
+ label: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ kind: "manual";
115
+ label: string;
116
+ }, {
117
+ kind: "manual";
118
+ label: string;
119
+ }>]>;
120
+ declare const registryComponentExportSchema: z.ZodObject<{
121
+ name: z.ZodString;
122
+ kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
123
+ path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ kind: "type" | "utility" | "style" | "component" | "hook";
126
+ name: string;
127
+ path?: string | undefined;
128
+ }, {
129
+ name: string;
130
+ path?: string | undefined;
131
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
132
+ }>;
133
+ declare const registryComponentSchema: z.ZodObject<{
134
+ componentId: z.ZodString;
135
+ publicRef: z.ZodString;
136
+ name: z.ZodString;
137
+ status: z.ZodDefault<z.ZodString>;
138
+ tier: z.ZodDefault<z.ZodEnum<["core", "composition", "utility", "custom"]>>;
139
+ category: z.ZodOptional<z.ZodString>;
140
+ files: z.ZodArray<z.ZodObject<{
141
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
142
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
143
+ sha256: z.ZodString;
144
+ size: z.ZodNumber;
145
+ contentType: z.ZodString;
146
+ contentRef: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ path: string;
149
+ size: number;
150
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
151
+ contentType: string;
152
+ sha256: string;
153
+ contentRef: string;
154
+ }, {
155
+ path: string;
156
+ size: number;
157
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
158
+ contentType: string;
159
+ sha256: string;
160
+ contentRef: string;
161
+ }>, "many">;
162
+ styleFiles: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
163
+ tokenDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
164
+ runtimeDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
165
+ name: z.ZodString;
166
+ versionRange: z.ZodString;
167
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
168
+ optional: z.ZodOptional<z.ZodBoolean>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ type: "runtime" | "peer" | "dev" | "optional";
171
+ name: string;
172
+ versionRange: string;
173
+ optional?: boolean | undefined;
174
+ }, {
175
+ type: "runtime" | "peer" | "dev" | "optional";
176
+ name: string;
177
+ versionRange: string;
178
+ optional?: boolean | undefined;
179
+ }>, "many">>;
180
+ peerDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
181
+ name: z.ZodString;
182
+ versionRange: z.ZodString;
183
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
184
+ optional: z.ZodOptional<z.ZodBoolean>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "runtime" | "peer" | "dev" | "optional";
187
+ name: string;
188
+ versionRange: string;
189
+ optional?: boolean | undefined;
190
+ }, {
191
+ type: "runtime" | "peer" | "dev" | "optional";
192
+ name: string;
193
+ versionRange: string;
194
+ optional?: boolean | undefined;
195
+ }>, "many">>;
196
+ internalDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
197
+ exports: z.ZodDefault<z.ZodArray<z.ZodObject<{
198
+ name: z.ZodString;
199
+ kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
200
+ path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ kind: "type" | "utility" | "style" | "component" | "hook";
203
+ name: string;
204
+ path?: string | undefined;
205
+ }, {
206
+ name: string;
207
+ path?: string | undefined;
208
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
209
+ }>, "many">>;
210
+ contract: z.ZodOptional<z.ZodUnknown>;
211
+ examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
212
+ provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ status: string;
215
+ componentId: string;
216
+ name: string;
217
+ publicRef: string;
218
+ tier: "custom" | "utility" | "composition" | "core";
219
+ examples: unknown[];
220
+ files: {
221
+ path: string;
222
+ size: number;
223
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
224
+ contentType: string;
225
+ sha256: string;
226
+ contentRef: string;
227
+ }[];
228
+ styleFiles: string[];
229
+ tokenDependencies: string[];
230
+ runtimeDependencies: {
231
+ type: "runtime" | "peer" | "dev" | "optional";
232
+ name: string;
233
+ versionRange: string;
234
+ optional?: boolean | undefined;
235
+ }[];
236
+ peerDependencies: {
237
+ type: "runtime" | "peer" | "dev" | "optional";
238
+ name: string;
239
+ versionRange: string;
240
+ optional?: boolean | undefined;
241
+ }[];
242
+ internalDependencies: string[];
243
+ exports: {
244
+ kind: "type" | "utility" | "style" | "component" | "hook";
245
+ name: string;
246
+ path?: string | undefined;
247
+ }[];
248
+ provenance: Record<string, unknown>;
249
+ category?: string | undefined;
250
+ contract?: unknown;
251
+ }, {
252
+ componentId: string;
253
+ name: string;
254
+ publicRef: string;
255
+ files: {
256
+ path: string;
257
+ size: number;
258
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
259
+ contentType: string;
260
+ sha256: string;
261
+ contentRef: string;
262
+ }[];
263
+ status?: string | undefined;
264
+ category?: string | undefined;
265
+ contract?: unknown;
266
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
267
+ examples?: unknown[] | undefined;
268
+ styleFiles?: string[] | undefined;
269
+ tokenDependencies?: string[] | undefined;
270
+ runtimeDependencies?: {
271
+ type: "runtime" | "peer" | "dev" | "optional";
272
+ name: string;
273
+ versionRange: string;
274
+ optional?: boolean | undefined;
275
+ }[] | undefined;
276
+ peerDependencies?: {
277
+ type: "runtime" | "peer" | "dev" | "optional";
278
+ name: string;
279
+ versionRange: string;
280
+ optional?: boolean | undefined;
281
+ }[] | undefined;
282
+ internalDependencies?: string[] | undefined;
283
+ exports?: {
284
+ name: string;
285
+ path?: string | undefined;
286
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
287
+ }[] | undefined;
288
+ provenance?: Record<string, unknown> | undefined;
289
+ }>;
290
+ declare const registryEntrypointSchema: z.ZodObject<{
291
+ specifier: z.ZodString;
292
+ sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ specifier: string;
295
+ sourcePath: string;
296
+ }, {
297
+ specifier: string;
298
+ sourcePath: string;
299
+ }>;
300
+ declare const registryInstallProfileSchema: z.ZodObject<{
301
+ name: z.ZodString;
302
+ targetPath: z.ZodEffects<z.ZodString, string, string>;
303
+ importPath: z.ZodString;
304
+ stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
305
+ includeTests: z.ZodDefault<z.ZodBoolean>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ importPath: string;
308
+ name: string;
309
+ targetPath: string;
310
+ includeTests: boolean;
311
+ stylePath?: string | undefined;
312
+ }, {
313
+ importPath: string;
314
+ name: string;
315
+ targetPath: string;
316
+ stylePath?: string | undefined;
317
+ includeTests?: boolean | undefined;
318
+ }>;
319
+ declare const registryManifestDraftSchema: z.ZodObject<{
320
+ schemaVersion: z.ZodLiteral<"fragments.registry.v1">;
321
+ registryId: z.ZodString;
322
+ name: z.ZodString;
323
+ channel: z.ZodString;
324
+ version: z.ZodString;
325
+ contractVersionId: z.ZodOptional<z.ZodString>;
326
+ fcid: z.ZodOptional<z.ZodString>;
327
+ generatedAt: z.ZodString;
328
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
329
+ kind: z.ZodLiteral<"package">;
330
+ packageName: z.ZodString;
331
+ version: z.ZodOptional<z.ZodString>;
332
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
333
+ commitSha: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ kind: "package";
336
+ packageName: string;
337
+ version?: string | undefined;
338
+ rootPath?: string | undefined;
339
+ commitSha?: string | undefined;
340
+ }, {
341
+ kind: "package";
342
+ packageName: string;
343
+ version?: string | undefined;
344
+ rootPath?: string | undefined;
345
+ commitSha?: string | undefined;
346
+ }>, z.ZodObject<{
347
+ kind: z.ZodLiteral<"github">;
348
+ repoFullName: z.ZodString;
349
+ commitSha: z.ZodString;
350
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ kind: "github";
353
+ repoFullName: string;
354
+ commitSha: string;
355
+ path?: string | undefined;
356
+ }, {
357
+ kind: "github";
358
+ repoFullName: string;
359
+ commitSha: string;
360
+ path?: string | undefined;
361
+ }>, z.ZodObject<{
362
+ kind: z.ZodLiteral<"local">;
363
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
364
+ commitSha: z.ZodOptional<z.ZodString>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ kind: "local";
367
+ rootPath?: string | undefined;
368
+ commitSha?: string | undefined;
369
+ }, {
370
+ kind: "local";
371
+ rootPath?: string | undefined;
372
+ commitSha?: string | undefined;
373
+ }>, z.ZodObject<{
374
+ kind: z.ZodLiteral<"manual">;
375
+ label: z.ZodString;
376
+ }, "strip", z.ZodTypeAny, {
377
+ kind: "manual";
378
+ label: string;
379
+ }, {
380
+ kind: "manual";
381
+ label: string;
382
+ }>]>;
383
+ packageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
384
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
385
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
386
+ sha256: z.ZodString;
387
+ size: z.ZodNumber;
388
+ contentType: z.ZodString;
389
+ contentRef: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ path: string;
392
+ size: number;
393
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
394
+ contentType: string;
395
+ sha256: string;
396
+ contentRef: string;
397
+ }, {
398
+ path: string;
399
+ size: number;
400
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
401
+ contentType: string;
402
+ sha256: string;
403
+ contentRef: string;
404
+ }>, "many">>;
405
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
406
+ specifier: z.ZodString;
407
+ sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ specifier: string;
410
+ sourcePath: string;
411
+ }, {
412
+ specifier: string;
413
+ sourcePath: string;
414
+ }>, "many">>;
415
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
416
+ componentId: z.ZodString;
417
+ publicRef: z.ZodString;
418
+ name: z.ZodString;
419
+ status: z.ZodDefault<z.ZodString>;
420
+ tier: z.ZodDefault<z.ZodEnum<["core", "composition", "utility", "custom"]>>;
421
+ category: z.ZodOptional<z.ZodString>;
422
+ files: z.ZodArray<z.ZodObject<{
423
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
424
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
425
+ sha256: z.ZodString;
426
+ size: z.ZodNumber;
427
+ contentType: z.ZodString;
428
+ contentRef: z.ZodString;
429
+ }, "strip", z.ZodTypeAny, {
430
+ path: string;
431
+ size: number;
432
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
433
+ contentType: string;
434
+ sha256: string;
435
+ contentRef: string;
436
+ }, {
437
+ path: string;
438
+ size: number;
439
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
440
+ contentType: string;
441
+ sha256: string;
442
+ contentRef: string;
443
+ }>, "many">;
444
+ styleFiles: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
445
+ tokenDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
446
+ runtimeDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
447
+ name: z.ZodString;
448
+ versionRange: z.ZodString;
449
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
450
+ optional: z.ZodOptional<z.ZodBoolean>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ type: "runtime" | "peer" | "dev" | "optional";
453
+ name: string;
454
+ versionRange: string;
455
+ optional?: boolean | undefined;
456
+ }, {
457
+ type: "runtime" | "peer" | "dev" | "optional";
458
+ name: string;
459
+ versionRange: string;
460
+ optional?: boolean | undefined;
461
+ }>, "many">>;
462
+ peerDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
463
+ name: z.ZodString;
464
+ versionRange: z.ZodString;
465
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
466
+ optional: z.ZodOptional<z.ZodBoolean>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ type: "runtime" | "peer" | "dev" | "optional";
469
+ name: string;
470
+ versionRange: string;
471
+ optional?: boolean | undefined;
472
+ }, {
473
+ type: "runtime" | "peer" | "dev" | "optional";
474
+ name: string;
475
+ versionRange: string;
476
+ optional?: boolean | undefined;
477
+ }>, "many">>;
478
+ internalDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
479
+ exports: z.ZodDefault<z.ZodArray<z.ZodObject<{
480
+ name: z.ZodString;
481
+ kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
482
+ path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ kind: "type" | "utility" | "style" | "component" | "hook";
485
+ name: string;
486
+ path?: string | undefined;
487
+ }, {
488
+ name: string;
489
+ path?: string | undefined;
490
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
491
+ }>, "many">>;
492
+ contract: z.ZodOptional<z.ZodUnknown>;
493
+ examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
494
+ provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ status: string;
497
+ componentId: string;
498
+ name: string;
499
+ publicRef: string;
500
+ tier: "custom" | "utility" | "composition" | "core";
501
+ examples: unknown[];
502
+ files: {
503
+ path: string;
504
+ size: number;
505
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
506
+ contentType: string;
507
+ sha256: string;
508
+ contentRef: string;
509
+ }[];
510
+ styleFiles: string[];
511
+ tokenDependencies: string[];
512
+ runtimeDependencies: {
513
+ type: "runtime" | "peer" | "dev" | "optional";
514
+ name: string;
515
+ versionRange: string;
516
+ optional?: boolean | undefined;
517
+ }[];
518
+ peerDependencies: {
519
+ type: "runtime" | "peer" | "dev" | "optional";
520
+ name: string;
521
+ versionRange: string;
522
+ optional?: boolean | undefined;
523
+ }[];
524
+ internalDependencies: string[];
525
+ exports: {
526
+ kind: "type" | "utility" | "style" | "component" | "hook";
527
+ name: string;
528
+ path?: string | undefined;
529
+ }[];
530
+ provenance: Record<string, unknown>;
531
+ category?: string | undefined;
532
+ contract?: unknown;
533
+ }, {
534
+ componentId: string;
535
+ name: string;
536
+ publicRef: string;
537
+ files: {
538
+ path: string;
539
+ size: number;
540
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
541
+ contentType: string;
542
+ sha256: string;
543
+ contentRef: string;
544
+ }[];
545
+ status?: string | undefined;
546
+ category?: string | undefined;
547
+ contract?: unknown;
548
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
549
+ examples?: unknown[] | undefined;
550
+ styleFiles?: string[] | undefined;
551
+ tokenDependencies?: string[] | undefined;
552
+ runtimeDependencies?: {
553
+ type: "runtime" | "peer" | "dev" | "optional";
554
+ name: string;
555
+ versionRange: string;
556
+ optional?: boolean | undefined;
557
+ }[] | undefined;
558
+ peerDependencies?: {
559
+ type: "runtime" | "peer" | "dev" | "optional";
560
+ name: string;
561
+ versionRange: string;
562
+ optional?: boolean | undefined;
563
+ }[] | undefined;
564
+ internalDependencies?: string[] | undefined;
565
+ exports?: {
566
+ name: string;
567
+ path?: string | undefined;
568
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
569
+ }[] | undefined;
570
+ provenance?: Record<string, unknown> | undefined;
571
+ }>>;
572
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
573
+ name: z.ZodString;
574
+ versionRange: z.ZodString;
575
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
576
+ optional: z.ZodOptional<z.ZodBoolean>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ type: "runtime" | "peer" | "dev" | "optional";
579
+ name: string;
580
+ versionRange: string;
581
+ optional?: boolean | undefined;
582
+ }, {
583
+ type: "runtime" | "peer" | "dev" | "optional";
584
+ name: string;
585
+ versionRange: string;
586
+ optional?: boolean | undefined;
587
+ }>, "many">>;
588
+ installProfiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
589
+ name: z.ZodString;
590
+ targetPath: z.ZodEffects<z.ZodString, string, string>;
591
+ importPath: z.ZodString;
592
+ stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
593
+ includeTests: z.ZodDefault<z.ZodBoolean>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ importPath: string;
596
+ name: string;
597
+ targetPath: string;
598
+ includeTests: boolean;
599
+ stylePath?: string | undefined;
600
+ }, {
601
+ importPath: string;
602
+ name: string;
603
+ targetPath: string;
604
+ stylePath?: string | undefined;
605
+ includeTests?: boolean | undefined;
606
+ }>, "many">>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ components: Record<string, {
609
+ status: string;
610
+ componentId: string;
611
+ name: string;
612
+ publicRef: string;
613
+ tier: "custom" | "utility" | "composition" | "core";
614
+ examples: unknown[];
615
+ files: {
616
+ path: string;
617
+ size: number;
618
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
619
+ contentType: string;
620
+ sha256: string;
621
+ contentRef: string;
622
+ }[];
623
+ styleFiles: string[];
624
+ tokenDependencies: string[];
625
+ runtimeDependencies: {
626
+ type: "runtime" | "peer" | "dev" | "optional";
627
+ name: string;
628
+ versionRange: string;
629
+ optional?: boolean | undefined;
630
+ }[];
631
+ peerDependencies: {
632
+ type: "runtime" | "peer" | "dev" | "optional";
633
+ name: string;
634
+ versionRange: string;
635
+ optional?: boolean | undefined;
636
+ }[];
637
+ internalDependencies: string[];
638
+ exports: {
639
+ kind: "type" | "utility" | "style" | "component" | "hook";
640
+ name: string;
641
+ path?: string | undefined;
642
+ }[];
643
+ provenance: Record<string, unknown>;
644
+ category?: string | undefined;
645
+ contract?: unknown;
646
+ }>;
647
+ schemaVersion: "fragments.registry.v1";
648
+ name: string;
649
+ registryId: string;
650
+ source: {
651
+ kind: "package";
652
+ packageName: string;
653
+ version?: string | undefined;
654
+ rootPath?: string | undefined;
655
+ commitSha?: string | undefined;
656
+ } | {
657
+ kind: "github";
658
+ repoFullName: string;
659
+ commitSha: string;
660
+ path?: string | undefined;
661
+ } | {
662
+ kind: "local";
663
+ rootPath?: string | undefined;
664
+ commitSha?: string | undefined;
665
+ } | {
666
+ kind: "manual";
667
+ label: string;
668
+ };
669
+ version: string;
670
+ channel: string;
671
+ generatedAt: string;
672
+ packageFiles: {
673
+ path: string;
674
+ size: number;
675
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
676
+ contentType: string;
677
+ sha256: string;
678
+ contentRef: string;
679
+ }[];
680
+ entrypoints: {
681
+ specifier: string;
682
+ sourcePath: string;
683
+ }[];
684
+ dependencies: {
685
+ type: "runtime" | "peer" | "dev" | "optional";
686
+ name: string;
687
+ versionRange: string;
688
+ optional?: boolean | undefined;
689
+ }[];
690
+ installProfiles: {
691
+ importPath: string;
692
+ name: string;
693
+ targetPath: string;
694
+ includeTests: boolean;
695
+ stylePath?: string | undefined;
696
+ }[];
697
+ fcid?: string | undefined;
698
+ contractVersionId?: string | undefined;
699
+ }, {
700
+ components: Record<string, {
701
+ componentId: string;
702
+ name: string;
703
+ publicRef: string;
704
+ files: {
705
+ path: string;
706
+ size: number;
707
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
708
+ contentType: string;
709
+ sha256: string;
710
+ contentRef: string;
711
+ }[];
712
+ status?: string | undefined;
713
+ category?: string | undefined;
714
+ contract?: unknown;
715
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
716
+ examples?: unknown[] | undefined;
717
+ styleFiles?: string[] | undefined;
718
+ tokenDependencies?: string[] | undefined;
719
+ runtimeDependencies?: {
720
+ type: "runtime" | "peer" | "dev" | "optional";
721
+ name: string;
722
+ versionRange: string;
723
+ optional?: boolean | undefined;
724
+ }[] | undefined;
725
+ peerDependencies?: {
726
+ type: "runtime" | "peer" | "dev" | "optional";
727
+ name: string;
728
+ versionRange: string;
729
+ optional?: boolean | undefined;
730
+ }[] | undefined;
731
+ internalDependencies?: string[] | undefined;
732
+ exports?: {
733
+ name: string;
734
+ path?: string | undefined;
735
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
736
+ }[] | undefined;
737
+ provenance?: Record<string, unknown> | undefined;
738
+ }>;
739
+ schemaVersion: "fragments.registry.v1";
740
+ name: string;
741
+ registryId: string;
742
+ source: {
743
+ kind: "package";
744
+ packageName: string;
745
+ version?: string | undefined;
746
+ rootPath?: string | undefined;
747
+ commitSha?: string | undefined;
748
+ } | {
749
+ kind: "github";
750
+ repoFullName: string;
751
+ commitSha: string;
752
+ path?: string | undefined;
753
+ } | {
754
+ kind: "local";
755
+ rootPath?: string | undefined;
756
+ commitSha?: string | undefined;
757
+ } | {
758
+ kind: "manual";
759
+ label: string;
760
+ };
761
+ version: string;
762
+ channel: string;
763
+ generatedAt: string;
764
+ fcid?: string | undefined;
765
+ contractVersionId?: string | undefined;
766
+ packageFiles?: {
767
+ path: string;
768
+ size: number;
769
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
770
+ contentType: string;
771
+ sha256: string;
772
+ contentRef: string;
773
+ }[] | undefined;
774
+ entrypoints?: {
775
+ specifier: string;
776
+ sourcePath: string;
777
+ }[] | undefined;
778
+ dependencies?: {
779
+ type: "runtime" | "peer" | "dev" | "optional";
780
+ name: string;
781
+ versionRange: string;
782
+ optional?: boolean | undefined;
783
+ }[] | undefined;
784
+ installProfiles?: {
785
+ importPath: string;
786
+ name: string;
787
+ targetPath: string;
788
+ stylePath?: string | undefined;
789
+ includeTests?: boolean | undefined;
790
+ }[] | undefined;
791
+ }>;
792
+ declare const registryManifestSchema: z.ZodObject<{
793
+ schemaVersion: z.ZodLiteral<"fragments.registry.v1">;
794
+ registryId: z.ZodString;
795
+ name: z.ZodString;
796
+ channel: z.ZodString;
797
+ version: z.ZodString;
798
+ contractVersionId: z.ZodOptional<z.ZodString>;
799
+ fcid: z.ZodOptional<z.ZodString>;
800
+ generatedAt: z.ZodString;
801
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
802
+ kind: z.ZodLiteral<"package">;
803
+ packageName: z.ZodString;
804
+ version: z.ZodOptional<z.ZodString>;
805
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
806
+ commitSha: z.ZodOptional<z.ZodString>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ kind: "package";
809
+ packageName: string;
810
+ version?: string | undefined;
811
+ rootPath?: string | undefined;
812
+ commitSha?: string | undefined;
813
+ }, {
814
+ kind: "package";
815
+ packageName: string;
816
+ version?: string | undefined;
817
+ rootPath?: string | undefined;
818
+ commitSha?: string | undefined;
819
+ }>, z.ZodObject<{
820
+ kind: z.ZodLiteral<"github">;
821
+ repoFullName: z.ZodString;
822
+ commitSha: z.ZodString;
823
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ kind: "github";
826
+ repoFullName: string;
827
+ commitSha: string;
828
+ path?: string | undefined;
829
+ }, {
830
+ kind: "github";
831
+ repoFullName: string;
832
+ commitSha: string;
833
+ path?: string | undefined;
834
+ }>, z.ZodObject<{
835
+ kind: z.ZodLiteral<"local">;
836
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
837
+ commitSha: z.ZodOptional<z.ZodString>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ kind: "local";
840
+ rootPath?: string | undefined;
841
+ commitSha?: string | undefined;
842
+ }, {
843
+ kind: "local";
844
+ rootPath?: string | undefined;
845
+ commitSha?: string | undefined;
846
+ }>, z.ZodObject<{
847
+ kind: z.ZodLiteral<"manual">;
848
+ label: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ kind: "manual";
851
+ label: string;
852
+ }, {
853
+ kind: "manual";
854
+ label: string;
855
+ }>]>;
856
+ packageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
857
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
858
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
859
+ sha256: z.ZodString;
860
+ size: z.ZodNumber;
861
+ contentType: z.ZodString;
862
+ contentRef: z.ZodString;
863
+ }, "strip", z.ZodTypeAny, {
864
+ path: string;
865
+ size: number;
866
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
867
+ contentType: string;
868
+ sha256: string;
869
+ contentRef: string;
870
+ }, {
871
+ path: string;
872
+ size: number;
873
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
874
+ contentType: string;
875
+ sha256: string;
876
+ contentRef: string;
877
+ }>, "many">>;
878
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
879
+ specifier: z.ZodString;
880
+ sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ specifier: string;
883
+ sourcePath: string;
884
+ }, {
885
+ specifier: string;
886
+ sourcePath: string;
887
+ }>, "many">>;
888
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
889
+ componentId: z.ZodString;
890
+ publicRef: z.ZodString;
891
+ name: z.ZodString;
892
+ status: z.ZodDefault<z.ZodString>;
893
+ tier: z.ZodDefault<z.ZodEnum<["core", "composition", "utility", "custom"]>>;
894
+ category: z.ZodOptional<z.ZodString>;
895
+ files: z.ZodArray<z.ZodObject<{
896
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
897
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
898
+ sha256: z.ZodString;
899
+ size: z.ZodNumber;
900
+ contentType: z.ZodString;
901
+ contentRef: z.ZodString;
902
+ }, "strip", z.ZodTypeAny, {
903
+ path: string;
904
+ size: number;
905
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
906
+ contentType: string;
907
+ sha256: string;
908
+ contentRef: string;
909
+ }, {
910
+ path: string;
911
+ size: number;
912
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
913
+ contentType: string;
914
+ sha256: string;
915
+ contentRef: string;
916
+ }>, "many">;
917
+ styleFiles: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
918
+ tokenDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
919
+ runtimeDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
920
+ name: z.ZodString;
921
+ versionRange: z.ZodString;
922
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
923
+ optional: z.ZodOptional<z.ZodBoolean>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ type: "runtime" | "peer" | "dev" | "optional";
926
+ name: string;
927
+ versionRange: string;
928
+ optional?: boolean | undefined;
929
+ }, {
930
+ type: "runtime" | "peer" | "dev" | "optional";
931
+ name: string;
932
+ versionRange: string;
933
+ optional?: boolean | undefined;
934
+ }>, "many">>;
935
+ peerDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
936
+ name: z.ZodString;
937
+ versionRange: z.ZodString;
938
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
939
+ optional: z.ZodOptional<z.ZodBoolean>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ type: "runtime" | "peer" | "dev" | "optional";
942
+ name: string;
943
+ versionRange: string;
944
+ optional?: boolean | undefined;
945
+ }, {
946
+ type: "runtime" | "peer" | "dev" | "optional";
947
+ name: string;
948
+ versionRange: string;
949
+ optional?: boolean | undefined;
950
+ }>, "many">>;
951
+ internalDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
952
+ exports: z.ZodDefault<z.ZodArray<z.ZodObject<{
953
+ name: z.ZodString;
954
+ kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
955
+ path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
956
+ }, "strip", z.ZodTypeAny, {
957
+ kind: "type" | "utility" | "style" | "component" | "hook";
958
+ name: string;
959
+ path?: string | undefined;
960
+ }, {
961
+ name: string;
962
+ path?: string | undefined;
963
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
964
+ }>, "many">>;
965
+ contract: z.ZodOptional<z.ZodUnknown>;
966
+ examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
967
+ provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ status: string;
970
+ componentId: string;
971
+ name: string;
972
+ publicRef: string;
973
+ tier: "custom" | "utility" | "composition" | "core";
974
+ examples: unknown[];
975
+ files: {
976
+ path: string;
977
+ size: number;
978
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
979
+ contentType: string;
980
+ sha256: string;
981
+ contentRef: string;
982
+ }[];
983
+ styleFiles: string[];
984
+ tokenDependencies: string[];
985
+ runtimeDependencies: {
986
+ type: "runtime" | "peer" | "dev" | "optional";
987
+ name: string;
988
+ versionRange: string;
989
+ optional?: boolean | undefined;
990
+ }[];
991
+ peerDependencies: {
992
+ type: "runtime" | "peer" | "dev" | "optional";
993
+ name: string;
994
+ versionRange: string;
995
+ optional?: boolean | undefined;
996
+ }[];
997
+ internalDependencies: string[];
998
+ exports: {
999
+ kind: "type" | "utility" | "style" | "component" | "hook";
1000
+ name: string;
1001
+ path?: string | undefined;
1002
+ }[];
1003
+ provenance: Record<string, unknown>;
1004
+ category?: string | undefined;
1005
+ contract?: unknown;
1006
+ }, {
1007
+ componentId: string;
1008
+ name: string;
1009
+ publicRef: string;
1010
+ files: {
1011
+ path: string;
1012
+ size: number;
1013
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1014
+ contentType: string;
1015
+ sha256: string;
1016
+ contentRef: string;
1017
+ }[];
1018
+ status?: string | undefined;
1019
+ category?: string | undefined;
1020
+ contract?: unknown;
1021
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
1022
+ examples?: unknown[] | undefined;
1023
+ styleFiles?: string[] | undefined;
1024
+ tokenDependencies?: string[] | undefined;
1025
+ runtimeDependencies?: {
1026
+ type: "runtime" | "peer" | "dev" | "optional";
1027
+ name: string;
1028
+ versionRange: string;
1029
+ optional?: boolean | undefined;
1030
+ }[] | undefined;
1031
+ peerDependencies?: {
1032
+ type: "runtime" | "peer" | "dev" | "optional";
1033
+ name: string;
1034
+ versionRange: string;
1035
+ optional?: boolean | undefined;
1036
+ }[] | undefined;
1037
+ internalDependencies?: string[] | undefined;
1038
+ exports?: {
1039
+ name: string;
1040
+ path?: string | undefined;
1041
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
1042
+ }[] | undefined;
1043
+ provenance?: Record<string, unknown> | undefined;
1044
+ }>>;
1045
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1046
+ name: z.ZodString;
1047
+ versionRange: z.ZodString;
1048
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
1049
+ optional: z.ZodOptional<z.ZodBoolean>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ type: "runtime" | "peer" | "dev" | "optional";
1052
+ name: string;
1053
+ versionRange: string;
1054
+ optional?: boolean | undefined;
1055
+ }, {
1056
+ type: "runtime" | "peer" | "dev" | "optional";
1057
+ name: string;
1058
+ versionRange: string;
1059
+ optional?: boolean | undefined;
1060
+ }>, "many">>;
1061
+ installProfiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1062
+ name: z.ZodString;
1063
+ targetPath: z.ZodEffects<z.ZodString, string, string>;
1064
+ importPath: z.ZodString;
1065
+ stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1066
+ includeTests: z.ZodDefault<z.ZodBoolean>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ importPath: string;
1069
+ name: string;
1070
+ targetPath: string;
1071
+ includeTests: boolean;
1072
+ stylePath?: string | undefined;
1073
+ }, {
1074
+ importPath: string;
1075
+ name: string;
1076
+ targetPath: string;
1077
+ stylePath?: string | undefined;
1078
+ includeTests?: boolean | undefined;
1079
+ }>, "many">>;
1080
+ } & {
1081
+ registryHash: z.ZodString;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ components: Record<string, {
1084
+ status: string;
1085
+ componentId: string;
1086
+ name: string;
1087
+ publicRef: string;
1088
+ tier: "custom" | "utility" | "composition" | "core";
1089
+ examples: unknown[];
1090
+ files: {
1091
+ path: string;
1092
+ size: number;
1093
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1094
+ contentType: string;
1095
+ sha256: string;
1096
+ contentRef: string;
1097
+ }[];
1098
+ styleFiles: string[];
1099
+ tokenDependencies: string[];
1100
+ runtimeDependencies: {
1101
+ type: "runtime" | "peer" | "dev" | "optional";
1102
+ name: string;
1103
+ versionRange: string;
1104
+ optional?: boolean | undefined;
1105
+ }[];
1106
+ peerDependencies: {
1107
+ type: "runtime" | "peer" | "dev" | "optional";
1108
+ name: string;
1109
+ versionRange: string;
1110
+ optional?: boolean | undefined;
1111
+ }[];
1112
+ internalDependencies: string[];
1113
+ exports: {
1114
+ kind: "type" | "utility" | "style" | "component" | "hook";
1115
+ name: string;
1116
+ path?: string | undefined;
1117
+ }[];
1118
+ provenance: Record<string, unknown>;
1119
+ category?: string | undefined;
1120
+ contract?: unknown;
1121
+ }>;
1122
+ schemaVersion: "fragments.registry.v1";
1123
+ name: string;
1124
+ registryId: string;
1125
+ registryHash: string;
1126
+ source: {
1127
+ kind: "package";
1128
+ packageName: string;
1129
+ version?: string | undefined;
1130
+ rootPath?: string | undefined;
1131
+ commitSha?: string | undefined;
1132
+ } | {
1133
+ kind: "github";
1134
+ repoFullName: string;
1135
+ commitSha: string;
1136
+ path?: string | undefined;
1137
+ } | {
1138
+ kind: "local";
1139
+ rootPath?: string | undefined;
1140
+ commitSha?: string | undefined;
1141
+ } | {
1142
+ kind: "manual";
1143
+ label: string;
1144
+ };
1145
+ version: string;
1146
+ channel: string;
1147
+ generatedAt: string;
1148
+ packageFiles: {
1149
+ path: string;
1150
+ size: number;
1151
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1152
+ contentType: string;
1153
+ sha256: string;
1154
+ contentRef: string;
1155
+ }[];
1156
+ entrypoints: {
1157
+ specifier: string;
1158
+ sourcePath: string;
1159
+ }[];
1160
+ dependencies: {
1161
+ type: "runtime" | "peer" | "dev" | "optional";
1162
+ name: string;
1163
+ versionRange: string;
1164
+ optional?: boolean | undefined;
1165
+ }[];
1166
+ installProfiles: {
1167
+ importPath: string;
1168
+ name: string;
1169
+ targetPath: string;
1170
+ includeTests: boolean;
1171
+ stylePath?: string | undefined;
1172
+ }[];
1173
+ fcid?: string | undefined;
1174
+ contractVersionId?: string | undefined;
1175
+ }, {
1176
+ components: Record<string, {
1177
+ componentId: string;
1178
+ name: string;
1179
+ publicRef: string;
1180
+ files: {
1181
+ path: string;
1182
+ size: number;
1183
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1184
+ contentType: string;
1185
+ sha256: string;
1186
+ contentRef: string;
1187
+ }[];
1188
+ status?: string | undefined;
1189
+ category?: string | undefined;
1190
+ contract?: unknown;
1191
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
1192
+ examples?: unknown[] | undefined;
1193
+ styleFiles?: string[] | undefined;
1194
+ tokenDependencies?: string[] | undefined;
1195
+ runtimeDependencies?: {
1196
+ type: "runtime" | "peer" | "dev" | "optional";
1197
+ name: string;
1198
+ versionRange: string;
1199
+ optional?: boolean | undefined;
1200
+ }[] | undefined;
1201
+ peerDependencies?: {
1202
+ type: "runtime" | "peer" | "dev" | "optional";
1203
+ name: string;
1204
+ versionRange: string;
1205
+ optional?: boolean | undefined;
1206
+ }[] | undefined;
1207
+ internalDependencies?: string[] | undefined;
1208
+ exports?: {
1209
+ name: string;
1210
+ path?: string | undefined;
1211
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
1212
+ }[] | undefined;
1213
+ provenance?: Record<string, unknown> | undefined;
1214
+ }>;
1215
+ schemaVersion: "fragments.registry.v1";
1216
+ name: string;
1217
+ registryId: string;
1218
+ registryHash: string;
1219
+ source: {
1220
+ kind: "package";
1221
+ packageName: string;
1222
+ version?: string | undefined;
1223
+ rootPath?: string | undefined;
1224
+ commitSha?: string | undefined;
1225
+ } | {
1226
+ kind: "github";
1227
+ repoFullName: string;
1228
+ commitSha: string;
1229
+ path?: string | undefined;
1230
+ } | {
1231
+ kind: "local";
1232
+ rootPath?: string | undefined;
1233
+ commitSha?: string | undefined;
1234
+ } | {
1235
+ kind: "manual";
1236
+ label: string;
1237
+ };
1238
+ version: string;
1239
+ channel: string;
1240
+ generatedAt: string;
1241
+ fcid?: string | undefined;
1242
+ contractVersionId?: string | undefined;
1243
+ packageFiles?: {
1244
+ path: string;
1245
+ size: number;
1246
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1247
+ contentType: string;
1248
+ sha256: string;
1249
+ contentRef: string;
1250
+ }[] | undefined;
1251
+ entrypoints?: {
1252
+ specifier: string;
1253
+ sourcePath: string;
1254
+ }[] | undefined;
1255
+ dependencies?: {
1256
+ type: "runtime" | "peer" | "dev" | "optional";
1257
+ name: string;
1258
+ versionRange: string;
1259
+ optional?: boolean | undefined;
1260
+ }[] | undefined;
1261
+ installProfiles?: {
1262
+ importPath: string;
1263
+ name: string;
1264
+ targetPath: string;
1265
+ stylePath?: string | undefined;
1266
+ includeTests?: boolean | undefined;
1267
+ }[] | undefined;
1268
+ }>;
1269
+ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1270
+ schemaVersion: z.ZodLiteral<"fragments.registry-artifact.v1">;
1271
+ manifest: z.ZodObject<{
1272
+ schemaVersion: z.ZodLiteral<"fragments.registry.v1">;
1273
+ registryId: z.ZodString;
1274
+ name: z.ZodString;
1275
+ channel: z.ZodString;
1276
+ version: z.ZodString;
1277
+ contractVersionId: z.ZodOptional<z.ZodString>;
1278
+ fcid: z.ZodOptional<z.ZodString>;
1279
+ generatedAt: z.ZodString;
1280
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1281
+ kind: z.ZodLiteral<"package">;
1282
+ packageName: z.ZodString;
1283
+ version: z.ZodOptional<z.ZodString>;
1284
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1285
+ commitSha: z.ZodOptional<z.ZodString>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ kind: "package";
1288
+ packageName: string;
1289
+ version?: string | undefined;
1290
+ rootPath?: string | undefined;
1291
+ commitSha?: string | undefined;
1292
+ }, {
1293
+ kind: "package";
1294
+ packageName: string;
1295
+ version?: string | undefined;
1296
+ rootPath?: string | undefined;
1297
+ commitSha?: string | undefined;
1298
+ }>, z.ZodObject<{
1299
+ kind: z.ZodLiteral<"github">;
1300
+ repoFullName: z.ZodString;
1301
+ commitSha: z.ZodString;
1302
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ kind: "github";
1305
+ repoFullName: string;
1306
+ commitSha: string;
1307
+ path?: string | undefined;
1308
+ }, {
1309
+ kind: "github";
1310
+ repoFullName: string;
1311
+ commitSha: string;
1312
+ path?: string | undefined;
1313
+ }>, z.ZodObject<{
1314
+ kind: z.ZodLiteral<"local">;
1315
+ rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1316
+ commitSha: z.ZodOptional<z.ZodString>;
1317
+ }, "strip", z.ZodTypeAny, {
1318
+ kind: "local";
1319
+ rootPath?: string | undefined;
1320
+ commitSha?: string | undefined;
1321
+ }, {
1322
+ kind: "local";
1323
+ rootPath?: string | undefined;
1324
+ commitSha?: string | undefined;
1325
+ }>, z.ZodObject<{
1326
+ kind: z.ZodLiteral<"manual">;
1327
+ label: z.ZodString;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ kind: "manual";
1330
+ label: string;
1331
+ }, {
1332
+ kind: "manual";
1333
+ label: string;
1334
+ }>]>;
1335
+ packageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1336
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1337
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
1338
+ sha256: z.ZodString;
1339
+ size: z.ZodNumber;
1340
+ contentType: z.ZodString;
1341
+ contentRef: z.ZodString;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ path: string;
1344
+ size: number;
1345
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1346
+ contentType: string;
1347
+ sha256: string;
1348
+ contentRef: string;
1349
+ }, {
1350
+ path: string;
1351
+ size: number;
1352
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1353
+ contentType: string;
1354
+ sha256: string;
1355
+ contentRef: string;
1356
+ }>, "many">>;
1357
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
1358
+ specifier: z.ZodString;
1359
+ sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ specifier: string;
1362
+ sourcePath: string;
1363
+ }, {
1364
+ specifier: string;
1365
+ sourcePath: string;
1366
+ }>, "many">>;
1367
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
1368
+ componentId: z.ZodString;
1369
+ publicRef: z.ZodString;
1370
+ name: z.ZodString;
1371
+ status: z.ZodDefault<z.ZodString>;
1372
+ tier: z.ZodDefault<z.ZodEnum<["core", "composition", "utility", "custom"]>>;
1373
+ category: z.ZodOptional<z.ZodString>;
1374
+ files: z.ZodArray<z.ZodObject<{
1375
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1376
+ role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
1377
+ sha256: z.ZodString;
1378
+ size: z.ZodNumber;
1379
+ contentType: z.ZodString;
1380
+ contentRef: z.ZodString;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ path: string;
1383
+ size: number;
1384
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1385
+ contentType: string;
1386
+ sha256: string;
1387
+ contentRef: string;
1388
+ }, {
1389
+ path: string;
1390
+ size: number;
1391
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1392
+ contentType: string;
1393
+ sha256: string;
1394
+ contentRef: string;
1395
+ }>, "many">;
1396
+ styleFiles: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1397
+ tokenDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1398
+ runtimeDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1399
+ name: z.ZodString;
1400
+ versionRange: z.ZodString;
1401
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
1402
+ optional: z.ZodOptional<z.ZodBoolean>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ type: "runtime" | "peer" | "dev" | "optional";
1405
+ name: string;
1406
+ versionRange: string;
1407
+ optional?: boolean | undefined;
1408
+ }, {
1409
+ type: "runtime" | "peer" | "dev" | "optional";
1410
+ name: string;
1411
+ versionRange: string;
1412
+ optional?: boolean | undefined;
1413
+ }>, "many">>;
1414
+ peerDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1415
+ name: z.ZodString;
1416
+ versionRange: z.ZodString;
1417
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
1418
+ optional: z.ZodOptional<z.ZodBoolean>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ type: "runtime" | "peer" | "dev" | "optional";
1421
+ name: string;
1422
+ versionRange: string;
1423
+ optional?: boolean | undefined;
1424
+ }, {
1425
+ type: "runtime" | "peer" | "dev" | "optional";
1426
+ name: string;
1427
+ versionRange: string;
1428
+ optional?: boolean | undefined;
1429
+ }>, "many">>;
1430
+ internalDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1431
+ exports: z.ZodDefault<z.ZodArray<z.ZodObject<{
1432
+ name: z.ZodString;
1433
+ kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
1434
+ path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ kind: "type" | "utility" | "style" | "component" | "hook";
1437
+ name: string;
1438
+ path?: string | undefined;
1439
+ }, {
1440
+ name: string;
1441
+ path?: string | undefined;
1442
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
1443
+ }>, "many">>;
1444
+ contract: z.ZodOptional<z.ZodUnknown>;
1445
+ examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
1446
+ provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ status: string;
1449
+ componentId: string;
1450
+ name: string;
1451
+ publicRef: string;
1452
+ tier: "custom" | "utility" | "composition" | "core";
1453
+ examples: unknown[];
1454
+ files: {
1455
+ path: string;
1456
+ size: number;
1457
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1458
+ contentType: string;
1459
+ sha256: string;
1460
+ contentRef: string;
1461
+ }[];
1462
+ styleFiles: string[];
1463
+ tokenDependencies: string[];
1464
+ runtimeDependencies: {
1465
+ type: "runtime" | "peer" | "dev" | "optional";
1466
+ name: string;
1467
+ versionRange: string;
1468
+ optional?: boolean | undefined;
1469
+ }[];
1470
+ peerDependencies: {
1471
+ type: "runtime" | "peer" | "dev" | "optional";
1472
+ name: string;
1473
+ versionRange: string;
1474
+ optional?: boolean | undefined;
1475
+ }[];
1476
+ internalDependencies: string[];
1477
+ exports: {
1478
+ kind: "type" | "utility" | "style" | "component" | "hook";
1479
+ name: string;
1480
+ path?: string | undefined;
1481
+ }[];
1482
+ provenance: Record<string, unknown>;
1483
+ category?: string | undefined;
1484
+ contract?: unknown;
1485
+ }, {
1486
+ componentId: string;
1487
+ name: string;
1488
+ publicRef: string;
1489
+ files: {
1490
+ path: string;
1491
+ size: number;
1492
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1493
+ contentType: string;
1494
+ sha256: string;
1495
+ contentRef: string;
1496
+ }[];
1497
+ status?: string | undefined;
1498
+ category?: string | undefined;
1499
+ contract?: unknown;
1500
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
1501
+ examples?: unknown[] | undefined;
1502
+ styleFiles?: string[] | undefined;
1503
+ tokenDependencies?: string[] | undefined;
1504
+ runtimeDependencies?: {
1505
+ type: "runtime" | "peer" | "dev" | "optional";
1506
+ name: string;
1507
+ versionRange: string;
1508
+ optional?: boolean | undefined;
1509
+ }[] | undefined;
1510
+ peerDependencies?: {
1511
+ type: "runtime" | "peer" | "dev" | "optional";
1512
+ name: string;
1513
+ versionRange: string;
1514
+ optional?: boolean | undefined;
1515
+ }[] | undefined;
1516
+ internalDependencies?: string[] | undefined;
1517
+ exports?: {
1518
+ name: string;
1519
+ path?: string | undefined;
1520
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
1521
+ }[] | undefined;
1522
+ provenance?: Record<string, unknown> | undefined;
1523
+ }>>;
1524
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1525
+ name: z.ZodString;
1526
+ versionRange: z.ZodString;
1527
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
1528
+ optional: z.ZodOptional<z.ZodBoolean>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ type: "runtime" | "peer" | "dev" | "optional";
1531
+ name: string;
1532
+ versionRange: string;
1533
+ optional?: boolean | undefined;
1534
+ }, {
1535
+ type: "runtime" | "peer" | "dev" | "optional";
1536
+ name: string;
1537
+ versionRange: string;
1538
+ optional?: boolean | undefined;
1539
+ }>, "many">>;
1540
+ installProfiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1541
+ name: z.ZodString;
1542
+ targetPath: z.ZodEffects<z.ZodString, string, string>;
1543
+ importPath: z.ZodString;
1544
+ stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1545
+ includeTests: z.ZodDefault<z.ZodBoolean>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ importPath: string;
1548
+ name: string;
1549
+ targetPath: string;
1550
+ includeTests: boolean;
1551
+ stylePath?: string | undefined;
1552
+ }, {
1553
+ importPath: string;
1554
+ name: string;
1555
+ targetPath: string;
1556
+ stylePath?: string | undefined;
1557
+ includeTests?: boolean | undefined;
1558
+ }>, "many">>;
1559
+ } & {
1560
+ registryHash: z.ZodString;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ components: Record<string, {
1563
+ status: string;
1564
+ componentId: string;
1565
+ name: string;
1566
+ publicRef: string;
1567
+ tier: "custom" | "utility" | "composition" | "core";
1568
+ examples: unknown[];
1569
+ files: {
1570
+ path: string;
1571
+ size: number;
1572
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1573
+ contentType: string;
1574
+ sha256: string;
1575
+ contentRef: string;
1576
+ }[];
1577
+ styleFiles: string[];
1578
+ tokenDependencies: string[];
1579
+ runtimeDependencies: {
1580
+ type: "runtime" | "peer" | "dev" | "optional";
1581
+ name: string;
1582
+ versionRange: string;
1583
+ optional?: boolean | undefined;
1584
+ }[];
1585
+ peerDependencies: {
1586
+ type: "runtime" | "peer" | "dev" | "optional";
1587
+ name: string;
1588
+ versionRange: string;
1589
+ optional?: boolean | undefined;
1590
+ }[];
1591
+ internalDependencies: string[];
1592
+ exports: {
1593
+ kind: "type" | "utility" | "style" | "component" | "hook";
1594
+ name: string;
1595
+ path?: string | undefined;
1596
+ }[];
1597
+ provenance: Record<string, unknown>;
1598
+ category?: string | undefined;
1599
+ contract?: unknown;
1600
+ }>;
1601
+ schemaVersion: "fragments.registry.v1";
1602
+ name: string;
1603
+ registryId: string;
1604
+ registryHash: string;
1605
+ source: {
1606
+ kind: "package";
1607
+ packageName: string;
1608
+ version?: string | undefined;
1609
+ rootPath?: string | undefined;
1610
+ commitSha?: string | undefined;
1611
+ } | {
1612
+ kind: "github";
1613
+ repoFullName: string;
1614
+ commitSha: string;
1615
+ path?: string | undefined;
1616
+ } | {
1617
+ kind: "local";
1618
+ rootPath?: string | undefined;
1619
+ commitSha?: string | undefined;
1620
+ } | {
1621
+ kind: "manual";
1622
+ label: string;
1623
+ };
1624
+ version: string;
1625
+ channel: string;
1626
+ generatedAt: string;
1627
+ packageFiles: {
1628
+ path: string;
1629
+ size: number;
1630
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1631
+ contentType: string;
1632
+ sha256: string;
1633
+ contentRef: string;
1634
+ }[];
1635
+ entrypoints: {
1636
+ specifier: string;
1637
+ sourcePath: string;
1638
+ }[];
1639
+ dependencies: {
1640
+ type: "runtime" | "peer" | "dev" | "optional";
1641
+ name: string;
1642
+ versionRange: string;
1643
+ optional?: boolean | undefined;
1644
+ }[];
1645
+ installProfiles: {
1646
+ importPath: string;
1647
+ name: string;
1648
+ targetPath: string;
1649
+ includeTests: boolean;
1650
+ stylePath?: string | undefined;
1651
+ }[];
1652
+ fcid?: string | undefined;
1653
+ contractVersionId?: string | undefined;
1654
+ }, {
1655
+ components: Record<string, {
1656
+ componentId: string;
1657
+ name: string;
1658
+ publicRef: string;
1659
+ files: {
1660
+ path: string;
1661
+ size: number;
1662
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1663
+ contentType: string;
1664
+ sha256: string;
1665
+ contentRef: string;
1666
+ }[];
1667
+ status?: string | undefined;
1668
+ category?: string | undefined;
1669
+ contract?: unknown;
1670
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
1671
+ examples?: unknown[] | undefined;
1672
+ styleFiles?: string[] | undefined;
1673
+ tokenDependencies?: string[] | undefined;
1674
+ runtimeDependencies?: {
1675
+ type: "runtime" | "peer" | "dev" | "optional";
1676
+ name: string;
1677
+ versionRange: string;
1678
+ optional?: boolean | undefined;
1679
+ }[] | undefined;
1680
+ peerDependencies?: {
1681
+ type: "runtime" | "peer" | "dev" | "optional";
1682
+ name: string;
1683
+ versionRange: string;
1684
+ optional?: boolean | undefined;
1685
+ }[] | undefined;
1686
+ internalDependencies?: string[] | undefined;
1687
+ exports?: {
1688
+ name: string;
1689
+ path?: string | undefined;
1690
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
1691
+ }[] | undefined;
1692
+ provenance?: Record<string, unknown> | undefined;
1693
+ }>;
1694
+ schemaVersion: "fragments.registry.v1";
1695
+ name: string;
1696
+ registryId: string;
1697
+ registryHash: string;
1698
+ source: {
1699
+ kind: "package";
1700
+ packageName: string;
1701
+ version?: string | undefined;
1702
+ rootPath?: string | undefined;
1703
+ commitSha?: string | undefined;
1704
+ } | {
1705
+ kind: "github";
1706
+ repoFullName: string;
1707
+ commitSha: string;
1708
+ path?: string | undefined;
1709
+ } | {
1710
+ kind: "local";
1711
+ rootPath?: string | undefined;
1712
+ commitSha?: string | undefined;
1713
+ } | {
1714
+ kind: "manual";
1715
+ label: string;
1716
+ };
1717
+ version: string;
1718
+ channel: string;
1719
+ generatedAt: string;
1720
+ fcid?: string | undefined;
1721
+ contractVersionId?: string | undefined;
1722
+ packageFiles?: {
1723
+ path: string;
1724
+ size: number;
1725
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1726
+ contentType: string;
1727
+ sha256: string;
1728
+ contentRef: string;
1729
+ }[] | undefined;
1730
+ entrypoints?: {
1731
+ specifier: string;
1732
+ sourcePath: string;
1733
+ }[] | undefined;
1734
+ dependencies?: {
1735
+ type: "runtime" | "peer" | "dev" | "optional";
1736
+ name: string;
1737
+ versionRange: string;
1738
+ optional?: boolean | undefined;
1739
+ }[] | undefined;
1740
+ installProfiles?: {
1741
+ importPath: string;
1742
+ name: string;
1743
+ targetPath: string;
1744
+ stylePath?: string | undefined;
1745
+ includeTests?: boolean | undefined;
1746
+ }[] | undefined;
1747
+ }>;
1748
+ files: z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodObject<{
1749
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1750
+ content: z.ZodString;
1751
+ sha256: z.ZodString;
1752
+ size: z.ZodNumber;
1753
+ contentType: z.ZodString;
1754
+ }, "strip", z.ZodTypeAny, {
1755
+ path: string;
1756
+ size: number;
1757
+ contentType: string;
1758
+ sha256: string;
1759
+ content: string;
1760
+ }, {
1761
+ path: string;
1762
+ size: number;
1763
+ contentType: string;
1764
+ sha256: string;
1765
+ content: string;
1766
+ }>>;
1767
+ }, "strip", z.ZodTypeAny, {
1768
+ schemaVersion: "fragments.registry-artifact.v1";
1769
+ manifest: {
1770
+ components: Record<string, {
1771
+ status: string;
1772
+ componentId: string;
1773
+ name: string;
1774
+ publicRef: string;
1775
+ tier: "custom" | "utility" | "composition" | "core";
1776
+ examples: unknown[];
1777
+ files: {
1778
+ path: string;
1779
+ size: number;
1780
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1781
+ contentType: string;
1782
+ sha256: string;
1783
+ contentRef: string;
1784
+ }[];
1785
+ styleFiles: string[];
1786
+ tokenDependencies: string[];
1787
+ runtimeDependencies: {
1788
+ type: "runtime" | "peer" | "dev" | "optional";
1789
+ name: string;
1790
+ versionRange: string;
1791
+ optional?: boolean | undefined;
1792
+ }[];
1793
+ peerDependencies: {
1794
+ type: "runtime" | "peer" | "dev" | "optional";
1795
+ name: string;
1796
+ versionRange: string;
1797
+ optional?: boolean | undefined;
1798
+ }[];
1799
+ internalDependencies: string[];
1800
+ exports: {
1801
+ kind: "type" | "utility" | "style" | "component" | "hook";
1802
+ name: string;
1803
+ path?: string | undefined;
1804
+ }[];
1805
+ provenance: Record<string, unknown>;
1806
+ category?: string | undefined;
1807
+ contract?: unknown;
1808
+ }>;
1809
+ schemaVersion: "fragments.registry.v1";
1810
+ name: string;
1811
+ registryId: string;
1812
+ registryHash: string;
1813
+ source: {
1814
+ kind: "package";
1815
+ packageName: string;
1816
+ version?: string | undefined;
1817
+ rootPath?: string | undefined;
1818
+ commitSha?: string | undefined;
1819
+ } | {
1820
+ kind: "github";
1821
+ repoFullName: string;
1822
+ commitSha: string;
1823
+ path?: string | undefined;
1824
+ } | {
1825
+ kind: "local";
1826
+ rootPath?: string | undefined;
1827
+ commitSha?: string | undefined;
1828
+ } | {
1829
+ kind: "manual";
1830
+ label: string;
1831
+ };
1832
+ version: string;
1833
+ channel: string;
1834
+ generatedAt: string;
1835
+ packageFiles: {
1836
+ path: string;
1837
+ size: number;
1838
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1839
+ contentType: string;
1840
+ sha256: string;
1841
+ contentRef: string;
1842
+ }[];
1843
+ entrypoints: {
1844
+ specifier: string;
1845
+ sourcePath: string;
1846
+ }[];
1847
+ dependencies: {
1848
+ type: "runtime" | "peer" | "dev" | "optional";
1849
+ name: string;
1850
+ versionRange: string;
1851
+ optional?: boolean | undefined;
1852
+ }[];
1853
+ installProfiles: {
1854
+ importPath: string;
1855
+ name: string;
1856
+ targetPath: string;
1857
+ includeTests: boolean;
1858
+ stylePath?: string | undefined;
1859
+ }[];
1860
+ fcid?: string | undefined;
1861
+ contractVersionId?: string | undefined;
1862
+ };
1863
+ files: Record<string, {
1864
+ path: string;
1865
+ size: number;
1866
+ contentType: string;
1867
+ sha256: string;
1868
+ content: string;
1869
+ }>;
1870
+ }, {
1871
+ schemaVersion: "fragments.registry-artifact.v1";
1872
+ manifest: {
1873
+ components: Record<string, {
1874
+ componentId: string;
1875
+ name: string;
1876
+ publicRef: string;
1877
+ files: {
1878
+ path: string;
1879
+ size: number;
1880
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1881
+ contentType: string;
1882
+ sha256: string;
1883
+ contentRef: string;
1884
+ }[];
1885
+ status?: string | undefined;
1886
+ category?: string | undefined;
1887
+ contract?: unknown;
1888
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
1889
+ examples?: unknown[] | undefined;
1890
+ styleFiles?: string[] | undefined;
1891
+ tokenDependencies?: string[] | undefined;
1892
+ runtimeDependencies?: {
1893
+ type: "runtime" | "peer" | "dev" | "optional";
1894
+ name: string;
1895
+ versionRange: string;
1896
+ optional?: boolean | undefined;
1897
+ }[] | undefined;
1898
+ peerDependencies?: {
1899
+ type: "runtime" | "peer" | "dev" | "optional";
1900
+ name: string;
1901
+ versionRange: string;
1902
+ optional?: boolean | undefined;
1903
+ }[] | undefined;
1904
+ internalDependencies?: string[] | undefined;
1905
+ exports?: {
1906
+ name: string;
1907
+ path?: string | undefined;
1908
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
1909
+ }[] | undefined;
1910
+ provenance?: Record<string, unknown> | undefined;
1911
+ }>;
1912
+ schemaVersion: "fragments.registry.v1";
1913
+ name: string;
1914
+ registryId: string;
1915
+ registryHash: string;
1916
+ source: {
1917
+ kind: "package";
1918
+ packageName: string;
1919
+ version?: string | undefined;
1920
+ rootPath?: string | undefined;
1921
+ commitSha?: string | undefined;
1922
+ } | {
1923
+ kind: "github";
1924
+ repoFullName: string;
1925
+ commitSha: string;
1926
+ path?: string | undefined;
1927
+ } | {
1928
+ kind: "local";
1929
+ rootPath?: string | undefined;
1930
+ commitSha?: string | undefined;
1931
+ } | {
1932
+ kind: "manual";
1933
+ label: string;
1934
+ };
1935
+ version: string;
1936
+ channel: string;
1937
+ generatedAt: string;
1938
+ fcid?: string | undefined;
1939
+ contractVersionId?: string | undefined;
1940
+ packageFiles?: {
1941
+ path: string;
1942
+ size: number;
1943
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1944
+ contentType: string;
1945
+ sha256: string;
1946
+ contentRef: string;
1947
+ }[] | undefined;
1948
+ entrypoints?: {
1949
+ specifier: string;
1950
+ sourcePath: string;
1951
+ }[] | undefined;
1952
+ dependencies?: {
1953
+ type: "runtime" | "peer" | "dev" | "optional";
1954
+ name: string;
1955
+ versionRange: string;
1956
+ optional?: boolean | undefined;
1957
+ }[] | undefined;
1958
+ installProfiles?: {
1959
+ importPath: string;
1960
+ name: string;
1961
+ targetPath: string;
1962
+ stylePath?: string | undefined;
1963
+ includeTests?: boolean | undefined;
1964
+ }[] | undefined;
1965
+ };
1966
+ files: Record<string, {
1967
+ path: string;
1968
+ size: number;
1969
+ contentType: string;
1970
+ sha256: string;
1971
+ content: string;
1972
+ }>;
1973
+ }>, {
1974
+ schemaVersion: "fragments.registry-artifact.v1";
1975
+ manifest: {
1976
+ components: Record<string, {
1977
+ status: string;
1978
+ componentId: string;
1979
+ name: string;
1980
+ publicRef: string;
1981
+ tier: "custom" | "utility" | "composition" | "core";
1982
+ examples: unknown[];
1983
+ files: {
1984
+ path: string;
1985
+ size: number;
1986
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
1987
+ contentType: string;
1988
+ sha256: string;
1989
+ contentRef: string;
1990
+ }[];
1991
+ styleFiles: string[];
1992
+ tokenDependencies: string[];
1993
+ runtimeDependencies: {
1994
+ type: "runtime" | "peer" | "dev" | "optional";
1995
+ name: string;
1996
+ versionRange: string;
1997
+ optional?: boolean | undefined;
1998
+ }[];
1999
+ peerDependencies: {
2000
+ type: "runtime" | "peer" | "dev" | "optional";
2001
+ name: string;
2002
+ versionRange: string;
2003
+ optional?: boolean | undefined;
2004
+ }[];
2005
+ internalDependencies: string[];
2006
+ exports: {
2007
+ kind: "type" | "utility" | "style" | "component" | "hook";
2008
+ name: string;
2009
+ path?: string | undefined;
2010
+ }[];
2011
+ provenance: Record<string, unknown>;
2012
+ category?: string | undefined;
2013
+ contract?: unknown;
2014
+ }>;
2015
+ schemaVersion: "fragments.registry.v1";
2016
+ name: string;
2017
+ registryId: string;
2018
+ registryHash: string;
2019
+ source: {
2020
+ kind: "package";
2021
+ packageName: string;
2022
+ version?: string | undefined;
2023
+ rootPath?: string | undefined;
2024
+ commitSha?: string | undefined;
2025
+ } | {
2026
+ kind: "github";
2027
+ repoFullName: string;
2028
+ commitSha: string;
2029
+ path?: string | undefined;
2030
+ } | {
2031
+ kind: "local";
2032
+ rootPath?: string | undefined;
2033
+ commitSha?: string | undefined;
2034
+ } | {
2035
+ kind: "manual";
2036
+ label: string;
2037
+ };
2038
+ version: string;
2039
+ channel: string;
2040
+ generatedAt: string;
2041
+ packageFiles: {
2042
+ path: string;
2043
+ size: number;
2044
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
2045
+ contentType: string;
2046
+ sha256: string;
2047
+ contentRef: string;
2048
+ }[];
2049
+ entrypoints: {
2050
+ specifier: string;
2051
+ sourcePath: string;
2052
+ }[];
2053
+ dependencies: {
2054
+ type: "runtime" | "peer" | "dev" | "optional";
2055
+ name: string;
2056
+ versionRange: string;
2057
+ optional?: boolean | undefined;
2058
+ }[];
2059
+ installProfiles: {
2060
+ importPath: string;
2061
+ name: string;
2062
+ targetPath: string;
2063
+ includeTests: boolean;
2064
+ stylePath?: string | undefined;
2065
+ }[];
2066
+ fcid?: string | undefined;
2067
+ contractVersionId?: string | undefined;
2068
+ };
2069
+ files: Record<string, {
2070
+ path: string;
2071
+ size: number;
2072
+ contentType: string;
2073
+ sha256: string;
2074
+ content: string;
2075
+ }>;
2076
+ }, {
2077
+ schemaVersion: "fragments.registry-artifact.v1";
2078
+ manifest: {
2079
+ components: Record<string, {
2080
+ componentId: string;
2081
+ name: string;
2082
+ publicRef: string;
2083
+ files: {
2084
+ path: string;
2085
+ size: number;
2086
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
2087
+ contentType: string;
2088
+ sha256: string;
2089
+ contentRef: string;
2090
+ }[];
2091
+ status?: string | undefined;
2092
+ category?: string | undefined;
2093
+ contract?: unknown;
2094
+ tier?: "custom" | "utility" | "composition" | "core" | undefined;
2095
+ examples?: unknown[] | undefined;
2096
+ styleFiles?: string[] | undefined;
2097
+ tokenDependencies?: string[] | undefined;
2098
+ runtimeDependencies?: {
2099
+ type: "runtime" | "peer" | "dev" | "optional";
2100
+ name: string;
2101
+ versionRange: string;
2102
+ optional?: boolean | undefined;
2103
+ }[] | undefined;
2104
+ peerDependencies?: {
2105
+ type: "runtime" | "peer" | "dev" | "optional";
2106
+ name: string;
2107
+ versionRange: string;
2108
+ optional?: boolean | undefined;
2109
+ }[] | undefined;
2110
+ internalDependencies?: string[] | undefined;
2111
+ exports?: {
2112
+ name: string;
2113
+ path?: string | undefined;
2114
+ kind?: "type" | "utility" | "style" | "component" | "hook" | undefined;
2115
+ }[] | undefined;
2116
+ provenance?: Record<string, unknown> | undefined;
2117
+ }>;
2118
+ schemaVersion: "fragments.registry.v1";
2119
+ name: string;
2120
+ registryId: string;
2121
+ registryHash: string;
2122
+ source: {
2123
+ kind: "package";
2124
+ packageName: string;
2125
+ version?: string | undefined;
2126
+ rootPath?: string | undefined;
2127
+ commitSha?: string | undefined;
2128
+ } | {
2129
+ kind: "github";
2130
+ repoFullName: string;
2131
+ commitSha: string;
2132
+ path?: string | undefined;
2133
+ } | {
2134
+ kind: "local";
2135
+ rootPath?: string | undefined;
2136
+ commitSha?: string | undefined;
2137
+ } | {
2138
+ kind: "manual";
2139
+ label: string;
2140
+ };
2141
+ version: string;
2142
+ channel: string;
2143
+ generatedAt: string;
2144
+ fcid?: string | undefined;
2145
+ contractVersionId?: string | undefined;
2146
+ packageFiles?: {
2147
+ path: string;
2148
+ size: number;
2149
+ role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel";
2150
+ contentType: string;
2151
+ sha256: string;
2152
+ contentRef: string;
2153
+ }[] | undefined;
2154
+ entrypoints?: {
2155
+ specifier: string;
2156
+ sourcePath: string;
2157
+ }[] | undefined;
2158
+ dependencies?: {
2159
+ type: "runtime" | "peer" | "dev" | "optional";
2160
+ name: string;
2161
+ versionRange: string;
2162
+ optional?: boolean | undefined;
2163
+ }[] | undefined;
2164
+ installProfiles?: {
2165
+ importPath: string;
2166
+ name: string;
2167
+ targetPath: string;
2168
+ stylePath?: string | undefined;
2169
+ includeTests?: boolean | undefined;
2170
+ }[] | undefined;
2171
+ };
2172
+ files: Record<string, {
2173
+ path: string;
2174
+ size: number;
2175
+ contentType: string;
2176
+ sha256: string;
2177
+ content: string;
2178
+ }>;
2179
+ }>;
2180
+ declare const registryInstallReceiptFileSchema: z.ZodObject<{
2181
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2182
+ sha256: z.ZodString;
2183
+ sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2184
+ componentId: z.ZodOptional<z.ZodString>;
2185
+ }, "strip", z.ZodTypeAny, {
2186
+ path: string;
2187
+ sourcePath: string;
2188
+ sha256: string;
2189
+ componentId?: string | undefined;
2190
+ }, {
2191
+ path: string;
2192
+ sourcePath: string;
2193
+ sha256: string;
2194
+ componentId?: string | undefined;
2195
+ }>;
2196
+ declare const registryInstallReceiptComponentSchema: z.ZodObject<{
2197
+ componentId: z.ZodString;
2198
+ publicRef: z.ZodString;
2199
+ name: z.ZodString;
2200
+ files: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ componentId: string;
2203
+ name: string;
2204
+ publicRef: string;
2205
+ files: string[];
2206
+ }, {
2207
+ componentId: string;
2208
+ name: string;
2209
+ publicRef: string;
2210
+ files: string[];
2211
+ }>;
2212
+ declare const registryInstallReceiptSchema: z.ZodObject<{
2213
+ schemaVersion: z.ZodLiteral<"fragments.registry-lock.v1">;
2214
+ registryId: z.ZodString;
2215
+ registryVersion: z.ZodString;
2216
+ registryHash: z.ZodString;
2217
+ fcid: z.ZodOptional<z.ZodString>;
2218
+ channel: z.ZodOptional<z.ZodString>;
2219
+ targetPath: z.ZodEffects<z.ZodString, string, string>;
2220
+ importPath: z.ZodString;
2221
+ installedComponents: z.ZodArray<z.ZodObject<{
2222
+ componentId: z.ZodString;
2223
+ publicRef: z.ZodString;
2224
+ name: z.ZodString;
2225
+ files: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ componentId: string;
2228
+ name: string;
2229
+ publicRef: string;
2230
+ files: string[];
2231
+ }, {
2232
+ componentId: string;
2233
+ name: string;
2234
+ publicRef: string;
2235
+ files: string[];
2236
+ }>, "many">;
2237
+ files: z.ZodArray<z.ZodObject<{
2238
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2239
+ sha256: z.ZodString;
2240
+ sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2241
+ componentId: z.ZodOptional<z.ZodString>;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ path: string;
2244
+ sourcePath: string;
2245
+ sha256: string;
2246
+ componentId?: string | undefined;
2247
+ }, {
2248
+ path: string;
2249
+ sourcePath: string;
2250
+ sha256: string;
2251
+ componentId?: string | undefined;
2252
+ }>, "many">;
2253
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
2254
+ name: z.ZodString;
2255
+ versionRange: z.ZodString;
2256
+ type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
2257
+ optional: z.ZodOptional<z.ZodBoolean>;
2258
+ }, "strip", z.ZodTypeAny, {
2259
+ type: "runtime" | "peer" | "dev" | "optional";
2260
+ name: string;
2261
+ versionRange: string;
2262
+ optional?: boolean | undefined;
2263
+ }, {
2264
+ type: "runtime" | "peer" | "dev" | "optional";
2265
+ name: string;
2266
+ versionRange: string;
2267
+ optional?: boolean | undefined;
2268
+ }>, "many">>;
2269
+ installedAt: z.ZodString;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ schemaVersion: "fragments.registry-lock.v1";
2272
+ importPath: string;
2273
+ registryId: string;
2274
+ registryHash: string;
2275
+ files: {
2276
+ path: string;
2277
+ sourcePath: string;
2278
+ sha256: string;
2279
+ componentId?: string | undefined;
2280
+ }[];
2281
+ targetPath: string;
2282
+ dependencies: {
2283
+ type: "runtime" | "peer" | "dev" | "optional";
2284
+ name: string;
2285
+ versionRange: string;
2286
+ optional?: boolean | undefined;
2287
+ }[];
2288
+ registryVersion: string;
2289
+ installedComponents: {
2290
+ componentId: string;
2291
+ name: string;
2292
+ publicRef: string;
2293
+ files: string[];
2294
+ }[];
2295
+ installedAt: string;
2296
+ fcid?: string | undefined;
2297
+ channel?: string | undefined;
2298
+ }, {
2299
+ schemaVersion: "fragments.registry-lock.v1";
2300
+ importPath: string;
2301
+ registryId: string;
2302
+ registryHash: string;
2303
+ files: {
2304
+ path: string;
2305
+ sourcePath: string;
2306
+ sha256: string;
2307
+ componentId?: string | undefined;
2308
+ }[];
2309
+ targetPath: string;
2310
+ registryVersion: string;
2311
+ installedComponents: {
2312
+ componentId: string;
2313
+ name: string;
2314
+ publicRef: string;
2315
+ files: string[];
2316
+ }[];
2317
+ installedAt: string;
2318
+ fcid?: string | undefined;
2319
+ channel?: string | undefined;
2320
+ dependencies?: {
2321
+ type: "runtime" | "peer" | "dev" | "optional";
2322
+ name: string;
2323
+ versionRange: string;
2324
+ optional?: boolean | undefined;
2325
+ }[] | undefined;
2326
+ }>;
2327
+ type RegistryDependencyType = z.infer<typeof registryDependencyTypeSchema>;
2328
+ type RegistryDependency = z.infer<typeof registryDependencySchema>;
2329
+ type RegistryFileRole = z.infer<typeof registryFileRoleSchema>;
2330
+ type RegistryFile = z.infer<typeof registryFileSchema>;
2331
+ type RegistryFileContent = z.infer<typeof registryFileContentSchema>;
2332
+ type RegistrySource = z.infer<typeof registrySourceSchema>;
2333
+ type RegistryComponentExport = z.infer<typeof registryComponentExportSchema>;
2334
+ type RegistryComponent = z.infer<typeof registryComponentSchema>;
2335
+ type RegistryEntrypoint = z.infer<typeof registryEntrypointSchema>;
2336
+ type RegistryInstallProfile = z.infer<typeof registryInstallProfileSchema>;
2337
+ type RegistryManifestDraft = z.input<typeof registryManifestDraftSchema>;
2338
+ type RegistryManifest = z.infer<typeof registryManifestSchema>;
2339
+ type RegistryArtifact = z.infer<typeof registryArtifactSchema>;
2340
+ type RegistryInstallReceiptFile = z.infer<typeof registryInstallReceiptFileSchema>;
2341
+ type RegistryInstallReceiptComponent = z.infer<typeof registryInstallReceiptComponentSchema>;
2342
+ type RegistryInstallReceipt = z.infer<typeof registryInstallReceiptSchema>;
2343
+ interface RegistryFileInput {
2344
+ path: string;
2345
+ role: RegistryFileRole;
2346
+ content: string;
2347
+ contentType: string;
2348
+ contentRef?: string;
2349
+ }
2350
+ interface RegistryArtifactInput {
2351
+ manifest: RegistryManifestDraft;
2352
+ files: readonly RegistryFileContent[];
2353
+ }
2354
+ declare function computeRegistryHash(manifest: RegistryManifestDraft | RegistryManifest): string;
2355
+ declare function finalizeRegistryManifest(input: RegistryManifestDraft): RegistryManifest;
2356
+ declare function hashRegistryFileContent(content: string): string;
2357
+ declare function registryFileSize(content: string): number;
2358
+ declare function buildRegistryFile(input: RegistryFileInput): {
2359
+ metadata: RegistryFile;
2360
+ content: RegistryFileContent;
2361
+ };
2362
+ declare function buildRegistryArtifact(input: RegistryArtifactInput): RegistryArtifact;
2363
+ declare function assertValidRegistryArtifact(artifact: unknown): RegistryArtifact;
2364
+ declare function registryArtifactDigest(artifact: RegistryArtifact): string;
2365
+ declare function registryManifestCanonicalPreimage(manifest: RegistryManifestDraft | RegistryManifest): string;
2366
+
2367
+ export { REGISTRY_ARTIFACT_SCHEMA_VERSION, REGISTRY_INSTALL_RECEIPT_SCHEMA_VERSION, REGISTRY_MANIFEST_SCHEMA_VERSION, type RegistryArtifact, type RegistryArtifactInput, type RegistryComponent, type RegistryComponentExport, type RegistryDependency, type RegistryDependencyType, type RegistryEntrypoint, type RegistryFile, type RegistryFileContent, type RegistryFileInput, type RegistryFileRole, type RegistryInstallProfile, type RegistryInstallReceipt, type RegistryInstallReceiptComponent, type RegistryInstallReceiptFile, type RegistryManifest, type RegistryManifestDraft, type RegistrySource, assertValidRegistryArtifact, buildRegistryArtifact, buildRegistryFile, computeRegistryHash, finalizeRegistryManifest, hashRegistryFileContent, registryArtifactDigest, registryArtifactSchema, registryComponentExportSchema, registryComponentSchema, registryDependencySchema, registryDependencyTypeSchema, registryEntrypointSchema, registryFileContentSchema, registryFileRoleSchema, registryFileSchema, registryFileSize, registryInstallProfileSchema, registryInstallReceiptComponentSchema, registryInstallReceiptFileSchema, registryInstallReceiptSchema, registryManifestCanonicalPreimage, registryManifestDraftSchema, registryManifestSchema, registrySourceSchema };