@component-compass/plugin-core 0.1.23 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/diagnostic.d.ts +15 -27
  2. package/dist/diagnostic.js +4 -8
  3. package/dist/diagnostic.js.map +1 -1
  4. package/dist/index.d.ts +3 -11
  5. package/dist/index.js +1 -6
  6. package/dist/index.js.map +1 -1
  7. package/dist/occurrence-id.d.ts +4 -4
  8. package/dist/occurrence-id.js +4 -4
  9. package/dist/project-props.d.ts +4 -4
  10. package/dist/project-props.js +3 -3
  11. package/dist/scan-types.d.ts +16 -121
  12. package/dist/scan-types.js +1 -2
  13. package/dist/scan-types.js.map +1 -1
  14. package/dist/types.d.ts +0 -62
  15. package/dist/v2/component-key.d.ts +3 -0
  16. package/dist/v2/component-key.js +12 -0
  17. package/dist/v2/component-key.js.map +1 -0
  18. package/dist/v2/index.d.ts +9 -0
  19. package/dist/v2/index.js +9 -0
  20. package/dist/v2/index.js.map +1 -0
  21. package/dist/v2/resolved-occurrences.d.ts +4 -0
  22. package/dist/v2/resolved-occurrences.js +8 -0
  23. package/dist/v2/resolved-occurrences.js.map +1 -0
  24. package/dist/v2/scan-stats.d.ts +16 -0
  25. package/dist/v2/scan-stats.js +13 -0
  26. package/dist/v2/scan-stats.js.map +1 -0
  27. package/dist/v2/schema-version.d.ts +8 -0
  28. package/dist/v2/schema-version.js +16 -0
  29. package/dist/v2/schema-version.js.map +1 -0
  30. package/dist/v2/schema.d.ts +4875 -0
  31. package/dist/v2/schema.js +188 -0
  32. package/dist/v2/schema.js.map +1 -0
  33. package/dist/v2/tag-attribution.d.ts +9 -0
  34. package/dist/v2/tag-attribution.js +70 -0
  35. package/dist/v2/tag-attribution.js.map +1 -0
  36. package/dist/v2/tag-vocabulary.d.ts +17 -0
  37. package/dist/v2/tag-vocabulary.js +33 -0
  38. package/dist/v2/tag-vocabulary.js.map +1 -0
  39. package/dist/v2/validate.d.ts +18 -0
  40. package/dist/v2/validate.js +20 -0
  41. package/dist/v2/validate.js.map +1 -0
  42. package/package.json +19 -6
  43. package/dist/builder.d.ts +0 -21
  44. package/dist/builder.js +0 -49
  45. package/dist/builder.js.map +0 -1
  46. package/dist/enrichment.d.ts +0 -28
  47. package/dist/enrichment.js +0 -2
  48. package/dist/enrichment.js.map +0 -1
  49. package/dist/logical-id.d.ts +0 -4
  50. package/dist/logical-id.js +0 -48
  51. package/dist/logical-id.js.map +0 -1
  52. package/dist/output-types.d.ts +0 -316
  53. package/dist/output-types.js +0 -2
  54. package/dist/output-types.js.map +0 -1
  55. package/dist/schema.d.ts +0 -204
  56. package/dist/schema.js +0 -62
  57. package/dist/schema.js.map +0 -1
  58. package/dist/validate.d.ts +0 -9
  59. package/dist/validate.js +0 -18
  60. package/dist/validate.js.map +0 -1
  61. package/dist/via-types.d.ts +0 -64
  62. package/dist/via-types.js +0 -2
  63. package/dist/via-types.js.map +0 -1
@@ -0,0 +1,4875 @@
1
+ import { z } from "zod";
2
+ import type { Diagnostic } from "../diagnostic.js";
3
+ /** A non-null, non-array object. */
4
+ export declare function isPlainObject(value: unknown): value is object;
5
+ /** A value in an open list whose `kind` this version doesn't know. Its other fields are kept, unchecked. */
6
+ type OtherKind = {
7
+ kind: string;
8
+ };
9
+ /**
10
+ * The variants of an open `kind` list that this scanner writes: `T` without the fallback for a kind it doesn't know.
11
+ * The scanner builds these values as `Known<T>`, so the compiler checks each one against its variant.
12
+ */
13
+ export type Known<T extends {
14
+ kind: string;
15
+ }> = T extends unknown ? (string extends T["kind"] ? never : T) : never;
16
+ /**
17
+ * Whether an open-list value has the known `kind`, narrowing it to that variant. The narrowing holds for a value
18
+ * `validateArtifact` accepted, which checks a known kind's fields, and for one the scanner built as `Known<T>`.
19
+ */
20
+ export declare function isKind<T extends {
21
+ kind: string;
22
+ }, const K extends Known<T>["kind"]>(value: T, kind: K): value is Extract<T, {
23
+ kind: K;
24
+ }>;
25
+ declare const identitySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
26
+ kind: z.ZodLiteral<"package-export">;
27
+ packageName: z.ZodString;
28
+ publicEntry: z.ZodString;
29
+ exportName: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ kind: "package-export";
32
+ packageName: string;
33
+ publicEntry: string;
34
+ exportName: string;
35
+ }, {
36
+ kind: "package-export";
37
+ packageName: string;
38
+ publicEntry: string;
39
+ exportName: string;
40
+ }>, z.ZodObject<{
41
+ repoId: z.ZodString;
42
+ filePath: z.ZodString;
43
+ exportName: z.ZodString;
44
+ kind: z.ZodLiteral<"repository-declaration">;
45
+ }, "strip", z.ZodTypeAny, {
46
+ kind: "repository-declaration";
47
+ exportName: string;
48
+ repoId: string;
49
+ filePath: string;
50
+ }, {
51
+ kind: "repository-declaration";
52
+ exportName: string;
53
+ repoId: string;
54
+ filePath: string;
55
+ }>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"tag">;
57
+ tagName: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ kind: "tag";
60
+ tagName: string;
61
+ }, {
62
+ kind: "tag";
63
+ tagName: string;
64
+ }>]>;
65
+ export type Identity = z.infer<typeof identitySchema>;
66
+ declare const frameworkSchema: z.ZodEnum<["react", "vue"]>;
67
+ export type Framework = z.infer<typeof frameworkSchema>;
68
+ declare const creditSchema: z.ZodType<OtherKind | {
69
+ kind: "render";
70
+ } | {
71
+ kind: "argument";
72
+ callee: string;
73
+ index: number;
74
+ }, z.ZodTypeDef, OtherKind | {
75
+ kind: "render";
76
+ } | {
77
+ kind: "argument";
78
+ callee: string;
79
+ index: number;
80
+ }>;
81
+ export type Credit = z.infer<typeof creditSchema>;
82
+ declare const sourceLocSchema: z.ZodObject<{
83
+ file: z.ZodString;
84
+ line: z.ZodNumber;
85
+ column: z.ZodNumber;
86
+ }, "strip", z.ZodTypeAny, {
87
+ file: string;
88
+ line: number;
89
+ column: number;
90
+ }, {
91
+ file: string;
92
+ line: number;
93
+ column: number;
94
+ }>;
95
+ export type SourceLoc = z.infer<typeof sourceLocSchema>;
96
+ declare const traceStepSchema: z.ZodType<OtherKind | {
97
+ kind: "import";
98
+ specifier: string;
99
+ name: string;
100
+ } | {
101
+ kind: "tag";
102
+ written: string;
103
+ } | {
104
+ kind: "hoc";
105
+ callee: string;
106
+ } | {
107
+ kind: "lazy";
108
+ callee: string;
109
+ } | {
110
+ kind: "dynamic-map";
111
+ mapName: string;
112
+ mapLoc: {
113
+ file: string;
114
+ line: number;
115
+ column: number;
116
+ };
117
+ } | {
118
+ kind: "helper-call";
119
+ callee: string;
120
+ calleeFile: string;
121
+ } | {
122
+ kind: "prop-forward";
123
+ bindingName: string;
124
+ constructionSite: {
125
+ file: string;
126
+ line: number;
127
+ column: number;
128
+ };
129
+ }, z.ZodTypeDef, OtherKind | {
130
+ kind: "import";
131
+ specifier: string;
132
+ name: string;
133
+ } | {
134
+ kind: "tag";
135
+ written: string;
136
+ } | {
137
+ kind: "hoc";
138
+ callee: string;
139
+ } | {
140
+ kind: "lazy";
141
+ callee: string;
142
+ } | {
143
+ kind: "dynamic-map";
144
+ mapName: string;
145
+ mapLoc: {
146
+ file: string;
147
+ line: number;
148
+ column: number;
149
+ };
150
+ } | {
151
+ kind: "helper-call";
152
+ callee: string;
153
+ calleeFile: string;
154
+ } | {
155
+ kind: "prop-forward";
156
+ bindingName: string;
157
+ constructionSite: {
158
+ file: string;
159
+ line: number;
160
+ column: number;
161
+ };
162
+ }>;
163
+ export type TraceStep = z.infer<typeof traceStepSchema>;
164
+ /** The codes this scanner writes for a `chain-bailed` reason. The scan file's list is open. */
165
+ export type ChainBailedCode = "cycle-detected" | "chain-too-deep";
166
+ declare const unresolvedReasonSchema: z.ZodType<OtherKind | {
167
+ kind: "package-not-installed";
168
+ packageName: string;
169
+ } | {
170
+ kind: "module-not-found";
171
+ } | {
172
+ kind: "unbound-name";
173
+ name: string;
174
+ } | {
175
+ code: string;
176
+ kind: "chain-bailed";
177
+ }, z.ZodTypeDef, OtherKind | {
178
+ kind: "package-not-installed";
179
+ packageName: string;
180
+ } | {
181
+ kind: "module-not-found";
182
+ } | {
183
+ kind: "unbound-name";
184
+ name: string;
185
+ } | {
186
+ code: string;
187
+ kind: "chain-bailed";
188
+ }>;
189
+ export type UnresolvedReason = z.infer<typeof unresolvedReasonSchema>;
190
+ declare const resolutionSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
191
+ status: z.ZodLiteral<"resolved">;
192
+ componentId: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ status: "resolved";
195
+ componentId: string;
196
+ }, {
197
+ status: "resolved";
198
+ componentId: string;
199
+ }>, z.ZodObject<{
200
+ status: z.ZodLiteral<"unresolved">;
201
+ reason: z.ZodType<OtherKind | {
202
+ kind: "package-not-installed";
203
+ packageName: string;
204
+ } | {
205
+ kind: "module-not-found";
206
+ } | {
207
+ kind: "unbound-name";
208
+ name: string;
209
+ } | {
210
+ code: string;
211
+ kind: "chain-bailed";
212
+ }, z.ZodTypeDef, OtherKind | {
213
+ kind: "package-not-installed";
214
+ packageName: string;
215
+ } | {
216
+ kind: "module-not-found";
217
+ } | {
218
+ kind: "unbound-name";
219
+ name: string;
220
+ } | {
221
+ code: string;
222
+ kind: "chain-bailed";
223
+ }>;
224
+ /** Never present on an unresolved occurrence. */
225
+ componentId: z.ZodOptional<z.ZodNever>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ status: "unresolved";
228
+ reason: OtherKind | {
229
+ kind: "package-not-installed";
230
+ packageName: string;
231
+ } | {
232
+ kind: "module-not-found";
233
+ } | {
234
+ kind: "unbound-name";
235
+ name: string;
236
+ } | {
237
+ code: string;
238
+ kind: "chain-bailed";
239
+ };
240
+ componentId?: undefined;
241
+ }, {
242
+ status: "unresolved";
243
+ reason: OtherKind | {
244
+ kind: "package-not-installed";
245
+ packageName: string;
246
+ } | {
247
+ kind: "module-not-found";
248
+ } | {
249
+ kind: "unbound-name";
250
+ name: string;
251
+ } | {
252
+ code: string;
253
+ kind: "chain-bailed";
254
+ };
255
+ componentId?: undefined;
256
+ }>]>;
257
+ export type Resolution = z.infer<typeof resolutionSchema>;
258
+ /**
259
+ * Per-occurrence prop value (keyed by prop name on an occurrence's `props`).
260
+ * Same tiers as PropUsage minus `name`. Absent prop → key omitted.
261
+ */
262
+ export type PropValueState = {
263
+ tier: "written";
264
+ value: string | number | boolean | null;
265
+ } | {
266
+ tier: "written";
267
+ valueSet: (string | number | boolean)[];
268
+ } | {
269
+ tier: "reference";
270
+ ref: string;
271
+ } | {
272
+ tier: "dynamic";
273
+ };
274
+ declare const occurrenceSchema: z.ZodObject<{
275
+ occurrenceId: z.ZodString;
276
+ resolution: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
277
+ status: z.ZodLiteral<"resolved">;
278
+ componentId: z.ZodString;
279
+ }, "strip", z.ZodTypeAny, {
280
+ status: "resolved";
281
+ componentId: string;
282
+ }, {
283
+ status: "resolved";
284
+ componentId: string;
285
+ }>, z.ZodObject<{
286
+ status: z.ZodLiteral<"unresolved">;
287
+ reason: z.ZodType<OtherKind | {
288
+ kind: "package-not-installed";
289
+ packageName: string;
290
+ } | {
291
+ kind: "module-not-found";
292
+ } | {
293
+ kind: "unbound-name";
294
+ name: string;
295
+ } | {
296
+ code: string;
297
+ kind: "chain-bailed";
298
+ }, z.ZodTypeDef, OtherKind | {
299
+ kind: "package-not-installed";
300
+ packageName: string;
301
+ } | {
302
+ kind: "module-not-found";
303
+ } | {
304
+ kind: "unbound-name";
305
+ name: string;
306
+ } | {
307
+ code: string;
308
+ kind: "chain-bailed";
309
+ }>;
310
+ /** Never present on an unresolved occurrence. */
311
+ componentId: z.ZodOptional<z.ZodNever>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ status: "unresolved";
314
+ reason: OtherKind | {
315
+ kind: "package-not-installed";
316
+ packageName: string;
317
+ } | {
318
+ kind: "module-not-found";
319
+ } | {
320
+ kind: "unbound-name";
321
+ name: string;
322
+ } | {
323
+ code: string;
324
+ kind: "chain-bailed";
325
+ };
326
+ componentId?: undefined;
327
+ }, {
328
+ status: "unresolved";
329
+ reason: OtherKind | {
330
+ kind: "package-not-installed";
331
+ packageName: string;
332
+ } | {
333
+ kind: "module-not-found";
334
+ } | {
335
+ kind: "unbound-name";
336
+ name: string;
337
+ } | {
338
+ code: string;
339
+ kind: "chain-bailed";
340
+ };
341
+ componentId?: undefined;
342
+ }>]>;
343
+ filePath: z.ZodString;
344
+ line: z.ZodNumber;
345
+ column: z.ZodNumber;
346
+ credit: z.ZodType<OtherKind | {
347
+ kind: "render";
348
+ } | {
349
+ kind: "argument";
350
+ callee: string;
351
+ index: number;
352
+ }, z.ZodTypeDef, OtherKind | {
353
+ kind: "render";
354
+ } | {
355
+ kind: "argument";
356
+ callee: string;
357
+ index: number;
358
+ }>;
359
+ trace: z.ZodArray<z.ZodType<OtherKind | {
360
+ kind: "import";
361
+ specifier: string;
362
+ name: string;
363
+ } | {
364
+ kind: "tag";
365
+ written: string;
366
+ } | {
367
+ kind: "hoc";
368
+ callee: string;
369
+ } | {
370
+ kind: "lazy";
371
+ callee: string;
372
+ } | {
373
+ kind: "dynamic-map";
374
+ mapName: string;
375
+ mapLoc: {
376
+ file: string;
377
+ line: number;
378
+ column: number;
379
+ };
380
+ } | {
381
+ kind: "helper-call";
382
+ callee: string;
383
+ calleeFile: string;
384
+ } | {
385
+ kind: "prop-forward";
386
+ bindingName: string;
387
+ constructionSite: {
388
+ file: string;
389
+ line: number;
390
+ column: number;
391
+ };
392
+ }, z.ZodTypeDef, OtherKind | {
393
+ kind: "import";
394
+ specifier: string;
395
+ name: string;
396
+ } | {
397
+ kind: "tag";
398
+ written: string;
399
+ } | {
400
+ kind: "hoc";
401
+ callee: string;
402
+ } | {
403
+ kind: "lazy";
404
+ callee: string;
405
+ } | {
406
+ kind: "dynamic-map";
407
+ mapName: string;
408
+ mapLoc: {
409
+ file: string;
410
+ line: number;
411
+ column: number;
412
+ };
413
+ } | {
414
+ kind: "helper-call";
415
+ callee: string;
416
+ calleeFile: string;
417
+ } | {
418
+ kind: "prop-forward";
419
+ bindingName: string;
420
+ constructionSite: {
421
+ file: string;
422
+ line: number;
423
+ column: number;
424
+ };
425
+ }>, "many">;
426
+ props: z.ZodRecord<z.ZodString, z.ZodType<PropValueState, z.ZodTypeDef, PropValueState>>;
427
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
428
+ ownerComponentId: z.ZodOptional<z.ZodString>;
429
+ depth: z.ZodOptional<z.ZodNumber>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ filePath: string;
432
+ line: number;
433
+ column: number;
434
+ occurrenceId: string;
435
+ resolution: {
436
+ status: "resolved";
437
+ componentId: string;
438
+ } | {
439
+ status: "unresolved";
440
+ reason: OtherKind | {
441
+ kind: "package-not-installed";
442
+ packageName: string;
443
+ } | {
444
+ kind: "module-not-found";
445
+ } | {
446
+ kind: "unbound-name";
447
+ name: string;
448
+ } | {
449
+ code: string;
450
+ kind: "chain-bailed";
451
+ };
452
+ componentId?: undefined;
453
+ };
454
+ credit: OtherKind | {
455
+ kind: "render";
456
+ } | {
457
+ kind: "argument";
458
+ callee: string;
459
+ index: number;
460
+ };
461
+ trace: (OtherKind | {
462
+ kind: "import";
463
+ specifier: string;
464
+ name: string;
465
+ } | {
466
+ kind: "tag";
467
+ written: string;
468
+ } | {
469
+ kind: "hoc";
470
+ callee: string;
471
+ } | {
472
+ kind: "lazy";
473
+ callee: string;
474
+ } | {
475
+ kind: "dynamic-map";
476
+ mapName: string;
477
+ mapLoc: {
478
+ file: string;
479
+ line: number;
480
+ column: number;
481
+ };
482
+ } | {
483
+ kind: "helper-call";
484
+ callee: string;
485
+ calleeFile: string;
486
+ } | {
487
+ kind: "prop-forward";
488
+ bindingName: string;
489
+ constructionSite: {
490
+ file: string;
491
+ line: number;
492
+ column: number;
493
+ };
494
+ })[];
495
+ props: Record<string, PropValueState>;
496
+ events?: string[] | undefined;
497
+ ownerComponentId?: string | undefined;
498
+ depth?: number | undefined;
499
+ }, {
500
+ filePath: string;
501
+ line: number;
502
+ column: number;
503
+ occurrenceId: string;
504
+ resolution: {
505
+ status: "resolved";
506
+ componentId: string;
507
+ } | {
508
+ status: "unresolved";
509
+ reason: OtherKind | {
510
+ kind: "package-not-installed";
511
+ packageName: string;
512
+ } | {
513
+ kind: "module-not-found";
514
+ } | {
515
+ kind: "unbound-name";
516
+ name: string;
517
+ } | {
518
+ code: string;
519
+ kind: "chain-bailed";
520
+ };
521
+ componentId?: undefined;
522
+ };
523
+ credit: OtherKind | {
524
+ kind: "render";
525
+ } | {
526
+ kind: "argument";
527
+ callee: string;
528
+ index: number;
529
+ };
530
+ trace: (OtherKind | {
531
+ kind: "import";
532
+ specifier: string;
533
+ name: string;
534
+ } | {
535
+ kind: "tag";
536
+ written: string;
537
+ } | {
538
+ kind: "hoc";
539
+ callee: string;
540
+ } | {
541
+ kind: "lazy";
542
+ callee: string;
543
+ } | {
544
+ kind: "dynamic-map";
545
+ mapName: string;
546
+ mapLoc: {
547
+ file: string;
548
+ line: number;
549
+ column: number;
550
+ };
551
+ } | {
552
+ kind: "helper-call";
553
+ callee: string;
554
+ calleeFile: string;
555
+ } | {
556
+ kind: "prop-forward";
557
+ bindingName: string;
558
+ constructionSite: {
559
+ file: string;
560
+ line: number;
561
+ column: number;
562
+ };
563
+ })[];
564
+ props: Record<string, PropValueState>;
565
+ events?: string[] | undefined;
566
+ ownerComponentId?: string | undefined;
567
+ depth?: number | undefined;
568
+ }>;
569
+ export type Occurrence = z.infer<typeof occurrenceSchema>;
570
+ export type ResolvedOccurrence = Occurrence & {
571
+ resolution: {
572
+ status: "resolved";
573
+ componentId: string;
574
+ };
575
+ };
576
+ declare const attributionTargetSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
577
+ kind: z.ZodLiteral<"package">;
578
+ packageName: z.ZodString;
579
+ }, "strip", z.ZodTypeAny, {
580
+ kind: "package";
581
+ packageName: string;
582
+ }, {
583
+ kind: "package";
584
+ packageName: string;
585
+ }>, z.ZodObject<{
586
+ repoId: z.ZodString;
587
+ filePath: z.ZodString;
588
+ exportName: z.ZodString;
589
+ kind: z.ZodLiteral<"repository">;
590
+ }, "strip", z.ZodTypeAny, {
591
+ kind: "repository";
592
+ exportName: string;
593
+ repoId: string;
594
+ filePath: string;
595
+ }, {
596
+ kind: "repository";
597
+ exportName: string;
598
+ repoId: string;
599
+ filePath: string;
600
+ }>]>;
601
+ export type AttributionTarget = z.infer<typeof attributionTargetSchema>;
602
+ declare const evidenceRecordSchema: z.ZodObject<{
603
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
604
+ strength: z.ZodString;
605
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
606
+ locator: z.ZodUnion<[z.ZodObject<{
607
+ filePath: z.ZodString;
608
+ line: z.ZodNumber;
609
+ }, "strip", z.ZodTypeAny, {
610
+ filePath: string;
611
+ line: number;
612
+ }, {
613
+ filePath: string;
614
+ line: number;
615
+ }>, z.ZodObject<{
616
+ packageName: z.ZodString;
617
+ version: z.ZodNullable<z.ZodString>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ packageName: string;
620
+ version: string | null;
621
+ }, {
622
+ packageName: string;
623
+ version: string | null;
624
+ }>]>;
625
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
626
+ kind: z.ZodLiteral<"package">;
627
+ packageName: z.ZodString;
628
+ }, "strip", z.ZodTypeAny, {
629
+ kind: "package";
630
+ packageName: string;
631
+ }, {
632
+ kind: "package";
633
+ packageName: string;
634
+ }>, z.ZodObject<{
635
+ repoId: z.ZodString;
636
+ filePath: z.ZodString;
637
+ exportName: z.ZodString;
638
+ kind: z.ZodLiteral<"repository">;
639
+ }, "strip", z.ZodTypeAny, {
640
+ kind: "repository";
641
+ exportName: string;
642
+ repoId: string;
643
+ filePath: string;
644
+ }, {
645
+ kind: "repository";
646
+ exportName: string;
647
+ repoId: string;
648
+ filePath: string;
649
+ }>]>>;
650
+ disposition: z.ZodString;
651
+ }, "strip", z.ZodTypeAny, {
652
+ source: "registration" | "global-declaration" | "cem";
653
+ strength: string;
654
+ locator: {
655
+ filePath: string;
656
+ line: number;
657
+ } | {
658
+ packageName: string;
659
+ version: string | null;
660
+ };
661
+ disposition: string;
662
+ target?: {
663
+ kind: "package";
664
+ packageName: string;
665
+ } | {
666
+ kind: "repository";
667
+ exportName: string;
668
+ repoId: string;
669
+ filePath: string;
670
+ } | undefined;
671
+ }, {
672
+ source: "registration" | "global-declaration" | "cem";
673
+ strength: string;
674
+ locator: {
675
+ filePath: string;
676
+ line: number;
677
+ } | {
678
+ packageName: string;
679
+ version: string | null;
680
+ };
681
+ disposition: string;
682
+ target?: {
683
+ kind: "package";
684
+ packageName: string;
685
+ } | {
686
+ kind: "repository";
687
+ exportName: string;
688
+ repoId: string;
689
+ filePath: string;
690
+ } | undefined;
691
+ }>;
692
+ export type EvidenceRecord = z.infer<typeof evidenceRecordSchema>;
693
+ /** An evidence record as this scanner writes it: `strength` and `disposition` hold only values it knows. */
694
+ export type KnownEvidenceRecord = EvidenceRecord & {
695
+ strength: "observed" | "declared";
696
+ disposition: "supports" | "candidate" | "contradicts" | "unresolved";
697
+ };
698
+ declare const tagAttributionSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
699
+ status: z.ZodLiteral<"resolved">;
700
+ target: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
701
+ kind: z.ZodLiteral<"package">;
702
+ packageName: z.ZodString;
703
+ }, "strip", z.ZodTypeAny, {
704
+ kind: "package";
705
+ packageName: string;
706
+ }, {
707
+ kind: "package";
708
+ packageName: string;
709
+ }>, z.ZodObject<{
710
+ repoId: z.ZodString;
711
+ filePath: z.ZodString;
712
+ exportName: z.ZodString;
713
+ kind: z.ZodLiteral<"repository">;
714
+ }, "strip", z.ZodTypeAny, {
715
+ kind: "repository";
716
+ exportName: string;
717
+ repoId: string;
718
+ filePath: string;
719
+ }, {
720
+ kind: "repository";
721
+ exportName: string;
722
+ repoId: string;
723
+ filePath: string;
724
+ }>]>;
725
+ confidence: z.ZodString;
726
+ evidence: z.ZodArray<z.ZodObject<{
727
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
728
+ strength: z.ZodString;
729
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
730
+ locator: z.ZodUnion<[z.ZodObject<{
731
+ filePath: z.ZodString;
732
+ line: z.ZodNumber;
733
+ }, "strip", z.ZodTypeAny, {
734
+ filePath: string;
735
+ line: number;
736
+ }, {
737
+ filePath: string;
738
+ line: number;
739
+ }>, z.ZodObject<{
740
+ packageName: z.ZodString;
741
+ version: z.ZodNullable<z.ZodString>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ packageName: string;
744
+ version: string | null;
745
+ }, {
746
+ packageName: string;
747
+ version: string | null;
748
+ }>]>;
749
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
750
+ kind: z.ZodLiteral<"package">;
751
+ packageName: z.ZodString;
752
+ }, "strip", z.ZodTypeAny, {
753
+ kind: "package";
754
+ packageName: string;
755
+ }, {
756
+ kind: "package";
757
+ packageName: string;
758
+ }>, z.ZodObject<{
759
+ repoId: z.ZodString;
760
+ filePath: z.ZodString;
761
+ exportName: z.ZodString;
762
+ kind: z.ZodLiteral<"repository">;
763
+ }, "strip", z.ZodTypeAny, {
764
+ kind: "repository";
765
+ exportName: string;
766
+ repoId: string;
767
+ filePath: string;
768
+ }, {
769
+ kind: "repository";
770
+ exportName: string;
771
+ repoId: string;
772
+ filePath: string;
773
+ }>]>>;
774
+ disposition: z.ZodString;
775
+ }, "strip", z.ZodTypeAny, {
776
+ source: "registration" | "global-declaration" | "cem";
777
+ strength: string;
778
+ locator: {
779
+ filePath: string;
780
+ line: number;
781
+ } | {
782
+ packageName: string;
783
+ version: string | null;
784
+ };
785
+ disposition: string;
786
+ target?: {
787
+ kind: "package";
788
+ packageName: string;
789
+ } | {
790
+ kind: "repository";
791
+ exportName: string;
792
+ repoId: string;
793
+ filePath: string;
794
+ } | undefined;
795
+ }, {
796
+ source: "registration" | "global-declaration" | "cem";
797
+ strength: string;
798
+ locator: {
799
+ filePath: string;
800
+ line: number;
801
+ } | {
802
+ packageName: string;
803
+ version: string | null;
804
+ };
805
+ disposition: string;
806
+ target?: {
807
+ kind: "package";
808
+ packageName: string;
809
+ } | {
810
+ kind: "repository";
811
+ exportName: string;
812
+ repoId: string;
813
+ filePath: string;
814
+ } | undefined;
815
+ }>, "many">;
816
+ }, "strip", z.ZodTypeAny, {
817
+ status: "resolved";
818
+ target: {
819
+ kind: "package";
820
+ packageName: string;
821
+ } | {
822
+ kind: "repository";
823
+ exportName: string;
824
+ repoId: string;
825
+ filePath: string;
826
+ };
827
+ confidence: string;
828
+ evidence: {
829
+ source: "registration" | "global-declaration" | "cem";
830
+ strength: string;
831
+ locator: {
832
+ filePath: string;
833
+ line: number;
834
+ } | {
835
+ packageName: string;
836
+ version: string | null;
837
+ };
838
+ disposition: string;
839
+ target?: {
840
+ kind: "package";
841
+ packageName: string;
842
+ } | {
843
+ kind: "repository";
844
+ exportName: string;
845
+ repoId: string;
846
+ filePath: string;
847
+ } | undefined;
848
+ }[];
849
+ }, {
850
+ status: "resolved";
851
+ target: {
852
+ kind: "package";
853
+ packageName: string;
854
+ } | {
855
+ kind: "repository";
856
+ exportName: string;
857
+ repoId: string;
858
+ filePath: string;
859
+ };
860
+ confidence: string;
861
+ evidence: {
862
+ source: "registration" | "global-declaration" | "cem";
863
+ strength: string;
864
+ locator: {
865
+ filePath: string;
866
+ line: number;
867
+ } | {
868
+ packageName: string;
869
+ version: string | null;
870
+ };
871
+ disposition: string;
872
+ target?: {
873
+ kind: "package";
874
+ packageName: string;
875
+ } | {
876
+ kind: "repository";
877
+ exportName: string;
878
+ repoId: string;
879
+ filePath: string;
880
+ } | undefined;
881
+ }[];
882
+ }>, z.ZodObject<{
883
+ status: z.ZodLiteral<"unknown">;
884
+ reason: z.ZodString;
885
+ evidence: z.ZodArray<z.ZodObject<{
886
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
887
+ strength: z.ZodString;
888
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
889
+ locator: z.ZodUnion<[z.ZodObject<{
890
+ filePath: z.ZodString;
891
+ line: z.ZodNumber;
892
+ }, "strip", z.ZodTypeAny, {
893
+ filePath: string;
894
+ line: number;
895
+ }, {
896
+ filePath: string;
897
+ line: number;
898
+ }>, z.ZodObject<{
899
+ packageName: z.ZodString;
900
+ version: z.ZodNullable<z.ZodString>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ packageName: string;
903
+ version: string | null;
904
+ }, {
905
+ packageName: string;
906
+ version: string | null;
907
+ }>]>;
908
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
909
+ kind: z.ZodLiteral<"package">;
910
+ packageName: z.ZodString;
911
+ }, "strip", z.ZodTypeAny, {
912
+ kind: "package";
913
+ packageName: string;
914
+ }, {
915
+ kind: "package";
916
+ packageName: string;
917
+ }>, z.ZodObject<{
918
+ repoId: z.ZodString;
919
+ filePath: z.ZodString;
920
+ exportName: z.ZodString;
921
+ kind: z.ZodLiteral<"repository">;
922
+ }, "strip", z.ZodTypeAny, {
923
+ kind: "repository";
924
+ exportName: string;
925
+ repoId: string;
926
+ filePath: string;
927
+ }, {
928
+ kind: "repository";
929
+ exportName: string;
930
+ repoId: string;
931
+ filePath: string;
932
+ }>]>>;
933
+ disposition: z.ZodString;
934
+ }, "strip", z.ZodTypeAny, {
935
+ source: "registration" | "global-declaration" | "cem";
936
+ strength: string;
937
+ locator: {
938
+ filePath: string;
939
+ line: number;
940
+ } | {
941
+ packageName: string;
942
+ version: string | null;
943
+ };
944
+ disposition: string;
945
+ target?: {
946
+ kind: "package";
947
+ packageName: string;
948
+ } | {
949
+ kind: "repository";
950
+ exportName: string;
951
+ repoId: string;
952
+ filePath: string;
953
+ } | undefined;
954
+ }, {
955
+ source: "registration" | "global-declaration" | "cem";
956
+ strength: string;
957
+ locator: {
958
+ filePath: string;
959
+ line: number;
960
+ } | {
961
+ packageName: string;
962
+ version: string | null;
963
+ };
964
+ disposition: string;
965
+ target?: {
966
+ kind: "package";
967
+ packageName: string;
968
+ } | {
969
+ kind: "repository";
970
+ exportName: string;
971
+ repoId: string;
972
+ filePath: string;
973
+ } | undefined;
974
+ }>, "many">;
975
+ }, "strip", z.ZodTypeAny, {
976
+ status: "unknown";
977
+ reason: string;
978
+ evidence: {
979
+ source: "registration" | "global-declaration" | "cem";
980
+ strength: string;
981
+ locator: {
982
+ filePath: string;
983
+ line: number;
984
+ } | {
985
+ packageName: string;
986
+ version: string | null;
987
+ };
988
+ disposition: string;
989
+ target?: {
990
+ kind: "package";
991
+ packageName: string;
992
+ } | {
993
+ kind: "repository";
994
+ exportName: string;
995
+ repoId: string;
996
+ filePath: string;
997
+ } | undefined;
998
+ }[];
999
+ }, {
1000
+ status: "unknown";
1001
+ reason: string;
1002
+ evidence: {
1003
+ source: "registration" | "global-declaration" | "cem";
1004
+ strength: string;
1005
+ locator: {
1006
+ filePath: string;
1007
+ line: number;
1008
+ } | {
1009
+ packageName: string;
1010
+ version: string | null;
1011
+ };
1012
+ disposition: string;
1013
+ target?: {
1014
+ kind: "package";
1015
+ packageName: string;
1016
+ } | {
1017
+ kind: "repository";
1018
+ exportName: string;
1019
+ repoId: string;
1020
+ filePath: string;
1021
+ } | undefined;
1022
+ }[];
1023
+ }>, z.ZodObject<{
1024
+ status: z.ZodLiteral<"conflict">;
1025
+ strongestClass: z.ZodString;
1026
+ candidates: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1027
+ kind: z.ZodLiteral<"package">;
1028
+ packageName: z.ZodString;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ kind: "package";
1031
+ packageName: string;
1032
+ }, {
1033
+ kind: "package";
1034
+ packageName: string;
1035
+ }>, z.ZodObject<{
1036
+ repoId: z.ZodString;
1037
+ filePath: z.ZodString;
1038
+ exportName: z.ZodString;
1039
+ kind: z.ZodLiteral<"repository">;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ kind: "repository";
1042
+ exportName: string;
1043
+ repoId: string;
1044
+ filePath: string;
1045
+ }, {
1046
+ kind: "repository";
1047
+ exportName: string;
1048
+ repoId: string;
1049
+ filePath: string;
1050
+ }>]>, "many">;
1051
+ evidence: z.ZodArray<z.ZodObject<{
1052
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
1053
+ strength: z.ZodString;
1054
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
1055
+ locator: z.ZodUnion<[z.ZodObject<{
1056
+ filePath: z.ZodString;
1057
+ line: z.ZodNumber;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ filePath: string;
1060
+ line: number;
1061
+ }, {
1062
+ filePath: string;
1063
+ line: number;
1064
+ }>, z.ZodObject<{
1065
+ packageName: z.ZodString;
1066
+ version: z.ZodNullable<z.ZodString>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ packageName: string;
1069
+ version: string | null;
1070
+ }, {
1071
+ packageName: string;
1072
+ version: string | null;
1073
+ }>]>;
1074
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1075
+ kind: z.ZodLiteral<"package">;
1076
+ packageName: z.ZodString;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ kind: "package";
1079
+ packageName: string;
1080
+ }, {
1081
+ kind: "package";
1082
+ packageName: string;
1083
+ }>, z.ZodObject<{
1084
+ repoId: z.ZodString;
1085
+ filePath: z.ZodString;
1086
+ exportName: z.ZodString;
1087
+ kind: z.ZodLiteral<"repository">;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ kind: "repository";
1090
+ exportName: string;
1091
+ repoId: string;
1092
+ filePath: string;
1093
+ }, {
1094
+ kind: "repository";
1095
+ exportName: string;
1096
+ repoId: string;
1097
+ filePath: string;
1098
+ }>]>>;
1099
+ disposition: z.ZodString;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ source: "registration" | "global-declaration" | "cem";
1102
+ strength: string;
1103
+ locator: {
1104
+ filePath: string;
1105
+ line: number;
1106
+ } | {
1107
+ packageName: string;
1108
+ version: string | null;
1109
+ };
1110
+ disposition: string;
1111
+ target?: {
1112
+ kind: "package";
1113
+ packageName: string;
1114
+ } | {
1115
+ kind: "repository";
1116
+ exportName: string;
1117
+ repoId: string;
1118
+ filePath: string;
1119
+ } | undefined;
1120
+ }, {
1121
+ source: "registration" | "global-declaration" | "cem";
1122
+ strength: string;
1123
+ locator: {
1124
+ filePath: string;
1125
+ line: number;
1126
+ } | {
1127
+ packageName: string;
1128
+ version: string | null;
1129
+ };
1130
+ disposition: string;
1131
+ target?: {
1132
+ kind: "package";
1133
+ packageName: string;
1134
+ } | {
1135
+ kind: "repository";
1136
+ exportName: string;
1137
+ repoId: string;
1138
+ filePath: string;
1139
+ } | undefined;
1140
+ }>, "many">;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ status: "conflict";
1143
+ evidence: {
1144
+ source: "registration" | "global-declaration" | "cem";
1145
+ strength: string;
1146
+ locator: {
1147
+ filePath: string;
1148
+ line: number;
1149
+ } | {
1150
+ packageName: string;
1151
+ version: string | null;
1152
+ };
1153
+ disposition: string;
1154
+ target?: {
1155
+ kind: "package";
1156
+ packageName: string;
1157
+ } | {
1158
+ kind: "repository";
1159
+ exportName: string;
1160
+ repoId: string;
1161
+ filePath: string;
1162
+ } | undefined;
1163
+ }[];
1164
+ strongestClass: string;
1165
+ candidates: ({
1166
+ kind: "package";
1167
+ packageName: string;
1168
+ } | {
1169
+ kind: "repository";
1170
+ exportName: string;
1171
+ repoId: string;
1172
+ filePath: string;
1173
+ })[];
1174
+ }, {
1175
+ status: "conflict";
1176
+ evidence: {
1177
+ source: "registration" | "global-declaration" | "cem";
1178
+ strength: string;
1179
+ locator: {
1180
+ filePath: string;
1181
+ line: number;
1182
+ } | {
1183
+ packageName: string;
1184
+ version: string | null;
1185
+ };
1186
+ disposition: string;
1187
+ target?: {
1188
+ kind: "package";
1189
+ packageName: string;
1190
+ } | {
1191
+ kind: "repository";
1192
+ exportName: string;
1193
+ repoId: string;
1194
+ filePath: string;
1195
+ } | undefined;
1196
+ }[];
1197
+ strongestClass: string;
1198
+ candidates: ({
1199
+ kind: "package";
1200
+ packageName: string;
1201
+ } | {
1202
+ kind: "repository";
1203
+ exportName: string;
1204
+ repoId: string;
1205
+ filePath: string;
1206
+ })[];
1207
+ }>]>;
1208
+ export type TagAttribution = z.infer<typeof tagAttributionSchema>;
1209
+ /** A tag attribution as this scanner writes it: its open values and its evidence hold only values it knows. */
1210
+ export type KnownTagAttribution = {
1211
+ evidence: KnownEvidenceRecord[];
1212
+ } & ((Extract<TagAttribution, {
1213
+ status: "resolved";
1214
+ }> & {
1215
+ confidence: KnownEvidenceRecord["strength"];
1216
+ }) | (Extract<TagAttribution, {
1217
+ status: "unknown";
1218
+ }> & {
1219
+ reason: "absent" | "unresolved";
1220
+ }) | (Extract<TagAttribution, {
1221
+ status: "conflict";
1222
+ }> & {
1223
+ strongestClass: KnownEvidenceRecord["strength"];
1224
+ }));
1225
+ /** One enumerable value bucket in a component-grain prop distribution. */
1226
+ export type PropValueEntry = {
1227
+ provenance: "written";
1228
+ value: string | number | boolean | null;
1229
+ count: number;
1230
+ } | {
1231
+ provenance: "written";
1232
+ valueSet: (string | number | boolean)[];
1233
+ count: number;
1234
+ } | {
1235
+ provenance: "reference";
1236
+ ref: string;
1237
+ count: number;
1238
+ };
1239
+ declare const propDistributionSchema: z.ZodObject<{
1240
+ values: z.ZodArray<z.ZodType<PropValueEntry, z.ZodTypeDef, PropValueEntry>, "many">;
1241
+ dynamic: z.ZodNumber;
1242
+ omitted: z.ZodNumber;
1243
+ other: z.ZodOptional<z.ZodNumber>;
1244
+ truncated: z.ZodOptional<z.ZodNumber>;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ values: PropValueEntry[];
1247
+ dynamic: number;
1248
+ omitted: number;
1249
+ other?: number | undefined;
1250
+ truncated?: number | undefined;
1251
+ }, {
1252
+ values: PropValueEntry[];
1253
+ dynamic: number;
1254
+ omitted: number;
1255
+ other?: number | undefined;
1256
+ truncated?: number | undefined;
1257
+ }>;
1258
+ export type PropDistribution = z.infer<typeof propDistributionSchema>;
1259
+ /**
1260
+ * One prop in a source-derived declared API. Every field is explicit-only:
1261
+ * present iff the declaration site literally states it.
1262
+ */
1263
+ export type DeclaredProp = {
1264
+ /** Inline type annotation as verbatim source text (Vue type-literal only;
1265
+ * absent for React — a destructure exposes no reliable type). */
1266
+ type?: string;
1267
+ /** Optionality when stated. Vue: from the `?` marker. React: `false` when the
1268
+ * prop has any default (a default makes it optional); otherwise absent. */
1269
+ required?: boolean;
1270
+ /** Literal default value, when the default is a literal. Same union as
1271
+ * `PropValueEntry.value`, so it stringifies identically to observed written
1272
+ * values. Absent for no default or a non-literal default. */
1273
+ default?: string | number | boolean | null;
1274
+ };
1275
+ /**
1276
+ * Source-derived declared prop API for a local component. Absent on a
1277
+ * component when the declaration site is unreadable (see readability gate).
1278
+ */
1279
+ export type DeclaredPropApi = {
1280
+ /** Prop name → what the site explicitly states. Keys in source order. */
1281
+ props: Record<string, DeclaredProp>;
1282
+ /** Component destructures `...rest` / declares an index signature. */
1283
+ hasRest: boolean;
1284
+ };
1285
+ export type CompositionRollup = {
1286
+ /** child componentId → count of occurrences owned by this component (owner-edge children). */
1287
+ rendersByCount: Record<string, number>;
1288
+ /** parent componentId → count of occurrences in which this component is owned by that parent. */
1289
+ renderedByCount: Record<string, number>;
1290
+ /** # of this component's occurrences with no ownerComponentId. */
1291
+ isRootCount: number;
1292
+ /** # of this component's occurrences whose component has empty rendersByCount. */
1293
+ isLeafCount: number;
1294
+ };
1295
+ declare const componentSchema: z.ZodEffects<z.ZodObject<{
1296
+ id: z.ZodString;
1297
+ identity: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1298
+ kind: z.ZodLiteral<"package-export">;
1299
+ packageName: z.ZodString;
1300
+ publicEntry: z.ZodString;
1301
+ exportName: z.ZodString;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ kind: "package-export";
1304
+ packageName: string;
1305
+ publicEntry: string;
1306
+ exportName: string;
1307
+ }, {
1308
+ kind: "package-export";
1309
+ packageName: string;
1310
+ publicEntry: string;
1311
+ exportName: string;
1312
+ }>, z.ZodObject<{
1313
+ repoId: z.ZodString;
1314
+ filePath: z.ZodString;
1315
+ exportName: z.ZodString;
1316
+ kind: z.ZodLiteral<"repository-declaration">;
1317
+ }, "strip", z.ZodTypeAny, {
1318
+ kind: "repository-declaration";
1319
+ exportName: string;
1320
+ repoId: string;
1321
+ filePath: string;
1322
+ }, {
1323
+ kind: "repository-declaration";
1324
+ exportName: string;
1325
+ repoId: string;
1326
+ filePath: string;
1327
+ }>, z.ZodObject<{
1328
+ kind: z.ZodLiteral<"tag">;
1329
+ tagName: z.ZodString;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ kind: "tag";
1332
+ tagName: string;
1333
+ }, {
1334
+ kind: "tag";
1335
+ tagName: string;
1336
+ }>]>;
1337
+ /** Package exports and repository declarations only; absent on tags. */
1338
+ framework: z.ZodOptional<z.ZodEnum<["react", "vue"]>>;
1339
+ /** Tag identities only; computed from this scan's evidence. */
1340
+ attribution: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
1341
+ status: z.ZodLiteral<"resolved">;
1342
+ target: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1343
+ kind: z.ZodLiteral<"package">;
1344
+ packageName: z.ZodString;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ kind: "package";
1347
+ packageName: string;
1348
+ }, {
1349
+ kind: "package";
1350
+ packageName: string;
1351
+ }>, z.ZodObject<{
1352
+ repoId: z.ZodString;
1353
+ filePath: z.ZodString;
1354
+ exportName: z.ZodString;
1355
+ kind: z.ZodLiteral<"repository">;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ kind: "repository";
1358
+ exportName: string;
1359
+ repoId: string;
1360
+ filePath: string;
1361
+ }, {
1362
+ kind: "repository";
1363
+ exportName: string;
1364
+ repoId: string;
1365
+ filePath: string;
1366
+ }>]>;
1367
+ confidence: z.ZodString;
1368
+ evidence: z.ZodArray<z.ZodObject<{
1369
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
1370
+ strength: z.ZodString;
1371
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
1372
+ locator: z.ZodUnion<[z.ZodObject<{
1373
+ filePath: z.ZodString;
1374
+ line: z.ZodNumber;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ filePath: string;
1377
+ line: number;
1378
+ }, {
1379
+ filePath: string;
1380
+ line: number;
1381
+ }>, z.ZodObject<{
1382
+ packageName: z.ZodString;
1383
+ version: z.ZodNullable<z.ZodString>;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ packageName: string;
1386
+ version: string | null;
1387
+ }, {
1388
+ packageName: string;
1389
+ version: string | null;
1390
+ }>]>;
1391
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1392
+ kind: z.ZodLiteral<"package">;
1393
+ packageName: z.ZodString;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ kind: "package";
1396
+ packageName: string;
1397
+ }, {
1398
+ kind: "package";
1399
+ packageName: string;
1400
+ }>, z.ZodObject<{
1401
+ repoId: z.ZodString;
1402
+ filePath: z.ZodString;
1403
+ exportName: z.ZodString;
1404
+ kind: z.ZodLiteral<"repository">;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ kind: "repository";
1407
+ exportName: string;
1408
+ repoId: string;
1409
+ filePath: string;
1410
+ }, {
1411
+ kind: "repository";
1412
+ exportName: string;
1413
+ repoId: string;
1414
+ filePath: string;
1415
+ }>]>>;
1416
+ disposition: z.ZodString;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ source: "registration" | "global-declaration" | "cem";
1419
+ strength: string;
1420
+ locator: {
1421
+ filePath: string;
1422
+ line: number;
1423
+ } | {
1424
+ packageName: string;
1425
+ version: string | null;
1426
+ };
1427
+ disposition: string;
1428
+ target?: {
1429
+ kind: "package";
1430
+ packageName: string;
1431
+ } | {
1432
+ kind: "repository";
1433
+ exportName: string;
1434
+ repoId: string;
1435
+ filePath: string;
1436
+ } | undefined;
1437
+ }, {
1438
+ source: "registration" | "global-declaration" | "cem";
1439
+ strength: string;
1440
+ locator: {
1441
+ filePath: string;
1442
+ line: number;
1443
+ } | {
1444
+ packageName: string;
1445
+ version: string | null;
1446
+ };
1447
+ disposition: string;
1448
+ target?: {
1449
+ kind: "package";
1450
+ packageName: string;
1451
+ } | {
1452
+ kind: "repository";
1453
+ exportName: string;
1454
+ repoId: string;
1455
+ filePath: string;
1456
+ } | undefined;
1457
+ }>, "many">;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ status: "resolved";
1460
+ target: {
1461
+ kind: "package";
1462
+ packageName: string;
1463
+ } | {
1464
+ kind: "repository";
1465
+ exportName: string;
1466
+ repoId: string;
1467
+ filePath: string;
1468
+ };
1469
+ confidence: string;
1470
+ evidence: {
1471
+ source: "registration" | "global-declaration" | "cem";
1472
+ strength: string;
1473
+ locator: {
1474
+ filePath: string;
1475
+ line: number;
1476
+ } | {
1477
+ packageName: string;
1478
+ version: string | null;
1479
+ };
1480
+ disposition: string;
1481
+ target?: {
1482
+ kind: "package";
1483
+ packageName: string;
1484
+ } | {
1485
+ kind: "repository";
1486
+ exportName: string;
1487
+ repoId: string;
1488
+ filePath: string;
1489
+ } | undefined;
1490
+ }[];
1491
+ }, {
1492
+ status: "resolved";
1493
+ target: {
1494
+ kind: "package";
1495
+ packageName: string;
1496
+ } | {
1497
+ kind: "repository";
1498
+ exportName: string;
1499
+ repoId: string;
1500
+ filePath: string;
1501
+ };
1502
+ confidence: string;
1503
+ evidence: {
1504
+ source: "registration" | "global-declaration" | "cem";
1505
+ strength: string;
1506
+ locator: {
1507
+ filePath: string;
1508
+ line: number;
1509
+ } | {
1510
+ packageName: string;
1511
+ version: string | null;
1512
+ };
1513
+ disposition: string;
1514
+ target?: {
1515
+ kind: "package";
1516
+ packageName: string;
1517
+ } | {
1518
+ kind: "repository";
1519
+ exportName: string;
1520
+ repoId: string;
1521
+ filePath: string;
1522
+ } | undefined;
1523
+ }[];
1524
+ }>, z.ZodObject<{
1525
+ status: z.ZodLiteral<"unknown">;
1526
+ reason: z.ZodString;
1527
+ evidence: z.ZodArray<z.ZodObject<{
1528
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
1529
+ strength: z.ZodString;
1530
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
1531
+ locator: z.ZodUnion<[z.ZodObject<{
1532
+ filePath: z.ZodString;
1533
+ line: z.ZodNumber;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ filePath: string;
1536
+ line: number;
1537
+ }, {
1538
+ filePath: string;
1539
+ line: number;
1540
+ }>, z.ZodObject<{
1541
+ packageName: z.ZodString;
1542
+ version: z.ZodNullable<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ packageName: string;
1545
+ version: string | null;
1546
+ }, {
1547
+ packageName: string;
1548
+ version: string | null;
1549
+ }>]>;
1550
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1551
+ kind: z.ZodLiteral<"package">;
1552
+ packageName: z.ZodString;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ kind: "package";
1555
+ packageName: string;
1556
+ }, {
1557
+ kind: "package";
1558
+ packageName: string;
1559
+ }>, z.ZodObject<{
1560
+ repoId: z.ZodString;
1561
+ filePath: z.ZodString;
1562
+ exportName: z.ZodString;
1563
+ kind: z.ZodLiteral<"repository">;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ kind: "repository";
1566
+ exportName: string;
1567
+ repoId: string;
1568
+ filePath: string;
1569
+ }, {
1570
+ kind: "repository";
1571
+ exportName: string;
1572
+ repoId: string;
1573
+ filePath: string;
1574
+ }>]>>;
1575
+ disposition: z.ZodString;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ source: "registration" | "global-declaration" | "cem";
1578
+ strength: string;
1579
+ locator: {
1580
+ filePath: string;
1581
+ line: number;
1582
+ } | {
1583
+ packageName: string;
1584
+ version: string | null;
1585
+ };
1586
+ disposition: string;
1587
+ target?: {
1588
+ kind: "package";
1589
+ packageName: string;
1590
+ } | {
1591
+ kind: "repository";
1592
+ exportName: string;
1593
+ repoId: string;
1594
+ filePath: string;
1595
+ } | undefined;
1596
+ }, {
1597
+ source: "registration" | "global-declaration" | "cem";
1598
+ strength: string;
1599
+ locator: {
1600
+ filePath: string;
1601
+ line: number;
1602
+ } | {
1603
+ packageName: string;
1604
+ version: string | null;
1605
+ };
1606
+ disposition: string;
1607
+ target?: {
1608
+ kind: "package";
1609
+ packageName: string;
1610
+ } | {
1611
+ kind: "repository";
1612
+ exportName: string;
1613
+ repoId: string;
1614
+ filePath: string;
1615
+ } | undefined;
1616
+ }>, "many">;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ status: "unknown";
1619
+ reason: string;
1620
+ evidence: {
1621
+ source: "registration" | "global-declaration" | "cem";
1622
+ strength: string;
1623
+ locator: {
1624
+ filePath: string;
1625
+ line: number;
1626
+ } | {
1627
+ packageName: string;
1628
+ version: string | null;
1629
+ };
1630
+ disposition: string;
1631
+ target?: {
1632
+ kind: "package";
1633
+ packageName: string;
1634
+ } | {
1635
+ kind: "repository";
1636
+ exportName: string;
1637
+ repoId: string;
1638
+ filePath: string;
1639
+ } | undefined;
1640
+ }[];
1641
+ }, {
1642
+ status: "unknown";
1643
+ reason: string;
1644
+ evidence: {
1645
+ source: "registration" | "global-declaration" | "cem";
1646
+ strength: string;
1647
+ locator: {
1648
+ filePath: string;
1649
+ line: number;
1650
+ } | {
1651
+ packageName: string;
1652
+ version: string | null;
1653
+ };
1654
+ disposition: string;
1655
+ target?: {
1656
+ kind: "package";
1657
+ packageName: string;
1658
+ } | {
1659
+ kind: "repository";
1660
+ exportName: string;
1661
+ repoId: string;
1662
+ filePath: string;
1663
+ } | undefined;
1664
+ }[];
1665
+ }>, z.ZodObject<{
1666
+ status: z.ZodLiteral<"conflict">;
1667
+ strongestClass: z.ZodString;
1668
+ candidates: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1669
+ kind: z.ZodLiteral<"package">;
1670
+ packageName: z.ZodString;
1671
+ }, "strip", z.ZodTypeAny, {
1672
+ kind: "package";
1673
+ packageName: string;
1674
+ }, {
1675
+ kind: "package";
1676
+ packageName: string;
1677
+ }>, z.ZodObject<{
1678
+ repoId: z.ZodString;
1679
+ filePath: z.ZodString;
1680
+ exportName: z.ZodString;
1681
+ kind: z.ZodLiteral<"repository">;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ kind: "repository";
1684
+ exportName: string;
1685
+ repoId: string;
1686
+ filePath: string;
1687
+ }, {
1688
+ kind: "repository";
1689
+ exportName: string;
1690
+ repoId: string;
1691
+ filePath: string;
1692
+ }>]>, "many">;
1693
+ evidence: z.ZodArray<z.ZodObject<{
1694
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
1695
+ strength: z.ZodString;
1696
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
1697
+ locator: z.ZodUnion<[z.ZodObject<{
1698
+ filePath: z.ZodString;
1699
+ line: z.ZodNumber;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ filePath: string;
1702
+ line: number;
1703
+ }, {
1704
+ filePath: string;
1705
+ line: number;
1706
+ }>, z.ZodObject<{
1707
+ packageName: z.ZodString;
1708
+ version: z.ZodNullable<z.ZodString>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ packageName: string;
1711
+ version: string | null;
1712
+ }, {
1713
+ packageName: string;
1714
+ version: string | null;
1715
+ }>]>;
1716
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1717
+ kind: z.ZodLiteral<"package">;
1718
+ packageName: z.ZodString;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ kind: "package";
1721
+ packageName: string;
1722
+ }, {
1723
+ kind: "package";
1724
+ packageName: string;
1725
+ }>, z.ZodObject<{
1726
+ repoId: z.ZodString;
1727
+ filePath: z.ZodString;
1728
+ exportName: z.ZodString;
1729
+ kind: z.ZodLiteral<"repository">;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ kind: "repository";
1732
+ exportName: string;
1733
+ repoId: string;
1734
+ filePath: string;
1735
+ }, {
1736
+ kind: "repository";
1737
+ exportName: string;
1738
+ repoId: string;
1739
+ filePath: string;
1740
+ }>]>>;
1741
+ disposition: z.ZodString;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ source: "registration" | "global-declaration" | "cem";
1744
+ strength: string;
1745
+ locator: {
1746
+ filePath: string;
1747
+ line: number;
1748
+ } | {
1749
+ packageName: string;
1750
+ version: string | null;
1751
+ };
1752
+ disposition: string;
1753
+ target?: {
1754
+ kind: "package";
1755
+ packageName: string;
1756
+ } | {
1757
+ kind: "repository";
1758
+ exportName: string;
1759
+ repoId: string;
1760
+ filePath: string;
1761
+ } | undefined;
1762
+ }, {
1763
+ source: "registration" | "global-declaration" | "cem";
1764
+ strength: string;
1765
+ locator: {
1766
+ filePath: string;
1767
+ line: number;
1768
+ } | {
1769
+ packageName: string;
1770
+ version: string | null;
1771
+ };
1772
+ disposition: string;
1773
+ target?: {
1774
+ kind: "package";
1775
+ packageName: string;
1776
+ } | {
1777
+ kind: "repository";
1778
+ exportName: string;
1779
+ repoId: string;
1780
+ filePath: string;
1781
+ } | undefined;
1782
+ }>, "many">;
1783
+ }, "strip", z.ZodTypeAny, {
1784
+ status: "conflict";
1785
+ evidence: {
1786
+ source: "registration" | "global-declaration" | "cem";
1787
+ strength: string;
1788
+ locator: {
1789
+ filePath: string;
1790
+ line: number;
1791
+ } | {
1792
+ packageName: string;
1793
+ version: string | null;
1794
+ };
1795
+ disposition: string;
1796
+ target?: {
1797
+ kind: "package";
1798
+ packageName: string;
1799
+ } | {
1800
+ kind: "repository";
1801
+ exportName: string;
1802
+ repoId: string;
1803
+ filePath: string;
1804
+ } | undefined;
1805
+ }[];
1806
+ strongestClass: string;
1807
+ candidates: ({
1808
+ kind: "package";
1809
+ packageName: string;
1810
+ } | {
1811
+ kind: "repository";
1812
+ exportName: string;
1813
+ repoId: string;
1814
+ filePath: string;
1815
+ })[];
1816
+ }, {
1817
+ status: "conflict";
1818
+ evidence: {
1819
+ source: "registration" | "global-declaration" | "cem";
1820
+ strength: string;
1821
+ locator: {
1822
+ filePath: string;
1823
+ line: number;
1824
+ } | {
1825
+ packageName: string;
1826
+ version: string | null;
1827
+ };
1828
+ disposition: string;
1829
+ target?: {
1830
+ kind: "package";
1831
+ packageName: string;
1832
+ } | {
1833
+ kind: "repository";
1834
+ exportName: string;
1835
+ repoId: string;
1836
+ filePath: string;
1837
+ } | undefined;
1838
+ }[];
1839
+ strongestClass: string;
1840
+ candidates: ({
1841
+ kind: "package";
1842
+ packageName: string;
1843
+ } | {
1844
+ kind: "repository";
1845
+ exportName: string;
1846
+ repoId: string;
1847
+ filePath: string;
1848
+ })[];
1849
+ }>]>>;
1850
+ stats: z.ZodObject<{
1851
+ occurrenceCount: z.ZodNumber;
1852
+ fileCount: z.ZodNumber;
1853
+ }, "strip", z.ZodTypeAny, {
1854
+ occurrenceCount: number;
1855
+ fileCount: number;
1856
+ }, {
1857
+ occurrenceCount: number;
1858
+ fileCount: number;
1859
+ }>;
1860
+ usage: z.ZodEnum<["direct", "root", "none"]>;
1861
+ props: z.ZodRecord<z.ZodString, z.ZodObject<{
1862
+ values: z.ZodArray<z.ZodType<PropValueEntry, z.ZodTypeDef, PropValueEntry>, "many">;
1863
+ dynamic: z.ZodNumber;
1864
+ omitted: z.ZodNumber;
1865
+ other: z.ZodOptional<z.ZodNumber>;
1866
+ truncated: z.ZodOptional<z.ZodNumber>;
1867
+ }, "strip", z.ZodTypeAny, {
1868
+ values: PropValueEntry[];
1869
+ dynamic: number;
1870
+ omitted: number;
1871
+ other?: number | undefined;
1872
+ truncated?: number | undefined;
1873
+ }, {
1874
+ values: PropValueEntry[];
1875
+ dynamic: number;
1876
+ omitted: number;
1877
+ other?: number | undefined;
1878
+ truncated?: number | undefined;
1879
+ }>>;
1880
+ events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1881
+ boundCount: z.ZodNumber;
1882
+ }, "strip", z.ZodTypeAny, {
1883
+ boundCount: number;
1884
+ }, {
1885
+ boundCount: number;
1886
+ }>>>;
1887
+ composition: z.ZodType<CompositionRollup, z.ZodTypeDef, CompositionRollup>;
1888
+ /** Repository declarations only. */
1889
+ declared: z.ZodOptional<z.ZodType<DeclaredPropApi, z.ZodTypeDef, DeclaredPropApi>>;
1890
+ /** Repository declarations only: declaration position in `identity.filePath`. */
1891
+ definition: z.ZodOptional<z.ZodObject<{
1892
+ line: z.ZodNumber;
1893
+ column: z.ZodNumber;
1894
+ }, "strip", z.ZodTypeAny, {
1895
+ line: number;
1896
+ column: number;
1897
+ }, {
1898
+ line: number;
1899
+ column: number;
1900
+ }>>;
1901
+ /** Repository declarations only: owning workspace package name. */
1902
+ owningPackage: z.ZodOptional<z.ZodString>;
1903
+ version: z.ZodNullable<z.ZodString>;
1904
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1905
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ props: Record<string, {
1908
+ values: PropValueEntry[];
1909
+ dynamic: number;
1910
+ omitted: number;
1911
+ other?: number | undefined;
1912
+ truncated?: number | undefined;
1913
+ }>;
1914
+ version: string | null;
1915
+ id: string;
1916
+ identity: {
1917
+ kind: "package-export";
1918
+ packageName: string;
1919
+ publicEntry: string;
1920
+ exportName: string;
1921
+ } | {
1922
+ kind: "repository-declaration";
1923
+ exportName: string;
1924
+ repoId: string;
1925
+ filePath: string;
1926
+ } | {
1927
+ kind: "tag";
1928
+ tagName: string;
1929
+ };
1930
+ stats: {
1931
+ occurrenceCount: number;
1932
+ fileCount: number;
1933
+ };
1934
+ usage: "root" | "direct" | "none";
1935
+ composition: CompositionRollup;
1936
+ events?: Record<string, {
1937
+ boundCount: number;
1938
+ }> | undefined;
1939
+ declared?: DeclaredPropApi | undefined;
1940
+ framework?: "react" | "vue" | undefined;
1941
+ attribution?: {
1942
+ status: "resolved";
1943
+ target: {
1944
+ kind: "package";
1945
+ packageName: string;
1946
+ } | {
1947
+ kind: "repository";
1948
+ exportName: string;
1949
+ repoId: string;
1950
+ filePath: string;
1951
+ };
1952
+ confidence: string;
1953
+ evidence: {
1954
+ source: "registration" | "global-declaration" | "cem";
1955
+ strength: string;
1956
+ locator: {
1957
+ filePath: string;
1958
+ line: number;
1959
+ } | {
1960
+ packageName: string;
1961
+ version: string | null;
1962
+ };
1963
+ disposition: string;
1964
+ target?: {
1965
+ kind: "package";
1966
+ packageName: string;
1967
+ } | {
1968
+ kind: "repository";
1969
+ exportName: string;
1970
+ repoId: string;
1971
+ filePath: string;
1972
+ } | undefined;
1973
+ }[];
1974
+ } | {
1975
+ status: "unknown";
1976
+ reason: string;
1977
+ evidence: {
1978
+ source: "registration" | "global-declaration" | "cem";
1979
+ strength: string;
1980
+ locator: {
1981
+ filePath: string;
1982
+ line: number;
1983
+ } | {
1984
+ packageName: string;
1985
+ version: string | null;
1986
+ };
1987
+ disposition: string;
1988
+ target?: {
1989
+ kind: "package";
1990
+ packageName: string;
1991
+ } | {
1992
+ kind: "repository";
1993
+ exportName: string;
1994
+ repoId: string;
1995
+ filePath: string;
1996
+ } | undefined;
1997
+ }[];
1998
+ } | {
1999
+ status: "conflict";
2000
+ evidence: {
2001
+ source: "registration" | "global-declaration" | "cem";
2002
+ strength: string;
2003
+ locator: {
2004
+ filePath: string;
2005
+ line: number;
2006
+ } | {
2007
+ packageName: string;
2008
+ version: string | null;
2009
+ };
2010
+ disposition: string;
2011
+ target?: {
2012
+ kind: "package";
2013
+ packageName: string;
2014
+ } | {
2015
+ kind: "repository";
2016
+ exportName: string;
2017
+ repoId: string;
2018
+ filePath: string;
2019
+ } | undefined;
2020
+ }[];
2021
+ strongestClass: string;
2022
+ candidates: ({
2023
+ kind: "package";
2024
+ packageName: string;
2025
+ } | {
2026
+ kind: "repository";
2027
+ exportName: string;
2028
+ repoId: string;
2029
+ filePath: string;
2030
+ })[];
2031
+ } | undefined;
2032
+ definition?: {
2033
+ line: number;
2034
+ column: number;
2035
+ } | undefined;
2036
+ owningPackage?: string | undefined;
2037
+ createdAt?: string | null | undefined;
2038
+ updatedAt?: string | null | undefined;
2039
+ }, {
2040
+ props: Record<string, {
2041
+ values: PropValueEntry[];
2042
+ dynamic: number;
2043
+ omitted: number;
2044
+ other?: number | undefined;
2045
+ truncated?: number | undefined;
2046
+ }>;
2047
+ version: string | null;
2048
+ id: string;
2049
+ identity: {
2050
+ kind: "package-export";
2051
+ packageName: string;
2052
+ publicEntry: string;
2053
+ exportName: string;
2054
+ } | {
2055
+ kind: "repository-declaration";
2056
+ exportName: string;
2057
+ repoId: string;
2058
+ filePath: string;
2059
+ } | {
2060
+ kind: "tag";
2061
+ tagName: string;
2062
+ };
2063
+ stats: {
2064
+ occurrenceCount: number;
2065
+ fileCount: number;
2066
+ };
2067
+ usage: "root" | "direct" | "none";
2068
+ composition: CompositionRollup;
2069
+ events?: Record<string, {
2070
+ boundCount: number;
2071
+ }> | undefined;
2072
+ declared?: DeclaredPropApi | undefined;
2073
+ framework?: "react" | "vue" | undefined;
2074
+ attribution?: {
2075
+ status: "resolved";
2076
+ target: {
2077
+ kind: "package";
2078
+ packageName: string;
2079
+ } | {
2080
+ kind: "repository";
2081
+ exportName: string;
2082
+ repoId: string;
2083
+ filePath: string;
2084
+ };
2085
+ confidence: string;
2086
+ evidence: {
2087
+ source: "registration" | "global-declaration" | "cem";
2088
+ strength: string;
2089
+ locator: {
2090
+ filePath: string;
2091
+ line: number;
2092
+ } | {
2093
+ packageName: string;
2094
+ version: string | null;
2095
+ };
2096
+ disposition: string;
2097
+ target?: {
2098
+ kind: "package";
2099
+ packageName: string;
2100
+ } | {
2101
+ kind: "repository";
2102
+ exportName: string;
2103
+ repoId: string;
2104
+ filePath: string;
2105
+ } | undefined;
2106
+ }[];
2107
+ } | {
2108
+ status: "unknown";
2109
+ reason: string;
2110
+ evidence: {
2111
+ source: "registration" | "global-declaration" | "cem";
2112
+ strength: string;
2113
+ locator: {
2114
+ filePath: string;
2115
+ line: number;
2116
+ } | {
2117
+ packageName: string;
2118
+ version: string | null;
2119
+ };
2120
+ disposition: string;
2121
+ target?: {
2122
+ kind: "package";
2123
+ packageName: string;
2124
+ } | {
2125
+ kind: "repository";
2126
+ exportName: string;
2127
+ repoId: string;
2128
+ filePath: string;
2129
+ } | undefined;
2130
+ }[];
2131
+ } | {
2132
+ status: "conflict";
2133
+ evidence: {
2134
+ source: "registration" | "global-declaration" | "cem";
2135
+ strength: string;
2136
+ locator: {
2137
+ filePath: string;
2138
+ line: number;
2139
+ } | {
2140
+ packageName: string;
2141
+ version: string | null;
2142
+ };
2143
+ disposition: string;
2144
+ target?: {
2145
+ kind: "package";
2146
+ packageName: string;
2147
+ } | {
2148
+ kind: "repository";
2149
+ exportName: string;
2150
+ repoId: string;
2151
+ filePath: string;
2152
+ } | undefined;
2153
+ }[];
2154
+ strongestClass: string;
2155
+ candidates: ({
2156
+ kind: "package";
2157
+ packageName: string;
2158
+ } | {
2159
+ kind: "repository";
2160
+ exportName: string;
2161
+ repoId: string;
2162
+ filePath: string;
2163
+ })[];
2164
+ } | undefined;
2165
+ definition?: {
2166
+ line: number;
2167
+ column: number;
2168
+ } | undefined;
2169
+ owningPackage?: string | undefined;
2170
+ createdAt?: string | null | undefined;
2171
+ updatedAt?: string | null | undefined;
2172
+ }>, {
2173
+ props: Record<string, {
2174
+ values: PropValueEntry[];
2175
+ dynamic: number;
2176
+ omitted: number;
2177
+ other?: number | undefined;
2178
+ truncated?: number | undefined;
2179
+ }>;
2180
+ version: string | null;
2181
+ id: string;
2182
+ identity: {
2183
+ kind: "package-export";
2184
+ packageName: string;
2185
+ publicEntry: string;
2186
+ exportName: string;
2187
+ } | {
2188
+ kind: "repository-declaration";
2189
+ exportName: string;
2190
+ repoId: string;
2191
+ filePath: string;
2192
+ } | {
2193
+ kind: "tag";
2194
+ tagName: string;
2195
+ };
2196
+ stats: {
2197
+ occurrenceCount: number;
2198
+ fileCount: number;
2199
+ };
2200
+ usage: "root" | "direct" | "none";
2201
+ composition: CompositionRollup;
2202
+ events?: Record<string, {
2203
+ boundCount: number;
2204
+ }> | undefined;
2205
+ declared?: DeclaredPropApi | undefined;
2206
+ framework?: "react" | "vue" | undefined;
2207
+ attribution?: {
2208
+ status: "resolved";
2209
+ target: {
2210
+ kind: "package";
2211
+ packageName: string;
2212
+ } | {
2213
+ kind: "repository";
2214
+ exportName: string;
2215
+ repoId: string;
2216
+ filePath: string;
2217
+ };
2218
+ confidence: string;
2219
+ evidence: {
2220
+ source: "registration" | "global-declaration" | "cem";
2221
+ strength: string;
2222
+ locator: {
2223
+ filePath: string;
2224
+ line: number;
2225
+ } | {
2226
+ packageName: string;
2227
+ version: string | null;
2228
+ };
2229
+ disposition: string;
2230
+ target?: {
2231
+ kind: "package";
2232
+ packageName: string;
2233
+ } | {
2234
+ kind: "repository";
2235
+ exportName: string;
2236
+ repoId: string;
2237
+ filePath: string;
2238
+ } | undefined;
2239
+ }[];
2240
+ } | {
2241
+ status: "unknown";
2242
+ reason: string;
2243
+ evidence: {
2244
+ source: "registration" | "global-declaration" | "cem";
2245
+ strength: string;
2246
+ locator: {
2247
+ filePath: string;
2248
+ line: number;
2249
+ } | {
2250
+ packageName: string;
2251
+ version: string | null;
2252
+ };
2253
+ disposition: string;
2254
+ target?: {
2255
+ kind: "package";
2256
+ packageName: string;
2257
+ } | {
2258
+ kind: "repository";
2259
+ exportName: string;
2260
+ repoId: string;
2261
+ filePath: string;
2262
+ } | undefined;
2263
+ }[];
2264
+ } | {
2265
+ status: "conflict";
2266
+ evidence: {
2267
+ source: "registration" | "global-declaration" | "cem";
2268
+ strength: string;
2269
+ locator: {
2270
+ filePath: string;
2271
+ line: number;
2272
+ } | {
2273
+ packageName: string;
2274
+ version: string | null;
2275
+ };
2276
+ disposition: string;
2277
+ target?: {
2278
+ kind: "package";
2279
+ packageName: string;
2280
+ } | {
2281
+ kind: "repository";
2282
+ exportName: string;
2283
+ repoId: string;
2284
+ filePath: string;
2285
+ } | undefined;
2286
+ }[];
2287
+ strongestClass: string;
2288
+ candidates: ({
2289
+ kind: "package";
2290
+ packageName: string;
2291
+ } | {
2292
+ kind: "repository";
2293
+ exportName: string;
2294
+ repoId: string;
2295
+ filePath: string;
2296
+ })[];
2297
+ } | undefined;
2298
+ definition?: {
2299
+ line: number;
2300
+ column: number;
2301
+ } | undefined;
2302
+ owningPackage?: string | undefined;
2303
+ createdAt?: string | null | undefined;
2304
+ updatedAt?: string | null | undefined;
2305
+ }, {
2306
+ props: Record<string, {
2307
+ values: PropValueEntry[];
2308
+ dynamic: number;
2309
+ omitted: number;
2310
+ other?: number | undefined;
2311
+ truncated?: number | undefined;
2312
+ }>;
2313
+ version: string | null;
2314
+ id: string;
2315
+ identity: {
2316
+ kind: "package-export";
2317
+ packageName: string;
2318
+ publicEntry: string;
2319
+ exportName: string;
2320
+ } | {
2321
+ kind: "repository-declaration";
2322
+ exportName: string;
2323
+ repoId: string;
2324
+ filePath: string;
2325
+ } | {
2326
+ kind: "tag";
2327
+ tagName: string;
2328
+ };
2329
+ stats: {
2330
+ occurrenceCount: number;
2331
+ fileCount: number;
2332
+ };
2333
+ usage: "root" | "direct" | "none";
2334
+ composition: CompositionRollup;
2335
+ events?: Record<string, {
2336
+ boundCount: number;
2337
+ }> | undefined;
2338
+ declared?: DeclaredPropApi | undefined;
2339
+ framework?: "react" | "vue" | undefined;
2340
+ attribution?: {
2341
+ status: "resolved";
2342
+ target: {
2343
+ kind: "package";
2344
+ packageName: string;
2345
+ } | {
2346
+ kind: "repository";
2347
+ exportName: string;
2348
+ repoId: string;
2349
+ filePath: string;
2350
+ };
2351
+ confidence: string;
2352
+ evidence: {
2353
+ source: "registration" | "global-declaration" | "cem";
2354
+ strength: string;
2355
+ locator: {
2356
+ filePath: string;
2357
+ line: number;
2358
+ } | {
2359
+ packageName: string;
2360
+ version: string | null;
2361
+ };
2362
+ disposition: string;
2363
+ target?: {
2364
+ kind: "package";
2365
+ packageName: string;
2366
+ } | {
2367
+ kind: "repository";
2368
+ exportName: string;
2369
+ repoId: string;
2370
+ filePath: string;
2371
+ } | undefined;
2372
+ }[];
2373
+ } | {
2374
+ status: "unknown";
2375
+ reason: string;
2376
+ evidence: {
2377
+ source: "registration" | "global-declaration" | "cem";
2378
+ strength: string;
2379
+ locator: {
2380
+ filePath: string;
2381
+ line: number;
2382
+ } | {
2383
+ packageName: string;
2384
+ version: string | null;
2385
+ };
2386
+ disposition: string;
2387
+ target?: {
2388
+ kind: "package";
2389
+ packageName: string;
2390
+ } | {
2391
+ kind: "repository";
2392
+ exportName: string;
2393
+ repoId: string;
2394
+ filePath: string;
2395
+ } | undefined;
2396
+ }[];
2397
+ } | {
2398
+ status: "conflict";
2399
+ evidence: {
2400
+ source: "registration" | "global-declaration" | "cem";
2401
+ strength: string;
2402
+ locator: {
2403
+ filePath: string;
2404
+ line: number;
2405
+ } | {
2406
+ packageName: string;
2407
+ version: string | null;
2408
+ };
2409
+ disposition: string;
2410
+ target?: {
2411
+ kind: "package";
2412
+ packageName: string;
2413
+ } | {
2414
+ kind: "repository";
2415
+ exportName: string;
2416
+ repoId: string;
2417
+ filePath: string;
2418
+ } | undefined;
2419
+ }[];
2420
+ strongestClass: string;
2421
+ candidates: ({
2422
+ kind: "package";
2423
+ packageName: string;
2424
+ } | {
2425
+ kind: "repository";
2426
+ exportName: string;
2427
+ repoId: string;
2428
+ filePath: string;
2429
+ })[];
2430
+ } | undefined;
2431
+ definition?: {
2432
+ line: number;
2433
+ column: number;
2434
+ } | undefined;
2435
+ owningPackage?: string | undefined;
2436
+ createdAt?: string | null | undefined;
2437
+ updatedAt?: string | null | undefined;
2438
+ }>;
2439
+ export type Component = z.infer<typeof componentSchema>;
2440
+ declare const scanMetaSchema: z.ZodObject<{
2441
+ schemaVersion: z.ZodLiteral<2>;
2442
+ scannerVersion: z.ZodString;
2443
+ scanId: z.ZodString;
2444
+ scannedAt: z.ZodEffects<z.ZodString, string, string>;
2445
+ repo: z.ZodObject<{
2446
+ id: z.ZodString;
2447
+ gitRemote: z.ZodNullable<z.ZodString>;
2448
+ commit: z.ZodString;
2449
+ /** The committer date of `commit`. */
2450
+ committedAt: z.ZodEffects<z.ZodString, string, string>;
2451
+ initialCommit: z.ZodNullable<z.ZodString>;
2452
+ branch: z.ZodNullable<z.ZodString>;
2453
+ }, "strip", z.ZodTypeAny, {
2454
+ id: string;
2455
+ gitRemote: string | null;
2456
+ commit: string;
2457
+ committedAt: string;
2458
+ initialCommit: string | null;
2459
+ branch: string | null;
2460
+ }, {
2461
+ id: string;
2462
+ gitRemote: string | null;
2463
+ commit: string;
2464
+ committedAt: string;
2465
+ initialCommit: string | null;
2466
+ branch: string | null;
2467
+ }>;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ schemaVersion: 2;
2470
+ scannerVersion: string;
2471
+ scanId: string;
2472
+ scannedAt: string;
2473
+ repo: {
2474
+ id: string;
2475
+ gitRemote: string | null;
2476
+ commit: string;
2477
+ committedAt: string;
2478
+ initialCommit: string | null;
2479
+ branch: string | null;
2480
+ };
2481
+ }, {
2482
+ schemaVersion: 2;
2483
+ scannerVersion: string;
2484
+ scanId: string;
2485
+ scannedAt: string;
2486
+ repo: {
2487
+ id: string;
2488
+ gitRemote: string | null;
2489
+ commit: string;
2490
+ committedAt: string;
2491
+ initialCommit: string | null;
2492
+ branch: string | null;
2493
+ };
2494
+ }>;
2495
+ export type ScanMeta = z.infer<typeof scanMetaSchema>;
2496
+ /** The whole artefact: component ids and occurrence ids are unique, and a resolved occurrence names a listed component. */
2497
+ export declare const artifactSchema: z.ZodEffects<z.ZodObject<{
2498
+ meta: z.ZodObject<{
2499
+ schemaVersion: z.ZodLiteral<2>;
2500
+ scannerVersion: z.ZodString;
2501
+ scanId: z.ZodString;
2502
+ scannedAt: z.ZodEffects<z.ZodString, string, string>;
2503
+ repo: z.ZodObject<{
2504
+ id: z.ZodString;
2505
+ gitRemote: z.ZodNullable<z.ZodString>;
2506
+ commit: z.ZodString;
2507
+ /** The committer date of `commit`. */
2508
+ committedAt: z.ZodEffects<z.ZodString, string, string>;
2509
+ initialCommit: z.ZodNullable<z.ZodString>;
2510
+ branch: z.ZodNullable<z.ZodString>;
2511
+ }, "strip", z.ZodTypeAny, {
2512
+ id: string;
2513
+ gitRemote: string | null;
2514
+ commit: string;
2515
+ committedAt: string;
2516
+ initialCommit: string | null;
2517
+ branch: string | null;
2518
+ }, {
2519
+ id: string;
2520
+ gitRemote: string | null;
2521
+ commit: string;
2522
+ committedAt: string;
2523
+ initialCommit: string | null;
2524
+ branch: string | null;
2525
+ }>;
2526
+ }, "strip", z.ZodTypeAny, {
2527
+ schemaVersion: 2;
2528
+ scannerVersion: string;
2529
+ scanId: string;
2530
+ scannedAt: string;
2531
+ repo: {
2532
+ id: string;
2533
+ gitRemote: string | null;
2534
+ commit: string;
2535
+ committedAt: string;
2536
+ initialCommit: string | null;
2537
+ branch: string | null;
2538
+ };
2539
+ }, {
2540
+ schemaVersion: 2;
2541
+ scannerVersion: string;
2542
+ scanId: string;
2543
+ scannedAt: string;
2544
+ repo: {
2545
+ id: string;
2546
+ gitRemote: string | null;
2547
+ commit: string;
2548
+ committedAt: string;
2549
+ initialCommit: string | null;
2550
+ branch: string | null;
2551
+ };
2552
+ }>;
2553
+ components: z.ZodArray<z.ZodEffects<z.ZodObject<{
2554
+ id: z.ZodString;
2555
+ identity: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2556
+ kind: z.ZodLiteral<"package-export">;
2557
+ packageName: z.ZodString;
2558
+ publicEntry: z.ZodString;
2559
+ exportName: z.ZodString;
2560
+ }, "strip", z.ZodTypeAny, {
2561
+ kind: "package-export";
2562
+ packageName: string;
2563
+ publicEntry: string;
2564
+ exportName: string;
2565
+ }, {
2566
+ kind: "package-export";
2567
+ packageName: string;
2568
+ publicEntry: string;
2569
+ exportName: string;
2570
+ }>, z.ZodObject<{
2571
+ repoId: z.ZodString;
2572
+ filePath: z.ZodString;
2573
+ exportName: z.ZodString;
2574
+ kind: z.ZodLiteral<"repository-declaration">;
2575
+ }, "strip", z.ZodTypeAny, {
2576
+ kind: "repository-declaration";
2577
+ exportName: string;
2578
+ repoId: string;
2579
+ filePath: string;
2580
+ }, {
2581
+ kind: "repository-declaration";
2582
+ exportName: string;
2583
+ repoId: string;
2584
+ filePath: string;
2585
+ }>, z.ZodObject<{
2586
+ kind: z.ZodLiteral<"tag">;
2587
+ tagName: z.ZodString;
2588
+ }, "strip", z.ZodTypeAny, {
2589
+ kind: "tag";
2590
+ tagName: string;
2591
+ }, {
2592
+ kind: "tag";
2593
+ tagName: string;
2594
+ }>]>;
2595
+ /** Package exports and repository declarations only; absent on tags. */
2596
+ framework: z.ZodOptional<z.ZodEnum<["react", "vue"]>>;
2597
+ /** Tag identities only; computed from this scan's evidence. */
2598
+ attribution: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
2599
+ status: z.ZodLiteral<"resolved">;
2600
+ target: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2601
+ kind: z.ZodLiteral<"package">;
2602
+ packageName: z.ZodString;
2603
+ }, "strip", z.ZodTypeAny, {
2604
+ kind: "package";
2605
+ packageName: string;
2606
+ }, {
2607
+ kind: "package";
2608
+ packageName: string;
2609
+ }>, z.ZodObject<{
2610
+ repoId: z.ZodString;
2611
+ filePath: z.ZodString;
2612
+ exportName: z.ZodString;
2613
+ kind: z.ZodLiteral<"repository">;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ kind: "repository";
2616
+ exportName: string;
2617
+ repoId: string;
2618
+ filePath: string;
2619
+ }, {
2620
+ kind: "repository";
2621
+ exportName: string;
2622
+ repoId: string;
2623
+ filePath: string;
2624
+ }>]>;
2625
+ confidence: z.ZodString;
2626
+ evidence: z.ZodArray<z.ZodObject<{
2627
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
2628
+ strength: z.ZodString;
2629
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
2630
+ locator: z.ZodUnion<[z.ZodObject<{
2631
+ filePath: z.ZodString;
2632
+ line: z.ZodNumber;
2633
+ }, "strip", z.ZodTypeAny, {
2634
+ filePath: string;
2635
+ line: number;
2636
+ }, {
2637
+ filePath: string;
2638
+ line: number;
2639
+ }>, z.ZodObject<{
2640
+ packageName: z.ZodString;
2641
+ version: z.ZodNullable<z.ZodString>;
2642
+ }, "strip", z.ZodTypeAny, {
2643
+ packageName: string;
2644
+ version: string | null;
2645
+ }, {
2646
+ packageName: string;
2647
+ version: string | null;
2648
+ }>]>;
2649
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2650
+ kind: z.ZodLiteral<"package">;
2651
+ packageName: z.ZodString;
2652
+ }, "strip", z.ZodTypeAny, {
2653
+ kind: "package";
2654
+ packageName: string;
2655
+ }, {
2656
+ kind: "package";
2657
+ packageName: string;
2658
+ }>, z.ZodObject<{
2659
+ repoId: z.ZodString;
2660
+ filePath: z.ZodString;
2661
+ exportName: z.ZodString;
2662
+ kind: z.ZodLiteral<"repository">;
2663
+ }, "strip", z.ZodTypeAny, {
2664
+ kind: "repository";
2665
+ exportName: string;
2666
+ repoId: string;
2667
+ filePath: string;
2668
+ }, {
2669
+ kind: "repository";
2670
+ exportName: string;
2671
+ repoId: string;
2672
+ filePath: string;
2673
+ }>]>>;
2674
+ disposition: z.ZodString;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ source: "registration" | "global-declaration" | "cem";
2677
+ strength: string;
2678
+ locator: {
2679
+ filePath: string;
2680
+ line: number;
2681
+ } | {
2682
+ packageName: string;
2683
+ version: string | null;
2684
+ };
2685
+ disposition: string;
2686
+ target?: {
2687
+ kind: "package";
2688
+ packageName: string;
2689
+ } | {
2690
+ kind: "repository";
2691
+ exportName: string;
2692
+ repoId: string;
2693
+ filePath: string;
2694
+ } | undefined;
2695
+ }, {
2696
+ source: "registration" | "global-declaration" | "cem";
2697
+ strength: string;
2698
+ locator: {
2699
+ filePath: string;
2700
+ line: number;
2701
+ } | {
2702
+ packageName: string;
2703
+ version: string | null;
2704
+ };
2705
+ disposition: string;
2706
+ target?: {
2707
+ kind: "package";
2708
+ packageName: string;
2709
+ } | {
2710
+ kind: "repository";
2711
+ exportName: string;
2712
+ repoId: string;
2713
+ filePath: string;
2714
+ } | undefined;
2715
+ }>, "many">;
2716
+ }, "strip", z.ZodTypeAny, {
2717
+ status: "resolved";
2718
+ target: {
2719
+ kind: "package";
2720
+ packageName: string;
2721
+ } | {
2722
+ kind: "repository";
2723
+ exportName: string;
2724
+ repoId: string;
2725
+ filePath: string;
2726
+ };
2727
+ confidence: string;
2728
+ evidence: {
2729
+ source: "registration" | "global-declaration" | "cem";
2730
+ strength: string;
2731
+ locator: {
2732
+ filePath: string;
2733
+ line: number;
2734
+ } | {
2735
+ packageName: string;
2736
+ version: string | null;
2737
+ };
2738
+ disposition: string;
2739
+ target?: {
2740
+ kind: "package";
2741
+ packageName: string;
2742
+ } | {
2743
+ kind: "repository";
2744
+ exportName: string;
2745
+ repoId: string;
2746
+ filePath: string;
2747
+ } | undefined;
2748
+ }[];
2749
+ }, {
2750
+ status: "resolved";
2751
+ target: {
2752
+ kind: "package";
2753
+ packageName: string;
2754
+ } | {
2755
+ kind: "repository";
2756
+ exportName: string;
2757
+ repoId: string;
2758
+ filePath: string;
2759
+ };
2760
+ confidence: string;
2761
+ evidence: {
2762
+ source: "registration" | "global-declaration" | "cem";
2763
+ strength: string;
2764
+ locator: {
2765
+ filePath: string;
2766
+ line: number;
2767
+ } | {
2768
+ packageName: string;
2769
+ version: string | null;
2770
+ };
2771
+ disposition: string;
2772
+ target?: {
2773
+ kind: "package";
2774
+ packageName: string;
2775
+ } | {
2776
+ kind: "repository";
2777
+ exportName: string;
2778
+ repoId: string;
2779
+ filePath: string;
2780
+ } | undefined;
2781
+ }[];
2782
+ }>, z.ZodObject<{
2783
+ status: z.ZodLiteral<"unknown">;
2784
+ reason: z.ZodString;
2785
+ evidence: z.ZodArray<z.ZodObject<{
2786
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
2787
+ strength: z.ZodString;
2788
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
2789
+ locator: z.ZodUnion<[z.ZodObject<{
2790
+ filePath: z.ZodString;
2791
+ line: z.ZodNumber;
2792
+ }, "strip", z.ZodTypeAny, {
2793
+ filePath: string;
2794
+ line: number;
2795
+ }, {
2796
+ filePath: string;
2797
+ line: number;
2798
+ }>, z.ZodObject<{
2799
+ packageName: z.ZodString;
2800
+ version: z.ZodNullable<z.ZodString>;
2801
+ }, "strip", z.ZodTypeAny, {
2802
+ packageName: string;
2803
+ version: string | null;
2804
+ }, {
2805
+ packageName: string;
2806
+ version: string | null;
2807
+ }>]>;
2808
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2809
+ kind: z.ZodLiteral<"package">;
2810
+ packageName: z.ZodString;
2811
+ }, "strip", z.ZodTypeAny, {
2812
+ kind: "package";
2813
+ packageName: string;
2814
+ }, {
2815
+ kind: "package";
2816
+ packageName: string;
2817
+ }>, z.ZodObject<{
2818
+ repoId: z.ZodString;
2819
+ filePath: z.ZodString;
2820
+ exportName: z.ZodString;
2821
+ kind: z.ZodLiteral<"repository">;
2822
+ }, "strip", z.ZodTypeAny, {
2823
+ kind: "repository";
2824
+ exportName: string;
2825
+ repoId: string;
2826
+ filePath: string;
2827
+ }, {
2828
+ kind: "repository";
2829
+ exportName: string;
2830
+ repoId: string;
2831
+ filePath: string;
2832
+ }>]>>;
2833
+ disposition: z.ZodString;
2834
+ }, "strip", z.ZodTypeAny, {
2835
+ source: "registration" | "global-declaration" | "cem";
2836
+ strength: string;
2837
+ locator: {
2838
+ filePath: string;
2839
+ line: number;
2840
+ } | {
2841
+ packageName: string;
2842
+ version: string | null;
2843
+ };
2844
+ disposition: string;
2845
+ target?: {
2846
+ kind: "package";
2847
+ packageName: string;
2848
+ } | {
2849
+ kind: "repository";
2850
+ exportName: string;
2851
+ repoId: string;
2852
+ filePath: string;
2853
+ } | undefined;
2854
+ }, {
2855
+ source: "registration" | "global-declaration" | "cem";
2856
+ strength: string;
2857
+ locator: {
2858
+ filePath: string;
2859
+ line: number;
2860
+ } | {
2861
+ packageName: string;
2862
+ version: string | null;
2863
+ };
2864
+ disposition: string;
2865
+ target?: {
2866
+ kind: "package";
2867
+ packageName: string;
2868
+ } | {
2869
+ kind: "repository";
2870
+ exportName: string;
2871
+ repoId: string;
2872
+ filePath: string;
2873
+ } | undefined;
2874
+ }>, "many">;
2875
+ }, "strip", z.ZodTypeAny, {
2876
+ status: "unknown";
2877
+ reason: string;
2878
+ evidence: {
2879
+ source: "registration" | "global-declaration" | "cem";
2880
+ strength: string;
2881
+ locator: {
2882
+ filePath: string;
2883
+ line: number;
2884
+ } | {
2885
+ packageName: string;
2886
+ version: string | null;
2887
+ };
2888
+ disposition: string;
2889
+ target?: {
2890
+ kind: "package";
2891
+ packageName: string;
2892
+ } | {
2893
+ kind: "repository";
2894
+ exportName: string;
2895
+ repoId: string;
2896
+ filePath: string;
2897
+ } | undefined;
2898
+ }[];
2899
+ }, {
2900
+ status: "unknown";
2901
+ reason: string;
2902
+ evidence: {
2903
+ source: "registration" | "global-declaration" | "cem";
2904
+ strength: string;
2905
+ locator: {
2906
+ filePath: string;
2907
+ line: number;
2908
+ } | {
2909
+ packageName: string;
2910
+ version: string | null;
2911
+ };
2912
+ disposition: string;
2913
+ target?: {
2914
+ kind: "package";
2915
+ packageName: string;
2916
+ } | {
2917
+ kind: "repository";
2918
+ exportName: string;
2919
+ repoId: string;
2920
+ filePath: string;
2921
+ } | undefined;
2922
+ }[];
2923
+ }>, z.ZodObject<{
2924
+ status: z.ZodLiteral<"conflict">;
2925
+ strongestClass: z.ZodString;
2926
+ candidates: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2927
+ kind: z.ZodLiteral<"package">;
2928
+ packageName: z.ZodString;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ kind: "package";
2931
+ packageName: string;
2932
+ }, {
2933
+ kind: "package";
2934
+ packageName: string;
2935
+ }>, z.ZodObject<{
2936
+ repoId: z.ZodString;
2937
+ filePath: z.ZodString;
2938
+ exportName: z.ZodString;
2939
+ kind: z.ZodLiteral<"repository">;
2940
+ }, "strip", z.ZodTypeAny, {
2941
+ kind: "repository";
2942
+ exportName: string;
2943
+ repoId: string;
2944
+ filePath: string;
2945
+ }, {
2946
+ kind: "repository";
2947
+ exportName: string;
2948
+ repoId: string;
2949
+ filePath: string;
2950
+ }>]>, "many">;
2951
+ evidence: z.ZodArray<z.ZodObject<{
2952
+ source: z.ZodEnum<["registration", "global-declaration", "cem"]>;
2953
+ strength: z.ZodString;
2954
+ /** Repository-relative file, or a package coordinate. Never an absolute path. */
2955
+ locator: z.ZodUnion<[z.ZodObject<{
2956
+ filePath: z.ZodString;
2957
+ line: z.ZodNumber;
2958
+ }, "strip", z.ZodTypeAny, {
2959
+ filePath: string;
2960
+ line: number;
2961
+ }, {
2962
+ filePath: string;
2963
+ line: number;
2964
+ }>, z.ZodObject<{
2965
+ packageName: z.ZodString;
2966
+ version: z.ZodNullable<z.ZodString>;
2967
+ }, "strip", z.ZodTypeAny, {
2968
+ packageName: string;
2969
+ version: string | null;
2970
+ }, {
2971
+ packageName: string;
2972
+ version: string | null;
2973
+ }>]>;
2974
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2975
+ kind: z.ZodLiteral<"package">;
2976
+ packageName: z.ZodString;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ kind: "package";
2979
+ packageName: string;
2980
+ }, {
2981
+ kind: "package";
2982
+ packageName: string;
2983
+ }>, z.ZodObject<{
2984
+ repoId: z.ZodString;
2985
+ filePath: z.ZodString;
2986
+ exportName: z.ZodString;
2987
+ kind: z.ZodLiteral<"repository">;
2988
+ }, "strip", z.ZodTypeAny, {
2989
+ kind: "repository";
2990
+ exportName: string;
2991
+ repoId: string;
2992
+ filePath: string;
2993
+ }, {
2994
+ kind: "repository";
2995
+ exportName: string;
2996
+ repoId: string;
2997
+ filePath: string;
2998
+ }>]>>;
2999
+ disposition: z.ZodString;
3000
+ }, "strip", z.ZodTypeAny, {
3001
+ source: "registration" | "global-declaration" | "cem";
3002
+ strength: string;
3003
+ locator: {
3004
+ filePath: string;
3005
+ line: number;
3006
+ } | {
3007
+ packageName: string;
3008
+ version: string | null;
3009
+ };
3010
+ disposition: string;
3011
+ target?: {
3012
+ kind: "package";
3013
+ packageName: string;
3014
+ } | {
3015
+ kind: "repository";
3016
+ exportName: string;
3017
+ repoId: string;
3018
+ filePath: string;
3019
+ } | undefined;
3020
+ }, {
3021
+ source: "registration" | "global-declaration" | "cem";
3022
+ strength: string;
3023
+ locator: {
3024
+ filePath: string;
3025
+ line: number;
3026
+ } | {
3027
+ packageName: string;
3028
+ version: string | null;
3029
+ };
3030
+ disposition: string;
3031
+ target?: {
3032
+ kind: "package";
3033
+ packageName: string;
3034
+ } | {
3035
+ kind: "repository";
3036
+ exportName: string;
3037
+ repoId: string;
3038
+ filePath: string;
3039
+ } | undefined;
3040
+ }>, "many">;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ status: "conflict";
3043
+ evidence: {
3044
+ source: "registration" | "global-declaration" | "cem";
3045
+ strength: string;
3046
+ locator: {
3047
+ filePath: string;
3048
+ line: number;
3049
+ } | {
3050
+ packageName: string;
3051
+ version: string | null;
3052
+ };
3053
+ disposition: string;
3054
+ target?: {
3055
+ kind: "package";
3056
+ packageName: string;
3057
+ } | {
3058
+ kind: "repository";
3059
+ exportName: string;
3060
+ repoId: string;
3061
+ filePath: string;
3062
+ } | undefined;
3063
+ }[];
3064
+ strongestClass: string;
3065
+ candidates: ({
3066
+ kind: "package";
3067
+ packageName: string;
3068
+ } | {
3069
+ kind: "repository";
3070
+ exportName: string;
3071
+ repoId: string;
3072
+ filePath: string;
3073
+ })[];
3074
+ }, {
3075
+ status: "conflict";
3076
+ evidence: {
3077
+ source: "registration" | "global-declaration" | "cem";
3078
+ strength: string;
3079
+ locator: {
3080
+ filePath: string;
3081
+ line: number;
3082
+ } | {
3083
+ packageName: string;
3084
+ version: string | null;
3085
+ };
3086
+ disposition: string;
3087
+ target?: {
3088
+ kind: "package";
3089
+ packageName: string;
3090
+ } | {
3091
+ kind: "repository";
3092
+ exportName: string;
3093
+ repoId: string;
3094
+ filePath: string;
3095
+ } | undefined;
3096
+ }[];
3097
+ strongestClass: string;
3098
+ candidates: ({
3099
+ kind: "package";
3100
+ packageName: string;
3101
+ } | {
3102
+ kind: "repository";
3103
+ exportName: string;
3104
+ repoId: string;
3105
+ filePath: string;
3106
+ })[];
3107
+ }>]>>;
3108
+ stats: z.ZodObject<{
3109
+ occurrenceCount: z.ZodNumber;
3110
+ fileCount: z.ZodNumber;
3111
+ }, "strip", z.ZodTypeAny, {
3112
+ occurrenceCount: number;
3113
+ fileCount: number;
3114
+ }, {
3115
+ occurrenceCount: number;
3116
+ fileCount: number;
3117
+ }>;
3118
+ usage: z.ZodEnum<["direct", "root", "none"]>;
3119
+ props: z.ZodRecord<z.ZodString, z.ZodObject<{
3120
+ values: z.ZodArray<z.ZodType<PropValueEntry, z.ZodTypeDef, PropValueEntry>, "many">;
3121
+ dynamic: z.ZodNumber;
3122
+ omitted: z.ZodNumber;
3123
+ other: z.ZodOptional<z.ZodNumber>;
3124
+ truncated: z.ZodOptional<z.ZodNumber>;
3125
+ }, "strip", z.ZodTypeAny, {
3126
+ values: PropValueEntry[];
3127
+ dynamic: number;
3128
+ omitted: number;
3129
+ other?: number | undefined;
3130
+ truncated?: number | undefined;
3131
+ }, {
3132
+ values: PropValueEntry[];
3133
+ dynamic: number;
3134
+ omitted: number;
3135
+ other?: number | undefined;
3136
+ truncated?: number | undefined;
3137
+ }>>;
3138
+ events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3139
+ boundCount: z.ZodNumber;
3140
+ }, "strip", z.ZodTypeAny, {
3141
+ boundCount: number;
3142
+ }, {
3143
+ boundCount: number;
3144
+ }>>>;
3145
+ composition: z.ZodType<CompositionRollup, z.ZodTypeDef, CompositionRollup>;
3146
+ /** Repository declarations only. */
3147
+ declared: z.ZodOptional<z.ZodType<DeclaredPropApi, z.ZodTypeDef, DeclaredPropApi>>;
3148
+ /** Repository declarations only: declaration position in `identity.filePath`. */
3149
+ definition: z.ZodOptional<z.ZodObject<{
3150
+ line: z.ZodNumber;
3151
+ column: z.ZodNumber;
3152
+ }, "strip", z.ZodTypeAny, {
3153
+ line: number;
3154
+ column: number;
3155
+ }, {
3156
+ line: number;
3157
+ column: number;
3158
+ }>>;
3159
+ /** Repository declarations only: owning workspace package name. */
3160
+ owningPackage: z.ZodOptional<z.ZodString>;
3161
+ version: z.ZodNullable<z.ZodString>;
3162
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
3163
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
3164
+ }, "strip", z.ZodTypeAny, {
3165
+ props: Record<string, {
3166
+ values: PropValueEntry[];
3167
+ dynamic: number;
3168
+ omitted: number;
3169
+ other?: number | undefined;
3170
+ truncated?: number | undefined;
3171
+ }>;
3172
+ version: string | null;
3173
+ id: string;
3174
+ identity: {
3175
+ kind: "package-export";
3176
+ packageName: string;
3177
+ publicEntry: string;
3178
+ exportName: string;
3179
+ } | {
3180
+ kind: "repository-declaration";
3181
+ exportName: string;
3182
+ repoId: string;
3183
+ filePath: string;
3184
+ } | {
3185
+ kind: "tag";
3186
+ tagName: string;
3187
+ };
3188
+ stats: {
3189
+ occurrenceCount: number;
3190
+ fileCount: number;
3191
+ };
3192
+ usage: "root" | "direct" | "none";
3193
+ composition: CompositionRollup;
3194
+ events?: Record<string, {
3195
+ boundCount: number;
3196
+ }> | undefined;
3197
+ declared?: DeclaredPropApi | undefined;
3198
+ framework?: "react" | "vue" | undefined;
3199
+ attribution?: {
3200
+ status: "resolved";
3201
+ target: {
3202
+ kind: "package";
3203
+ packageName: string;
3204
+ } | {
3205
+ kind: "repository";
3206
+ exportName: string;
3207
+ repoId: string;
3208
+ filePath: string;
3209
+ };
3210
+ confidence: string;
3211
+ evidence: {
3212
+ source: "registration" | "global-declaration" | "cem";
3213
+ strength: string;
3214
+ locator: {
3215
+ filePath: string;
3216
+ line: number;
3217
+ } | {
3218
+ packageName: string;
3219
+ version: string | null;
3220
+ };
3221
+ disposition: string;
3222
+ target?: {
3223
+ kind: "package";
3224
+ packageName: string;
3225
+ } | {
3226
+ kind: "repository";
3227
+ exportName: string;
3228
+ repoId: string;
3229
+ filePath: string;
3230
+ } | undefined;
3231
+ }[];
3232
+ } | {
3233
+ status: "unknown";
3234
+ reason: string;
3235
+ evidence: {
3236
+ source: "registration" | "global-declaration" | "cem";
3237
+ strength: string;
3238
+ locator: {
3239
+ filePath: string;
3240
+ line: number;
3241
+ } | {
3242
+ packageName: string;
3243
+ version: string | null;
3244
+ };
3245
+ disposition: string;
3246
+ target?: {
3247
+ kind: "package";
3248
+ packageName: string;
3249
+ } | {
3250
+ kind: "repository";
3251
+ exportName: string;
3252
+ repoId: string;
3253
+ filePath: string;
3254
+ } | undefined;
3255
+ }[];
3256
+ } | {
3257
+ status: "conflict";
3258
+ evidence: {
3259
+ source: "registration" | "global-declaration" | "cem";
3260
+ strength: string;
3261
+ locator: {
3262
+ filePath: string;
3263
+ line: number;
3264
+ } | {
3265
+ packageName: string;
3266
+ version: string | null;
3267
+ };
3268
+ disposition: string;
3269
+ target?: {
3270
+ kind: "package";
3271
+ packageName: string;
3272
+ } | {
3273
+ kind: "repository";
3274
+ exportName: string;
3275
+ repoId: string;
3276
+ filePath: string;
3277
+ } | undefined;
3278
+ }[];
3279
+ strongestClass: string;
3280
+ candidates: ({
3281
+ kind: "package";
3282
+ packageName: string;
3283
+ } | {
3284
+ kind: "repository";
3285
+ exportName: string;
3286
+ repoId: string;
3287
+ filePath: string;
3288
+ })[];
3289
+ } | undefined;
3290
+ definition?: {
3291
+ line: number;
3292
+ column: number;
3293
+ } | undefined;
3294
+ owningPackage?: string | undefined;
3295
+ createdAt?: string | null | undefined;
3296
+ updatedAt?: string | null | undefined;
3297
+ }, {
3298
+ props: Record<string, {
3299
+ values: PropValueEntry[];
3300
+ dynamic: number;
3301
+ omitted: number;
3302
+ other?: number | undefined;
3303
+ truncated?: number | undefined;
3304
+ }>;
3305
+ version: string | null;
3306
+ id: string;
3307
+ identity: {
3308
+ kind: "package-export";
3309
+ packageName: string;
3310
+ publicEntry: string;
3311
+ exportName: string;
3312
+ } | {
3313
+ kind: "repository-declaration";
3314
+ exportName: string;
3315
+ repoId: string;
3316
+ filePath: string;
3317
+ } | {
3318
+ kind: "tag";
3319
+ tagName: string;
3320
+ };
3321
+ stats: {
3322
+ occurrenceCount: number;
3323
+ fileCount: number;
3324
+ };
3325
+ usage: "root" | "direct" | "none";
3326
+ composition: CompositionRollup;
3327
+ events?: Record<string, {
3328
+ boundCount: number;
3329
+ }> | undefined;
3330
+ declared?: DeclaredPropApi | undefined;
3331
+ framework?: "react" | "vue" | undefined;
3332
+ attribution?: {
3333
+ status: "resolved";
3334
+ target: {
3335
+ kind: "package";
3336
+ packageName: string;
3337
+ } | {
3338
+ kind: "repository";
3339
+ exportName: string;
3340
+ repoId: string;
3341
+ filePath: string;
3342
+ };
3343
+ confidence: string;
3344
+ evidence: {
3345
+ source: "registration" | "global-declaration" | "cem";
3346
+ strength: string;
3347
+ locator: {
3348
+ filePath: string;
3349
+ line: number;
3350
+ } | {
3351
+ packageName: string;
3352
+ version: string | null;
3353
+ };
3354
+ disposition: string;
3355
+ target?: {
3356
+ kind: "package";
3357
+ packageName: string;
3358
+ } | {
3359
+ kind: "repository";
3360
+ exportName: string;
3361
+ repoId: string;
3362
+ filePath: string;
3363
+ } | undefined;
3364
+ }[];
3365
+ } | {
3366
+ status: "unknown";
3367
+ reason: string;
3368
+ evidence: {
3369
+ source: "registration" | "global-declaration" | "cem";
3370
+ strength: string;
3371
+ locator: {
3372
+ filePath: string;
3373
+ line: number;
3374
+ } | {
3375
+ packageName: string;
3376
+ version: string | null;
3377
+ };
3378
+ disposition: string;
3379
+ target?: {
3380
+ kind: "package";
3381
+ packageName: string;
3382
+ } | {
3383
+ kind: "repository";
3384
+ exportName: string;
3385
+ repoId: string;
3386
+ filePath: string;
3387
+ } | undefined;
3388
+ }[];
3389
+ } | {
3390
+ status: "conflict";
3391
+ evidence: {
3392
+ source: "registration" | "global-declaration" | "cem";
3393
+ strength: string;
3394
+ locator: {
3395
+ filePath: string;
3396
+ line: number;
3397
+ } | {
3398
+ packageName: string;
3399
+ version: string | null;
3400
+ };
3401
+ disposition: string;
3402
+ target?: {
3403
+ kind: "package";
3404
+ packageName: string;
3405
+ } | {
3406
+ kind: "repository";
3407
+ exportName: string;
3408
+ repoId: string;
3409
+ filePath: string;
3410
+ } | undefined;
3411
+ }[];
3412
+ strongestClass: string;
3413
+ candidates: ({
3414
+ kind: "package";
3415
+ packageName: string;
3416
+ } | {
3417
+ kind: "repository";
3418
+ exportName: string;
3419
+ repoId: string;
3420
+ filePath: string;
3421
+ })[];
3422
+ } | undefined;
3423
+ definition?: {
3424
+ line: number;
3425
+ column: number;
3426
+ } | undefined;
3427
+ owningPackage?: string | undefined;
3428
+ createdAt?: string | null | undefined;
3429
+ updatedAt?: string | null | undefined;
3430
+ }>, {
3431
+ props: Record<string, {
3432
+ values: PropValueEntry[];
3433
+ dynamic: number;
3434
+ omitted: number;
3435
+ other?: number | undefined;
3436
+ truncated?: number | undefined;
3437
+ }>;
3438
+ version: string | null;
3439
+ id: string;
3440
+ identity: {
3441
+ kind: "package-export";
3442
+ packageName: string;
3443
+ publicEntry: string;
3444
+ exportName: string;
3445
+ } | {
3446
+ kind: "repository-declaration";
3447
+ exportName: string;
3448
+ repoId: string;
3449
+ filePath: string;
3450
+ } | {
3451
+ kind: "tag";
3452
+ tagName: string;
3453
+ };
3454
+ stats: {
3455
+ occurrenceCount: number;
3456
+ fileCount: number;
3457
+ };
3458
+ usage: "root" | "direct" | "none";
3459
+ composition: CompositionRollup;
3460
+ events?: Record<string, {
3461
+ boundCount: number;
3462
+ }> | undefined;
3463
+ declared?: DeclaredPropApi | undefined;
3464
+ framework?: "react" | "vue" | undefined;
3465
+ attribution?: {
3466
+ status: "resolved";
3467
+ target: {
3468
+ kind: "package";
3469
+ packageName: string;
3470
+ } | {
3471
+ kind: "repository";
3472
+ exportName: string;
3473
+ repoId: string;
3474
+ filePath: string;
3475
+ };
3476
+ confidence: string;
3477
+ evidence: {
3478
+ source: "registration" | "global-declaration" | "cem";
3479
+ strength: string;
3480
+ locator: {
3481
+ filePath: string;
3482
+ line: number;
3483
+ } | {
3484
+ packageName: string;
3485
+ version: string | null;
3486
+ };
3487
+ disposition: string;
3488
+ target?: {
3489
+ kind: "package";
3490
+ packageName: string;
3491
+ } | {
3492
+ kind: "repository";
3493
+ exportName: string;
3494
+ repoId: string;
3495
+ filePath: string;
3496
+ } | undefined;
3497
+ }[];
3498
+ } | {
3499
+ status: "unknown";
3500
+ reason: string;
3501
+ evidence: {
3502
+ source: "registration" | "global-declaration" | "cem";
3503
+ strength: string;
3504
+ locator: {
3505
+ filePath: string;
3506
+ line: number;
3507
+ } | {
3508
+ packageName: string;
3509
+ version: string | null;
3510
+ };
3511
+ disposition: string;
3512
+ target?: {
3513
+ kind: "package";
3514
+ packageName: string;
3515
+ } | {
3516
+ kind: "repository";
3517
+ exportName: string;
3518
+ repoId: string;
3519
+ filePath: string;
3520
+ } | undefined;
3521
+ }[];
3522
+ } | {
3523
+ status: "conflict";
3524
+ evidence: {
3525
+ source: "registration" | "global-declaration" | "cem";
3526
+ strength: string;
3527
+ locator: {
3528
+ filePath: string;
3529
+ line: number;
3530
+ } | {
3531
+ packageName: string;
3532
+ version: string | null;
3533
+ };
3534
+ disposition: string;
3535
+ target?: {
3536
+ kind: "package";
3537
+ packageName: string;
3538
+ } | {
3539
+ kind: "repository";
3540
+ exportName: string;
3541
+ repoId: string;
3542
+ filePath: string;
3543
+ } | undefined;
3544
+ }[];
3545
+ strongestClass: string;
3546
+ candidates: ({
3547
+ kind: "package";
3548
+ packageName: string;
3549
+ } | {
3550
+ kind: "repository";
3551
+ exportName: string;
3552
+ repoId: string;
3553
+ filePath: string;
3554
+ })[];
3555
+ } | undefined;
3556
+ definition?: {
3557
+ line: number;
3558
+ column: number;
3559
+ } | undefined;
3560
+ owningPackage?: string | undefined;
3561
+ createdAt?: string | null | undefined;
3562
+ updatedAt?: string | null | undefined;
3563
+ }, {
3564
+ props: Record<string, {
3565
+ values: PropValueEntry[];
3566
+ dynamic: number;
3567
+ omitted: number;
3568
+ other?: number | undefined;
3569
+ truncated?: number | undefined;
3570
+ }>;
3571
+ version: string | null;
3572
+ id: string;
3573
+ identity: {
3574
+ kind: "package-export";
3575
+ packageName: string;
3576
+ publicEntry: string;
3577
+ exportName: string;
3578
+ } | {
3579
+ kind: "repository-declaration";
3580
+ exportName: string;
3581
+ repoId: string;
3582
+ filePath: string;
3583
+ } | {
3584
+ kind: "tag";
3585
+ tagName: string;
3586
+ };
3587
+ stats: {
3588
+ occurrenceCount: number;
3589
+ fileCount: number;
3590
+ };
3591
+ usage: "root" | "direct" | "none";
3592
+ composition: CompositionRollup;
3593
+ events?: Record<string, {
3594
+ boundCount: number;
3595
+ }> | undefined;
3596
+ declared?: DeclaredPropApi | undefined;
3597
+ framework?: "react" | "vue" | undefined;
3598
+ attribution?: {
3599
+ status: "resolved";
3600
+ target: {
3601
+ kind: "package";
3602
+ packageName: string;
3603
+ } | {
3604
+ kind: "repository";
3605
+ exportName: string;
3606
+ repoId: string;
3607
+ filePath: string;
3608
+ };
3609
+ confidence: string;
3610
+ evidence: {
3611
+ source: "registration" | "global-declaration" | "cem";
3612
+ strength: string;
3613
+ locator: {
3614
+ filePath: string;
3615
+ line: number;
3616
+ } | {
3617
+ packageName: string;
3618
+ version: string | null;
3619
+ };
3620
+ disposition: string;
3621
+ target?: {
3622
+ kind: "package";
3623
+ packageName: string;
3624
+ } | {
3625
+ kind: "repository";
3626
+ exportName: string;
3627
+ repoId: string;
3628
+ filePath: string;
3629
+ } | undefined;
3630
+ }[];
3631
+ } | {
3632
+ status: "unknown";
3633
+ reason: string;
3634
+ evidence: {
3635
+ source: "registration" | "global-declaration" | "cem";
3636
+ strength: string;
3637
+ locator: {
3638
+ filePath: string;
3639
+ line: number;
3640
+ } | {
3641
+ packageName: string;
3642
+ version: string | null;
3643
+ };
3644
+ disposition: string;
3645
+ target?: {
3646
+ kind: "package";
3647
+ packageName: string;
3648
+ } | {
3649
+ kind: "repository";
3650
+ exportName: string;
3651
+ repoId: string;
3652
+ filePath: string;
3653
+ } | undefined;
3654
+ }[];
3655
+ } | {
3656
+ status: "conflict";
3657
+ evidence: {
3658
+ source: "registration" | "global-declaration" | "cem";
3659
+ strength: string;
3660
+ locator: {
3661
+ filePath: string;
3662
+ line: number;
3663
+ } | {
3664
+ packageName: string;
3665
+ version: string | null;
3666
+ };
3667
+ disposition: string;
3668
+ target?: {
3669
+ kind: "package";
3670
+ packageName: string;
3671
+ } | {
3672
+ kind: "repository";
3673
+ exportName: string;
3674
+ repoId: string;
3675
+ filePath: string;
3676
+ } | undefined;
3677
+ }[];
3678
+ strongestClass: string;
3679
+ candidates: ({
3680
+ kind: "package";
3681
+ packageName: string;
3682
+ } | {
3683
+ kind: "repository";
3684
+ exportName: string;
3685
+ repoId: string;
3686
+ filePath: string;
3687
+ })[];
3688
+ } | undefined;
3689
+ definition?: {
3690
+ line: number;
3691
+ column: number;
3692
+ } | undefined;
3693
+ owningPackage?: string | undefined;
3694
+ createdAt?: string | null | undefined;
3695
+ updatedAt?: string | null | undefined;
3696
+ }>, "many">;
3697
+ occurrences: z.ZodArray<z.ZodObject<{
3698
+ occurrenceId: z.ZodString;
3699
+ resolution: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3700
+ status: z.ZodLiteral<"resolved">;
3701
+ componentId: z.ZodString;
3702
+ }, "strip", z.ZodTypeAny, {
3703
+ status: "resolved";
3704
+ componentId: string;
3705
+ }, {
3706
+ status: "resolved";
3707
+ componentId: string;
3708
+ }>, z.ZodObject<{
3709
+ status: z.ZodLiteral<"unresolved">;
3710
+ reason: z.ZodType<OtherKind | {
3711
+ kind: "package-not-installed";
3712
+ packageName: string;
3713
+ } | {
3714
+ kind: "module-not-found";
3715
+ } | {
3716
+ kind: "unbound-name";
3717
+ name: string;
3718
+ } | {
3719
+ code: string;
3720
+ kind: "chain-bailed";
3721
+ }, z.ZodTypeDef, OtherKind | {
3722
+ kind: "package-not-installed";
3723
+ packageName: string;
3724
+ } | {
3725
+ kind: "module-not-found";
3726
+ } | {
3727
+ kind: "unbound-name";
3728
+ name: string;
3729
+ } | {
3730
+ code: string;
3731
+ kind: "chain-bailed";
3732
+ }>;
3733
+ /** Never present on an unresolved occurrence. */
3734
+ componentId: z.ZodOptional<z.ZodNever>;
3735
+ }, "strip", z.ZodTypeAny, {
3736
+ status: "unresolved";
3737
+ reason: OtherKind | {
3738
+ kind: "package-not-installed";
3739
+ packageName: string;
3740
+ } | {
3741
+ kind: "module-not-found";
3742
+ } | {
3743
+ kind: "unbound-name";
3744
+ name: string;
3745
+ } | {
3746
+ code: string;
3747
+ kind: "chain-bailed";
3748
+ };
3749
+ componentId?: undefined;
3750
+ }, {
3751
+ status: "unresolved";
3752
+ reason: OtherKind | {
3753
+ kind: "package-not-installed";
3754
+ packageName: string;
3755
+ } | {
3756
+ kind: "module-not-found";
3757
+ } | {
3758
+ kind: "unbound-name";
3759
+ name: string;
3760
+ } | {
3761
+ code: string;
3762
+ kind: "chain-bailed";
3763
+ };
3764
+ componentId?: undefined;
3765
+ }>]>;
3766
+ filePath: z.ZodString;
3767
+ line: z.ZodNumber;
3768
+ column: z.ZodNumber;
3769
+ credit: z.ZodType<OtherKind | {
3770
+ kind: "render";
3771
+ } | {
3772
+ kind: "argument";
3773
+ callee: string;
3774
+ index: number;
3775
+ }, z.ZodTypeDef, OtherKind | {
3776
+ kind: "render";
3777
+ } | {
3778
+ kind: "argument";
3779
+ callee: string;
3780
+ index: number;
3781
+ }>;
3782
+ trace: z.ZodArray<z.ZodType<OtherKind | {
3783
+ kind: "import";
3784
+ specifier: string;
3785
+ name: string;
3786
+ } | {
3787
+ kind: "tag";
3788
+ written: string;
3789
+ } | {
3790
+ kind: "hoc";
3791
+ callee: string;
3792
+ } | {
3793
+ kind: "lazy";
3794
+ callee: string;
3795
+ } | {
3796
+ kind: "dynamic-map";
3797
+ mapName: string;
3798
+ mapLoc: {
3799
+ file: string;
3800
+ line: number;
3801
+ column: number;
3802
+ };
3803
+ } | {
3804
+ kind: "helper-call";
3805
+ callee: string;
3806
+ calleeFile: string;
3807
+ } | {
3808
+ kind: "prop-forward";
3809
+ bindingName: string;
3810
+ constructionSite: {
3811
+ file: string;
3812
+ line: number;
3813
+ column: number;
3814
+ };
3815
+ }, z.ZodTypeDef, OtherKind | {
3816
+ kind: "import";
3817
+ specifier: string;
3818
+ name: string;
3819
+ } | {
3820
+ kind: "tag";
3821
+ written: string;
3822
+ } | {
3823
+ kind: "hoc";
3824
+ callee: string;
3825
+ } | {
3826
+ kind: "lazy";
3827
+ callee: string;
3828
+ } | {
3829
+ kind: "dynamic-map";
3830
+ mapName: string;
3831
+ mapLoc: {
3832
+ file: string;
3833
+ line: number;
3834
+ column: number;
3835
+ };
3836
+ } | {
3837
+ kind: "helper-call";
3838
+ callee: string;
3839
+ calleeFile: string;
3840
+ } | {
3841
+ kind: "prop-forward";
3842
+ bindingName: string;
3843
+ constructionSite: {
3844
+ file: string;
3845
+ line: number;
3846
+ column: number;
3847
+ };
3848
+ }>, "many">;
3849
+ props: z.ZodRecord<z.ZodString, z.ZodType<PropValueState, z.ZodTypeDef, PropValueState>>;
3850
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3851
+ ownerComponentId: z.ZodOptional<z.ZodString>;
3852
+ depth: z.ZodOptional<z.ZodNumber>;
3853
+ }, "strip", z.ZodTypeAny, {
3854
+ filePath: string;
3855
+ line: number;
3856
+ column: number;
3857
+ occurrenceId: string;
3858
+ resolution: {
3859
+ status: "resolved";
3860
+ componentId: string;
3861
+ } | {
3862
+ status: "unresolved";
3863
+ reason: OtherKind | {
3864
+ kind: "package-not-installed";
3865
+ packageName: string;
3866
+ } | {
3867
+ kind: "module-not-found";
3868
+ } | {
3869
+ kind: "unbound-name";
3870
+ name: string;
3871
+ } | {
3872
+ code: string;
3873
+ kind: "chain-bailed";
3874
+ };
3875
+ componentId?: undefined;
3876
+ };
3877
+ credit: OtherKind | {
3878
+ kind: "render";
3879
+ } | {
3880
+ kind: "argument";
3881
+ callee: string;
3882
+ index: number;
3883
+ };
3884
+ trace: (OtherKind | {
3885
+ kind: "import";
3886
+ specifier: string;
3887
+ name: string;
3888
+ } | {
3889
+ kind: "tag";
3890
+ written: string;
3891
+ } | {
3892
+ kind: "hoc";
3893
+ callee: string;
3894
+ } | {
3895
+ kind: "lazy";
3896
+ callee: string;
3897
+ } | {
3898
+ kind: "dynamic-map";
3899
+ mapName: string;
3900
+ mapLoc: {
3901
+ file: string;
3902
+ line: number;
3903
+ column: number;
3904
+ };
3905
+ } | {
3906
+ kind: "helper-call";
3907
+ callee: string;
3908
+ calleeFile: string;
3909
+ } | {
3910
+ kind: "prop-forward";
3911
+ bindingName: string;
3912
+ constructionSite: {
3913
+ file: string;
3914
+ line: number;
3915
+ column: number;
3916
+ };
3917
+ })[];
3918
+ props: Record<string, PropValueState>;
3919
+ events?: string[] | undefined;
3920
+ ownerComponentId?: string | undefined;
3921
+ depth?: number | undefined;
3922
+ }, {
3923
+ filePath: string;
3924
+ line: number;
3925
+ column: number;
3926
+ occurrenceId: string;
3927
+ resolution: {
3928
+ status: "resolved";
3929
+ componentId: string;
3930
+ } | {
3931
+ status: "unresolved";
3932
+ reason: OtherKind | {
3933
+ kind: "package-not-installed";
3934
+ packageName: string;
3935
+ } | {
3936
+ kind: "module-not-found";
3937
+ } | {
3938
+ kind: "unbound-name";
3939
+ name: string;
3940
+ } | {
3941
+ code: string;
3942
+ kind: "chain-bailed";
3943
+ };
3944
+ componentId?: undefined;
3945
+ };
3946
+ credit: OtherKind | {
3947
+ kind: "render";
3948
+ } | {
3949
+ kind: "argument";
3950
+ callee: string;
3951
+ index: number;
3952
+ };
3953
+ trace: (OtherKind | {
3954
+ kind: "import";
3955
+ specifier: string;
3956
+ name: string;
3957
+ } | {
3958
+ kind: "tag";
3959
+ written: string;
3960
+ } | {
3961
+ kind: "hoc";
3962
+ callee: string;
3963
+ } | {
3964
+ kind: "lazy";
3965
+ callee: string;
3966
+ } | {
3967
+ kind: "dynamic-map";
3968
+ mapName: string;
3969
+ mapLoc: {
3970
+ file: string;
3971
+ line: number;
3972
+ column: number;
3973
+ };
3974
+ } | {
3975
+ kind: "helper-call";
3976
+ callee: string;
3977
+ calleeFile: string;
3978
+ } | {
3979
+ kind: "prop-forward";
3980
+ bindingName: string;
3981
+ constructionSite: {
3982
+ file: string;
3983
+ line: number;
3984
+ column: number;
3985
+ };
3986
+ })[];
3987
+ props: Record<string, PropValueState>;
3988
+ events?: string[] | undefined;
3989
+ ownerComponentId?: string | undefined;
3990
+ depth?: number | undefined;
3991
+ }>, "many">;
3992
+ diagnostics: z.ZodArray<z.ZodType<Diagnostic, z.ZodTypeDef, Diagnostic>, "many">;
3993
+ }, "strip", z.ZodTypeAny, {
3994
+ meta: {
3995
+ schemaVersion: 2;
3996
+ scannerVersion: string;
3997
+ scanId: string;
3998
+ scannedAt: string;
3999
+ repo: {
4000
+ id: string;
4001
+ gitRemote: string | null;
4002
+ commit: string;
4003
+ committedAt: string;
4004
+ initialCommit: string | null;
4005
+ branch: string | null;
4006
+ };
4007
+ };
4008
+ components: {
4009
+ props: Record<string, {
4010
+ values: PropValueEntry[];
4011
+ dynamic: number;
4012
+ omitted: number;
4013
+ other?: number | undefined;
4014
+ truncated?: number | undefined;
4015
+ }>;
4016
+ version: string | null;
4017
+ id: string;
4018
+ identity: {
4019
+ kind: "package-export";
4020
+ packageName: string;
4021
+ publicEntry: string;
4022
+ exportName: string;
4023
+ } | {
4024
+ kind: "repository-declaration";
4025
+ exportName: string;
4026
+ repoId: string;
4027
+ filePath: string;
4028
+ } | {
4029
+ kind: "tag";
4030
+ tagName: string;
4031
+ };
4032
+ stats: {
4033
+ occurrenceCount: number;
4034
+ fileCount: number;
4035
+ };
4036
+ usage: "root" | "direct" | "none";
4037
+ composition: CompositionRollup;
4038
+ events?: Record<string, {
4039
+ boundCount: number;
4040
+ }> | undefined;
4041
+ declared?: DeclaredPropApi | undefined;
4042
+ framework?: "react" | "vue" | undefined;
4043
+ attribution?: {
4044
+ status: "resolved";
4045
+ target: {
4046
+ kind: "package";
4047
+ packageName: string;
4048
+ } | {
4049
+ kind: "repository";
4050
+ exportName: string;
4051
+ repoId: string;
4052
+ filePath: string;
4053
+ };
4054
+ confidence: string;
4055
+ evidence: {
4056
+ source: "registration" | "global-declaration" | "cem";
4057
+ strength: string;
4058
+ locator: {
4059
+ filePath: string;
4060
+ line: number;
4061
+ } | {
4062
+ packageName: string;
4063
+ version: string | null;
4064
+ };
4065
+ disposition: string;
4066
+ target?: {
4067
+ kind: "package";
4068
+ packageName: string;
4069
+ } | {
4070
+ kind: "repository";
4071
+ exportName: string;
4072
+ repoId: string;
4073
+ filePath: string;
4074
+ } | undefined;
4075
+ }[];
4076
+ } | {
4077
+ status: "unknown";
4078
+ reason: string;
4079
+ evidence: {
4080
+ source: "registration" | "global-declaration" | "cem";
4081
+ strength: string;
4082
+ locator: {
4083
+ filePath: string;
4084
+ line: number;
4085
+ } | {
4086
+ packageName: string;
4087
+ version: string | null;
4088
+ };
4089
+ disposition: string;
4090
+ target?: {
4091
+ kind: "package";
4092
+ packageName: string;
4093
+ } | {
4094
+ kind: "repository";
4095
+ exportName: string;
4096
+ repoId: string;
4097
+ filePath: string;
4098
+ } | undefined;
4099
+ }[];
4100
+ } | {
4101
+ status: "conflict";
4102
+ evidence: {
4103
+ source: "registration" | "global-declaration" | "cem";
4104
+ strength: string;
4105
+ locator: {
4106
+ filePath: string;
4107
+ line: number;
4108
+ } | {
4109
+ packageName: string;
4110
+ version: string | null;
4111
+ };
4112
+ disposition: string;
4113
+ target?: {
4114
+ kind: "package";
4115
+ packageName: string;
4116
+ } | {
4117
+ kind: "repository";
4118
+ exportName: string;
4119
+ repoId: string;
4120
+ filePath: string;
4121
+ } | undefined;
4122
+ }[];
4123
+ strongestClass: string;
4124
+ candidates: ({
4125
+ kind: "package";
4126
+ packageName: string;
4127
+ } | {
4128
+ kind: "repository";
4129
+ exportName: string;
4130
+ repoId: string;
4131
+ filePath: string;
4132
+ })[];
4133
+ } | undefined;
4134
+ definition?: {
4135
+ line: number;
4136
+ column: number;
4137
+ } | undefined;
4138
+ owningPackage?: string | undefined;
4139
+ createdAt?: string | null | undefined;
4140
+ updatedAt?: string | null | undefined;
4141
+ }[];
4142
+ occurrences: {
4143
+ filePath: string;
4144
+ line: number;
4145
+ column: number;
4146
+ occurrenceId: string;
4147
+ resolution: {
4148
+ status: "resolved";
4149
+ componentId: string;
4150
+ } | {
4151
+ status: "unresolved";
4152
+ reason: OtherKind | {
4153
+ kind: "package-not-installed";
4154
+ packageName: string;
4155
+ } | {
4156
+ kind: "module-not-found";
4157
+ } | {
4158
+ kind: "unbound-name";
4159
+ name: string;
4160
+ } | {
4161
+ code: string;
4162
+ kind: "chain-bailed";
4163
+ };
4164
+ componentId?: undefined;
4165
+ };
4166
+ credit: OtherKind | {
4167
+ kind: "render";
4168
+ } | {
4169
+ kind: "argument";
4170
+ callee: string;
4171
+ index: number;
4172
+ };
4173
+ trace: (OtherKind | {
4174
+ kind: "import";
4175
+ specifier: string;
4176
+ name: string;
4177
+ } | {
4178
+ kind: "tag";
4179
+ written: string;
4180
+ } | {
4181
+ kind: "hoc";
4182
+ callee: string;
4183
+ } | {
4184
+ kind: "lazy";
4185
+ callee: string;
4186
+ } | {
4187
+ kind: "dynamic-map";
4188
+ mapName: string;
4189
+ mapLoc: {
4190
+ file: string;
4191
+ line: number;
4192
+ column: number;
4193
+ };
4194
+ } | {
4195
+ kind: "helper-call";
4196
+ callee: string;
4197
+ calleeFile: string;
4198
+ } | {
4199
+ kind: "prop-forward";
4200
+ bindingName: string;
4201
+ constructionSite: {
4202
+ file: string;
4203
+ line: number;
4204
+ column: number;
4205
+ };
4206
+ })[];
4207
+ props: Record<string, PropValueState>;
4208
+ events?: string[] | undefined;
4209
+ ownerComponentId?: string | undefined;
4210
+ depth?: number | undefined;
4211
+ }[];
4212
+ diagnostics: Diagnostic[];
4213
+ }, {
4214
+ meta: {
4215
+ schemaVersion: 2;
4216
+ scannerVersion: string;
4217
+ scanId: string;
4218
+ scannedAt: string;
4219
+ repo: {
4220
+ id: string;
4221
+ gitRemote: string | null;
4222
+ commit: string;
4223
+ committedAt: string;
4224
+ initialCommit: string | null;
4225
+ branch: string | null;
4226
+ };
4227
+ };
4228
+ components: {
4229
+ props: Record<string, {
4230
+ values: PropValueEntry[];
4231
+ dynamic: number;
4232
+ omitted: number;
4233
+ other?: number | undefined;
4234
+ truncated?: number | undefined;
4235
+ }>;
4236
+ version: string | null;
4237
+ id: string;
4238
+ identity: {
4239
+ kind: "package-export";
4240
+ packageName: string;
4241
+ publicEntry: string;
4242
+ exportName: string;
4243
+ } | {
4244
+ kind: "repository-declaration";
4245
+ exportName: string;
4246
+ repoId: string;
4247
+ filePath: string;
4248
+ } | {
4249
+ kind: "tag";
4250
+ tagName: string;
4251
+ };
4252
+ stats: {
4253
+ occurrenceCount: number;
4254
+ fileCount: number;
4255
+ };
4256
+ usage: "root" | "direct" | "none";
4257
+ composition: CompositionRollup;
4258
+ events?: Record<string, {
4259
+ boundCount: number;
4260
+ }> | undefined;
4261
+ declared?: DeclaredPropApi | undefined;
4262
+ framework?: "react" | "vue" | undefined;
4263
+ attribution?: {
4264
+ status: "resolved";
4265
+ target: {
4266
+ kind: "package";
4267
+ packageName: string;
4268
+ } | {
4269
+ kind: "repository";
4270
+ exportName: string;
4271
+ repoId: string;
4272
+ filePath: string;
4273
+ };
4274
+ confidence: string;
4275
+ evidence: {
4276
+ source: "registration" | "global-declaration" | "cem";
4277
+ strength: string;
4278
+ locator: {
4279
+ filePath: string;
4280
+ line: number;
4281
+ } | {
4282
+ packageName: string;
4283
+ version: string | null;
4284
+ };
4285
+ disposition: string;
4286
+ target?: {
4287
+ kind: "package";
4288
+ packageName: string;
4289
+ } | {
4290
+ kind: "repository";
4291
+ exportName: string;
4292
+ repoId: string;
4293
+ filePath: string;
4294
+ } | undefined;
4295
+ }[];
4296
+ } | {
4297
+ status: "unknown";
4298
+ reason: string;
4299
+ evidence: {
4300
+ source: "registration" | "global-declaration" | "cem";
4301
+ strength: string;
4302
+ locator: {
4303
+ filePath: string;
4304
+ line: number;
4305
+ } | {
4306
+ packageName: string;
4307
+ version: string | null;
4308
+ };
4309
+ disposition: string;
4310
+ target?: {
4311
+ kind: "package";
4312
+ packageName: string;
4313
+ } | {
4314
+ kind: "repository";
4315
+ exportName: string;
4316
+ repoId: string;
4317
+ filePath: string;
4318
+ } | undefined;
4319
+ }[];
4320
+ } | {
4321
+ status: "conflict";
4322
+ evidence: {
4323
+ source: "registration" | "global-declaration" | "cem";
4324
+ strength: string;
4325
+ locator: {
4326
+ filePath: string;
4327
+ line: number;
4328
+ } | {
4329
+ packageName: string;
4330
+ version: string | null;
4331
+ };
4332
+ disposition: string;
4333
+ target?: {
4334
+ kind: "package";
4335
+ packageName: string;
4336
+ } | {
4337
+ kind: "repository";
4338
+ exportName: string;
4339
+ repoId: string;
4340
+ filePath: string;
4341
+ } | undefined;
4342
+ }[];
4343
+ strongestClass: string;
4344
+ candidates: ({
4345
+ kind: "package";
4346
+ packageName: string;
4347
+ } | {
4348
+ kind: "repository";
4349
+ exportName: string;
4350
+ repoId: string;
4351
+ filePath: string;
4352
+ })[];
4353
+ } | undefined;
4354
+ definition?: {
4355
+ line: number;
4356
+ column: number;
4357
+ } | undefined;
4358
+ owningPackage?: string | undefined;
4359
+ createdAt?: string | null | undefined;
4360
+ updatedAt?: string | null | undefined;
4361
+ }[];
4362
+ occurrences: {
4363
+ filePath: string;
4364
+ line: number;
4365
+ column: number;
4366
+ occurrenceId: string;
4367
+ resolution: {
4368
+ status: "resolved";
4369
+ componentId: string;
4370
+ } | {
4371
+ status: "unresolved";
4372
+ reason: OtherKind | {
4373
+ kind: "package-not-installed";
4374
+ packageName: string;
4375
+ } | {
4376
+ kind: "module-not-found";
4377
+ } | {
4378
+ kind: "unbound-name";
4379
+ name: string;
4380
+ } | {
4381
+ code: string;
4382
+ kind: "chain-bailed";
4383
+ };
4384
+ componentId?: undefined;
4385
+ };
4386
+ credit: OtherKind | {
4387
+ kind: "render";
4388
+ } | {
4389
+ kind: "argument";
4390
+ callee: string;
4391
+ index: number;
4392
+ };
4393
+ trace: (OtherKind | {
4394
+ kind: "import";
4395
+ specifier: string;
4396
+ name: string;
4397
+ } | {
4398
+ kind: "tag";
4399
+ written: string;
4400
+ } | {
4401
+ kind: "hoc";
4402
+ callee: string;
4403
+ } | {
4404
+ kind: "lazy";
4405
+ callee: string;
4406
+ } | {
4407
+ kind: "dynamic-map";
4408
+ mapName: string;
4409
+ mapLoc: {
4410
+ file: string;
4411
+ line: number;
4412
+ column: number;
4413
+ };
4414
+ } | {
4415
+ kind: "helper-call";
4416
+ callee: string;
4417
+ calleeFile: string;
4418
+ } | {
4419
+ kind: "prop-forward";
4420
+ bindingName: string;
4421
+ constructionSite: {
4422
+ file: string;
4423
+ line: number;
4424
+ column: number;
4425
+ };
4426
+ })[];
4427
+ props: Record<string, PropValueState>;
4428
+ events?: string[] | undefined;
4429
+ ownerComponentId?: string | undefined;
4430
+ depth?: number | undefined;
4431
+ }[];
4432
+ diagnostics: Diagnostic[];
4433
+ }>, {
4434
+ meta: {
4435
+ schemaVersion: 2;
4436
+ scannerVersion: string;
4437
+ scanId: string;
4438
+ scannedAt: string;
4439
+ repo: {
4440
+ id: string;
4441
+ gitRemote: string | null;
4442
+ commit: string;
4443
+ committedAt: string;
4444
+ initialCommit: string | null;
4445
+ branch: string | null;
4446
+ };
4447
+ };
4448
+ components: {
4449
+ props: Record<string, {
4450
+ values: PropValueEntry[];
4451
+ dynamic: number;
4452
+ omitted: number;
4453
+ other?: number | undefined;
4454
+ truncated?: number | undefined;
4455
+ }>;
4456
+ version: string | null;
4457
+ id: string;
4458
+ identity: {
4459
+ kind: "package-export";
4460
+ packageName: string;
4461
+ publicEntry: string;
4462
+ exportName: string;
4463
+ } | {
4464
+ kind: "repository-declaration";
4465
+ exportName: string;
4466
+ repoId: string;
4467
+ filePath: string;
4468
+ } | {
4469
+ kind: "tag";
4470
+ tagName: string;
4471
+ };
4472
+ stats: {
4473
+ occurrenceCount: number;
4474
+ fileCount: number;
4475
+ };
4476
+ usage: "root" | "direct" | "none";
4477
+ composition: CompositionRollup;
4478
+ events?: Record<string, {
4479
+ boundCount: number;
4480
+ }> | undefined;
4481
+ declared?: DeclaredPropApi | undefined;
4482
+ framework?: "react" | "vue" | undefined;
4483
+ attribution?: {
4484
+ status: "resolved";
4485
+ target: {
4486
+ kind: "package";
4487
+ packageName: string;
4488
+ } | {
4489
+ kind: "repository";
4490
+ exportName: string;
4491
+ repoId: string;
4492
+ filePath: string;
4493
+ };
4494
+ confidence: string;
4495
+ evidence: {
4496
+ source: "registration" | "global-declaration" | "cem";
4497
+ strength: string;
4498
+ locator: {
4499
+ filePath: string;
4500
+ line: number;
4501
+ } | {
4502
+ packageName: string;
4503
+ version: string | null;
4504
+ };
4505
+ disposition: string;
4506
+ target?: {
4507
+ kind: "package";
4508
+ packageName: string;
4509
+ } | {
4510
+ kind: "repository";
4511
+ exportName: string;
4512
+ repoId: string;
4513
+ filePath: string;
4514
+ } | undefined;
4515
+ }[];
4516
+ } | {
4517
+ status: "unknown";
4518
+ reason: string;
4519
+ evidence: {
4520
+ source: "registration" | "global-declaration" | "cem";
4521
+ strength: string;
4522
+ locator: {
4523
+ filePath: string;
4524
+ line: number;
4525
+ } | {
4526
+ packageName: string;
4527
+ version: string | null;
4528
+ };
4529
+ disposition: string;
4530
+ target?: {
4531
+ kind: "package";
4532
+ packageName: string;
4533
+ } | {
4534
+ kind: "repository";
4535
+ exportName: string;
4536
+ repoId: string;
4537
+ filePath: string;
4538
+ } | undefined;
4539
+ }[];
4540
+ } | {
4541
+ status: "conflict";
4542
+ evidence: {
4543
+ source: "registration" | "global-declaration" | "cem";
4544
+ strength: string;
4545
+ locator: {
4546
+ filePath: string;
4547
+ line: number;
4548
+ } | {
4549
+ packageName: string;
4550
+ version: string | null;
4551
+ };
4552
+ disposition: string;
4553
+ target?: {
4554
+ kind: "package";
4555
+ packageName: string;
4556
+ } | {
4557
+ kind: "repository";
4558
+ exportName: string;
4559
+ repoId: string;
4560
+ filePath: string;
4561
+ } | undefined;
4562
+ }[];
4563
+ strongestClass: string;
4564
+ candidates: ({
4565
+ kind: "package";
4566
+ packageName: string;
4567
+ } | {
4568
+ kind: "repository";
4569
+ exportName: string;
4570
+ repoId: string;
4571
+ filePath: string;
4572
+ })[];
4573
+ } | undefined;
4574
+ definition?: {
4575
+ line: number;
4576
+ column: number;
4577
+ } | undefined;
4578
+ owningPackage?: string | undefined;
4579
+ createdAt?: string | null | undefined;
4580
+ updatedAt?: string | null | undefined;
4581
+ }[];
4582
+ occurrences: {
4583
+ filePath: string;
4584
+ line: number;
4585
+ column: number;
4586
+ occurrenceId: string;
4587
+ resolution: {
4588
+ status: "resolved";
4589
+ componentId: string;
4590
+ } | {
4591
+ status: "unresolved";
4592
+ reason: OtherKind | {
4593
+ kind: "package-not-installed";
4594
+ packageName: string;
4595
+ } | {
4596
+ kind: "module-not-found";
4597
+ } | {
4598
+ kind: "unbound-name";
4599
+ name: string;
4600
+ } | {
4601
+ code: string;
4602
+ kind: "chain-bailed";
4603
+ };
4604
+ componentId?: undefined;
4605
+ };
4606
+ credit: OtherKind | {
4607
+ kind: "render";
4608
+ } | {
4609
+ kind: "argument";
4610
+ callee: string;
4611
+ index: number;
4612
+ };
4613
+ trace: (OtherKind | {
4614
+ kind: "import";
4615
+ specifier: string;
4616
+ name: string;
4617
+ } | {
4618
+ kind: "tag";
4619
+ written: string;
4620
+ } | {
4621
+ kind: "hoc";
4622
+ callee: string;
4623
+ } | {
4624
+ kind: "lazy";
4625
+ callee: string;
4626
+ } | {
4627
+ kind: "dynamic-map";
4628
+ mapName: string;
4629
+ mapLoc: {
4630
+ file: string;
4631
+ line: number;
4632
+ column: number;
4633
+ };
4634
+ } | {
4635
+ kind: "helper-call";
4636
+ callee: string;
4637
+ calleeFile: string;
4638
+ } | {
4639
+ kind: "prop-forward";
4640
+ bindingName: string;
4641
+ constructionSite: {
4642
+ file: string;
4643
+ line: number;
4644
+ column: number;
4645
+ };
4646
+ })[];
4647
+ props: Record<string, PropValueState>;
4648
+ events?: string[] | undefined;
4649
+ ownerComponentId?: string | undefined;
4650
+ depth?: number | undefined;
4651
+ }[];
4652
+ diagnostics: Diagnostic[];
4653
+ }, {
4654
+ meta: {
4655
+ schemaVersion: 2;
4656
+ scannerVersion: string;
4657
+ scanId: string;
4658
+ scannedAt: string;
4659
+ repo: {
4660
+ id: string;
4661
+ gitRemote: string | null;
4662
+ commit: string;
4663
+ committedAt: string;
4664
+ initialCommit: string | null;
4665
+ branch: string | null;
4666
+ };
4667
+ };
4668
+ components: {
4669
+ props: Record<string, {
4670
+ values: PropValueEntry[];
4671
+ dynamic: number;
4672
+ omitted: number;
4673
+ other?: number | undefined;
4674
+ truncated?: number | undefined;
4675
+ }>;
4676
+ version: string | null;
4677
+ id: string;
4678
+ identity: {
4679
+ kind: "package-export";
4680
+ packageName: string;
4681
+ publicEntry: string;
4682
+ exportName: string;
4683
+ } | {
4684
+ kind: "repository-declaration";
4685
+ exportName: string;
4686
+ repoId: string;
4687
+ filePath: string;
4688
+ } | {
4689
+ kind: "tag";
4690
+ tagName: string;
4691
+ };
4692
+ stats: {
4693
+ occurrenceCount: number;
4694
+ fileCount: number;
4695
+ };
4696
+ usage: "root" | "direct" | "none";
4697
+ composition: CompositionRollup;
4698
+ events?: Record<string, {
4699
+ boundCount: number;
4700
+ }> | undefined;
4701
+ declared?: DeclaredPropApi | undefined;
4702
+ framework?: "react" | "vue" | undefined;
4703
+ attribution?: {
4704
+ status: "resolved";
4705
+ target: {
4706
+ kind: "package";
4707
+ packageName: string;
4708
+ } | {
4709
+ kind: "repository";
4710
+ exportName: string;
4711
+ repoId: string;
4712
+ filePath: string;
4713
+ };
4714
+ confidence: string;
4715
+ evidence: {
4716
+ source: "registration" | "global-declaration" | "cem";
4717
+ strength: string;
4718
+ locator: {
4719
+ filePath: string;
4720
+ line: number;
4721
+ } | {
4722
+ packageName: string;
4723
+ version: string | null;
4724
+ };
4725
+ disposition: string;
4726
+ target?: {
4727
+ kind: "package";
4728
+ packageName: string;
4729
+ } | {
4730
+ kind: "repository";
4731
+ exportName: string;
4732
+ repoId: string;
4733
+ filePath: string;
4734
+ } | undefined;
4735
+ }[];
4736
+ } | {
4737
+ status: "unknown";
4738
+ reason: string;
4739
+ evidence: {
4740
+ source: "registration" | "global-declaration" | "cem";
4741
+ strength: string;
4742
+ locator: {
4743
+ filePath: string;
4744
+ line: number;
4745
+ } | {
4746
+ packageName: string;
4747
+ version: string | null;
4748
+ };
4749
+ disposition: string;
4750
+ target?: {
4751
+ kind: "package";
4752
+ packageName: string;
4753
+ } | {
4754
+ kind: "repository";
4755
+ exportName: string;
4756
+ repoId: string;
4757
+ filePath: string;
4758
+ } | undefined;
4759
+ }[];
4760
+ } | {
4761
+ status: "conflict";
4762
+ evidence: {
4763
+ source: "registration" | "global-declaration" | "cem";
4764
+ strength: string;
4765
+ locator: {
4766
+ filePath: string;
4767
+ line: number;
4768
+ } | {
4769
+ packageName: string;
4770
+ version: string | null;
4771
+ };
4772
+ disposition: string;
4773
+ target?: {
4774
+ kind: "package";
4775
+ packageName: string;
4776
+ } | {
4777
+ kind: "repository";
4778
+ exportName: string;
4779
+ repoId: string;
4780
+ filePath: string;
4781
+ } | undefined;
4782
+ }[];
4783
+ strongestClass: string;
4784
+ candidates: ({
4785
+ kind: "package";
4786
+ packageName: string;
4787
+ } | {
4788
+ kind: "repository";
4789
+ exportName: string;
4790
+ repoId: string;
4791
+ filePath: string;
4792
+ })[];
4793
+ } | undefined;
4794
+ definition?: {
4795
+ line: number;
4796
+ column: number;
4797
+ } | undefined;
4798
+ owningPackage?: string | undefined;
4799
+ createdAt?: string | null | undefined;
4800
+ updatedAt?: string | null | undefined;
4801
+ }[];
4802
+ occurrences: {
4803
+ filePath: string;
4804
+ line: number;
4805
+ column: number;
4806
+ occurrenceId: string;
4807
+ resolution: {
4808
+ status: "resolved";
4809
+ componentId: string;
4810
+ } | {
4811
+ status: "unresolved";
4812
+ reason: OtherKind | {
4813
+ kind: "package-not-installed";
4814
+ packageName: string;
4815
+ } | {
4816
+ kind: "module-not-found";
4817
+ } | {
4818
+ kind: "unbound-name";
4819
+ name: string;
4820
+ } | {
4821
+ code: string;
4822
+ kind: "chain-bailed";
4823
+ };
4824
+ componentId?: undefined;
4825
+ };
4826
+ credit: OtherKind | {
4827
+ kind: "render";
4828
+ } | {
4829
+ kind: "argument";
4830
+ callee: string;
4831
+ index: number;
4832
+ };
4833
+ trace: (OtherKind | {
4834
+ kind: "import";
4835
+ specifier: string;
4836
+ name: string;
4837
+ } | {
4838
+ kind: "tag";
4839
+ written: string;
4840
+ } | {
4841
+ kind: "hoc";
4842
+ callee: string;
4843
+ } | {
4844
+ kind: "lazy";
4845
+ callee: string;
4846
+ } | {
4847
+ kind: "dynamic-map";
4848
+ mapName: string;
4849
+ mapLoc: {
4850
+ file: string;
4851
+ line: number;
4852
+ column: number;
4853
+ };
4854
+ } | {
4855
+ kind: "helper-call";
4856
+ callee: string;
4857
+ calleeFile: string;
4858
+ } | {
4859
+ kind: "prop-forward";
4860
+ bindingName: string;
4861
+ constructionSite: {
4862
+ file: string;
4863
+ line: number;
4864
+ column: number;
4865
+ };
4866
+ })[];
4867
+ props: Record<string, PropValueState>;
4868
+ events?: string[] | undefined;
4869
+ ownerComponentId?: string | undefined;
4870
+ depth?: number | undefined;
4871
+ }[];
4872
+ diagnostics: Diagnostic[];
4873
+ }>;
4874
+ export type ScanArtifact = z.infer<typeof artifactSchema>;
4875
+ export {};