@usefragments/core 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/chunk-MZ4SW3TP.js +375 -0
  2. package/dist/chunk-MZ4SW3TP.js.map +1 -0
  3. package/dist/{chunk-WNMWKUYG.js → chunk-UUREQ4HD.js} +318 -6
  4. package/dist/chunk-UUREQ4HD.js.map +1 -0
  5. package/dist/codes/index.d.ts +1 -1
  6. package/dist/codes/index.js +1 -2
  7. package/dist/compiled-types/index.d.ts +1 -1
  8. package/dist/generate/index.d.ts +1 -1
  9. package/dist/governance-telemetry.d.ts +316 -0
  10. package/dist/governance-telemetry.js +11 -0
  11. package/dist/governance-telemetry.js.map +1 -0
  12. package/dist/{index-hZAlYCli.d.ts → index-Cxk3SOQP.d.ts} +1005 -1005
  13. package/dist/index.d.ts +529 -477
  14. package/dist/index.js +78 -37
  15. package/dist/index.js.map +1 -1
  16. package/dist/react-types.d.ts +1 -1
  17. package/dist/registry.d.ts +146 -146
  18. package/dist/schemas/index.d.ts +1 -1
  19. package/dist/schemas/index.js +3 -1
  20. package/dist/test-utils.d.ts +1 -1
  21. package/package.json +5 -1
  22. package/src/component-contract.ts +12 -0
  23. package/src/contract-parser.ts +2 -0
  24. package/src/governance-telemetry.test.ts +18 -0
  25. package/src/governance-telemetry.ts +398 -0
  26. package/src/index.ts +17 -0
  27. package/src/rules/index.ts +5 -1
  28. package/src/rules/tokens-css-vars-must-be-defined.test.ts +66 -1
  29. package/src/rules/tokens-css-vars-must-be-defined.ts +88 -16
  30. package/src/schemas/index.ts +4 -0
  31. package/src/schemas/normalize-finding.test.ts +50 -0
  32. package/dist/chunk-WNMWKUYG.js.map +0 -1
  33. package/dist/chunk-ZHS52OT4.js +0 -317
  34. package/dist/chunk-ZHS52OT4.js.map +0 -1
  35. package/dist/{governance-D9KtH-vg.d.ts → governance-eEzCyfes.d.ts} +154 -154
@@ -1983,16 +1983,16 @@ declare const componentGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
1983
1983
  severity: z.ZodEnum<["error", "warn", "info"]>;
1984
1984
  }, "strip", z.ZodTypeAny, {
1985
1985
  kind: "prop.value.avoid";
1986
- prop: string;
1987
1986
  severity: "error" | "info" | "warn";
1988
1987
  because: string;
1988
+ prop: string;
1989
1989
  value?: unknown;
1990
1990
  suggest?: string | undefined;
1991
1991
  }, {
1992
1992
  kind: "prop.value.avoid";
1993
- prop: string;
1994
1993
  severity: "error" | "info" | "warn";
1995
1994
  because: string;
1995
+ prop: string;
1996
1996
  value?: unknown;
1997
1997
  suggest?: string | undefined;
1998
1998
  }>, z.ZodObject<{
@@ -2017,28 +2017,28 @@ declare const componentGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
2017
2017
  severity: z.ZodEnum<["error", "warn", "info"]>;
2018
2018
  }, "strip", z.ZodTypeAny, {
2019
2019
  kind: "prop.value.forbid";
2020
- prop: string;
2021
2020
  severity: "error" | "info" | "warn";
2022
2021
  because: string;
2022
+ prop: string;
2023
2023
  value?: unknown;
2024
- fix?: {
2025
- replaceWith?: unknown;
2026
- } | undefined;
2027
2024
  when?: {
2028
2025
  path?: string | undefined;
2029
2026
  } | undefined;
2027
+ fix?: {
2028
+ replaceWith?: unknown;
2029
+ } | undefined;
2030
2030
  }, {
2031
2031
  kind: "prop.value.forbid";
2032
- prop: string;
2033
2032
  severity: "error" | "info" | "warn";
2034
2033
  because: string;
2034
+ prop: string;
2035
2035
  value?: unknown;
2036
- fix?: {
2037
- replaceWith?: unknown;
2038
- } | undefined;
2039
2036
  when?: {
2040
2037
  path?: string | undefined;
2041
2038
  } | undefined;
2039
+ fix?: {
2040
+ replaceWith?: unknown;
2041
+ } | undefined;
2042
2042
  }>, z.ZodObject<{
2043
2043
  kind: z.ZodLiteral<"a11y.requireName">;
2044
2044
  because: z.ZodString;
@@ -2070,16 +2070,16 @@ declare const componentGovernanceRecordsSchema: z.ZodArray<z.ZodDiscriminatedUni
2070
2070
  severity: z.ZodEnum<["error", "warn", "info"]>;
2071
2071
  }, "strip", z.ZodTypeAny, {
2072
2072
  kind: "prop.value.avoid";
2073
- prop: string;
2074
2073
  severity: "error" | "info" | "warn";
2075
2074
  because: string;
2075
+ prop: string;
2076
2076
  value?: unknown;
2077
2077
  suggest?: string | undefined;
2078
2078
  }, {
2079
2079
  kind: "prop.value.avoid";
2080
- prop: string;
2081
2080
  severity: "error" | "info" | "warn";
2082
2081
  because: string;
2082
+ prop: string;
2083
2083
  value?: unknown;
2084
2084
  suggest?: string | undefined;
2085
2085
  }>, z.ZodObject<{
@@ -2104,28 +2104,28 @@ declare const componentGovernanceRecordsSchema: z.ZodArray<z.ZodDiscriminatedUni
2104
2104
  severity: z.ZodEnum<["error", "warn", "info"]>;
2105
2105
  }, "strip", z.ZodTypeAny, {
2106
2106
  kind: "prop.value.forbid";
2107
- prop: string;
2108
2107
  severity: "error" | "info" | "warn";
2109
2108
  because: string;
2109
+ prop: string;
2110
2110
  value?: unknown;
2111
- fix?: {
2112
- replaceWith?: unknown;
2113
- } | undefined;
2114
2111
  when?: {
2115
2112
  path?: string | undefined;
2116
2113
  } | undefined;
2114
+ fix?: {
2115
+ replaceWith?: unknown;
2116
+ } | undefined;
2117
2117
  }, {
2118
2118
  kind: "prop.value.forbid";
2119
- prop: string;
2120
2119
  severity: "error" | "info" | "warn";
2121
2120
  because: string;
2121
+ prop: string;
2122
2122
  value?: unknown;
2123
- fix?: {
2124
- replaceWith?: unknown;
2125
- } | undefined;
2126
2123
  when?: {
2127
2124
  path?: string | undefined;
2128
2125
  } | undefined;
2126
+ fix?: {
2127
+ replaceWith?: unknown;
2128
+ } | undefined;
2129
2129
  }>, z.ZodObject<{
2130
2130
  kind: z.ZodLiteral<"a11y.requireName">;
2131
2131
  because: z.ZodString;
@@ -2158,16 +2158,16 @@ declare const componentPolicyRecordSchema: z.ZodObject<{
2158
2158
  severity: z.ZodEnum<["error", "warn", "info"]>;
2159
2159
  }, "strip", z.ZodTypeAny, {
2160
2160
  kind: "prop.value.avoid";
2161
- prop: string;
2162
2161
  severity: "error" | "info" | "warn";
2163
2162
  because: string;
2163
+ prop: string;
2164
2164
  value?: unknown;
2165
2165
  suggest?: string | undefined;
2166
2166
  }, {
2167
2167
  kind: "prop.value.avoid";
2168
- prop: string;
2169
2168
  severity: "error" | "info" | "warn";
2170
2169
  because: string;
2170
+ prop: string;
2171
2171
  value?: unknown;
2172
2172
  suggest?: string | undefined;
2173
2173
  }>, z.ZodObject<{
@@ -2192,28 +2192,28 @@ declare const componentPolicyRecordSchema: z.ZodObject<{
2192
2192
  severity: z.ZodEnum<["error", "warn", "info"]>;
2193
2193
  }, "strip", z.ZodTypeAny, {
2194
2194
  kind: "prop.value.forbid";
2195
- prop: string;
2196
2195
  severity: "error" | "info" | "warn";
2197
2196
  because: string;
2197
+ prop: string;
2198
2198
  value?: unknown;
2199
- fix?: {
2200
- replaceWith?: unknown;
2201
- } | undefined;
2202
2199
  when?: {
2203
2200
  path?: string | undefined;
2204
2201
  } | undefined;
2202
+ fix?: {
2203
+ replaceWith?: unknown;
2204
+ } | undefined;
2205
2205
  }, {
2206
2206
  kind: "prop.value.forbid";
2207
- prop: string;
2208
2207
  severity: "error" | "info" | "warn";
2209
2208
  because: string;
2209
+ prop: string;
2210
2210
  value?: unknown;
2211
- fix?: {
2212
- replaceWith?: unknown;
2213
- } | undefined;
2214
2211
  when?: {
2215
2212
  path?: string | undefined;
2216
2213
  } | undefined;
2214
+ fix?: {
2215
+ replaceWith?: unknown;
2216
+ } | undefined;
2217
2217
  }>, z.ZodObject<{
2218
2218
  kind: z.ZodLiteral<"a11y.requireName">;
2219
2219
  because: z.ZodString;
@@ -2234,23 +2234,23 @@ declare const componentPolicyRecordSchema: z.ZodObject<{
2234
2234
  capability: string;
2235
2235
  } | {
2236
2236
  kind: "prop.value.avoid";
2237
- prop: string;
2238
2237
  severity: "error" | "info" | "warn";
2239
2238
  because: string;
2239
+ prop: string;
2240
2240
  value?: unknown;
2241
2241
  suggest?: string | undefined;
2242
2242
  } | {
2243
2243
  kind: "prop.value.forbid";
2244
- prop: string;
2245
2244
  severity: "error" | "info" | "warn";
2246
2245
  because: string;
2246
+ prop: string;
2247
2247
  value?: unknown;
2248
- fix?: {
2249
- replaceWith?: unknown;
2250
- } | undefined;
2251
2248
  when?: {
2252
2249
  path?: string | undefined;
2253
2250
  } | undefined;
2251
+ fix?: {
2252
+ replaceWith?: unknown;
2253
+ } | undefined;
2254
2254
  } | {
2255
2255
  kind: "a11y.requireName";
2256
2256
  severity: "error" | "info" | "warn";
@@ -2263,23 +2263,23 @@ declare const componentPolicyRecordSchema: z.ZodObject<{
2263
2263
  capability: string;
2264
2264
  } | {
2265
2265
  kind: "prop.value.avoid";
2266
- prop: string;
2267
2266
  severity: "error" | "info" | "warn";
2268
2267
  because: string;
2268
+ prop: string;
2269
2269
  value?: unknown;
2270
2270
  suggest?: string | undefined;
2271
2271
  } | {
2272
2272
  kind: "prop.value.forbid";
2273
- prop: string;
2274
2273
  severity: "error" | "info" | "warn";
2275
2274
  because: string;
2275
+ prop: string;
2276
2276
  value?: unknown;
2277
- fix?: {
2278
- replaceWith?: unknown;
2279
- } | undefined;
2280
2277
  when?: {
2281
2278
  path?: string | undefined;
2282
2279
  } | undefined;
2280
+ fix?: {
2281
+ replaceWith?: unknown;
2282
+ } | undefined;
2283
2283
  } | {
2284
2284
  kind: "a11y.requireName";
2285
2285
  severity: "error" | "info" | "warn";
@@ -2301,7 +2301,6 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2301
2301
  scope: z.ZodOptional<z.ZodEnum<["one", "all"]>>;
2302
2302
  }, "strict", z.ZodTypeAny, {
2303
2303
  path?: string | undefined;
2304
- scope?: "one" | "all" | undefined;
2305
2304
  importPath?: string | undefined;
2306
2305
  componentId?: string | undefined;
2307
2306
  name?: string | undefined;
@@ -2310,9 +2309,9 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2310
2309
  sourcePath?: string | undefined;
2311
2310
  exportName?: string | undefined;
2312
2311
  export?: string | undefined;
2312
+ scope?: "one" | "all" | undefined;
2313
2313
  }, {
2314
2314
  path?: string | undefined;
2315
- scope?: "one" | "all" | undefined;
2316
2315
  importPath?: string | undefined;
2317
2316
  componentId?: string | undefined;
2318
2317
  name?: string | undefined;
@@ -2321,6 +2320,7 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2321
2320
  sourcePath?: string | undefined;
2322
2321
  exportName?: string | undefined;
2323
2322
  export?: string | undefined;
2323
+ scope?: "one" | "all" | undefined;
2324
2324
  }>;
2325
2325
  rules: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2326
2326
  kind: z.ZodLiteral<"capability">;
@@ -2340,16 +2340,16 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2340
2340
  severity: z.ZodEnum<["error", "warn", "info"]>;
2341
2341
  }, "strip", z.ZodTypeAny, {
2342
2342
  kind: "prop.value.avoid";
2343
- prop: string;
2344
2343
  severity: "error" | "info" | "warn";
2345
2344
  because: string;
2345
+ prop: string;
2346
2346
  value?: unknown;
2347
2347
  suggest?: string | undefined;
2348
2348
  }, {
2349
2349
  kind: "prop.value.avoid";
2350
- prop: string;
2351
2350
  severity: "error" | "info" | "warn";
2352
2351
  because: string;
2352
+ prop: string;
2353
2353
  value?: unknown;
2354
2354
  suggest?: string | undefined;
2355
2355
  }>, z.ZodObject<{
@@ -2374,28 +2374,28 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2374
2374
  severity: z.ZodEnum<["error", "warn", "info"]>;
2375
2375
  }, "strip", z.ZodTypeAny, {
2376
2376
  kind: "prop.value.forbid";
2377
- prop: string;
2378
2377
  severity: "error" | "info" | "warn";
2379
2378
  because: string;
2379
+ prop: string;
2380
2380
  value?: unknown;
2381
- fix?: {
2382
- replaceWith?: unknown;
2383
- } | undefined;
2384
2381
  when?: {
2385
2382
  path?: string | undefined;
2386
2383
  } | undefined;
2384
+ fix?: {
2385
+ replaceWith?: unknown;
2386
+ } | undefined;
2387
2387
  }, {
2388
2388
  kind: "prop.value.forbid";
2389
- prop: string;
2390
2389
  severity: "error" | "info" | "warn";
2391
2390
  because: string;
2391
+ prop: string;
2392
2392
  value?: unknown;
2393
- fix?: {
2394
- replaceWith?: unknown;
2395
- } | undefined;
2396
2393
  when?: {
2397
2394
  path?: string | undefined;
2398
2395
  } | undefined;
2396
+ fix?: {
2397
+ replaceWith?: unknown;
2398
+ } | undefined;
2399
2399
  }>, z.ZodObject<{
2400
2400
  kind: z.ZodLiteral<"a11y.requireName">;
2401
2401
  because: z.ZodString;
@@ -2416,23 +2416,23 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2416
2416
  capability: string;
2417
2417
  } | {
2418
2418
  kind: "prop.value.avoid";
2419
- prop: string;
2420
2419
  severity: "error" | "info" | "warn";
2421
2420
  because: string;
2421
+ prop: string;
2422
2422
  value?: unknown;
2423
2423
  suggest?: string | undefined;
2424
2424
  } | {
2425
2425
  kind: "prop.value.forbid";
2426
- prop: string;
2427
2426
  severity: "error" | "info" | "warn";
2428
2427
  because: string;
2428
+ prop: string;
2429
2429
  value?: unknown;
2430
- fix?: {
2431
- replaceWith?: unknown;
2432
- } | undefined;
2433
2430
  when?: {
2434
2431
  path?: string | undefined;
2435
2432
  } | undefined;
2433
+ fix?: {
2434
+ replaceWith?: unknown;
2435
+ } | undefined;
2436
2436
  } | {
2437
2437
  kind: "a11y.requireName";
2438
2438
  severity: "error" | "info" | "warn";
@@ -2440,7 +2440,6 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2440
2440
  })[];
2441
2441
  match: {
2442
2442
  path?: string | undefined;
2443
- scope?: "one" | "all" | undefined;
2444
2443
  importPath?: string | undefined;
2445
2444
  componentId?: string | undefined;
2446
2445
  name?: string | undefined;
@@ -2449,6 +2448,7 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2449
2448
  sourcePath?: string | undefined;
2450
2449
  exportName?: string | undefined;
2451
2450
  export?: string | undefined;
2451
+ scope?: "one" | "all" | undefined;
2452
2452
  };
2453
2453
  status?: "active" | "draft" | "disabled" | undefined;
2454
2454
  }, {
@@ -2457,23 +2457,23 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2457
2457
  capability: string;
2458
2458
  } | {
2459
2459
  kind: "prop.value.avoid";
2460
- prop: string;
2461
2460
  severity: "error" | "info" | "warn";
2462
2461
  because: string;
2462
+ prop: string;
2463
2463
  value?: unknown;
2464
2464
  suggest?: string | undefined;
2465
2465
  } | {
2466
2466
  kind: "prop.value.forbid";
2467
- prop: string;
2468
2467
  severity: "error" | "info" | "warn";
2469
2468
  because: string;
2469
+ prop: string;
2470
2470
  value?: unknown;
2471
- fix?: {
2472
- replaceWith?: unknown;
2473
- } | undefined;
2474
2471
  when?: {
2475
2472
  path?: string | undefined;
2476
2473
  } | undefined;
2474
+ fix?: {
2475
+ replaceWith?: unknown;
2476
+ } | undefined;
2477
2477
  } | {
2478
2478
  kind: "a11y.requireName";
2479
2479
  severity: "error" | "info" | "warn";
@@ -2481,7 +2481,6 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2481
2481
  })[];
2482
2482
  match: {
2483
2483
  path?: string | undefined;
2484
- scope?: "one" | "all" | undefined;
2485
2484
  importPath?: string | undefined;
2486
2485
  componentId?: string | undefined;
2487
2486
  name?: string | undefined;
@@ -2490,6 +2489,7 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
2490
2489
  sourcePath?: string | undefined;
2491
2490
  exportName?: string | undefined;
2492
2491
  export?: string | undefined;
2492
+ scope?: "one" | "all" | undefined;
2493
2493
  };
2494
2494
  status?: "active" | "draft" | "disabled" | undefined;
2495
2495
  }>;
@@ -2524,11 +2524,11 @@ declare const canonicalBridgeV1Schema: z.ZodObject<{
2524
2524
  state: z.ZodLiteral<"confirmed">;
2525
2525
  source: z.ZodEnum<["authored", "migration"]>;
2526
2526
  }, "strict", z.ZodTypeAny, {
2527
- state: "confirmed";
2528
2527
  source: "authored" | "migration";
2529
- }, {
2530
2528
  state: "confirmed";
2529
+ }, {
2531
2530
  source: "authored" | "migration";
2531
+ state: "confirmed";
2532
2532
  }>;
2533
2533
  }, "strict", z.ZodTypeAny, {
2534
2534
  underlying: {
@@ -2542,8 +2542,8 @@ declare const canonicalBridgeV1Schema: z.ZodObject<{
2542
2542
  implementationFiles: string[];
2543
2543
  };
2544
2544
  decision: {
2545
- state: "confirmed";
2546
2545
  source: "authored" | "migration";
2546
+ state: "confirmed";
2547
2547
  };
2548
2548
  }, {
2549
2549
  underlying: {
@@ -2557,8 +2557,8 @@ declare const canonicalBridgeV1Schema: z.ZodObject<{
2557
2557
  implementationFiles: string[];
2558
2558
  };
2559
2559
  decision: {
2560
- state: "confirmed";
2561
2560
  source: "authored" | "migration";
2561
+ state: "confirmed";
2562
2562
  };
2563
2563
  }>;
2564
2564
  declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -2568,14 +2568,14 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
2568
2568
  include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2569
2569
  exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2570
2570
  }, "strip", z.ZodTypeAny, {
2571
- kind: "npm";
2572
2571
  specifier: string;
2572
+ kind: "npm";
2573
2573
  exclude?: string[] | undefined;
2574
2574
  implementationPath?: string | undefined;
2575
2575
  include?: string[] | undefined;
2576
2576
  }, {
2577
- kind: "npm";
2578
2577
  specifier: string;
2578
+ kind: "npm";
2579
2579
  exclude?: string[] | undefined;
2580
2580
  implementationPath?: string | undefined;
2581
2581
  include?: string[] | undefined;
@@ -2609,8 +2609,8 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
2609
2609
  registryId: string;
2610
2610
  receiptPath: string;
2611
2611
  installPath: string;
2612
- severity?: "error" | "info" | "warn" | undefined;
2613
2612
  importPath?: string | undefined;
2613
+ severity?: "error" | "info" | "warn" | undefined;
2614
2614
  exclude?: string[] | undefined;
2615
2615
  include?: string[] | undefined;
2616
2616
  registryHash?: string | undefined;
@@ -2618,8 +2618,8 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
2618
2618
  kind: "registry";
2619
2619
  registryId: string;
2620
2620
  installPath: string;
2621
- severity?: "error" | "info" | "warn" | undefined;
2622
2621
  importPath?: string | undefined;
2622
+ severity?: "error" | "info" | "warn" | undefined;
2623
2623
  exclude?: string[] | undefined;
2624
2624
  include?: string[] | undefined;
2625
2625
  registryHash?: string | undefined;
@@ -2645,14 +2645,14 @@ declare const governanceConfigSchema: z.ZodObject<{
2645
2645
  include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2646
2646
  exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2647
2647
  }, "strip", z.ZodTypeAny, {
2648
- kind: "npm";
2649
2648
  specifier: string;
2649
+ kind: "npm";
2650
2650
  exclude?: string[] | undefined;
2651
2651
  implementationPath?: string | undefined;
2652
2652
  include?: string[] | undefined;
2653
2653
  }, {
2654
- kind: "npm";
2655
2654
  specifier: string;
2655
+ kind: "npm";
2656
2656
  exclude?: string[] | undefined;
2657
2657
  implementationPath?: string | undefined;
2658
2658
  include?: string[] | undefined;
@@ -2686,8 +2686,8 @@ declare const governanceConfigSchema: z.ZodObject<{
2686
2686
  registryId: string;
2687
2687
  receiptPath: string;
2688
2688
  installPath: string;
2689
- severity?: "error" | "info" | "warn" | undefined;
2690
2689
  importPath?: string | undefined;
2690
+ severity?: "error" | "info" | "warn" | undefined;
2691
2691
  exclude?: string[] | undefined;
2692
2692
  include?: string[] | undefined;
2693
2693
  registryHash?: string | undefined;
@@ -2695,8 +2695,8 @@ declare const governanceConfigSchema: z.ZodObject<{
2695
2695
  kind: "registry";
2696
2696
  registryId: string;
2697
2697
  installPath: string;
2698
- severity?: "error" | "info" | "warn" | undefined;
2699
2698
  importPath?: string | undefined;
2699
+ severity?: "error" | "info" | "warn" | undefined;
2700
2700
  exclude?: string[] | undefined;
2701
2701
  include?: string[] | undefined;
2702
2702
  registryHash?: string | undefined;
@@ -2733,11 +2733,11 @@ declare const governanceConfigSchema: z.ZodObject<{
2733
2733
  state: z.ZodLiteral<"confirmed">;
2734
2734
  source: z.ZodEnum<["authored", "migration"]>;
2735
2735
  }, "strict", z.ZodTypeAny, {
2736
- state: "confirmed";
2737
2736
  source: "authored" | "migration";
2738
- }, {
2739
2737
  state: "confirmed";
2738
+ }, {
2740
2739
  source: "authored" | "migration";
2740
+ state: "confirmed";
2741
2741
  }>;
2742
2742
  }, "strict", z.ZodTypeAny, {
2743
2743
  underlying: {
@@ -2751,8 +2751,8 @@ declare const governanceConfigSchema: z.ZodObject<{
2751
2751
  implementationFiles: string[];
2752
2752
  };
2753
2753
  decision: {
2754
- state: "confirmed";
2755
2754
  source: "authored" | "migration";
2755
+ state: "confirmed";
2756
2756
  };
2757
2757
  }, {
2758
2758
  underlying: {
@@ -2766,8 +2766,8 @@ declare const governanceConfigSchema: z.ZodObject<{
2766
2766
  implementationFiles: string[];
2767
2767
  };
2768
2768
  decision: {
2769
- state: "confirmed";
2770
2769
  source: "authored" | "migration";
2770
+ state: "confirmed";
2771
2771
  };
2772
2772
  }>, "many">, {
2773
2773
  underlying: {
@@ -2781,8 +2781,8 @@ declare const governanceConfigSchema: z.ZodObject<{
2781
2781
  implementationFiles: string[];
2782
2782
  };
2783
2783
  decision: {
2784
- state: "confirmed";
2785
2784
  source: "authored" | "migration";
2785
+ state: "confirmed";
2786
2786
  };
2787
2787
  }[], {
2788
2788
  underlying: {
@@ -2796,8 +2796,8 @@ declare const governanceConfigSchema: z.ZodObject<{
2796
2796
  implementationFiles: string[];
2797
2797
  };
2798
2798
  decision: {
2799
- state: "confirmed";
2800
2799
  source: "authored" | "migration";
2800
+ state: "confirmed";
2801
2801
  };
2802
2802
  }[]>>;
2803
2803
  presets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3173,16 +3173,16 @@ declare const governanceConfigSchema: z.ZodObject<{
3173
3173
  severity: z.ZodEnum<["error", "warn", "info"]>;
3174
3174
  }, "strip", z.ZodTypeAny, {
3175
3175
  kind: "prop.value.avoid";
3176
- prop: string;
3177
3176
  severity: "error" | "info" | "warn";
3178
3177
  because: string;
3178
+ prop: string;
3179
3179
  value?: unknown;
3180
3180
  suggest?: string | undefined;
3181
3181
  }, {
3182
3182
  kind: "prop.value.avoid";
3183
- prop: string;
3184
3183
  severity: "error" | "info" | "warn";
3185
3184
  because: string;
3185
+ prop: string;
3186
3186
  value?: unknown;
3187
3187
  suggest?: string | undefined;
3188
3188
  }>, z.ZodObject<{
@@ -3207,28 +3207,28 @@ declare const governanceConfigSchema: z.ZodObject<{
3207
3207
  severity: z.ZodEnum<["error", "warn", "info"]>;
3208
3208
  }, "strip", z.ZodTypeAny, {
3209
3209
  kind: "prop.value.forbid";
3210
- prop: string;
3211
3210
  severity: "error" | "info" | "warn";
3212
3211
  because: string;
3212
+ prop: string;
3213
3213
  value?: unknown;
3214
- fix?: {
3215
- replaceWith?: unknown;
3216
- } | undefined;
3217
3214
  when?: {
3218
3215
  path?: string | undefined;
3219
3216
  } | undefined;
3217
+ fix?: {
3218
+ replaceWith?: unknown;
3219
+ } | undefined;
3220
3220
  }, {
3221
3221
  kind: "prop.value.forbid";
3222
- prop: string;
3223
3222
  severity: "error" | "info" | "warn";
3224
3223
  because: string;
3224
+ prop: string;
3225
3225
  value?: unknown;
3226
- fix?: {
3227
- replaceWith?: unknown;
3228
- } | undefined;
3229
3226
  when?: {
3230
3227
  path?: string | undefined;
3231
3228
  } | undefined;
3229
+ fix?: {
3230
+ replaceWith?: unknown;
3231
+ } | undefined;
3232
3232
  }>, z.ZodObject<{
3233
3233
  kind: z.ZodLiteral<"a11y.requireName">;
3234
3234
  because: z.ZodString;
@@ -3249,23 +3249,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3249
3249
  capability: string;
3250
3250
  } | {
3251
3251
  kind: "prop.value.avoid";
3252
- prop: string;
3253
3252
  severity: "error" | "info" | "warn";
3254
3253
  because: string;
3254
+ prop: string;
3255
3255
  value?: unknown;
3256
3256
  suggest?: string | undefined;
3257
3257
  } | {
3258
3258
  kind: "prop.value.forbid";
3259
- prop: string;
3260
3259
  severity: "error" | "info" | "warn";
3261
3260
  because: string;
3261
+ prop: string;
3262
3262
  value?: unknown;
3263
- fix?: {
3264
- replaceWith?: unknown;
3265
- } | undefined;
3266
3263
  when?: {
3267
3264
  path?: string | undefined;
3268
3265
  } | undefined;
3266
+ fix?: {
3267
+ replaceWith?: unknown;
3268
+ } | undefined;
3269
3269
  } | {
3270
3270
  kind: "a11y.requireName";
3271
3271
  severity: "error" | "info" | "warn";
@@ -3278,23 +3278,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3278
3278
  capability: string;
3279
3279
  } | {
3280
3280
  kind: "prop.value.avoid";
3281
- prop: string;
3282
3281
  severity: "error" | "info" | "warn";
3283
3282
  because: string;
3283
+ prop: string;
3284
3284
  value?: unknown;
3285
3285
  suggest?: string | undefined;
3286
3286
  } | {
3287
3287
  kind: "prop.value.forbid";
3288
- prop: string;
3289
3288
  severity: "error" | "info" | "warn";
3290
3289
  because: string;
3290
+ prop: string;
3291
3291
  value?: unknown;
3292
- fix?: {
3293
- replaceWith?: unknown;
3294
- } | undefined;
3295
3292
  when?: {
3296
3293
  path?: string | undefined;
3297
3294
  } | undefined;
3295
+ fix?: {
3296
+ replaceWith?: unknown;
3297
+ } | undefined;
3298
3298
  } | {
3299
3299
  kind: "a11y.requireName";
3300
3300
  severity: "error" | "info" | "warn";
@@ -3316,7 +3316,6 @@ declare const governanceConfigSchema: z.ZodObject<{
3316
3316
  scope: z.ZodOptional<z.ZodEnum<["one", "all"]>>;
3317
3317
  }, "strict", z.ZodTypeAny, {
3318
3318
  path?: string | undefined;
3319
- scope?: "one" | "all" | undefined;
3320
3319
  importPath?: string | undefined;
3321
3320
  componentId?: string | undefined;
3322
3321
  name?: string | undefined;
@@ -3325,9 +3324,9 @@ declare const governanceConfigSchema: z.ZodObject<{
3325
3324
  sourcePath?: string | undefined;
3326
3325
  exportName?: string | undefined;
3327
3326
  export?: string | undefined;
3327
+ scope?: "one" | "all" | undefined;
3328
3328
  }, {
3329
3329
  path?: string | undefined;
3330
- scope?: "one" | "all" | undefined;
3331
3330
  importPath?: string | undefined;
3332
3331
  componentId?: string | undefined;
3333
3332
  name?: string | undefined;
@@ -3336,6 +3335,7 @@ declare const governanceConfigSchema: z.ZodObject<{
3336
3335
  sourcePath?: string | undefined;
3337
3336
  exportName?: string | undefined;
3338
3337
  export?: string | undefined;
3338
+ scope?: "one" | "all" | undefined;
3339
3339
  }>;
3340
3340
  rules: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3341
3341
  kind: z.ZodLiteral<"capability">;
@@ -3355,16 +3355,16 @@ declare const governanceConfigSchema: z.ZodObject<{
3355
3355
  severity: z.ZodEnum<["error", "warn", "info"]>;
3356
3356
  }, "strip", z.ZodTypeAny, {
3357
3357
  kind: "prop.value.avoid";
3358
- prop: string;
3359
3358
  severity: "error" | "info" | "warn";
3360
3359
  because: string;
3360
+ prop: string;
3361
3361
  value?: unknown;
3362
3362
  suggest?: string | undefined;
3363
3363
  }, {
3364
3364
  kind: "prop.value.avoid";
3365
- prop: string;
3366
3365
  severity: "error" | "info" | "warn";
3367
3366
  because: string;
3367
+ prop: string;
3368
3368
  value?: unknown;
3369
3369
  suggest?: string | undefined;
3370
3370
  }>, z.ZodObject<{
@@ -3389,28 +3389,28 @@ declare const governanceConfigSchema: z.ZodObject<{
3389
3389
  severity: z.ZodEnum<["error", "warn", "info"]>;
3390
3390
  }, "strip", z.ZodTypeAny, {
3391
3391
  kind: "prop.value.forbid";
3392
- prop: string;
3393
3392
  severity: "error" | "info" | "warn";
3394
3393
  because: string;
3394
+ prop: string;
3395
3395
  value?: unknown;
3396
- fix?: {
3397
- replaceWith?: unknown;
3398
- } | undefined;
3399
3396
  when?: {
3400
3397
  path?: string | undefined;
3401
3398
  } | undefined;
3399
+ fix?: {
3400
+ replaceWith?: unknown;
3401
+ } | undefined;
3402
3402
  }, {
3403
3403
  kind: "prop.value.forbid";
3404
- prop: string;
3405
3404
  severity: "error" | "info" | "warn";
3406
3405
  because: string;
3406
+ prop: string;
3407
3407
  value?: unknown;
3408
- fix?: {
3409
- replaceWith?: unknown;
3410
- } | undefined;
3411
3408
  when?: {
3412
3409
  path?: string | undefined;
3413
3410
  } | undefined;
3411
+ fix?: {
3412
+ replaceWith?: unknown;
3413
+ } | undefined;
3414
3414
  }>, z.ZodObject<{
3415
3415
  kind: z.ZodLiteral<"a11y.requireName">;
3416
3416
  because: z.ZodString;
@@ -3431,23 +3431,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3431
3431
  capability: string;
3432
3432
  } | {
3433
3433
  kind: "prop.value.avoid";
3434
- prop: string;
3435
3434
  severity: "error" | "info" | "warn";
3436
3435
  because: string;
3436
+ prop: string;
3437
3437
  value?: unknown;
3438
3438
  suggest?: string | undefined;
3439
3439
  } | {
3440
3440
  kind: "prop.value.forbid";
3441
- prop: string;
3442
3441
  severity: "error" | "info" | "warn";
3443
3442
  because: string;
3443
+ prop: string;
3444
3444
  value?: unknown;
3445
- fix?: {
3446
- replaceWith?: unknown;
3447
- } | undefined;
3448
3445
  when?: {
3449
3446
  path?: string | undefined;
3450
3447
  } | undefined;
3448
+ fix?: {
3449
+ replaceWith?: unknown;
3450
+ } | undefined;
3451
3451
  } | {
3452
3452
  kind: "a11y.requireName";
3453
3453
  severity: "error" | "info" | "warn";
@@ -3455,7 +3455,6 @@ declare const governanceConfigSchema: z.ZodObject<{
3455
3455
  })[];
3456
3456
  match: {
3457
3457
  path?: string | undefined;
3458
- scope?: "one" | "all" | undefined;
3459
3458
  importPath?: string | undefined;
3460
3459
  componentId?: string | undefined;
3461
3460
  name?: string | undefined;
@@ -3464,6 +3463,7 @@ declare const governanceConfigSchema: z.ZodObject<{
3464
3463
  sourcePath?: string | undefined;
3465
3464
  exportName?: string | undefined;
3466
3465
  export?: string | undefined;
3466
+ scope?: "one" | "all" | undefined;
3467
3467
  };
3468
3468
  status?: "active" | "draft" | "disabled" | undefined;
3469
3469
  }, {
@@ -3472,23 +3472,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3472
3472
  capability: string;
3473
3473
  } | {
3474
3474
  kind: "prop.value.avoid";
3475
- prop: string;
3476
3475
  severity: "error" | "info" | "warn";
3477
3476
  because: string;
3477
+ prop: string;
3478
3478
  value?: unknown;
3479
3479
  suggest?: string | undefined;
3480
3480
  } | {
3481
3481
  kind: "prop.value.forbid";
3482
- prop: string;
3483
3482
  severity: "error" | "info" | "warn";
3484
3483
  because: string;
3484
+ prop: string;
3485
3485
  value?: unknown;
3486
- fix?: {
3487
- replaceWith?: unknown;
3488
- } | undefined;
3489
3486
  when?: {
3490
3487
  path?: string | undefined;
3491
3488
  } | undefined;
3489
+ fix?: {
3490
+ replaceWith?: unknown;
3491
+ } | undefined;
3492
3492
  } | {
3493
3493
  kind: "a11y.requireName";
3494
3494
  severity: "error" | "info" | "warn";
@@ -3496,7 +3496,6 @@ declare const governanceConfigSchema: z.ZodObject<{
3496
3496
  })[];
3497
3497
  match: {
3498
3498
  path?: string | undefined;
3499
- scope?: "one" | "all" | undefined;
3500
3499
  importPath?: string | undefined;
3501
3500
  componentId?: string | undefined;
3502
3501
  name?: string | undefined;
@@ -3505,6 +3504,7 @@ declare const governanceConfigSchema: z.ZodObject<{
3505
3504
  sourcePath?: string | undefined;
3506
3505
  exportName?: string | undefined;
3507
3506
  export?: string | undefined;
3507
+ scope?: "one" | "all" | undefined;
3508
3508
  };
3509
3509
  status?: "active" | "draft" | "disabled" | undefined;
3510
3510
  }>, "many">>;
@@ -3525,23 +3525,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3525
3525
  capability: string;
3526
3526
  } | {
3527
3527
  kind: "prop.value.avoid";
3528
- prop: string;
3529
3528
  severity: "error" | "info" | "warn";
3530
3529
  because: string;
3530
+ prop: string;
3531
3531
  value?: unknown;
3532
3532
  suggest?: string | undefined;
3533
3533
  } | {
3534
3534
  kind: "prop.value.forbid";
3535
- prop: string;
3536
3535
  severity: "error" | "info" | "warn";
3537
3536
  because: string;
3537
+ prop: string;
3538
3538
  value?: unknown;
3539
- fix?: {
3540
- replaceWith?: unknown;
3541
- } | undefined;
3542
3539
  when?: {
3543
3540
  path?: string | undefined;
3544
3541
  } | undefined;
3542
+ fix?: {
3543
+ replaceWith?: unknown;
3544
+ } | undefined;
3545
3545
  } | {
3546
3546
  kind: "a11y.requireName";
3547
3547
  severity: "error" | "info" | "warn";
@@ -3657,23 +3657,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3657
3657
  capability: string;
3658
3658
  } | {
3659
3659
  kind: "prop.value.avoid";
3660
- prop: string;
3661
3660
  severity: "error" | "info" | "warn";
3662
3661
  because: string;
3662
+ prop: string;
3663
3663
  value?: unknown;
3664
3664
  suggest?: string | undefined;
3665
3665
  } | {
3666
3666
  kind: "prop.value.forbid";
3667
- prop: string;
3668
3667
  severity: "error" | "info" | "warn";
3669
3668
  because: string;
3669
+ prop: string;
3670
3670
  value?: unknown;
3671
- fix?: {
3672
- replaceWith?: unknown;
3673
- } | undefined;
3674
3671
  when?: {
3675
3672
  path?: string | undefined;
3676
3673
  } | undefined;
3674
+ fix?: {
3675
+ replaceWith?: unknown;
3676
+ } | undefined;
3677
3677
  } | {
3678
3678
  kind: "a11y.requireName";
3679
3679
  severity: "error" | "info" | "warn";
@@ -3681,7 +3681,6 @@ declare const governanceConfigSchema: z.ZodObject<{
3681
3681
  })[];
3682
3682
  match: {
3683
3683
  path?: string | undefined;
3684
- scope?: "one" | "all" | undefined;
3685
3684
  importPath?: string | undefined;
3686
3685
  componentId?: string | undefined;
3687
3686
  name?: string | undefined;
@@ -3690,6 +3689,7 @@ declare const governanceConfigSchema: z.ZodObject<{
3690
3689
  sourcePath?: string | undefined;
3691
3690
  exportName?: string | undefined;
3692
3691
  export?: string | undefined;
3692
+ scope?: "one" | "all" | undefined;
3693
3693
  };
3694
3694
  status?: "active" | "draft" | "disabled" | undefined;
3695
3695
  }[] | undefined;
@@ -3700,8 +3700,8 @@ declare const governanceConfigSchema: z.ZodObject<{
3700
3700
  audit?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
3701
3701
  runners?: Record<string, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
3702
3702
  canonicalSources?: ({
3703
- kind: "npm";
3704
3703
  specifier: string;
3704
+ kind: "npm";
3705
3705
  exclude?: string[] | undefined;
3706
3706
  implementationPath?: string | undefined;
3707
3707
  include?: string[] | undefined;
@@ -3715,8 +3715,8 @@ declare const governanceConfigSchema: z.ZodObject<{
3715
3715
  registryId: string;
3716
3716
  receiptPath: string;
3717
3717
  installPath: string;
3718
- severity?: "error" | "info" | "warn" | undefined;
3719
3718
  importPath?: string | undefined;
3719
+ severity?: "error" | "info" | "warn" | undefined;
3720
3720
  exclude?: string[] | undefined;
3721
3721
  include?: string[] | undefined;
3722
3722
  registryHash?: string | undefined;
@@ -3733,8 +3733,8 @@ declare const governanceConfigSchema: z.ZodObject<{
3733
3733
  implementationFiles: string[];
3734
3734
  };
3735
3735
  decision: {
3736
- state: "confirmed";
3737
3736
  source: "authored" | "migration";
3737
+ state: "confirmed";
3738
3738
  };
3739
3739
  }[] | undefined;
3740
3740
  presets?: string[] | undefined;
@@ -3752,23 +3752,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3752
3752
  capability: string;
3753
3753
  } | {
3754
3754
  kind: "prop.value.avoid";
3755
- prop: string;
3756
3755
  severity: "error" | "info" | "warn";
3757
3756
  because: string;
3757
+ prop: string;
3758
3758
  value?: unknown;
3759
3759
  suggest?: string | undefined;
3760
3760
  } | {
3761
3761
  kind: "prop.value.forbid";
3762
- prop: string;
3763
3762
  severity: "error" | "info" | "warn";
3764
3763
  because: string;
3764
+ prop: string;
3765
3765
  value?: unknown;
3766
- fix?: {
3767
- replaceWith?: unknown;
3768
- } | undefined;
3769
3766
  when?: {
3770
3767
  path?: string | undefined;
3771
3768
  } | undefined;
3769
+ fix?: {
3770
+ replaceWith?: unknown;
3771
+ } | undefined;
3772
3772
  } | {
3773
3773
  kind: "a11y.requireName";
3774
3774
  severity: "error" | "info" | "warn";
@@ -3884,23 +3884,23 @@ declare const governanceConfigSchema: z.ZodObject<{
3884
3884
  capability: string;
3885
3885
  } | {
3886
3886
  kind: "prop.value.avoid";
3887
- prop: string;
3888
3887
  severity: "error" | "info" | "warn";
3889
3888
  because: string;
3889
+ prop: string;
3890
3890
  value?: unknown;
3891
3891
  suggest?: string | undefined;
3892
3892
  } | {
3893
3893
  kind: "prop.value.forbid";
3894
- prop: string;
3895
3894
  severity: "error" | "info" | "warn";
3896
3895
  because: string;
3896
+ prop: string;
3897
3897
  value?: unknown;
3898
- fix?: {
3899
- replaceWith?: unknown;
3900
- } | undefined;
3901
3898
  when?: {
3902
3899
  path?: string | undefined;
3903
3900
  } | undefined;
3901
+ fix?: {
3902
+ replaceWith?: unknown;
3903
+ } | undefined;
3904
3904
  } | {
3905
3905
  kind: "a11y.requireName";
3906
3906
  severity: "error" | "info" | "warn";
@@ -3908,7 +3908,6 @@ declare const governanceConfigSchema: z.ZodObject<{
3908
3908
  })[];
3909
3909
  match: {
3910
3910
  path?: string | undefined;
3911
- scope?: "one" | "all" | undefined;
3912
3911
  importPath?: string | undefined;
3913
3912
  componentId?: string | undefined;
3914
3913
  name?: string | undefined;
@@ -3917,6 +3916,7 @@ declare const governanceConfigSchema: z.ZodObject<{
3917
3916
  sourcePath?: string | undefined;
3918
3917
  exportName?: string | undefined;
3919
3918
  export?: string | undefined;
3919
+ scope?: "one" | "all" | undefined;
3920
3920
  };
3921
3921
  status?: "active" | "draft" | "disabled" | undefined;
3922
3922
  }[] | undefined;
@@ -3927,8 +3927,8 @@ declare const governanceConfigSchema: z.ZodObject<{
3927
3927
  audit?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
3928
3928
  runners?: Record<string, z.objectInputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
3929
3929
  canonicalSources?: ({
3930
- kind: "npm";
3931
3930
  specifier: string;
3931
+ kind: "npm";
3932
3932
  exclude?: string[] | undefined;
3933
3933
  implementationPath?: string | undefined;
3934
3934
  include?: string[] | undefined;
@@ -3941,8 +3941,8 @@ declare const governanceConfigSchema: z.ZodObject<{
3941
3941
  kind: "registry";
3942
3942
  registryId: string;
3943
3943
  installPath: string;
3944
- severity?: "error" | "info" | "warn" | undefined;
3945
3944
  importPath?: string | undefined;
3945
+ severity?: "error" | "info" | "warn" | undefined;
3946
3946
  exclude?: string[] | undefined;
3947
3947
  include?: string[] | undefined;
3948
3948
  registryHash?: string | undefined;
@@ -3960,8 +3960,8 @@ declare const governanceConfigSchema: z.ZodObject<{
3960
3960
  implementationFiles: string[];
3961
3961
  };
3962
3962
  decision: {
3963
- state: "confirmed";
3964
3963
  source: "authored" | "migration";
3964
+ state: "confirmed";
3965
3965
  };
3966
3966
  }[] | undefined;
3967
3967
  presets?: string[] | undefined;