@usefragments/core 1.10.2 → 2.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.
- package/dist/{chunk-MZ4SW3TP.js → chunk-3IOWHECM.js} +8 -1
- package/dist/{chunk-MZ4SW3TP.js.map → chunk-3IOWHECM.js.map} +1 -1
- package/dist/chunk-7ULGH74M.js +66 -0
- package/dist/chunk-7ULGH74M.js.map +1 -0
- package/dist/{chunk-XN3LSDPY.js → chunk-BMPYIUZE.js} +612 -344
- package/dist/chunk-BMPYIUZE.js.map +1 -0
- package/dist/{chunk-YF65VYRY.js → chunk-ML5S6QNU.js} +191 -169
- package/dist/chunk-ML5S6QNU.js.map +1 -0
- package/dist/{chunk-3LLRNCPX.js → chunk-MZ2FS7U4.js} +1 -1
- package/dist/chunk-MZ2FS7U4.js.map +1 -0
- package/dist/chunk-PWIJMOI4.js +202 -0
- package/dist/chunk-PWIJMOI4.js.map +1 -0
- package/dist/chunk-RYFULE43.js +578 -0
- package/dist/chunk-RYFULE43.js.map +1 -0
- package/dist/codes/index.d.ts +2 -2
- package/dist/codes/index.js +3 -2
- package/dist/compiled-types/index.d.ts +327 -2
- package/dist/compiled-types/index.js +1 -1
- package/dist/generate/index.d.ts +3 -2
- package/dist/{governance-CLk_wkP9.d.ts → governance-hOPXGbbs.d.ts} +474 -515
- package/dist/governance-telemetry.d.ts +6 -0
- package/dist/governance-telemetry.js +1 -1
- package/dist/{index-_sxhUNqx.d.ts → index-C8bcXVav.d.ts} +448 -448
- package/dist/index.d.ts +3280 -1305
- package/dist/index.js +2414 -350
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +228 -0
- package/dist/manifest.js +24 -0
- package/dist/manifest.js.map +1 -0
- package/dist/preview/index.js +45 -1
- package/dist/preview/index.js.map +1 -1
- package/dist/preview-runtime.d.ts +1 -2
- package/dist/preview-runtime.js +150 -14
- package/dist/preview-runtime.js.map +1 -1
- package/dist/react-types.d.ts +1 -2
- package/dist/registry.d.ts +1412 -203
- package/dist/registry.js +30 -3
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +3 -2
- package/dist/storyAdapter.d.ts +1 -2
- package/dist/storyAdapter.js +11 -49
- package/dist/storyAdapter.js.map +1 -1
- package/dist/test-utils.d.ts +3 -2
- package/dist/topology/index.d.ts +1 -1
- package/dist/topology/index.js +1 -1
- package/package.json +8 -2
- package/src/__tests__/contract-parser.test.ts +318 -277
- package/src/__tests__/preview-runtime-hook.test.tsx +315 -0
- package/src/__tests__/preview-runtime.test.tsx +30 -8
- package/src/__tests__/schema.test.ts +191 -14
- package/src/analysis-plan/analysis-plan-v1.test.ts +320 -0
- package/src/analysis-plan/coverage.ts +181 -0
- package/src/analysis-plan/digest.ts +141 -0
- package/src/analysis-plan/index.ts +34 -0
- package/src/analysis-plan/types.ts +207 -0
- package/src/approved-contract-tokens.test.ts +39 -0
- package/src/approved-contract-tokens.ts +18 -0
- package/src/codes/__tests__/codes.test.ts +13 -0
- package/src/codes/codes.ts +40 -0
- package/src/compiled-types/index.ts +640 -39
- package/src/compiled-types/parse.test.ts +145 -4
- package/src/component-contract.ts +95 -53
- package/src/composition.ts +7 -13
- package/src/constants.ts +3 -6
- package/src/contract/hash.test.ts +20 -0
- package/src/contract/hash.ts +66 -9
- package/src/contract/index.ts +24 -1
- package/src/contract/manifest.test.ts +94 -0
- package/src/contract/manifest.ts +68 -0
- package/src/contract/preimage.test.ts +219 -1
- package/src/contract/preimage.ts +326 -6
- package/src/contract/stamp.test.ts +3 -0
- package/src/contract/stamp.ts +1 -1
- package/src/contract-parser.ts +54 -30
- package/src/defineFragment.test.ts +476 -91
- package/src/defineFragment.ts +204 -114
- package/src/domain-ids.test.ts +35 -0
- package/src/domain-ids.ts +61 -0
- package/src/evaluation/evaluate.test.ts +522 -0
- package/src/evaluation/evaluate.ts +690 -0
- package/src/evaluation/evaluation-v2-receipt-v1.test.ts +772 -0
- package/src/evaluation/index.ts +58 -0
- package/src/evaluation/receipt.ts +753 -0
- package/src/evaluation/types.ts +406 -0
- package/src/facts/builders.ts +2 -0
- package/src/facts/compile.ts +29 -6
- package/src/facts/fact-index.ts +13 -3
- package/src/facts/fact-integrity-v1.test.ts +172 -0
- package/src/facts/facts.test.ts +15 -0
- package/src/facts/ids.ts +46 -3
- package/src/facts/index.ts +14 -1
- package/src/facts/integrity.ts +134 -0
- package/src/facts/types.ts +36 -0
- package/src/governance-integrity.test.ts +1 -0
- package/src/governance-integrity.ts +5 -3
- package/src/governance-telemetry.ts +8 -0
- package/src/governance.ts +70 -8
- package/src/index.ts +230 -37
- package/src/preview/validation.test.ts +62 -0
- package/src/preview/validation.ts +48 -2
- package/src/preview-runtime.tsx +227 -20
- package/src/registry-install-plan.ts +200 -109
- package/src/registry-shards.test.ts +263 -0
- package/src/registry.ts +237 -0
- package/src/repository-binding.test.ts +50 -0
- package/src/repository-binding.ts +96 -0
- package/src/rules/families.test.ts +36 -0
- package/src/rules/finding.ts +7 -2
- package/src/rules/index.ts +17 -1
- package/src/rules/rule-config.test.ts +66 -0
- package/src/rules/rule-config.ts +73 -0
- package/src/rules/rules.test.ts +26 -0
- package/src/rules/tokens-css-vars-must-be-defined.test.ts +51 -2
- package/src/rules/tokens-css-vars-must-be-defined.ts +34 -1
- package/src/schema.ts +293 -113
- package/src/schemas/index.ts +1 -1
- package/src/storyAdapter.test.ts +68 -12
- package/src/storyAdapter.ts +44 -75
- package/src/topology/resolve-area.ts +1 -1
- package/src/types.ts +258 -40
- package/dist/chunk-3LLRNCPX.js.map +0 -1
- package/dist/chunk-RANPUC6C.js +0 -72
- package/dist/chunk-RANPUC6C.js.map +0 -1
- package/dist/chunk-XN3LSDPY.js.map +0 -1
- package/dist/chunk-YF65VYRY.js.map +0 -1
- package/src/fragment-types.ts +0 -214
- package/src/react-create-element.test.ts +0 -22
- package/src/react-create-element.ts +0 -12
- package/src/storyFilters.test.ts +0 -350
- package/src/storyFilters.ts +0 -253
package/dist/registry.d.ts
CHANGED
|
@@ -31,14 +31,14 @@ declare const registryFileSchema: z.ZodObject<{
|
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
path: string;
|
|
33
33
|
size: number;
|
|
34
|
-
role: "source" | "metadata" | "
|
|
34
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
35
35
|
contentType: string;
|
|
36
36
|
sha256: string;
|
|
37
37
|
contentRef: string;
|
|
38
38
|
}, {
|
|
39
39
|
path: string;
|
|
40
40
|
size: number;
|
|
41
|
-
role: "source" | "metadata" | "
|
|
41
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
42
42
|
contentType: string;
|
|
43
43
|
sha256: string;
|
|
44
44
|
contentRef: string;
|
|
@@ -122,13 +122,13 @@ declare const registryComponentExportSchema: z.ZodObject<{
|
|
|
122
122
|
kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
|
|
123
123
|
path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
kind: "hook" | "type" | "
|
|
125
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
126
126
|
name: string;
|
|
127
127
|
path?: string | undefined;
|
|
128
128
|
}, {
|
|
129
129
|
name: string;
|
|
130
130
|
path?: string | undefined;
|
|
131
|
-
kind?: "hook" | "type" | "
|
|
131
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
132
132
|
}>;
|
|
133
133
|
declare const registryComponentSchema: z.ZodObject<{
|
|
134
134
|
componentId: z.ZodString;
|
|
@@ -147,14 +147,14 @@ declare const registryComponentSchema: z.ZodObject<{
|
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
path: string;
|
|
149
149
|
size: number;
|
|
150
|
-
role: "source" | "metadata" | "
|
|
150
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
151
151
|
contentType: string;
|
|
152
152
|
sha256: string;
|
|
153
153
|
contentRef: string;
|
|
154
154
|
}, {
|
|
155
155
|
path: string;
|
|
156
156
|
size: number;
|
|
157
|
-
role: "source" | "metadata" | "
|
|
157
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
158
158
|
contentType: string;
|
|
159
159
|
sha256: string;
|
|
160
160
|
contentRef: string;
|
|
@@ -199,29 +199,29 @@ declare const registryComponentSchema: z.ZodObject<{
|
|
|
199
199
|
kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
|
|
200
200
|
path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
kind: "hook" | "type" | "
|
|
202
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
203
203
|
name: string;
|
|
204
204
|
path?: string | undefined;
|
|
205
205
|
}, {
|
|
206
206
|
name: string;
|
|
207
207
|
path?: string | undefined;
|
|
208
|
-
kind?: "hook" | "type" | "
|
|
208
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
209
209
|
}>, "many">>;
|
|
210
210
|
contract: z.ZodOptional<z.ZodUnknown>;
|
|
211
211
|
examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
|
|
212
212
|
provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
214
|
status: string;
|
|
215
|
-
componentId: string;
|
|
216
215
|
name: string;
|
|
216
|
+
componentId: string;
|
|
217
217
|
publicRef: string;
|
|
218
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
219
218
|
provenance: Record<string, unknown>;
|
|
219
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
220
220
|
examples: unknown[];
|
|
221
221
|
files: {
|
|
222
222
|
path: string;
|
|
223
223
|
size: number;
|
|
224
|
-
role: "source" | "metadata" | "
|
|
224
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
225
225
|
contentType: string;
|
|
226
226
|
sha256: string;
|
|
227
227
|
contentRef: string;
|
|
@@ -242,20 +242,20 @@ declare const registryComponentSchema: z.ZodObject<{
|
|
|
242
242
|
}[];
|
|
243
243
|
internalDependencies: string[];
|
|
244
244
|
exports: {
|
|
245
|
-
kind: "hook" | "type" | "
|
|
245
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
246
246
|
name: string;
|
|
247
247
|
path?: string | undefined;
|
|
248
248
|
}[];
|
|
249
249
|
category?: string | undefined;
|
|
250
250
|
contract?: unknown;
|
|
251
251
|
}, {
|
|
252
|
-
componentId: string;
|
|
253
252
|
name: string;
|
|
253
|
+
componentId: string;
|
|
254
254
|
publicRef: string;
|
|
255
255
|
files: {
|
|
256
256
|
path: string;
|
|
257
257
|
size: number;
|
|
258
|
-
role: "source" | "metadata" | "
|
|
258
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
259
259
|
contentType: string;
|
|
260
260
|
sha256: string;
|
|
261
261
|
contentRef: string;
|
|
@@ -263,8 +263,8 @@ declare const registryComponentSchema: z.ZodObject<{
|
|
|
263
263
|
status?: string | undefined;
|
|
264
264
|
category?: string | undefined;
|
|
265
265
|
contract?: unknown;
|
|
266
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
267
266
|
provenance?: Record<string, unknown> | undefined;
|
|
267
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
268
268
|
examples?: unknown[] | undefined;
|
|
269
269
|
styleFiles?: string[] | undefined;
|
|
270
270
|
tokenDependencies?: string[] | undefined;
|
|
@@ -284,7 +284,7 @@ declare const registryComponentSchema: z.ZodObject<{
|
|
|
284
284
|
exports?: {
|
|
285
285
|
name: string;
|
|
286
286
|
path?: string | undefined;
|
|
287
|
-
kind?: "hook" | "type" | "
|
|
287
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
288
288
|
}[] | undefined;
|
|
289
289
|
}>;
|
|
290
290
|
declare const registryEntrypointSchema: z.ZodObject<{
|
|
@@ -304,14 +304,14 @@ declare const registryInstallProfileSchema: z.ZodObject<{
|
|
|
304
304
|
stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
305
305
|
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
importPath: string;
|
|
308
307
|
name: string;
|
|
308
|
+
importPath: string;
|
|
309
309
|
targetPath: string;
|
|
310
310
|
includeTests: boolean;
|
|
311
311
|
stylePath?: string | undefined;
|
|
312
312
|
}, {
|
|
313
|
-
importPath: string;
|
|
314
313
|
name: string;
|
|
314
|
+
importPath: string;
|
|
315
315
|
targetPath: string;
|
|
316
316
|
stylePath?: string | undefined;
|
|
317
317
|
includeTests?: boolean | undefined;
|
|
@@ -390,14 +390,37 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
391
|
path: string;
|
|
392
392
|
size: number;
|
|
393
|
-
role: "source" | "metadata" | "
|
|
393
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
394
|
+
contentType: string;
|
|
395
|
+
sha256: string;
|
|
396
|
+
contentRef: string;
|
|
397
|
+
}, {
|
|
398
|
+
path: string;
|
|
399
|
+
size: number;
|
|
400
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
401
|
+
contentType: string;
|
|
402
|
+
sha256: string;
|
|
403
|
+
contentRef: string;
|
|
404
|
+
}>, "many">>;
|
|
405
|
+
/** Files every install writes, whatever the selection: the stylesheet entry and its closure. */
|
|
406
|
+
baseFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
407
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
408
|
+
role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
|
|
409
|
+
sha256: z.ZodString;
|
|
410
|
+
size: z.ZodNumber;
|
|
411
|
+
contentType: z.ZodString;
|
|
412
|
+
contentRef: z.ZodString;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
path: string;
|
|
415
|
+
size: number;
|
|
416
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
394
417
|
contentType: string;
|
|
395
418
|
sha256: string;
|
|
396
419
|
contentRef: string;
|
|
397
420
|
}, {
|
|
398
421
|
path: string;
|
|
399
422
|
size: number;
|
|
400
|
-
role: "source" | "metadata" | "
|
|
423
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
401
424
|
contentType: string;
|
|
402
425
|
sha256: string;
|
|
403
426
|
contentRef: string;
|
|
@@ -429,14 +452,14 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
429
452
|
}, "strip", z.ZodTypeAny, {
|
|
430
453
|
path: string;
|
|
431
454
|
size: number;
|
|
432
|
-
role: "source" | "metadata" | "
|
|
455
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
433
456
|
contentType: string;
|
|
434
457
|
sha256: string;
|
|
435
458
|
contentRef: string;
|
|
436
459
|
}, {
|
|
437
460
|
path: string;
|
|
438
461
|
size: number;
|
|
439
|
-
role: "source" | "metadata" | "
|
|
462
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
440
463
|
contentType: string;
|
|
441
464
|
sha256: string;
|
|
442
465
|
contentRef: string;
|
|
@@ -481,29 +504,29 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
481
504
|
kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
|
|
482
505
|
path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
483
506
|
}, "strip", z.ZodTypeAny, {
|
|
484
|
-
kind: "hook" | "type" | "
|
|
507
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
485
508
|
name: string;
|
|
486
509
|
path?: string | undefined;
|
|
487
510
|
}, {
|
|
488
511
|
name: string;
|
|
489
512
|
path?: string | undefined;
|
|
490
|
-
kind?: "hook" | "type" | "
|
|
513
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
491
514
|
}>, "many">>;
|
|
492
515
|
contract: z.ZodOptional<z.ZodUnknown>;
|
|
493
516
|
examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
|
|
494
517
|
provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
495
518
|
}, "strip", z.ZodTypeAny, {
|
|
496
519
|
status: string;
|
|
497
|
-
componentId: string;
|
|
498
520
|
name: string;
|
|
521
|
+
componentId: string;
|
|
499
522
|
publicRef: string;
|
|
500
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
501
523
|
provenance: Record<string, unknown>;
|
|
524
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
502
525
|
examples: unknown[];
|
|
503
526
|
files: {
|
|
504
527
|
path: string;
|
|
505
528
|
size: number;
|
|
506
|
-
role: "source" | "metadata" | "
|
|
529
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
507
530
|
contentType: string;
|
|
508
531
|
sha256: string;
|
|
509
532
|
contentRef: string;
|
|
@@ -524,20 +547,20 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
524
547
|
}[];
|
|
525
548
|
internalDependencies: string[];
|
|
526
549
|
exports: {
|
|
527
|
-
kind: "hook" | "type" | "
|
|
550
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
528
551
|
name: string;
|
|
529
552
|
path?: string | undefined;
|
|
530
553
|
}[];
|
|
531
554
|
category?: string | undefined;
|
|
532
555
|
contract?: unknown;
|
|
533
556
|
}, {
|
|
534
|
-
componentId: string;
|
|
535
557
|
name: string;
|
|
558
|
+
componentId: string;
|
|
536
559
|
publicRef: string;
|
|
537
560
|
files: {
|
|
538
561
|
path: string;
|
|
539
562
|
size: number;
|
|
540
|
-
role: "source" | "metadata" | "
|
|
563
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
541
564
|
contentType: string;
|
|
542
565
|
sha256: string;
|
|
543
566
|
contentRef: string;
|
|
@@ -545,8 +568,8 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
545
568
|
status?: string | undefined;
|
|
546
569
|
category?: string | undefined;
|
|
547
570
|
contract?: unknown;
|
|
548
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
549
571
|
provenance?: Record<string, unknown> | undefined;
|
|
572
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
550
573
|
examples?: unknown[] | undefined;
|
|
551
574
|
styleFiles?: string[] | undefined;
|
|
552
575
|
tokenDependencies?: string[] | undefined;
|
|
@@ -566,7 +589,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
566
589
|
exports?: {
|
|
567
590
|
name: string;
|
|
568
591
|
path?: string | undefined;
|
|
569
|
-
kind?: "hook" | "type" | "
|
|
592
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
570
593
|
}[] | undefined;
|
|
571
594
|
}>>;
|
|
572
595
|
dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -592,14 +615,14 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
592
615
|
stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
593
616
|
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
594
617
|
}, "strip", z.ZodTypeAny, {
|
|
595
|
-
importPath: string;
|
|
596
618
|
name: string;
|
|
619
|
+
importPath: string;
|
|
597
620
|
targetPath: string;
|
|
598
621
|
includeTests: boolean;
|
|
599
622
|
stylePath?: string | undefined;
|
|
600
623
|
}, {
|
|
601
|
-
importPath: string;
|
|
602
624
|
name: string;
|
|
625
|
+
importPath: string;
|
|
603
626
|
targetPath: string;
|
|
604
627
|
stylePath?: string | undefined;
|
|
605
628
|
includeTests?: boolean | undefined;
|
|
@@ -607,16 +630,16 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
607
630
|
}, "strip", z.ZodTypeAny, {
|
|
608
631
|
components: Record<string, {
|
|
609
632
|
status: string;
|
|
610
|
-
componentId: string;
|
|
611
633
|
name: string;
|
|
634
|
+
componentId: string;
|
|
612
635
|
publicRef: string;
|
|
613
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
614
636
|
provenance: Record<string, unknown>;
|
|
637
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
615
638
|
examples: unknown[];
|
|
616
639
|
files: {
|
|
617
640
|
path: string;
|
|
618
641
|
size: number;
|
|
619
|
-
role: "source" | "metadata" | "
|
|
642
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
620
643
|
contentType: string;
|
|
621
644
|
sha256: string;
|
|
622
645
|
contentRef: string;
|
|
@@ -637,7 +660,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
637
660
|
}[];
|
|
638
661
|
internalDependencies: string[];
|
|
639
662
|
exports: {
|
|
640
|
-
kind: "hook" | "type" | "
|
|
663
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
641
664
|
name: string;
|
|
642
665
|
path?: string | undefined;
|
|
643
666
|
}[];
|
|
@@ -668,11 +691,25 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
668
691
|
name: string;
|
|
669
692
|
registryId: string;
|
|
670
693
|
version: string;
|
|
694
|
+
dependencies: {
|
|
695
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
696
|
+
name: string;
|
|
697
|
+
versionRange: string;
|
|
698
|
+
optional?: boolean | undefined;
|
|
699
|
+
}[];
|
|
671
700
|
channel: string;
|
|
672
701
|
packageFiles: {
|
|
673
702
|
path: string;
|
|
674
703
|
size: number;
|
|
675
|
-
role: "source" | "metadata" | "
|
|
704
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
705
|
+
contentType: string;
|
|
706
|
+
sha256: string;
|
|
707
|
+
contentRef: string;
|
|
708
|
+
}[];
|
|
709
|
+
baseFiles: {
|
|
710
|
+
path: string;
|
|
711
|
+
size: number;
|
|
712
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
676
713
|
contentType: string;
|
|
677
714
|
sha256: string;
|
|
678
715
|
contentRef: string;
|
|
@@ -681,15 +718,9 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
681
718
|
specifier: string;
|
|
682
719
|
sourcePath: string;
|
|
683
720
|
}[];
|
|
684
|
-
dependencies: {
|
|
685
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
686
|
-
name: string;
|
|
687
|
-
versionRange: string;
|
|
688
|
-
optional?: boolean | undefined;
|
|
689
|
-
}[];
|
|
690
721
|
installProfiles: {
|
|
691
|
-
importPath: string;
|
|
692
722
|
name: string;
|
|
723
|
+
importPath: string;
|
|
693
724
|
targetPath: string;
|
|
694
725
|
includeTests: boolean;
|
|
695
726
|
stylePath?: string | undefined;
|
|
@@ -698,13 +729,13 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
698
729
|
contractVersionId?: string | undefined;
|
|
699
730
|
}, {
|
|
700
731
|
components: Record<string, {
|
|
701
|
-
componentId: string;
|
|
702
732
|
name: string;
|
|
733
|
+
componentId: string;
|
|
703
734
|
publicRef: string;
|
|
704
735
|
files: {
|
|
705
736
|
path: string;
|
|
706
737
|
size: number;
|
|
707
|
-
role: "source" | "metadata" | "
|
|
738
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
708
739
|
contentType: string;
|
|
709
740
|
sha256: string;
|
|
710
741
|
contentRef: string;
|
|
@@ -712,8 +743,8 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
712
743
|
status?: string | undefined;
|
|
713
744
|
category?: string | undefined;
|
|
714
745
|
contract?: unknown;
|
|
715
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
716
746
|
provenance?: Record<string, unknown> | undefined;
|
|
747
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
717
748
|
examples?: unknown[] | undefined;
|
|
718
749
|
styleFiles?: string[] | undefined;
|
|
719
750
|
tokenDependencies?: string[] | undefined;
|
|
@@ -733,7 +764,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
733
764
|
exports?: {
|
|
734
765
|
name: string;
|
|
735
766
|
path?: string | undefined;
|
|
736
|
-
kind?: "hook" | "type" | "
|
|
767
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
737
768
|
}[] | undefined;
|
|
738
769
|
}>;
|
|
739
770
|
schemaVersion: "fragments.registry.v1";
|
|
@@ -762,11 +793,25 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
762
793
|
version: string;
|
|
763
794
|
channel: string;
|
|
764
795
|
fcid?: string | undefined;
|
|
796
|
+
dependencies?: {
|
|
797
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
798
|
+
name: string;
|
|
799
|
+
versionRange: string;
|
|
800
|
+
optional?: boolean | undefined;
|
|
801
|
+
}[] | undefined;
|
|
765
802
|
contractVersionId?: string | undefined;
|
|
766
803
|
packageFiles?: {
|
|
767
804
|
path: string;
|
|
768
805
|
size: number;
|
|
769
|
-
role: "source" | "metadata" | "
|
|
806
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
807
|
+
contentType: string;
|
|
808
|
+
sha256: string;
|
|
809
|
+
contentRef: string;
|
|
810
|
+
}[] | undefined;
|
|
811
|
+
baseFiles?: {
|
|
812
|
+
path: string;
|
|
813
|
+
size: number;
|
|
814
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
770
815
|
contentType: string;
|
|
771
816
|
sha256: string;
|
|
772
817
|
contentRef: string;
|
|
@@ -775,15 +820,9 @@ declare const registryManifestDraftSchema: z.ZodObject<{
|
|
|
775
820
|
specifier: string;
|
|
776
821
|
sourcePath: string;
|
|
777
822
|
}[] | undefined;
|
|
778
|
-
dependencies?: {
|
|
779
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
780
|
-
name: string;
|
|
781
|
-
versionRange: string;
|
|
782
|
-
optional?: boolean | undefined;
|
|
783
|
-
}[] | undefined;
|
|
784
823
|
installProfiles?: {
|
|
785
|
-
importPath: string;
|
|
786
824
|
name: string;
|
|
825
|
+
importPath: string;
|
|
787
826
|
targetPath: string;
|
|
788
827
|
stylePath?: string | undefined;
|
|
789
828
|
includeTests?: boolean | undefined;
|
|
@@ -863,14 +902,37 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
863
902
|
}, "strip", z.ZodTypeAny, {
|
|
864
903
|
path: string;
|
|
865
904
|
size: number;
|
|
866
|
-
role: "source" | "metadata" | "
|
|
905
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
906
|
+
contentType: string;
|
|
907
|
+
sha256: string;
|
|
908
|
+
contentRef: string;
|
|
909
|
+
}, {
|
|
910
|
+
path: string;
|
|
911
|
+
size: number;
|
|
912
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
913
|
+
contentType: string;
|
|
914
|
+
sha256: string;
|
|
915
|
+
contentRef: string;
|
|
916
|
+
}>, "many">>;
|
|
917
|
+
/** Files every install writes, whatever the selection: the stylesheet entry and its closure. */
|
|
918
|
+
baseFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
919
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
920
|
+
role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
|
|
921
|
+
sha256: z.ZodString;
|
|
922
|
+
size: z.ZodNumber;
|
|
923
|
+
contentType: z.ZodString;
|
|
924
|
+
contentRef: z.ZodString;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
path: string;
|
|
927
|
+
size: number;
|
|
928
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
867
929
|
contentType: string;
|
|
868
930
|
sha256: string;
|
|
869
931
|
contentRef: string;
|
|
870
932
|
}, {
|
|
871
933
|
path: string;
|
|
872
934
|
size: number;
|
|
873
|
-
role: "source" | "metadata" | "
|
|
935
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
874
936
|
contentType: string;
|
|
875
937
|
sha256: string;
|
|
876
938
|
contentRef: string;
|
|
@@ -902,14 +964,14 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
902
964
|
}, "strip", z.ZodTypeAny, {
|
|
903
965
|
path: string;
|
|
904
966
|
size: number;
|
|
905
|
-
role: "source" | "metadata" | "
|
|
967
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
906
968
|
contentType: string;
|
|
907
969
|
sha256: string;
|
|
908
970
|
contentRef: string;
|
|
909
971
|
}, {
|
|
910
972
|
path: string;
|
|
911
973
|
size: number;
|
|
912
|
-
role: "source" | "metadata" | "
|
|
974
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
913
975
|
contentType: string;
|
|
914
976
|
sha256: string;
|
|
915
977
|
contentRef: string;
|
|
@@ -954,29 +1016,29 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
954
1016
|
kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
|
|
955
1017
|
path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
956
1018
|
}, "strip", z.ZodTypeAny, {
|
|
957
|
-
kind: "hook" | "type" | "
|
|
1019
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
958
1020
|
name: string;
|
|
959
1021
|
path?: string | undefined;
|
|
960
1022
|
}, {
|
|
961
1023
|
name: string;
|
|
962
1024
|
path?: string | undefined;
|
|
963
|
-
kind?: "hook" | "type" | "
|
|
1025
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
964
1026
|
}>, "many">>;
|
|
965
1027
|
contract: z.ZodOptional<z.ZodUnknown>;
|
|
966
1028
|
examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
|
|
967
1029
|
provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
968
1030
|
}, "strip", z.ZodTypeAny, {
|
|
969
1031
|
status: string;
|
|
970
|
-
componentId: string;
|
|
971
1032
|
name: string;
|
|
1033
|
+
componentId: string;
|
|
972
1034
|
publicRef: string;
|
|
973
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
974
1035
|
provenance: Record<string, unknown>;
|
|
1036
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
975
1037
|
examples: unknown[];
|
|
976
1038
|
files: {
|
|
977
1039
|
path: string;
|
|
978
1040
|
size: number;
|
|
979
|
-
role: "source" | "metadata" | "
|
|
1041
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
980
1042
|
contentType: string;
|
|
981
1043
|
sha256: string;
|
|
982
1044
|
contentRef: string;
|
|
@@ -997,20 +1059,20 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
997
1059
|
}[];
|
|
998
1060
|
internalDependencies: string[];
|
|
999
1061
|
exports: {
|
|
1000
|
-
kind: "hook" | "type" | "
|
|
1062
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
1001
1063
|
name: string;
|
|
1002
1064
|
path?: string | undefined;
|
|
1003
1065
|
}[];
|
|
1004
1066
|
category?: string | undefined;
|
|
1005
1067
|
contract?: unknown;
|
|
1006
1068
|
}, {
|
|
1007
|
-
componentId: string;
|
|
1008
1069
|
name: string;
|
|
1070
|
+
componentId: string;
|
|
1009
1071
|
publicRef: string;
|
|
1010
1072
|
files: {
|
|
1011
1073
|
path: string;
|
|
1012
1074
|
size: number;
|
|
1013
|
-
role: "source" | "metadata" | "
|
|
1075
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1014
1076
|
contentType: string;
|
|
1015
1077
|
sha256: string;
|
|
1016
1078
|
contentRef: string;
|
|
@@ -1018,8 +1080,8 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1018
1080
|
status?: string | undefined;
|
|
1019
1081
|
category?: string | undefined;
|
|
1020
1082
|
contract?: unknown;
|
|
1021
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1022
1083
|
provenance?: Record<string, unknown> | undefined;
|
|
1084
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1023
1085
|
examples?: unknown[] | undefined;
|
|
1024
1086
|
styleFiles?: string[] | undefined;
|
|
1025
1087
|
tokenDependencies?: string[] | undefined;
|
|
@@ -1039,7 +1101,7 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1039
1101
|
exports?: {
|
|
1040
1102
|
name: string;
|
|
1041
1103
|
path?: string | undefined;
|
|
1042
|
-
kind?: "hook" | "type" | "
|
|
1104
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
1043
1105
|
}[] | undefined;
|
|
1044
1106
|
}>>;
|
|
1045
1107
|
dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1065,14 +1127,14 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1065
1127
|
stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1066
1128
|
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
1067
1129
|
}, "strip", z.ZodTypeAny, {
|
|
1068
|
-
importPath: string;
|
|
1069
1130
|
name: string;
|
|
1131
|
+
importPath: string;
|
|
1070
1132
|
targetPath: string;
|
|
1071
1133
|
includeTests: boolean;
|
|
1072
1134
|
stylePath?: string | undefined;
|
|
1073
1135
|
}, {
|
|
1074
|
-
importPath: string;
|
|
1075
1136
|
name: string;
|
|
1137
|
+
importPath: string;
|
|
1076
1138
|
targetPath: string;
|
|
1077
1139
|
stylePath?: string | undefined;
|
|
1078
1140
|
includeTests?: boolean | undefined;
|
|
@@ -1082,16 +1144,16 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1082
1144
|
}, "strip", z.ZodTypeAny, {
|
|
1083
1145
|
components: Record<string, {
|
|
1084
1146
|
status: string;
|
|
1085
|
-
componentId: string;
|
|
1086
1147
|
name: string;
|
|
1148
|
+
componentId: string;
|
|
1087
1149
|
publicRef: string;
|
|
1088
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
1089
1150
|
provenance: Record<string, unknown>;
|
|
1151
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
1090
1152
|
examples: unknown[];
|
|
1091
1153
|
files: {
|
|
1092
1154
|
path: string;
|
|
1093
1155
|
size: number;
|
|
1094
|
-
role: "source" | "metadata" | "
|
|
1156
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1095
1157
|
contentType: string;
|
|
1096
1158
|
sha256: string;
|
|
1097
1159
|
contentRef: string;
|
|
@@ -1112,7 +1174,7 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1112
1174
|
}[];
|
|
1113
1175
|
internalDependencies: string[];
|
|
1114
1176
|
exports: {
|
|
1115
|
-
kind: "hook" | "type" | "
|
|
1177
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
1116
1178
|
name: string;
|
|
1117
1179
|
path?: string | undefined;
|
|
1118
1180
|
}[];
|
|
@@ -1144,11 +1206,25 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1144
1206
|
registryId: string;
|
|
1145
1207
|
registryHash: string;
|
|
1146
1208
|
version: string;
|
|
1209
|
+
dependencies: {
|
|
1210
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
1211
|
+
name: string;
|
|
1212
|
+
versionRange: string;
|
|
1213
|
+
optional?: boolean | undefined;
|
|
1214
|
+
}[];
|
|
1147
1215
|
channel: string;
|
|
1148
1216
|
packageFiles: {
|
|
1149
1217
|
path: string;
|
|
1150
1218
|
size: number;
|
|
1151
|
-
role: "source" | "metadata" | "
|
|
1219
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1220
|
+
contentType: string;
|
|
1221
|
+
sha256: string;
|
|
1222
|
+
contentRef: string;
|
|
1223
|
+
}[];
|
|
1224
|
+
baseFiles: {
|
|
1225
|
+
path: string;
|
|
1226
|
+
size: number;
|
|
1227
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1152
1228
|
contentType: string;
|
|
1153
1229
|
sha256: string;
|
|
1154
1230
|
contentRef: string;
|
|
@@ -1157,15 +1233,9 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1157
1233
|
specifier: string;
|
|
1158
1234
|
sourcePath: string;
|
|
1159
1235
|
}[];
|
|
1160
|
-
dependencies: {
|
|
1161
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
1162
|
-
name: string;
|
|
1163
|
-
versionRange: string;
|
|
1164
|
-
optional?: boolean | undefined;
|
|
1165
|
-
}[];
|
|
1166
1236
|
installProfiles: {
|
|
1167
|
-
importPath: string;
|
|
1168
1237
|
name: string;
|
|
1238
|
+
importPath: string;
|
|
1169
1239
|
targetPath: string;
|
|
1170
1240
|
includeTests: boolean;
|
|
1171
1241
|
stylePath?: string | undefined;
|
|
@@ -1174,13 +1244,13 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1174
1244
|
contractVersionId?: string | undefined;
|
|
1175
1245
|
}, {
|
|
1176
1246
|
components: Record<string, {
|
|
1177
|
-
componentId: string;
|
|
1178
1247
|
name: string;
|
|
1248
|
+
componentId: string;
|
|
1179
1249
|
publicRef: string;
|
|
1180
1250
|
files: {
|
|
1181
1251
|
path: string;
|
|
1182
1252
|
size: number;
|
|
1183
|
-
role: "source" | "metadata" | "
|
|
1253
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1184
1254
|
contentType: string;
|
|
1185
1255
|
sha256: string;
|
|
1186
1256
|
contentRef: string;
|
|
@@ -1188,8 +1258,8 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1188
1258
|
status?: string | undefined;
|
|
1189
1259
|
category?: string | undefined;
|
|
1190
1260
|
contract?: unknown;
|
|
1191
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1192
1261
|
provenance?: Record<string, unknown> | undefined;
|
|
1262
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1193
1263
|
examples?: unknown[] | undefined;
|
|
1194
1264
|
styleFiles?: string[] | undefined;
|
|
1195
1265
|
tokenDependencies?: string[] | undefined;
|
|
@@ -1209,7 +1279,7 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1209
1279
|
exports?: {
|
|
1210
1280
|
name: string;
|
|
1211
1281
|
path?: string | undefined;
|
|
1212
|
-
kind?: "hook" | "type" | "
|
|
1282
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
1213
1283
|
}[] | undefined;
|
|
1214
1284
|
}>;
|
|
1215
1285
|
schemaVersion: "fragments.registry.v1";
|
|
@@ -1239,11 +1309,25 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1239
1309
|
version: string;
|
|
1240
1310
|
channel: string;
|
|
1241
1311
|
fcid?: string | undefined;
|
|
1312
|
+
dependencies?: {
|
|
1313
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
1314
|
+
name: string;
|
|
1315
|
+
versionRange: string;
|
|
1316
|
+
optional?: boolean | undefined;
|
|
1317
|
+
}[] | undefined;
|
|
1242
1318
|
contractVersionId?: string | undefined;
|
|
1243
1319
|
packageFiles?: {
|
|
1244
1320
|
path: string;
|
|
1245
1321
|
size: number;
|
|
1246
|
-
role: "source" | "metadata" | "
|
|
1322
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1323
|
+
contentType: string;
|
|
1324
|
+
sha256: string;
|
|
1325
|
+
contentRef: string;
|
|
1326
|
+
}[] | undefined;
|
|
1327
|
+
baseFiles?: {
|
|
1328
|
+
path: string;
|
|
1329
|
+
size: number;
|
|
1330
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1247
1331
|
contentType: string;
|
|
1248
1332
|
sha256: string;
|
|
1249
1333
|
contentRef: string;
|
|
@@ -1252,15 +1336,9 @@ declare const registryManifestSchema: z.ZodObject<{
|
|
|
1252
1336
|
specifier: string;
|
|
1253
1337
|
sourcePath: string;
|
|
1254
1338
|
}[] | undefined;
|
|
1255
|
-
dependencies?: {
|
|
1256
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
1257
|
-
name: string;
|
|
1258
|
-
versionRange: string;
|
|
1259
|
-
optional?: boolean | undefined;
|
|
1260
|
-
}[] | undefined;
|
|
1261
1339
|
installProfiles?: {
|
|
1262
|
-
importPath: string;
|
|
1263
1340
|
name: string;
|
|
1341
|
+
importPath: string;
|
|
1264
1342
|
targetPath: string;
|
|
1265
1343
|
stylePath?: string | undefined;
|
|
1266
1344
|
includeTests?: boolean | undefined;
|
|
@@ -1342,14 +1420,37 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1342
1420
|
}, "strip", z.ZodTypeAny, {
|
|
1343
1421
|
path: string;
|
|
1344
1422
|
size: number;
|
|
1345
|
-
role: "source" | "metadata" | "
|
|
1423
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1424
|
+
contentType: string;
|
|
1425
|
+
sha256: string;
|
|
1426
|
+
contentRef: string;
|
|
1427
|
+
}, {
|
|
1428
|
+
path: string;
|
|
1429
|
+
size: number;
|
|
1430
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1431
|
+
contentType: string;
|
|
1432
|
+
sha256: string;
|
|
1433
|
+
contentRef: string;
|
|
1434
|
+
}>, "many">>;
|
|
1435
|
+
/** Files every install writes, whatever the selection: the stylesheet entry and its closure. */
|
|
1436
|
+
baseFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1437
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1438
|
+
role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
|
|
1439
|
+
sha256: z.ZodString;
|
|
1440
|
+
size: z.ZodNumber;
|
|
1441
|
+
contentType: z.ZodString;
|
|
1442
|
+
contentRef: z.ZodString;
|
|
1443
|
+
}, "strip", z.ZodTypeAny, {
|
|
1444
|
+
path: string;
|
|
1445
|
+
size: number;
|
|
1446
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1346
1447
|
contentType: string;
|
|
1347
1448
|
sha256: string;
|
|
1348
1449
|
contentRef: string;
|
|
1349
1450
|
}, {
|
|
1350
1451
|
path: string;
|
|
1351
1452
|
size: number;
|
|
1352
|
-
role: "source" | "metadata" | "
|
|
1453
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1353
1454
|
contentType: string;
|
|
1354
1455
|
sha256: string;
|
|
1355
1456
|
contentRef: string;
|
|
@@ -1381,14 +1482,14 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1381
1482
|
}, "strip", z.ZodTypeAny, {
|
|
1382
1483
|
path: string;
|
|
1383
1484
|
size: number;
|
|
1384
|
-
role: "source" | "metadata" | "
|
|
1485
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1385
1486
|
contentType: string;
|
|
1386
1487
|
sha256: string;
|
|
1387
1488
|
contentRef: string;
|
|
1388
1489
|
}, {
|
|
1389
1490
|
path: string;
|
|
1390
1491
|
size: number;
|
|
1391
|
-
role: "source" | "metadata" | "
|
|
1492
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1392
1493
|
contentType: string;
|
|
1393
1494
|
sha256: string;
|
|
1394
1495
|
contentRef: string;
|
|
@@ -1433,29 +1534,29 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1433
1534
|
kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
|
|
1434
1535
|
path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1435
1536
|
}, "strip", z.ZodTypeAny, {
|
|
1436
|
-
kind: "hook" | "type" | "
|
|
1537
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
1437
1538
|
name: string;
|
|
1438
1539
|
path?: string | undefined;
|
|
1439
1540
|
}, {
|
|
1440
1541
|
name: string;
|
|
1441
1542
|
path?: string | undefined;
|
|
1442
|
-
kind?: "hook" | "type" | "
|
|
1543
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
1443
1544
|
}>, "many">>;
|
|
1444
1545
|
contract: z.ZodOptional<z.ZodUnknown>;
|
|
1445
1546
|
examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1446
1547
|
provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1447
1548
|
}, "strip", z.ZodTypeAny, {
|
|
1448
1549
|
status: string;
|
|
1449
|
-
componentId: string;
|
|
1450
1550
|
name: string;
|
|
1551
|
+
componentId: string;
|
|
1451
1552
|
publicRef: string;
|
|
1452
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
1453
1553
|
provenance: Record<string, unknown>;
|
|
1554
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
1454
1555
|
examples: unknown[];
|
|
1455
1556
|
files: {
|
|
1456
1557
|
path: string;
|
|
1457
1558
|
size: number;
|
|
1458
|
-
role: "source" | "metadata" | "
|
|
1559
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1459
1560
|
contentType: string;
|
|
1460
1561
|
sha256: string;
|
|
1461
1562
|
contentRef: string;
|
|
@@ -1476,20 +1577,20 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1476
1577
|
}[];
|
|
1477
1578
|
internalDependencies: string[];
|
|
1478
1579
|
exports: {
|
|
1479
|
-
kind: "hook" | "type" | "
|
|
1580
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
1480
1581
|
name: string;
|
|
1481
1582
|
path?: string | undefined;
|
|
1482
1583
|
}[];
|
|
1483
1584
|
category?: string | undefined;
|
|
1484
1585
|
contract?: unknown;
|
|
1485
1586
|
}, {
|
|
1486
|
-
componentId: string;
|
|
1487
1587
|
name: string;
|
|
1588
|
+
componentId: string;
|
|
1488
1589
|
publicRef: string;
|
|
1489
1590
|
files: {
|
|
1490
1591
|
path: string;
|
|
1491
1592
|
size: number;
|
|
1492
|
-
role: "source" | "metadata" | "
|
|
1593
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1493
1594
|
contentType: string;
|
|
1494
1595
|
sha256: string;
|
|
1495
1596
|
contentRef: string;
|
|
@@ -1497,8 +1598,8 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1497
1598
|
status?: string | undefined;
|
|
1498
1599
|
category?: string | undefined;
|
|
1499
1600
|
contract?: unknown;
|
|
1500
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1501
1601
|
provenance?: Record<string, unknown> | undefined;
|
|
1602
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1502
1603
|
examples?: unknown[] | undefined;
|
|
1503
1604
|
styleFiles?: string[] | undefined;
|
|
1504
1605
|
tokenDependencies?: string[] | undefined;
|
|
@@ -1518,7 +1619,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1518
1619
|
exports?: {
|
|
1519
1620
|
name: string;
|
|
1520
1621
|
path?: string | undefined;
|
|
1521
|
-
kind?: "hook" | "type" | "
|
|
1622
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
1522
1623
|
}[] | undefined;
|
|
1523
1624
|
}>>;
|
|
1524
1625
|
dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1544,14 +1645,14 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1544
1645
|
stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1545
1646
|
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
1546
1647
|
}, "strip", z.ZodTypeAny, {
|
|
1547
|
-
importPath: string;
|
|
1548
1648
|
name: string;
|
|
1649
|
+
importPath: string;
|
|
1549
1650
|
targetPath: string;
|
|
1550
1651
|
includeTests: boolean;
|
|
1551
1652
|
stylePath?: string | undefined;
|
|
1552
1653
|
}, {
|
|
1553
|
-
importPath: string;
|
|
1554
1654
|
name: string;
|
|
1655
|
+
importPath: string;
|
|
1555
1656
|
targetPath: string;
|
|
1556
1657
|
stylePath?: string | undefined;
|
|
1557
1658
|
includeTests?: boolean | undefined;
|
|
@@ -1561,16 +1662,16 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1561
1662
|
}, "strip", z.ZodTypeAny, {
|
|
1562
1663
|
components: Record<string, {
|
|
1563
1664
|
status: string;
|
|
1564
|
-
componentId: string;
|
|
1565
1665
|
name: string;
|
|
1666
|
+
componentId: string;
|
|
1566
1667
|
publicRef: string;
|
|
1567
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
1568
1668
|
provenance: Record<string, unknown>;
|
|
1669
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
1569
1670
|
examples: unknown[];
|
|
1570
1671
|
files: {
|
|
1571
1672
|
path: string;
|
|
1572
1673
|
size: number;
|
|
1573
|
-
role: "source" | "metadata" | "
|
|
1674
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1574
1675
|
contentType: string;
|
|
1575
1676
|
sha256: string;
|
|
1576
1677
|
contentRef: string;
|
|
@@ -1591,7 +1692,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1591
1692
|
}[];
|
|
1592
1693
|
internalDependencies: string[];
|
|
1593
1694
|
exports: {
|
|
1594
|
-
kind: "hook" | "type" | "
|
|
1695
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
1595
1696
|
name: string;
|
|
1596
1697
|
path?: string | undefined;
|
|
1597
1698
|
}[];
|
|
@@ -1623,11 +1724,25 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1623
1724
|
registryId: string;
|
|
1624
1725
|
registryHash: string;
|
|
1625
1726
|
version: string;
|
|
1727
|
+
dependencies: {
|
|
1728
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
1729
|
+
name: string;
|
|
1730
|
+
versionRange: string;
|
|
1731
|
+
optional?: boolean | undefined;
|
|
1732
|
+
}[];
|
|
1626
1733
|
channel: string;
|
|
1627
1734
|
packageFiles: {
|
|
1628
1735
|
path: string;
|
|
1629
1736
|
size: number;
|
|
1630
|
-
role: "source" | "metadata" | "
|
|
1737
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1738
|
+
contentType: string;
|
|
1739
|
+
sha256: string;
|
|
1740
|
+
contentRef: string;
|
|
1741
|
+
}[];
|
|
1742
|
+
baseFiles: {
|
|
1743
|
+
path: string;
|
|
1744
|
+
size: number;
|
|
1745
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1631
1746
|
contentType: string;
|
|
1632
1747
|
sha256: string;
|
|
1633
1748
|
contentRef: string;
|
|
@@ -1636,15 +1751,9 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1636
1751
|
specifier: string;
|
|
1637
1752
|
sourcePath: string;
|
|
1638
1753
|
}[];
|
|
1639
|
-
dependencies: {
|
|
1640
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
1641
|
-
name: string;
|
|
1642
|
-
versionRange: string;
|
|
1643
|
-
optional?: boolean | undefined;
|
|
1644
|
-
}[];
|
|
1645
1754
|
installProfiles: {
|
|
1646
|
-
importPath: string;
|
|
1647
1755
|
name: string;
|
|
1756
|
+
importPath: string;
|
|
1648
1757
|
targetPath: string;
|
|
1649
1758
|
includeTests: boolean;
|
|
1650
1759
|
stylePath?: string | undefined;
|
|
@@ -1653,13 +1762,13 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1653
1762
|
contractVersionId?: string | undefined;
|
|
1654
1763
|
}, {
|
|
1655
1764
|
components: Record<string, {
|
|
1656
|
-
componentId: string;
|
|
1657
1765
|
name: string;
|
|
1766
|
+
componentId: string;
|
|
1658
1767
|
publicRef: string;
|
|
1659
1768
|
files: {
|
|
1660
1769
|
path: string;
|
|
1661
1770
|
size: number;
|
|
1662
|
-
role: "source" | "metadata" | "
|
|
1771
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1663
1772
|
contentType: string;
|
|
1664
1773
|
sha256: string;
|
|
1665
1774
|
contentRef: string;
|
|
@@ -1667,8 +1776,8 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1667
1776
|
status?: string | undefined;
|
|
1668
1777
|
category?: string | undefined;
|
|
1669
1778
|
contract?: unknown;
|
|
1670
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1671
1779
|
provenance?: Record<string, unknown> | undefined;
|
|
1780
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1672
1781
|
examples?: unknown[] | undefined;
|
|
1673
1782
|
styleFiles?: string[] | undefined;
|
|
1674
1783
|
tokenDependencies?: string[] | undefined;
|
|
@@ -1688,7 +1797,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1688
1797
|
exports?: {
|
|
1689
1798
|
name: string;
|
|
1690
1799
|
path?: string | undefined;
|
|
1691
|
-
kind?: "hook" | "type" | "
|
|
1800
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
1692
1801
|
}[] | undefined;
|
|
1693
1802
|
}>;
|
|
1694
1803
|
schemaVersion: "fragments.registry.v1";
|
|
@@ -1718,11 +1827,25 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1718
1827
|
version: string;
|
|
1719
1828
|
channel: string;
|
|
1720
1829
|
fcid?: string | undefined;
|
|
1830
|
+
dependencies?: {
|
|
1831
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
1832
|
+
name: string;
|
|
1833
|
+
versionRange: string;
|
|
1834
|
+
optional?: boolean | undefined;
|
|
1835
|
+
}[] | undefined;
|
|
1721
1836
|
contractVersionId?: string | undefined;
|
|
1722
1837
|
packageFiles?: {
|
|
1723
1838
|
path: string;
|
|
1724
1839
|
size: number;
|
|
1725
|
-
role: "source" | "metadata" | "
|
|
1840
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1841
|
+
contentType: string;
|
|
1842
|
+
sha256: string;
|
|
1843
|
+
contentRef: string;
|
|
1844
|
+
}[] | undefined;
|
|
1845
|
+
baseFiles?: {
|
|
1846
|
+
path: string;
|
|
1847
|
+
size: number;
|
|
1848
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1726
1849
|
contentType: string;
|
|
1727
1850
|
sha256: string;
|
|
1728
1851
|
contentRef: string;
|
|
@@ -1731,15 +1854,9 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1731
1854
|
specifier: string;
|
|
1732
1855
|
sourcePath: string;
|
|
1733
1856
|
}[] | undefined;
|
|
1734
|
-
dependencies?: {
|
|
1735
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
1736
|
-
name: string;
|
|
1737
|
-
versionRange: string;
|
|
1738
|
-
optional?: boolean | undefined;
|
|
1739
|
-
}[] | undefined;
|
|
1740
1857
|
installProfiles?: {
|
|
1741
|
-
importPath: string;
|
|
1742
1858
|
name: string;
|
|
1859
|
+
importPath: string;
|
|
1743
1860
|
targetPath: string;
|
|
1744
1861
|
stylePath?: string | undefined;
|
|
1745
1862
|
includeTests?: boolean | undefined;
|
|
@@ -1769,16 +1886,16 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1769
1886
|
manifest: {
|
|
1770
1887
|
components: Record<string, {
|
|
1771
1888
|
status: string;
|
|
1772
|
-
componentId: string;
|
|
1773
1889
|
name: string;
|
|
1890
|
+
componentId: string;
|
|
1774
1891
|
publicRef: string;
|
|
1775
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
1776
1892
|
provenance: Record<string, unknown>;
|
|
1893
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
1777
1894
|
examples: unknown[];
|
|
1778
1895
|
files: {
|
|
1779
1896
|
path: string;
|
|
1780
1897
|
size: number;
|
|
1781
|
-
role: "source" | "metadata" | "
|
|
1898
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1782
1899
|
contentType: string;
|
|
1783
1900
|
sha256: string;
|
|
1784
1901
|
contentRef: string;
|
|
@@ -1799,7 +1916,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1799
1916
|
}[];
|
|
1800
1917
|
internalDependencies: string[];
|
|
1801
1918
|
exports: {
|
|
1802
|
-
kind: "hook" | "type" | "
|
|
1919
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
1803
1920
|
name: string;
|
|
1804
1921
|
path?: string | undefined;
|
|
1805
1922
|
}[];
|
|
@@ -1831,11 +1948,25 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1831
1948
|
registryId: string;
|
|
1832
1949
|
registryHash: string;
|
|
1833
1950
|
version: string;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1951
|
+
dependencies: {
|
|
1952
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
1953
|
+
name: string;
|
|
1954
|
+
versionRange: string;
|
|
1955
|
+
optional?: boolean | undefined;
|
|
1956
|
+
}[];
|
|
1957
|
+
channel: string;
|
|
1958
|
+
packageFiles: {
|
|
1959
|
+
path: string;
|
|
1960
|
+
size: number;
|
|
1961
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1962
|
+
contentType: string;
|
|
1963
|
+
sha256: string;
|
|
1964
|
+
contentRef: string;
|
|
1965
|
+
}[];
|
|
1966
|
+
baseFiles: {
|
|
1967
|
+
path: string;
|
|
1837
1968
|
size: number;
|
|
1838
|
-
role: "source" | "metadata" | "
|
|
1969
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1839
1970
|
contentType: string;
|
|
1840
1971
|
sha256: string;
|
|
1841
1972
|
contentRef: string;
|
|
@@ -1844,15 +1975,9 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1844
1975
|
specifier: string;
|
|
1845
1976
|
sourcePath: string;
|
|
1846
1977
|
}[];
|
|
1847
|
-
dependencies: {
|
|
1848
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
1849
|
-
name: string;
|
|
1850
|
-
versionRange: string;
|
|
1851
|
-
optional?: boolean | undefined;
|
|
1852
|
-
}[];
|
|
1853
1978
|
installProfiles: {
|
|
1854
|
-
importPath: string;
|
|
1855
1979
|
name: string;
|
|
1980
|
+
importPath: string;
|
|
1856
1981
|
targetPath: string;
|
|
1857
1982
|
includeTests: boolean;
|
|
1858
1983
|
stylePath?: string | undefined;
|
|
@@ -1871,13 +1996,13 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1871
1996
|
schemaVersion: "fragments.registry-artifact.v1";
|
|
1872
1997
|
manifest: {
|
|
1873
1998
|
components: Record<string, {
|
|
1874
|
-
componentId: string;
|
|
1875
1999
|
name: string;
|
|
2000
|
+
componentId: string;
|
|
1876
2001
|
publicRef: string;
|
|
1877
2002
|
files: {
|
|
1878
2003
|
path: string;
|
|
1879
2004
|
size: number;
|
|
1880
|
-
role: "source" | "metadata" | "
|
|
2005
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1881
2006
|
contentType: string;
|
|
1882
2007
|
sha256: string;
|
|
1883
2008
|
contentRef: string;
|
|
@@ -1885,8 +2010,8 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1885
2010
|
status?: string | undefined;
|
|
1886
2011
|
category?: string | undefined;
|
|
1887
2012
|
contract?: unknown;
|
|
1888
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1889
2013
|
provenance?: Record<string, unknown> | undefined;
|
|
2014
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
1890
2015
|
examples?: unknown[] | undefined;
|
|
1891
2016
|
styleFiles?: string[] | undefined;
|
|
1892
2017
|
tokenDependencies?: string[] | undefined;
|
|
@@ -1906,7 +2031,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1906
2031
|
exports?: {
|
|
1907
2032
|
name: string;
|
|
1908
2033
|
path?: string | undefined;
|
|
1909
|
-
kind?: "hook" | "type" | "
|
|
2034
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
1910
2035
|
}[] | undefined;
|
|
1911
2036
|
}>;
|
|
1912
2037
|
schemaVersion: "fragments.registry.v1";
|
|
@@ -1936,11 +2061,25 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1936
2061
|
version: string;
|
|
1937
2062
|
channel: string;
|
|
1938
2063
|
fcid?: string | undefined;
|
|
2064
|
+
dependencies?: {
|
|
2065
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2066
|
+
name: string;
|
|
2067
|
+
versionRange: string;
|
|
2068
|
+
optional?: boolean | undefined;
|
|
2069
|
+
}[] | undefined;
|
|
1939
2070
|
contractVersionId?: string | undefined;
|
|
1940
2071
|
packageFiles?: {
|
|
1941
2072
|
path: string;
|
|
1942
2073
|
size: number;
|
|
1943
|
-
role: "source" | "metadata" | "
|
|
2074
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2075
|
+
contentType: string;
|
|
2076
|
+
sha256: string;
|
|
2077
|
+
contentRef: string;
|
|
2078
|
+
}[] | undefined;
|
|
2079
|
+
baseFiles?: {
|
|
2080
|
+
path: string;
|
|
2081
|
+
size: number;
|
|
2082
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1944
2083
|
contentType: string;
|
|
1945
2084
|
sha256: string;
|
|
1946
2085
|
contentRef: string;
|
|
@@ -1949,15 +2088,9 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1949
2088
|
specifier: string;
|
|
1950
2089
|
sourcePath: string;
|
|
1951
2090
|
}[] | undefined;
|
|
1952
|
-
dependencies?: {
|
|
1953
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
1954
|
-
name: string;
|
|
1955
|
-
versionRange: string;
|
|
1956
|
-
optional?: boolean | undefined;
|
|
1957
|
-
}[] | undefined;
|
|
1958
2091
|
installProfiles?: {
|
|
1959
|
-
importPath: string;
|
|
1960
2092
|
name: string;
|
|
2093
|
+
importPath: string;
|
|
1961
2094
|
targetPath: string;
|
|
1962
2095
|
stylePath?: string | undefined;
|
|
1963
2096
|
includeTests?: boolean | undefined;
|
|
@@ -1975,16 +2108,16 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1975
2108
|
manifest: {
|
|
1976
2109
|
components: Record<string, {
|
|
1977
2110
|
status: string;
|
|
1978
|
-
componentId: string;
|
|
1979
2111
|
name: string;
|
|
2112
|
+
componentId: string;
|
|
1980
2113
|
publicRef: string;
|
|
1981
|
-
tier: "composition" | "core" | "custom" | "utility";
|
|
1982
2114
|
provenance: Record<string, unknown>;
|
|
2115
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
1983
2116
|
examples: unknown[];
|
|
1984
2117
|
files: {
|
|
1985
2118
|
path: string;
|
|
1986
2119
|
size: number;
|
|
1987
|
-
role: "source" | "metadata" | "
|
|
2120
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
1988
2121
|
contentType: string;
|
|
1989
2122
|
sha256: string;
|
|
1990
2123
|
contentRef: string;
|
|
@@ -2005,7 +2138,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2005
2138
|
}[];
|
|
2006
2139
|
internalDependencies: string[];
|
|
2007
2140
|
exports: {
|
|
2008
|
-
kind: "hook" | "type" | "
|
|
2141
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
2009
2142
|
name: string;
|
|
2010
2143
|
path?: string | undefined;
|
|
2011
2144
|
}[];
|
|
@@ -2037,11 +2170,25 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2037
2170
|
registryId: string;
|
|
2038
2171
|
registryHash: string;
|
|
2039
2172
|
version: string;
|
|
2173
|
+
dependencies: {
|
|
2174
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2175
|
+
name: string;
|
|
2176
|
+
versionRange: string;
|
|
2177
|
+
optional?: boolean | undefined;
|
|
2178
|
+
}[];
|
|
2040
2179
|
channel: string;
|
|
2041
2180
|
packageFiles: {
|
|
2042
2181
|
path: string;
|
|
2043
2182
|
size: number;
|
|
2044
|
-
role: "source" | "metadata" | "
|
|
2183
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2184
|
+
contentType: string;
|
|
2185
|
+
sha256: string;
|
|
2186
|
+
contentRef: string;
|
|
2187
|
+
}[];
|
|
2188
|
+
baseFiles: {
|
|
2189
|
+
path: string;
|
|
2190
|
+
size: number;
|
|
2191
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2045
2192
|
contentType: string;
|
|
2046
2193
|
sha256: string;
|
|
2047
2194
|
contentRef: string;
|
|
@@ -2050,15 +2197,9 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2050
2197
|
specifier: string;
|
|
2051
2198
|
sourcePath: string;
|
|
2052
2199
|
}[];
|
|
2053
|
-
dependencies: {
|
|
2054
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
2055
|
-
name: string;
|
|
2056
|
-
versionRange: string;
|
|
2057
|
-
optional?: boolean | undefined;
|
|
2058
|
-
}[];
|
|
2059
2200
|
installProfiles: {
|
|
2060
|
-
importPath: string;
|
|
2061
2201
|
name: string;
|
|
2202
|
+
importPath: string;
|
|
2062
2203
|
targetPath: string;
|
|
2063
2204
|
includeTests: boolean;
|
|
2064
2205
|
stylePath?: string | undefined;
|
|
@@ -2077,13 +2218,13 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2077
2218
|
schemaVersion: "fragments.registry-artifact.v1";
|
|
2078
2219
|
manifest: {
|
|
2079
2220
|
components: Record<string, {
|
|
2080
|
-
componentId: string;
|
|
2081
2221
|
name: string;
|
|
2222
|
+
componentId: string;
|
|
2082
2223
|
publicRef: string;
|
|
2083
2224
|
files: {
|
|
2084
2225
|
path: string;
|
|
2085
2226
|
size: number;
|
|
2086
|
-
role: "source" | "metadata" | "
|
|
2227
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2087
2228
|
contentType: string;
|
|
2088
2229
|
sha256: string;
|
|
2089
2230
|
contentRef: string;
|
|
@@ -2091,8 +2232,8 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2091
2232
|
status?: string | undefined;
|
|
2092
2233
|
category?: string | undefined;
|
|
2093
2234
|
contract?: unknown;
|
|
2094
|
-
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
2095
2235
|
provenance?: Record<string, unknown> | undefined;
|
|
2236
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
2096
2237
|
examples?: unknown[] | undefined;
|
|
2097
2238
|
styleFiles?: string[] | undefined;
|
|
2098
2239
|
tokenDependencies?: string[] | undefined;
|
|
@@ -2112,7 +2253,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2112
2253
|
exports?: {
|
|
2113
2254
|
name: string;
|
|
2114
2255
|
path?: string | undefined;
|
|
2115
|
-
kind?: "hook" | "type" | "
|
|
2256
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
2116
2257
|
}[] | undefined;
|
|
2117
2258
|
}>;
|
|
2118
2259
|
schemaVersion: "fragments.registry.v1";
|
|
@@ -2142,11 +2283,25 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2142
2283
|
version: string;
|
|
2143
2284
|
channel: string;
|
|
2144
2285
|
fcid?: string | undefined;
|
|
2286
|
+
dependencies?: {
|
|
2287
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2288
|
+
name: string;
|
|
2289
|
+
versionRange: string;
|
|
2290
|
+
optional?: boolean | undefined;
|
|
2291
|
+
}[] | undefined;
|
|
2145
2292
|
contractVersionId?: string | undefined;
|
|
2146
2293
|
packageFiles?: {
|
|
2147
2294
|
path: string;
|
|
2148
2295
|
size: number;
|
|
2149
|
-
role: "source" | "metadata" | "
|
|
2296
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2297
|
+
contentType: string;
|
|
2298
|
+
sha256: string;
|
|
2299
|
+
contentRef: string;
|
|
2300
|
+
}[] | undefined;
|
|
2301
|
+
baseFiles?: {
|
|
2302
|
+
path: string;
|
|
2303
|
+
size: number;
|
|
2304
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2150
2305
|
contentType: string;
|
|
2151
2306
|
sha256: string;
|
|
2152
2307
|
contentRef: string;
|
|
@@ -2155,15 +2310,9 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2155
2310
|
specifier: string;
|
|
2156
2311
|
sourcePath: string;
|
|
2157
2312
|
}[] | undefined;
|
|
2158
|
-
dependencies?: {
|
|
2159
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
2160
|
-
name: string;
|
|
2161
|
-
versionRange: string;
|
|
2162
|
-
optional?: boolean | undefined;
|
|
2163
|
-
}[] | undefined;
|
|
2164
2313
|
installProfiles?: {
|
|
2165
|
-
importPath: string;
|
|
2166
2314
|
name: string;
|
|
2315
|
+
importPath: string;
|
|
2167
2316
|
targetPath: string;
|
|
2168
2317
|
stylePath?: string | undefined;
|
|
2169
2318
|
includeTests?: boolean | undefined;
|
|
@@ -2199,13 +2348,13 @@ declare const registryInstallReceiptComponentSchema: z.ZodObject<{
|
|
|
2199
2348
|
name: z.ZodString;
|
|
2200
2349
|
files: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
2201
2350
|
}, "strip", z.ZodTypeAny, {
|
|
2202
|
-
componentId: string;
|
|
2203
2351
|
name: string;
|
|
2352
|
+
componentId: string;
|
|
2204
2353
|
publicRef: string;
|
|
2205
2354
|
files: string[];
|
|
2206
2355
|
}, {
|
|
2207
|
-
componentId: string;
|
|
2208
2356
|
name: string;
|
|
2357
|
+
componentId: string;
|
|
2209
2358
|
publicRef: string;
|
|
2210
2359
|
files: string[];
|
|
2211
2360
|
}>;
|
|
@@ -2224,13 +2373,13 @@ declare const registryInstallReceiptSchema: z.ZodObject<{
|
|
|
2224
2373
|
name: z.ZodString;
|
|
2225
2374
|
files: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
2226
2375
|
}, "strip", z.ZodTypeAny, {
|
|
2227
|
-
componentId: string;
|
|
2228
2376
|
name: string;
|
|
2377
|
+
componentId: string;
|
|
2229
2378
|
publicRef: string;
|
|
2230
2379
|
files: string[];
|
|
2231
2380
|
}, {
|
|
2232
|
-
componentId: string;
|
|
2233
2381
|
name: string;
|
|
2382
|
+
componentId: string;
|
|
2234
2383
|
publicRef: string;
|
|
2235
2384
|
files: string[];
|
|
2236
2385
|
}>, "many">;
|
|
@@ -2272,6 +2421,12 @@ declare const registryInstallReceiptSchema: z.ZodObject<{
|
|
|
2272
2421
|
importPath: string;
|
|
2273
2422
|
registryId: string;
|
|
2274
2423
|
registryHash: string;
|
|
2424
|
+
dependencies: {
|
|
2425
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2426
|
+
name: string;
|
|
2427
|
+
versionRange: string;
|
|
2428
|
+
optional?: boolean | undefined;
|
|
2429
|
+
}[];
|
|
2275
2430
|
files: {
|
|
2276
2431
|
path: string;
|
|
2277
2432
|
sourcePath: string;
|
|
@@ -2279,16 +2434,10 @@ declare const registryInstallReceiptSchema: z.ZodObject<{
|
|
|
2279
2434
|
componentId?: string | undefined;
|
|
2280
2435
|
}[];
|
|
2281
2436
|
targetPath: string;
|
|
2282
|
-
dependencies: {
|
|
2283
|
-
type: "runtime" | "peer" | "dev" | "optional";
|
|
2284
|
-
name: string;
|
|
2285
|
-
versionRange: string;
|
|
2286
|
-
optional?: boolean | undefined;
|
|
2287
|
-
}[];
|
|
2288
2437
|
registryVersion: string;
|
|
2289
2438
|
installedComponents: {
|
|
2290
|
-
componentId: string;
|
|
2291
2439
|
name: string;
|
|
2440
|
+
componentId: string;
|
|
2292
2441
|
publicRef: string;
|
|
2293
2442
|
files: string[];
|
|
2294
2443
|
}[];
|
|
@@ -2309,20 +2458,20 @@ declare const registryInstallReceiptSchema: z.ZodObject<{
|
|
|
2309
2458
|
targetPath: string;
|
|
2310
2459
|
registryVersion: string;
|
|
2311
2460
|
installedComponents: {
|
|
2312
|
-
componentId: string;
|
|
2313
2461
|
name: string;
|
|
2462
|
+
componentId: string;
|
|
2314
2463
|
publicRef: string;
|
|
2315
2464
|
files: string[];
|
|
2316
2465
|
}[];
|
|
2317
2466
|
installedAt: string;
|
|
2318
2467
|
fcid?: string | undefined;
|
|
2319
|
-
channel?: string | undefined;
|
|
2320
2468
|
dependencies?: {
|
|
2321
2469
|
type: "runtime" | "peer" | "dev" | "optional";
|
|
2322
2470
|
name: string;
|
|
2323
2471
|
versionRange: string;
|
|
2324
2472
|
optional?: boolean | undefined;
|
|
2325
2473
|
}[] | undefined;
|
|
2474
|
+
channel?: string | undefined;
|
|
2326
2475
|
}>;
|
|
2327
2476
|
type RegistryDependencyType = z.infer<typeof registryDependencyTypeSchema>;
|
|
2328
2477
|
type RegistryDependency = z.infer<typeof registryDependencySchema>;
|
|
@@ -2363,5 +2512,1065 @@ declare function buildRegistryArtifact(input: RegistryArtifactInput): RegistryAr
|
|
|
2363
2512
|
declare function assertValidRegistryArtifact(artifact: unknown): RegistryArtifact;
|
|
2364
2513
|
declare function registryArtifactDigest(artifact: RegistryArtifact): string;
|
|
2365
2514
|
declare function registryManifestCanonicalPreimage(manifest: RegistryManifestDraft | RegistryManifest): string;
|
|
2515
|
+
declare const REGISTRY_INDEX_SCHEMA_VERSION = "fragments.registry-index.v2";
|
|
2516
|
+
declare const REGISTRY_SHARD_SCHEMA_VERSION = "fragments.registry-shard.v2";
|
|
2517
|
+
declare const registryShardSchema: z.ZodEffects<z.ZodObject<{
|
|
2518
|
+
schemaVersion: z.ZodLiteral<"fragments.registry-shard.v2">;
|
|
2519
|
+
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2520
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2521
|
+
content: z.ZodString;
|
|
2522
|
+
sha256: z.ZodString;
|
|
2523
|
+
size: z.ZodNumber;
|
|
2524
|
+
contentType: z.ZodString;
|
|
2525
|
+
}, "strip", z.ZodTypeAny, {
|
|
2526
|
+
path: string;
|
|
2527
|
+
size: number;
|
|
2528
|
+
content: string;
|
|
2529
|
+
contentType: string;
|
|
2530
|
+
sha256: string;
|
|
2531
|
+
}, {
|
|
2532
|
+
path: string;
|
|
2533
|
+
size: number;
|
|
2534
|
+
content: string;
|
|
2535
|
+
contentType: string;
|
|
2536
|
+
sha256: string;
|
|
2537
|
+
}>>;
|
|
2538
|
+
}, "strip", z.ZodTypeAny, {
|
|
2539
|
+
schemaVersion: "fragments.registry-shard.v2";
|
|
2540
|
+
files: Record<string, {
|
|
2541
|
+
path: string;
|
|
2542
|
+
size: number;
|
|
2543
|
+
content: string;
|
|
2544
|
+
contentType: string;
|
|
2545
|
+
sha256: string;
|
|
2546
|
+
}>;
|
|
2547
|
+
}, {
|
|
2548
|
+
schemaVersion: "fragments.registry-shard.v2";
|
|
2549
|
+
files: Record<string, {
|
|
2550
|
+
path: string;
|
|
2551
|
+
size: number;
|
|
2552
|
+
content: string;
|
|
2553
|
+
contentType: string;
|
|
2554
|
+
sha256: string;
|
|
2555
|
+
}>;
|
|
2556
|
+
}>, {
|
|
2557
|
+
schemaVersion: "fragments.registry-shard.v2";
|
|
2558
|
+
files: Record<string, {
|
|
2559
|
+
path: string;
|
|
2560
|
+
size: number;
|
|
2561
|
+
content: string;
|
|
2562
|
+
contentType: string;
|
|
2563
|
+
sha256: string;
|
|
2564
|
+
}>;
|
|
2565
|
+
}, {
|
|
2566
|
+
schemaVersion: "fragments.registry-shard.v2";
|
|
2567
|
+
files: Record<string, {
|
|
2568
|
+
path: string;
|
|
2569
|
+
size: number;
|
|
2570
|
+
content: string;
|
|
2571
|
+
contentType: string;
|
|
2572
|
+
sha256: string;
|
|
2573
|
+
}>;
|
|
2574
|
+
}>;
|
|
2575
|
+
declare const registryIndexSchema: z.ZodEffects<z.ZodObject<{
|
|
2576
|
+
schemaVersion: z.ZodLiteral<"fragments.registry-index.v2">;
|
|
2577
|
+
manifest: z.ZodObject<{
|
|
2578
|
+
schemaVersion: z.ZodLiteral<"fragments.registry.v1">;
|
|
2579
|
+
registryId: z.ZodString;
|
|
2580
|
+
name: z.ZodString;
|
|
2581
|
+
channel: z.ZodString;
|
|
2582
|
+
version: z.ZodString;
|
|
2583
|
+
contractVersionId: z.ZodOptional<z.ZodString>;
|
|
2584
|
+
fcid: z.ZodOptional<z.ZodString>;
|
|
2585
|
+
generatedAt: z.ZodString;
|
|
2586
|
+
source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2587
|
+
kind: z.ZodLiteral<"package">;
|
|
2588
|
+
packageName: z.ZodString;
|
|
2589
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2590
|
+
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2591
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
2592
|
+
}, "strip", z.ZodTypeAny, {
|
|
2593
|
+
kind: "package";
|
|
2594
|
+
packageName: string;
|
|
2595
|
+
version?: string | undefined;
|
|
2596
|
+
rootPath?: string | undefined;
|
|
2597
|
+
commitSha?: string | undefined;
|
|
2598
|
+
}, {
|
|
2599
|
+
kind: "package";
|
|
2600
|
+
packageName: string;
|
|
2601
|
+
version?: string | undefined;
|
|
2602
|
+
rootPath?: string | undefined;
|
|
2603
|
+
commitSha?: string | undefined;
|
|
2604
|
+
}>, z.ZodObject<{
|
|
2605
|
+
kind: z.ZodLiteral<"github">;
|
|
2606
|
+
repoFullName: z.ZodString;
|
|
2607
|
+
commitSha: z.ZodString;
|
|
2608
|
+
path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2609
|
+
}, "strip", z.ZodTypeAny, {
|
|
2610
|
+
kind: "github";
|
|
2611
|
+
repoFullName: string;
|
|
2612
|
+
commitSha: string;
|
|
2613
|
+
path?: string | undefined;
|
|
2614
|
+
}, {
|
|
2615
|
+
kind: "github";
|
|
2616
|
+
repoFullName: string;
|
|
2617
|
+
commitSha: string;
|
|
2618
|
+
path?: string | undefined;
|
|
2619
|
+
}>, z.ZodObject<{
|
|
2620
|
+
kind: z.ZodLiteral<"local">;
|
|
2621
|
+
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2622
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
2623
|
+
}, "strip", z.ZodTypeAny, {
|
|
2624
|
+
kind: "local";
|
|
2625
|
+
rootPath?: string | undefined;
|
|
2626
|
+
commitSha?: string | undefined;
|
|
2627
|
+
}, {
|
|
2628
|
+
kind: "local";
|
|
2629
|
+
rootPath?: string | undefined;
|
|
2630
|
+
commitSha?: string | undefined;
|
|
2631
|
+
}>, z.ZodObject<{
|
|
2632
|
+
kind: z.ZodLiteral<"manual">;
|
|
2633
|
+
label: z.ZodString;
|
|
2634
|
+
}, "strip", z.ZodTypeAny, {
|
|
2635
|
+
kind: "manual";
|
|
2636
|
+
label: string;
|
|
2637
|
+
}, {
|
|
2638
|
+
kind: "manual";
|
|
2639
|
+
label: string;
|
|
2640
|
+
}>]>;
|
|
2641
|
+
packageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2642
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2643
|
+
role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
|
|
2644
|
+
sha256: z.ZodString;
|
|
2645
|
+
size: z.ZodNumber;
|
|
2646
|
+
contentType: z.ZodString;
|
|
2647
|
+
contentRef: z.ZodString;
|
|
2648
|
+
}, "strip", z.ZodTypeAny, {
|
|
2649
|
+
path: string;
|
|
2650
|
+
size: number;
|
|
2651
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2652
|
+
contentType: string;
|
|
2653
|
+
sha256: string;
|
|
2654
|
+
contentRef: string;
|
|
2655
|
+
}, {
|
|
2656
|
+
path: string;
|
|
2657
|
+
size: number;
|
|
2658
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2659
|
+
contentType: string;
|
|
2660
|
+
sha256: string;
|
|
2661
|
+
contentRef: string;
|
|
2662
|
+
}>, "many">>;
|
|
2663
|
+
/** Files every install writes, whatever the selection: the stylesheet entry and its closure. */
|
|
2664
|
+
baseFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2665
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2666
|
+
role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
|
|
2667
|
+
sha256: z.ZodString;
|
|
2668
|
+
size: z.ZodNumber;
|
|
2669
|
+
contentType: z.ZodString;
|
|
2670
|
+
contentRef: z.ZodString;
|
|
2671
|
+
}, "strip", z.ZodTypeAny, {
|
|
2672
|
+
path: string;
|
|
2673
|
+
size: number;
|
|
2674
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2675
|
+
contentType: string;
|
|
2676
|
+
sha256: string;
|
|
2677
|
+
contentRef: string;
|
|
2678
|
+
}, {
|
|
2679
|
+
path: string;
|
|
2680
|
+
size: number;
|
|
2681
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2682
|
+
contentType: string;
|
|
2683
|
+
sha256: string;
|
|
2684
|
+
contentRef: string;
|
|
2685
|
+
}>, "many">>;
|
|
2686
|
+
entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2687
|
+
specifier: z.ZodString;
|
|
2688
|
+
sourcePath: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2689
|
+
}, "strip", z.ZodTypeAny, {
|
|
2690
|
+
specifier: string;
|
|
2691
|
+
sourcePath: string;
|
|
2692
|
+
}, {
|
|
2693
|
+
specifier: string;
|
|
2694
|
+
sourcePath: string;
|
|
2695
|
+
}>, "many">>;
|
|
2696
|
+
components: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2697
|
+
componentId: z.ZodString;
|
|
2698
|
+
publicRef: z.ZodString;
|
|
2699
|
+
name: z.ZodString;
|
|
2700
|
+
status: z.ZodDefault<z.ZodString>;
|
|
2701
|
+
tier: z.ZodDefault<z.ZodEnum<["core", "composition", "utility", "custom"]>>;
|
|
2702
|
+
category: z.ZodOptional<z.ZodString>;
|
|
2703
|
+
files: z.ZodArray<z.ZodObject<{
|
|
2704
|
+
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2705
|
+
role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>;
|
|
2706
|
+
sha256: z.ZodString;
|
|
2707
|
+
size: z.ZodNumber;
|
|
2708
|
+
contentType: z.ZodString;
|
|
2709
|
+
contentRef: z.ZodString;
|
|
2710
|
+
}, "strip", z.ZodTypeAny, {
|
|
2711
|
+
path: string;
|
|
2712
|
+
size: number;
|
|
2713
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2714
|
+
contentType: string;
|
|
2715
|
+
sha256: string;
|
|
2716
|
+
contentRef: string;
|
|
2717
|
+
}, {
|
|
2718
|
+
path: string;
|
|
2719
|
+
size: number;
|
|
2720
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2721
|
+
contentType: string;
|
|
2722
|
+
sha256: string;
|
|
2723
|
+
contentRef: string;
|
|
2724
|
+
}>, "many">;
|
|
2725
|
+
styleFiles: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
2726
|
+
tokenDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2727
|
+
runtimeDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2728
|
+
name: z.ZodString;
|
|
2729
|
+
versionRange: z.ZodString;
|
|
2730
|
+
type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
|
|
2731
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2732
|
+
}, "strip", z.ZodTypeAny, {
|
|
2733
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2734
|
+
name: string;
|
|
2735
|
+
versionRange: string;
|
|
2736
|
+
optional?: boolean | undefined;
|
|
2737
|
+
}, {
|
|
2738
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2739
|
+
name: string;
|
|
2740
|
+
versionRange: string;
|
|
2741
|
+
optional?: boolean | undefined;
|
|
2742
|
+
}>, "many">>;
|
|
2743
|
+
peerDependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2744
|
+
name: z.ZodString;
|
|
2745
|
+
versionRange: z.ZodString;
|
|
2746
|
+
type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
|
|
2747
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2748
|
+
}, "strip", z.ZodTypeAny, {
|
|
2749
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2750
|
+
name: string;
|
|
2751
|
+
versionRange: string;
|
|
2752
|
+
optional?: boolean | undefined;
|
|
2753
|
+
}, {
|
|
2754
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2755
|
+
name: string;
|
|
2756
|
+
versionRange: string;
|
|
2757
|
+
optional?: boolean | undefined;
|
|
2758
|
+
}>, "many">>;
|
|
2759
|
+
internalDependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2760
|
+
exports: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2761
|
+
name: z.ZodString;
|
|
2762
|
+
kind: z.ZodDefault<z.ZodEnum<["component", "hook", "utility", "type", "style"]>>;
|
|
2763
|
+
path: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2764
|
+
}, "strip", z.ZodTypeAny, {
|
|
2765
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
2766
|
+
name: string;
|
|
2767
|
+
path?: string | undefined;
|
|
2768
|
+
}, {
|
|
2769
|
+
name: string;
|
|
2770
|
+
path?: string | undefined;
|
|
2771
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
2772
|
+
}>, "many">>;
|
|
2773
|
+
contract: z.ZodOptional<z.ZodUnknown>;
|
|
2774
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2775
|
+
provenance: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2776
|
+
}, "strip", z.ZodTypeAny, {
|
|
2777
|
+
status: string;
|
|
2778
|
+
name: string;
|
|
2779
|
+
componentId: string;
|
|
2780
|
+
publicRef: string;
|
|
2781
|
+
provenance: Record<string, unknown>;
|
|
2782
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
2783
|
+
examples: unknown[];
|
|
2784
|
+
files: {
|
|
2785
|
+
path: string;
|
|
2786
|
+
size: number;
|
|
2787
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2788
|
+
contentType: string;
|
|
2789
|
+
sha256: string;
|
|
2790
|
+
contentRef: string;
|
|
2791
|
+
}[];
|
|
2792
|
+
styleFiles: string[];
|
|
2793
|
+
tokenDependencies: string[];
|
|
2794
|
+
runtimeDependencies: {
|
|
2795
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2796
|
+
name: string;
|
|
2797
|
+
versionRange: string;
|
|
2798
|
+
optional?: boolean | undefined;
|
|
2799
|
+
}[];
|
|
2800
|
+
peerDependencies: {
|
|
2801
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2802
|
+
name: string;
|
|
2803
|
+
versionRange: string;
|
|
2804
|
+
optional?: boolean | undefined;
|
|
2805
|
+
}[];
|
|
2806
|
+
internalDependencies: string[];
|
|
2807
|
+
exports: {
|
|
2808
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
2809
|
+
name: string;
|
|
2810
|
+
path?: string | undefined;
|
|
2811
|
+
}[];
|
|
2812
|
+
category?: string | undefined;
|
|
2813
|
+
contract?: unknown;
|
|
2814
|
+
}, {
|
|
2815
|
+
name: string;
|
|
2816
|
+
componentId: string;
|
|
2817
|
+
publicRef: string;
|
|
2818
|
+
files: {
|
|
2819
|
+
path: string;
|
|
2820
|
+
size: number;
|
|
2821
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2822
|
+
contentType: string;
|
|
2823
|
+
sha256: string;
|
|
2824
|
+
contentRef: string;
|
|
2825
|
+
}[];
|
|
2826
|
+
status?: string | undefined;
|
|
2827
|
+
category?: string | undefined;
|
|
2828
|
+
contract?: unknown;
|
|
2829
|
+
provenance?: Record<string, unknown> | undefined;
|
|
2830
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
2831
|
+
examples?: unknown[] | undefined;
|
|
2832
|
+
styleFiles?: string[] | undefined;
|
|
2833
|
+
tokenDependencies?: string[] | undefined;
|
|
2834
|
+
runtimeDependencies?: {
|
|
2835
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2836
|
+
name: string;
|
|
2837
|
+
versionRange: string;
|
|
2838
|
+
optional?: boolean | undefined;
|
|
2839
|
+
}[] | undefined;
|
|
2840
|
+
peerDependencies?: {
|
|
2841
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2842
|
+
name: string;
|
|
2843
|
+
versionRange: string;
|
|
2844
|
+
optional?: boolean | undefined;
|
|
2845
|
+
}[] | undefined;
|
|
2846
|
+
internalDependencies?: string[] | undefined;
|
|
2847
|
+
exports?: {
|
|
2848
|
+
name: string;
|
|
2849
|
+
path?: string | undefined;
|
|
2850
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
2851
|
+
}[] | undefined;
|
|
2852
|
+
}>>;
|
|
2853
|
+
dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2854
|
+
name: z.ZodString;
|
|
2855
|
+
versionRange: z.ZodString;
|
|
2856
|
+
type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>;
|
|
2857
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2858
|
+
}, "strip", z.ZodTypeAny, {
|
|
2859
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2860
|
+
name: string;
|
|
2861
|
+
versionRange: string;
|
|
2862
|
+
optional?: boolean | undefined;
|
|
2863
|
+
}, {
|
|
2864
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2865
|
+
name: string;
|
|
2866
|
+
versionRange: string;
|
|
2867
|
+
optional?: boolean | undefined;
|
|
2868
|
+
}>, "many">>;
|
|
2869
|
+
installProfiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2870
|
+
name: z.ZodString;
|
|
2871
|
+
targetPath: z.ZodEffects<z.ZodString, string, string>;
|
|
2872
|
+
importPath: z.ZodString;
|
|
2873
|
+
stylePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2874
|
+
includeTests: z.ZodDefault<z.ZodBoolean>;
|
|
2875
|
+
}, "strip", z.ZodTypeAny, {
|
|
2876
|
+
name: string;
|
|
2877
|
+
importPath: string;
|
|
2878
|
+
targetPath: string;
|
|
2879
|
+
includeTests: boolean;
|
|
2880
|
+
stylePath?: string | undefined;
|
|
2881
|
+
}, {
|
|
2882
|
+
name: string;
|
|
2883
|
+
importPath: string;
|
|
2884
|
+
targetPath: string;
|
|
2885
|
+
stylePath?: string | undefined;
|
|
2886
|
+
includeTests?: boolean | undefined;
|
|
2887
|
+
}>, "many">>;
|
|
2888
|
+
} & {
|
|
2889
|
+
registryHash: z.ZodString;
|
|
2890
|
+
}, "strip", z.ZodTypeAny, {
|
|
2891
|
+
components: Record<string, {
|
|
2892
|
+
status: string;
|
|
2893
|
+
name: string;
|
|
2894
|
+
componentId: string;
|
|
2895
|
+
publicRef: string;
|
|
2896
|
+
provenance: Record<string, unknown>;
|
|
2897
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
2898
|
+
examples: unknown[];
|
|
2899
|
+
files: {
|
|
2900
|
+
path: string;
|
|
2901
|
+
size: number;
|
|
2902
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2903
|
+
contentType: string;
|
|
2904
|
+
sha256: string;
|
|
2905
|
+
contentRef: string;
|
|
2906
|
+
}[];
|
|
2907
|
+
styleFiles: string[];
|
|
2908
|
+
tokenDependencies: string[];
|
|
2909
|
+
runtimeDependencies: {
|
|
2910
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2911
|
+
name: string;
|
|
2912
|
+
versionRange: string;
|
|
2913
|
+
optional?: boolean | undefined;
|
|
2914
|
+
}[];
|
|
2915
|
+
peerDependencies: {
|
|
2916
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2917
|
+
name: string;
|
|
2918
|
+
versionRange: string;
|
|
2919
|
+
optional?: boolean | undefined;
|
|
2920
|
+
}[];
|
|
2921
|
+
internalDependencies: string[];
|
|
2922
|
+
exports: {
|
|
2923
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
2924
|
+
name: string;
|
|
2925
|
+
path?: string | undefined;
|
|
2926
|
+
}[];
|
|
2927
|
+
category?: string | undefined;
|
|
2928
|
+
contract?: unknown;
|
|
2929
|
+
}>;
|
|
2930
|
+
schemaVersion: "fragments.registry.v1";
|
|
2931
|
+
generatedAt: string;
|
|
2932
|
+
source: {
|
|
2933
|
+
kind: "package";
|
|
2934
|
+
packageName: string;
|
|
2935
|
+
version?: string | undefined;
|
|
2936
|
+
rootPath?: string | undefined;
|
|
2937
|
+
commitSha?: string | undefined;
|
|
2938
|
+
} | {
|
|
2939
|
+
kind: "github";
|
|
2940
|
+
repoFullName: string;
|
|
2941
|
+
commitSha: string;
|
|
2942
|
+
path?: string | undefined;
|
|
2943
|
+
} | {
|
|
2944
|
+
kind: "local";
|
|
2945
|
+
rootPath?: string | undefined;
|
|
2946
|
+
commitSha?: string | undefined;
|
|
2947
|
+
} | {
|
|
2948
|
+
kind: "manual";
|
|
2949
|
+
label: string;
|
|
2950
|
+
};
|
|
2951
|
+
name: string;
|
|
2952
|
+
registryId: string;
|
|
2953
|
+
registryHash: string;
|
|
2954
|
+
version: string;
|
|
2955
|
+
dependencies: {
|
|
2956
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
2957
|
+
name: string;
|
|
2958
|
+
versionRange: string;
|
|
2959
|
+
optional?: boolean | undefined;
|
|
2960
|
+
}[];
|
|
2961
|
+
channel: string;
|
|
2962
|
+
packageFiles: {
|
|
2963
|
+
path: string;
|
|
2964
|
+
size: number;
|
|
2965
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2966
|
+
contentType: string;
|
|
2967
|
+
sha256: string;
|
|
2968
|
+
contentRef: string;
|
|
2969
|
+
}[];
|
|
2970
|
+
baseFiles: {
|
|
2971
|
+
path: string;
|
|
2972
|
+
size: number;
|
|
2973
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
2974
|
+
contentType: string;
|
|
2975
|
+
sha256: string;
|
|
2976
|
+
contentRef: string;
|
|
2977
|
+
}[];
|
|
2978
|
+
entrypoints: {
|
|
2979
|
+
specifier: string;
|
|
2980
|
+
sourcePath: string;
|
|
2981
|
+
}[];
|
|
2982
|
+
installProfiles: {
|
|
2983
|
+
name: string;
|
|
2984
|
+
importPath: string;
|
|
2985
|
+
targetPath: string;
|
|
2986
|
+
includeTests: boolean;
|
|
2987
|
+
stylePath?: string | undefined;
|
|
2988
|
+
}[];
|
|
2989
|
+
fcid?: string | undefined;
|
|
2990
|
+
contractVersionId?: string | undefined;
|
|
2991
|
+
}, {
|
|
2992
|
+
components: Record<string, {
|
|
2993
|
+
name: string;
|
|
2994
|
+
componentId: string;
|
|
2995
|
+
publicRef: string;
|
|
2996
|
+
files: {
|
|
2997
|
+
path: string;
|
|
2998
|
+
size: number;
|
|
2999
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3000
|
+
contentType: string;
|
|
3001
|
+
sha256: string;
|
|
3002
|
+
contentRef: string;
|
|
3003
|
+
}[];
|
|
3004
|
+
status?: string | undefined;
|
|
3005
|
+
category?: string | undefined;
|
|
3006
|
+
contract?: unknown;
|
|
3007
|
+
provenance?: Record<string, unknown> | undefined;
|
|
3008
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
3009
|
+
examples?: unknown[] | undefined;
|
|
3010
|
+
styleFiles?: string[] | undefined;
|
|
3011
|
+
tokenDependencies?: string[] | undefined;
|
|
3012
|
+
runtimeDependencies?: {
|
|
3013
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3014
|
+
name: string;
|
|
3015
|
+
versionRange: string;
|
|
3016
|
+
optional?: boolean | undefined;
|
|
3017
|
+
}[] | undefined;
|
|
3018
|
+
peerDependencies?: {
|
|
3019
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3020
|
+
name: string;
|
|
3021
|
+
versionRange: string;
|
|
3022
|
+
optional?: boolean | undefined;
|
|
3023
|
+
}[] | undefined;
|
|
3024
|
+
internalDependencies?: string[] | undefined;
|
|
3025
|
+
exports?: {
|
|
3026
|
+
name: string;
|
|
3027
|
+
path?: string | undefined;
|
|
3028
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
3029
|
+
}[] | undefined;
|
|
3030
|
+
}>;
|
|
3031
|
+
schemaVersion: "fragments.registry.v1";
|
|
3032
|
+
generatedAt: string;
|
|
3033
|
+
source: {
|
|
3034
|
+
kind: "package";
|
|
3035
|
+
packageName: string;
|
|
3036
|
+
version?: string | undefined;
|
|
3037
|
+
rootPath?: string | undefined;
|
|
3038
|
+
commitSha?: string | undefined;
|
|
3039
|
+
} | {
|
|
3040
|
+
kind: "github";
|
|
3041
|
+
repoFullName: string;
|
|
3042
|
+
commitSha: string;
|
|
3043
|
+
path?: string | undefined;
|
|
3044
|
+
} | {
|
|
3045
|
+
kind: "local";
|
|
3046
|
+
rootPath?: string | undefined;
|
|
3047
|
+
commitSha?: string | undefined;
|
|
3048
|
+
} | {
|
|
3049
|
+
kind: "manual";
|
|
3050
|
+
label: string;
|
|
3051
|
+
};
|
|
3052
|
+
name: string;
|
|
3053
|
+
registryId: string;
|
|
3054
|
+
registryHash: string;
|
|
3055
|
+
version: string;
|
|
3056
|
+
channel: string;
|
|
3057
|
+
fcid?: string | undefined;
|
|
3058
|
+
dependencies?: {
|
|
3059
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3060
|
+
name: string;
|
|
3061
|
+
versionRange: string;
|
|
3062
|
+
optional?: boolean | undefined;
|
|
3063
|
+
}[] | undefined;
|
|
3064
|
+
contractVersionId?: string | undefined;
|
|
3065
|
+
packageFiles?: {
|
|
3066
|
+
path: string;
|
|
3067
|
+
size: number;
|
|
3068
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3069
|
+
contentType: string;
|
|
3070
|
+
sha256: string;
|
|
3071
|
+
contentRef: string;
|
|
3072
|
+
}[] | undefined;
|
|
3073
|
+
baseFiles?: {
|
|
3074
|
+
path: string;
|
|
3075
|
+
size: number;
|
|
3076
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3077
|
+
contentType: string;
|
|
3078
|
+
sha256: string;
|
|
3079
|
+
contentRef: string;
|
|
3080
|
+
}[] | undefined;
|
|
3081
|
+
entrypoints?: {
|
|
3082
|
+
specifier: string;
|
|
3083
|
+
sourcePath: string;
|
|
3084
|
+
}[] | undefined;
|
|
3085
|
+
installProfiles?: {
|
|
3086
|
+
name: string;
|
|
3087
|
+
importPath: string;
|
|
3088
|
+
targetPath: string;
|
|
3089
|
+
stylePath?: string | undefined;
|
|
3090
|
+
includeTests?: boolean | undefined;
|
|
3091
|
+
}[] | undefined;
|
|
3092
|
+
}>;
|
|
3093
|
+
/** Shard path (relative to the index) → registry file paths whose bodies it carries. */
|
|
3094
|
+
shards: z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
3095
|
+
}, "strip", z.ZodTypeAny, {
|
|
3096
|
+
schemaVersion: "fragments.registry-index.v2";
|
|
3097
|
+
manifest: {
|
|
3098
|
+
components: Record<string, {
|
|
3099
|
+
status: string;
|
|
3100
|
+
name: string;
|
|
3101
|
+
componentId: string;
|
|
3102
|
+
publicRef: string;
|
|
3103
|
+
provenance: Record<string, unknown>;
|
|
3104
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
3105
|
+
examples: unknown[];
|
|
3106
|
+
files: {
|
|
3107
|
+
path: string;
|
|
3108
|
+
size: number;
|
|
3109
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3110
|
+
contentType: string;
|
|
3111
|
+
sha256: string;
|
|
3112
|
+
contentRef: string;
|
|
3113
|
+
}[];
|
|
3114
|
+
styleFiles: string[];
|
|
3115
|
+
tokenDependencies: string[];
|
|
3116
|
+
runtimeDependencies: {
|
|
3117
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3118
|
+
name: string;
|
|
3119
|
+
versionRange: string;
|
|
3120
|
+
optional?: boolean | undefined;
|
|
3121
|
+
}[];
|
|
3122
|
+
peerDependencies: {
|
|
3123
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3124
|
+
name: string;
|
|
3125
|
+
versionRange: string;
|
|
3126
|
+
optional?: boolean | undefined;
|
|
3127
|
+
}[];
|
|
3128
|
+
internalDependencies: string[];
|
|
3129
|
+
exports: {
|
|
3130
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
3131
|
+
name: string;
|
|
3132
|
+
path?: string | undefined;
|
|
3133
|
+
}[];
|
|
3134
|
+
category?: string | undefined;
|
|
3135
|
+
contract?: unknown;
|
|
3136
|
+
}>;
|
|
3137
|
+
schemaVersion: "fragments.registry.v1";
|
|
3138
|
+
generatedAt: string;
|
|
3139
|
+
source: {
|
|
3140
|
+
kind: "package";
|
|
3141
|
+
packageName: string;
|
|
3142
|
+
version?: string | undefined;
|
|
3143
|
+
rootPath?: string | undefined;
|
|
3144
|
+
commitSha?: string | undefined;
|
|
3145
|
+
} | {
|
|
3146
|
+
kind: "github";
|
|
3147
|
+
repoFullName: string;
|
|
3148
|
+
commitSha: string;
|
|
3149
|
+
path?: string | undefined;
|
|
3150
|
+
} | {
|
|
3151
|
+
kind: "local";
|
|
3152
|
+
rootPath?: string | undefined;
|
|
3153
|
+
commitSha?: string | undefined;
|
|
3154
|
+
} | {
|
|
3155
|
+
kind: "manual";
|
|
3156
|
+
label: string;
|
|
3157
|
+
};
|
|
3158
|
+
name: string;
|
|
3159
|
+
registryId: string;
|
|
3160
|
+
registryHash: string;
|
|
3161
|
+
version: string;
|
|
3162
|
+
dependencies: {
|
|
3163
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3164
|
+
name: string;
|
|
3165
|
+
versionRange: string;
|
|
3166
|
+
optional?: boolean | undefined;
|
|
3167
|
+
}[];
|
|
3168
|
+
channel: string;
|
|
3169
|
+
packageFiles: {
|
|
3170
|
+
path: string;
|
|
3171
|
+
size: number;
|
|
3172
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3173
|
+
contentType: string;
|
|
3174
|
+
sha256: string;
|
|
3175
|
+
contentRef: string;
|
|
3176
|
+
}[];
|
|
3177
|
+
baseFiles: {
|
|
3178
|
+
path: string;
|
|
3179
|
+
size: number;
|
|
3180
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3181
|
+
contentType: string;
|
|
3182
|
+
sha256: string;
|
|
3183
|
+
contentRef: string;
|
|
3184
|
+
}[];
|
|
3185
|
+
entrypoints: {
|
|
3186
|
+
specifier: string;
|
|
3187
|
+
sourcePath: string;
|
|
3188
|
+
}[];
|
|
3189
|
+
installProfiles: {
|
|
3190
|
+
name: string;
|
|
3191
|
+
importPath: string;
|
|
3192
|
+
targetPath: string;
|
|
3193
|
+
includeTests: boolean;
|
|
3194
|
+
stylePath?: string | undefined;
|
|
3195
|
+
}[];
|
|
3196
|
+
fcid?: string | undefined;
|
|
3197
|
+
contractVersionId?: string | undefined;
|
|
3198
|
+
};
|
|
3199
|
+
shards: Record<string, string[]>;
|
|
3200
|
+
}, {
|
|
3201
|
+
schemaVersion: "fragments.registry-index.v2";
|
|
3202
|
+
manifest: {
|
|
3203
|
+
components: Record<string, {
|
|
3204
|
+
name: string;
|
|
3205
|
+
componentId: string;
|
|
3206
|
+
publicRef: string;
|
|
3207
|
+
files: {
|
|
3208
|
+
path: string;
|
|
3209
|
+
size: number;
|
|
3210
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3211
|
+
contentType: string;
|
|
3212
|
+
sha256: string;
|
|
3213
|
+
contentRef: string;
|
|
3214
|
+
}[];
|
|
3215
|
+
status?: string | undefined;
|
|
3216
|
+
category?: string | undefined;
|
|
3217
|
+
contract?: unknown;
|
|
3218
|
+
provenance?: Record<string, unknown> | undefined;
|
|
3219
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
3220
|
+
examples?: unknown[] | undefined;
|
|
3221
|
+
styleFiles?: string[] | undefined;
|
|
3222
|
+
tokenDependencies?: string[] | undefined;
|
|
3223
|
+
runtimeDependencies?: {
|
|
3224
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3225
|
+
name: string;
|
|
3226
|
+
versionRange: string;
|
|
3227
|
+
optional?: boolean | undefined;
|
|
3228
|
+
}[] | undefined;
|
|
3229
|
+
peerDependencies?: {
|
|
3230
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3231
|
+
name: string;
|
|
3232
|
+
versionRange: string;
|
|
3233
|
+
optional?: boolean | undefined;
|
|
3234
|
+
}[] | undefined;
|
|
3235
|
+
internalDependencies?: string[] | undefined;
|
|
3236
|
+
exports?: {
|
|
3237
|
+
name: string;
|
|
3238
|
+
path?: string | undefined;
|
|
3239
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
3240
|
+
}[] | undefined;
|
|
3241
|
+
}>;
|
|
3242
|
+
schemaVersion: "fragments.registry.v1";
|
|
3243
|
+
generatedAt: string;
|
|
3244
|
+
source: {
|
|
3245
|
+
kind: "package";
|
|
3246
|
+
packageName: string;
|
|
3247
|
+
version?: string | undefined;
|
|
3248
|
+
rootPath?: string | undefined;
|
|
3249
|
+
commitSha?: string | undefined;
|
|
3250
|
+
} | {
|
|
3251
|
+
kind: "github";
|
|
3252
|
+
repoFullName: string;
|
|
3253
|
+
commitSha: string;
|
|
3254
|
+
path?: string | undefined;
|
|
3255
|
+
} | {
|
|
3256
|
+
kind: "local";
|
|
3257
|
+
rootPath?: string | undefined;
|
|
3258
|
+
commitSha?: string | undefined;
|
|
3259
|
+
} | {
|
|
3260
|
+
kind: "manual";
|
|
3261
|
+
label: string;
|
|
3262
|
+
};
|
|
3263
|
+
name: string;
|
|
3264
|
+
registryId: string;
|
|
3265
|
+
registryHash: string;
|
|
3266
|
+
version: string;
|
|
3267
|
+
channel: string;
|
|
3268
|
+
fcid?: string | undefined;
|
|
3269
|
+
dependencies?: {
|
|
3270
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3271
|
+
name: string;
|
|
3272
|
+
versionRange: string;
|
|
3273
|
+
optional?: boolean | undefined;
|
|
3274
|
+
}[] | undefined;
|
|
3275
|
+
contractVersionId?: string | undefined;
|
|
3276
|
+
packageFiles?: {
|
|
3277
|
+
path: string;
|
|
3278
|
+
size: number;
|
|
3279
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3280
|
+
contentType: string;
|
|
3281
|
+
sha256: string;
|
|
3282
|
+
contentRef: string;
|
|
3283
|
+
}[] | undefined;
|
|
3284
|
+
baseFiles?: {
|
|
3285
|
+
path: string;
|
|
3286
|
+
size: number;
|
|
3287
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3288
|
+
contentType: string;
|
|
3289
|
+
sha256: string;
|
|
3290
|
+
contentRef: string;
|
|
3291
|
+
}[] | undefined;
|
|
3292
|
+
entrypoints?: {
|
|
3293
|
+
specifier: string;
|
|
3294
|
+
sourcePath: string;
|
|
3295
|
+
}[] | undefined;
|
|
3296
|
+
installProfiles?: {
|
|
3297
|
+
name: string;
|
|
3298
|
+
importPath: string;
|
|
3299
|
+
targetPath: string;
|
|
3300
|
+
stylePath?: string | undefined;
|
|
3301
|
+
includeTests?: boolean | undefined;
|
|
3302
|
+
}[] | undefined;
|
|
3303
|
+
};
|
|
3304
|
+
shards: Record<string, string[]>;
|
|
3305
|
+
}>, {
|
|
3306
|
+
schemaVersion: "fragments.registry-index.v2";
|
|
3307
|
+
manifest: {
|
|
3308
|
+
components: Record<string, {
|
|
3309
|
+
status: string;
|
|
3310
|
+
name: string;
|
|
3311
|
+
componentId: string;
|
|
3312
|
+
publicRef: string;
|
|
3313
|
+
provenance: Record<string, unknown>;
|
|
3314
|
+
tier: "composition" | "core" | "custom" | "utility";
|
|
3315
|
+
examples: unknown[];
|
|
3316
|
+
files: {
|
|
3317
|
+
path: string;
|
|
3318
|
+
size: number;
|
|
3319
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3320
|
+
contentType: string;
|
|
3321
|
+
sha256: string;
|
|
3322
|
+
contentRef: string;
|
|
3323
|
+
}[];
|
|
3324
|
+
styleFiles: string[];
|
|
3325
|
+
tokenDependencies: string[];
|
|
3326
|
+
runtimeDependencies: {
|
|
3327
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3328
|
+
name: string;
|
|
3329
|
+
versionRange: string;
|
|
3330
|
+
optional?: boolean | undefined;
|
|
3331
|
+
}[];
|
|
3332
|
+
peerDependencies: {
|
|
3333
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3334
|
+
name: string;
|
|
3335
|
+
versionRange: string;
|
|
3336
|
+
optional?: boolean | undefined;
|
|
3337
|
+
}[];
|
|
3338
|
+
internalDependencies: string[];
|
|
3339
|
+
exports: {
|
|
3340
|
+
kind: "hook" | "type" | "component" | "style" | "utility";
|
|
3341
|
+
name: string;
|
|
3342
|
+
path?: string | undefined;
|
|
3343
|
+
}[];
|
|
3344
|
+
category?: string | undefined;
|
|
3345
|
+
contract?: unknown;
|
|
3346
|
+
}>;
|
|
3347
|
+
schemaVersion: "fragments.registry.v1";
|
|
3348
|
+
generatedAt: string;
|
|
3349
|
+
source: {
|
|
3350
|
+
kind: "package";
|
|
3351
|
+
packageName: string;
|
|
3352
|
+
version?: string | undefined;
|
|
3353
|
+
rootPath?: string | undefined;
|
|
3354
|
+
commitSha?: string | undefined;
|
|
3355
|
+
} | {
|
|
3356
|
+
kind: "github";
|
|
3357
|
+
repoFullName: string;
|
|
3358
|
+
commitSha: string;
|
|
3359
|
+
path?: string | undefined;
|
|
3360
|
+
} | {
|
|
3361
|
+
kind: "local";
|
|
3362
|
+
rootPath?: string | undefined;
|
|
3363
|
+
commitSha?: string | undefined;
|
|
3364
|
+
} | {
|
|
3365
|
+
kind: "manual";
|
|
3366
|
+
label: string;
|
|
3367
|
+
};
|
|
3368
|
+
name: string;
|
|
3369
|
+
registryId: string;
|
|
3370
|
+
registryHash: string;
|
|
3371
|
+
version: string;
|
|
3372
|
+
dependencies: {
|
|
3373
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3374
|
+
name: string;
|
|
3375
|
+
versionRange: string;
|
|
3376
|
+
optional?: boolean | undefined;
|
|
3377
|
+
}[];
|
|
3378
|
+
channel: string;
|
|
3379
|
+
packageFiles: {
|
|
3380
|
+
path: string;
|
|
3381
|
+
size: number;
|
|
3382
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3383
|
+
contentType: string;
|
|
3384
|
+
sha256: string;
|
|
3385
|
+
contentRef: string;
|
|
3386
|
+
}[];
|
|
3387
|
+
baseFiles: {
|
|
3388
|
+
path: string;
|
|
3389
|
+
size: number;
|
|
3390
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3391
|
+
contentType: string;
|
|
3392
|
+
sha256: string;
|
|
3393
|
+
contentRef: string;
|
|
3394
|
+
}[];
|
|
3395
|
+
entrypoints: {
|
|
3396
|
+
specifier: string;
|
|
3397
|
+
sourcePath: string;
|
|
3398
|
+
}[];
|
|
3399
|
+
installProfiles: {
|
|
3400
|
+
name: string;
|
|
3401
|
+
importPath: string;
|
|
3402
|
+
targetPath: string;
|
|
3403
|
+
includeTests: boolean;
|
|
3404
|
+
stylePath?: string | undefined;
|
|
3405
|
+
}[];
|
|
3406
|
+
fcid?: string | undefined;
|
|
3407
|
+
contractVersionId?: string | undefined;
|
|
3408
|
+
};
|
|
3409
|
+
shards: Record<string, string[]>;
|
|
3410
|
+
}, {
|
|
3411
|
+
schemaVersion: "fragments.registry-index.v2";
|
|
3412
|
+
manifest: {
|
|
3413
|
+
components: Record<string, {
|
|
3414
|
+
name: string;
|
|
3415
|
+
componentId: string;
|
|
3416
|
+
publicRef: string;
|
|
3417
|
+
files: {
|
|
3418
|
+
path: string;
|
|
3419
|
+
size: number;
|
|
3420
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3421
|
+
contentType: string;
|
|
3422
|
+
sha256: string;
|
|
3423
|
+
contentRef: string;
|
|
3424
|
+
}[];
|
|
3425
|
+
status?: string | undefined;
|
|
3426
|
+
category?: string | undefined;
|
|
3427
|
+
contract?: unknown;
|
|
3428
|
+
provenance?: Record<string, unknown> | undefined;
|
|
3429
|
+
tier?: "composition" | "core" | "custom" | "utility" | undefined;
|
|
3430
|
+
examples?: unknown[] | undefined;
|
|
3431
|
+
styleFiles?: string[] | undefined;
|
|
3432
|
+
tokenDependencies?: string[] | undefined;
|
|
3433
|
+
runtimeDependencies?: {
|
|
3434
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3435
|
+
name: string;
|
|
3436
|
+
versionRange: string;
|
|
3437
|
+
optional?: boolean | undefined;
|
|
3438
|
+
}[] | undefined;
|
|
3439
|
+
peerDependencies?: {
|
|
3440
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3441
|
+
name: string;
|
|
3442
|
+
versionRange: string;
|
|
3443
|
+
optional?: boolean | undefined;
|
|
3444
|
+
}[] | undefined;
|
|
3445
|
+
internalDependencies?: string[] | undefined;
|
|
3446
|
+
exports?: {
|
|
3447
|
+
name: string;
|
|
3448
|
+
path?: string | undefined;
|
|
3449
|
+
kind?: "hook" | "type" | "component" | "style" | "utility" | undefined;
|
|
3450
|
+
}[] | undefined;
|
|
3451
|
+
}>;
|
|
3452
|
+
schemaVersion: "fragments.registry.v1";
|
|
3453
|
+
generatedAt: string;
|
|
3454
|
+
source: {
|
|
3455
|
+
kind: "package";
|
|
3456
|
+
packageName: string;
|
|
3457
|
+
version?: string | undefined;
|
|
3458
|
+
rootPath?: string | undefined;
|
|
3459
|
+
commitSha?: string | undefined;
|
|
3460
|
+
} | {
|
|
3461
|
+
kind: "github";
|
|
3462
|
+
repoFullName: string;
|
|
3463
|
+
commitSha: string;
|
|
3464
|
+
path?: string | undefined;
|
|
3465
|
+
} | {
|
|
3466
|
+
kind: "local";
|
|
3467
|
+
rootPath?: string | undefined;
|
|
3468
|
+
commitSha?: string | undefined;
|
|
3469
|
+
} | {
|
|
3470
|
+
kind: "manual";
|
|
3471
|
+
label: string;
|
|
3472
|
+
};
|
|
3473
|
+
name: string;
|
|
3474
|
+
registryId: string;
|
|
3475
|
+
registryHash: string;
|
|
3476
|
+
version: string;
|
|
3477
|
+
channel: string;
|
|
3478
|
+
fcid?: string | undefined;
|
|
3479
|
+
dependencies?: {
|
|
3480
|
+
type: "runtime" | "peer" | "dev" | "optional";
|
|
3481
|
+
name: string;
|
|
3482
|
+
versionRange: string;
|
|
3483
|
+
optional?: boolean | undefined;
|
|
3484
|
+
}[] | undefined;
|
|
3485
|
+
contractVersionId?: string | undefined;
|
|
3486
|
+
packageFiles?: {
|
|
3487
|
+
path: string;
|
|
3488
|
+
size: number;
|
|
3489
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3490
|
+
contentType: string;
|
|
3491
|
+
sha256: string;
|
|
3492
|
+
contentRef: string;
|
|
3493
|
+
}[] | undefined;
|
|
3494
|
+
baseFiles?: {
|
|
3495
|
+
path: string;
|
|
3496
|
+
size: number;
|
|
3497
|
+
role: "source" | "metadata" | "contract" | "token" | "style" | "example" | "test" | "story" | "asset" | "barrel";
|
|
3498
|
+
contentType: string;
|
|
3499
|
+
sha256: string;
|
|
3500
|
+
contentRef: string;
|
|
3501
|
+
}[] | undefined;
|
|
3502
|
+
entrypoints?: {
|
|
3503
|
+
specifier: string;
|
|
3504
|
+
sourcePath: string;
|
|
3505
|
+
}[] | undefined;
|
|
3506
|
+
installProfiles?: {
|
|
3507
|
+
name: string;
|
|
3508
|
+
importPath: string;
|
|
3509
|
+
targetPath: string;
|
|
3510
|
+
stylePath?: string | undefined;
|
|
3511
|
+
includeTests?: boolean | undefined;
|
|
3512
|
+
}[] | undefined;
|
|
3513
|
+
};
|
|
3514
|
+
shards: Record<string, string[]>;
|
|
3515
|
+
}>;
|
|
3516
|
+
/**
|
|
3517
|
+
* A short-lived pointer (`latest.json`) to an immutable versioned index. One hop only;
|
|
3518
|
+
* `index` is a relative path so the hop cannot leave the pointer's origin.
|
|
3519
|
+
*/
|
|
3520
|
+
declare const REGISTRY_POINTER_SCHEMA_VERSION = "fragments.registry-pointer.v1";
|
|
3521
|
+
declare const registryPointerSchema: z.ZodObject<{
|
|
3522
|
+
schemaVersion: z.ZodLiteral<"fragments.registry-pointer.v1">;
|
|
3523
|
+
registryId: z.ZodString;
|
|
3524
|
+
version: z.ZodString;
|
|
3525
|
+
registryHash: z.ZodString;
|
|
3526
|
+
index: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
3527
|
+
generatedAt: z.ZodString;
|
|
3528
|
+
}, "strip", z.ZodTypeAny, {
|
|
3529
|
+
schemaVersion: "fragments.registry-pointer.v1";
|
|
3530
|
+
generatedAt: string;
|
|
3531
|
+
index: string;
|
|
3532
|
+
registryId: string;
|
|
3533
|
+
registryHash: string;
|
|
3534
|
+
version: string;
|
|
3535
|
+
}, {
|
|
3536
|
+
schemaVersion: "fragments.registry-pointer.v1";
|
|
3537
|
+
generatedAt: string;
|
|
3538
|
+
index: string;
|
|
3539
|
+
registryId: string;
|
|
3540
|
+
registryHash: string;
|
|
3541
|
+
version: string;
|
|
3542
|
+
}>;
|
|
3543
|
+
type RegistryShard = z.infer<typeof registryShardSchema>;
|
|
3544
|
+
type RegistryIndex = z.infer<typeof registryIndexSchema>;
|
|
3545
|
+
type RegistryPointer = z.infer<typeof registryPointerSchema>;
|
|
3546
|
+
declare function buildRegistryPointer(index: RegistryIndex, indexPath: string): RegistryPointer;
|
|
3547
|
+
/** Every file path the manifest references, sorted and unique. */
|
|
3548
|
+
declare function registryManifestFilePaths(manifest: RegistryManifest): string[];
|
|
3549
|
+
/** Path → metadata for every manifest file; entrypoint-only paths map to `null`. */
|
|
3550
|
+
declare function registryManifestFileMetadata(manifest: RegistryManifest): Map<string, RegistryFile | null>;
|
|
3551
|
+
/**
|
|
3552
|
+
* Default shard layout: one shard per component directory, one shard per shared
|
|
3553
|
+
* top-level directory under `src/` (`shared/tokens.json`, `shared/utils.json`, …),
|
|
3554
|
+
* `shared/src.json` for files directly under `src/`, and `shared/package.json` for
|
|
3555
|
+
* package-root files (`package.json`, `fragments.json`) that only complete installs need.
|
|
3556
|
+
*/
|
|
3557
|
+
declare function defaultRegistryShardPath(path: string): string;
|
|
3558
|
+
interface ShardedRegistryArtifact {
|
|
3559
|
+
index: RegistryIndex;
|
|
3560
|
+
shards: Map<string, RegistryShard>;
|
|
3561
|
+
}
|
|
3562
|
+
declare function shardRegistryArtifact(artifact: RegistryArtifact, shardPathFor?: (path: string) => string): ShardedRegistryArtifact;
|
|
3563
|
+
/** The shards (sorted, unique) that carry the given registry file paths. */
|
|
3564
|
+
declare function registryShardsForPaths(index: RegistryIndex, paths: readonly string[]): string[];
|
|
3565
|
+
/**
|
|
3566
|
+
* Rebuild a v1-shaped artifact from an index plus the shards that cover `paths`.
|
|
3567
|
+
* Only the requested paths are materialised; every body is checked against the
|
|
3568
|
+
* manifest's hash and size before it is accepted.
|
|
3569
|
+
*/
|
|
3570
|
+
declare function assembleRegistryArtifact(args: {
|
|
3571
|
+
index: RegistryIndex;
|
|
3572
|
+
shards: ReadonlyMap<string, RegistryShard>;
|
|
3573
|
+
paths: readonly string[];
|
|
3574
|
+
}): RegistryArtifact;
|
|
2366
3575
|
|
|
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 };
|
|
3576
|
+
export { REGISTRY_ARTIFACT_SCHEMA_VERSION, REGISTRY_INDEX_SCHEMA_VERSION, REGISTRY_INSTALL_RECEIPT_SCHEMA_VERSION, REGISTRY_MANIFEST_SCHEMA_VERSION, REGISTRY_POINTER_SCHEMA_VERSION, REGISTRY_SHARD_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 RegistryIndex, type RegistryInstallProfile, type RegistryInstallReceipt, type RegistryInstallReceiptComponent, type RegistryInstallReceiptFile, type RegistryManifest, type RegistryManifestDraft, type RegistryPointer, type RegistryShard, type RegistrySource, type ShardedRegistryArtifact, assembleRegistryArtifact, assertValidRegistryArtifact, buildRegistryArtifact, buildRegistryFile, buildRegistryPointer, computeRegistryHash, defaultRegistryShardPath, finalizeRegistryManifest, hashRegistryFileContent, registryArtifactDigest, registryArtifactSchema, registryComponentExportSchema, registryComponentSchema, registryDependencySchema, registryDependencyTypeSchema, registryEntrypointSchema, registryFileContentSchema, registryFileRoleSchema, registryFileSchema, registryFileSize, registryIndexSchema, registryInstallProfileSchema, registryInstallReceiptComponentSchema, registryInstallReceiptFileSchema, registryInstallReceiptSchema, registryManifestCanonicalPreimage, registryManifestDraftSchema, registryManifestFileMetadata, registryManifestFilePaths, registryManifestSchema, registryPointerSchema, registryShardSchema, registryShardsForPaths, registrySourceSchema, shardRegistryArtifact };
|