@usefragments/core 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AOG4FTV6.js → chunk-WVFNDPM4.js} +448 -190
- package/dist/chunk-WVFNDPM4.js.map +1 -0
- package/dist/codes/index.d.ts +1 -1
- package/dist/codes/index.js +1 -1
- package/dist/compiled-types/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/{governance-B88uR3Zq.d.ts → governance-DxFipN5V.d.ts} +654 -22
- package/dist/index.d.ts +678 -40
- package/dist/index.js +534 -38
- package/dist/index.js.map +1 -1
- package/dist/react-types.d.ts +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/__tests__/policy-exclude.test.ts +180 -0
- package/src/canonical-bridge.ts +69 -1
- package/src/canonical-direction.test.ts +118 -0
- package/src/canonical-direction.ts +43 -2
- package/src/codes/__tests__/codes.test.ts +14 -1
- package/src/codes/codes.ts +60 -0
- package/src/config.ts +20 -0
- package/src/facts/builders.ts +35 -0
- package/src/facts/compile.ts +135 -21
- package/src/facts/fact-index.ts +22 -2
- package/src/facts/facts.test.ts +19 -19
- package/src/facts/index.ts +9 -6
- package/src/facts/types.ts +45 -9
- package/src/governance-integrity.test.ts +277 -1
- package/src/governance-integrity.ts +616 -0
- package/src/governance.test.ts +20 -1
- package/src/governance.ts +131 -0
- package/src/index.ts +45 -2
- package/src/policy-exclude.ts +113 -0
- package/src/rules/families.test.ts +69 -0
- package/src/rules/families.ts +52 -0
- package/src/rules/index.ts +6 -0
- package/src/rules/jsx-preferred-import-path.ts +29 -11
- package/src/rules/rules.test.ts +125 -1
- package/src/rules/styles-no-raw-color.ts +13 -4
- package/src/rules/styles-no-raw-dimensions.ts +13 -4
- package/src/rules/styles-no-raw-spacing.test.ts +48 -0
- package/src/rules/styles-no-raw-spacing.ts +15 -7
- package/src/rules/styles-no-raw-typography.ts +13 -4
- package/src/rules/utils.ts +39 -0
- package/src/types.ts +21 -3
- package/dist/chunk-AOG4FTV6.js.map +0 -1
|
@@ -915,7 +915,10 @@ type TokenSourceFormat = "auto" | "css" | "scss" | "dtcg" | "tailwind";
|
|
|
915
915
|
interface TokenSourceConfig {
|
|
916
916
|
/** Repo-root-relative token file or glob. */
|
|
917
917
|
path: RepoRelativePath;
|
|
918
|
-
/**
|
|
918
|
+
/**
|
|
919
|
+
* Explicit token format, or "auto" to infer from extension/content. Use
|
|
920
|
+
* "auto" for statically analyzable TypeScript and JavaScript token modules.
|
|
921
|
+
*/
|
|
919
922
|
format?: TokenSourceFormat;
|
|
920
923
|
}
|
|
921
924
|
interface TokenConfig {
|
|
@@ -924,7 +927,10 @@ interface TokenConfig {
|
|
|
924
927
|
* e.g., ["src/styles/theme.scss", "src/styles/variables.css"]
|
|
925
928
|
*/
|
|
926
929
|
include?: string[];
|
|
927
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* Repo-root-relative token source files/globs for monorepos and Cloud setup.
|
|
932
|
+
* Set each source to format "auto" for TypeScript or JavaScript token modules.
|
|
933
|
+
*/
|
|
928
934
|
sources?: TokenSourceConfig[];
|
|
929
935
|
/**
|
|
930
936
|
* npm package names whose shipped `fragments.json` token vocabulary seeds the
|
|
@@ -956,7 +962,10 @@ interface TokenConfig {
|
|
|
956
962
|
themeSelectors?: Record<string, string>;
|
|
957
963
|
/** Enable token comparison in style diffs (default: true) */
|
|
958
964
|
enabled?: boolean;
|
|
959
|
-
/**
|
|
965
|
+
/**
|
|
966
|
+
* Token source format detection. "auto" infers supported formats from the
|
|
967
|
+
* file extension, including statically analyzable TypeScript/JavaScript modules.
|
|
968
|
+
*/
|
|
960
969
|
format?: TokenSourceFormat;
|
|
961
970
|
/** Vendor namespace for Fragments extensions in DTCG files (default: 'com.usefragments') */
|
|
962
971
|
namespace?: string;
|
|
@@ -1116,12 +1125,17 @@ interface FragmentsConfig {
|
|
|
1116
1125
|
recognizedClassHelpers?: string[];
|
|
1117
1126
|
/** Local component-identity decisions used when Cloud does not own the key. */
|
|
1118
1127
|
identity?: {
|
|
1128
|
+
/** Authored sanctions, rejections, and dismissals keyed by portable component identity. */
|
|
1119
1129
|
decisions?: Array<{
|
|
1120
1130
|
/** Portable component key (`file#exportName`). */
|
|
1121
1131
|
component: string;
|
|
1132
|
+
/** The identity disposition recorded for this component. */
|
|
1122
1133
|
kind: "sanction" | "reject" | "dismiss";
|
|
1134
|
+
/** Optional canonical target (`moduleSpecifier#exportName`) for sanctions. */
|
|
1123
1135
|
canonicalTarget?: string;
|
|
1136
|
+
/** Human-readable rationale stored with the decision. */
|
|
1124
1137
|
reason?: string;
|
|
1138
|
+
/** Stable external identifier used to reconcile an existing decision. */
|
|
1125
1139
|
decisionId?: string;
|
|
1126
1140
|
}>;
|
|
1127
1141
|
};
|
|
@@ -1350,89 +1364,215 @@ declare const globalStyleGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
1350
1364
|
except: z.ZodArray<z.ZodString, "many">;
|
|
1351
1365
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1352
1366
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1367
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1368
|
+
glob: z.ZodString;
|
|
1369
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
}, "strip", z.ZodTypeAny, {
|
|
1371
|
+
glob: string;
|
|
1372
|
+
reason?: string | undefined;
|
|
1373
|
+
}, {
|
|
1374
|
+
glob: string;
|
|
1375
|
+
reason?: string | undefined;
|
|
1376
|
+
}>]>, "many">>;
|
|
1353
1377
|
}, "strip", z.ZodTypeAny, {
|
|
1354
1378
|
kind: "style.rawColors.forbid";
|
|
1355
1379
|
severity: "error" | "info" | "warn";
|
|
1356
1380
|
except: string[];
|
|
1357
1381
|
prefer: "token" | "css-variable";
|
|
1382
|
+
exclude?: (string | {
|
|
1383
|
+
glob: string;
|
|
1384
|
+
reason?: string | undefined;
|
|
1385
|
+
})[] | undefined;
|
|
1358
1386
|
}, {
|
|
1359
1387
|
kind: "style.rawColors.forbid";
|
|
1360
1388
|
severity: "error" | "info" | "warn";
|
|
1361
1389
|
except: string[];
|
|
1362
1390
|
prefer: "token" | "css-variable";
|
|
1391
|
+
exclude?: (string | {
|
|
1392
|
+
glob: string;
|
|
1393
|
+
reason?: string | undefined;
|
|
1394
|
+
})[] | undefined;
|
|
1363
1395
|
}>, z.ZodObject<{
|
|
1364
1396
|
kind: z.ZodLiteral<"style.rawDimensions.forbid">;
|
|
1365
1397
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1366
1398
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1367
1399
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1400
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1401
|
+
glob: z.ZodString;
|
|
1402
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
}, "strip", z.ZodTypeAny, {
|
|
1404
|
+
glob: string;
|
|
1405
|
+
reason?: string | undefined;
|
|
1406
|
+
}, {
|
|
1407
|
+
glob: string;
|
|
1408
|
+
reason?: string | undefined;
|
|
1409
|
+
}>]>, "many">>;
|
|
1368
1410
|
}, "strip", z.ZodTypeAny, {
|
|
1369
1411
|
kind: "style.rawDimensions.forbid";
|
|
1370
1412
|
severity: "error" | "info" | "warn";
|
|
1371
1413
|
prefer: "token" | "css-variable";
|
|
1372
1414
|
appliesTo: string[];
|
|
1415
|
+
exclude?: (string | {
|
|
1416
|
+
glob: string;
|
|
1417
|
+
reason?: string | undefined;
|
|
1418
|
+
})[] | undefined;
|
|
1373
1419
|
}, {
|
|
1374
1420
|
kind: "style.rawDimensions.forbid";
|
|
1375
1421
|
severity: "error" | "info" | "warn";
|
|
1376
1422
|
prefer: "token" | "css-variable";
|
|
1377
1423
|
appliesTo: string[];
|
|
1424
|
+
exclude?: (string | {
|
|
1425
|
+
glob: string;
|
|
1426
|
+
reason?: string | undefined;
|
|
1427
|
+
})[] | undefined;
|
|
1378
1428
|
}>, z.ZodObject<{
|
|
1379
1429
|
kind: z.ZodLiteral<"style.rawSpacing.mustMatchScale">;
|
|
1380
1430
|
scale: z.ZodString;
|
|
1381
1431
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1382
1432
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1433
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1434
|
+
glob: z.ZodString;
|
|
1435
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
}, "strip", z.ZodTypeAny, {
|
|
1437
|
+
glob: string;
|
|
1438
|
+
reason?: string | undefined;
|
|
1439
|
+
}, {
|
|
1440
|
+
glob: string;
|
|
1441
|
+
reason?: string | undefined;
|
|
1442
|
+
}>]>, "many">>;
|
|
1383
1443
|
}, "strip", z.ZodTypeAny, {
|
|
1384
1444
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1385
1445
|
severity: "error" | "info" | "warn";
|
|
1386
1446
|
scale: string;
|
|
1387
1447
|
appliesTo: string[];
|
|
1448
|
+
exclude?: (string | {
|
|
1449
|
+
glob: string;
|
|
1450
|
+
reason?: string | undefined;
|
|
1451
|
+
})[] | undefined;
|
|
1388
1452
|
}, {
|
|
1389
1453
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1390
1454
|
severity: "error" | "info" | "warn";
|
|
1391
1455
|
scale: string;
|
|
1392
1456
|
appliesTo: string[];
|
|
1457
|
+
exclude?: (string | {
|
|
1458
|
+
glob: string;
|
|
1459
|
+
reason?: string | undefined;
|
|
1460
|
+
})[] | undefined;
|
|
1393
1461
|
}>, z.ZodObject<{
|
|
1394
1462
|
kind: z.ZodLiteral<"style.fontSize.mustMatchScale">;
|
|
1395
1463
|
scale: z.ZodString;
|
|
1396
1464
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1465
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1466
|
+
glob: z.ZodString;
|
|
1467
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
}, "strip", z.ZodTypeAny, {
|
|
1469
|
+
glob: string;
|
|
1470
|
+
reason?: string | undefined;
|
|
1471
|
+
}, {
|
|
1472
|
+
glob: string;
|
|
1473
|
+
reason?: string | undefined;
|
|
1474
|
+
}>]>, "many">>;
|
|
1397
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1398
1476
|
kind: "style.fontSize.mustMatchScale";
|
|
1399
1477
|
severity: "error" | "info" | "warn";
|
|
1400
1478
|
scale: string;
|
|
1479
|
+
exclude?: (string | {
|
|
1480
|
+
glob: string;
|
|
1481
|
+
reason?: string | undefined;
|
|
1482
|
+
})[] | undefined;
|
|
1401
1483
|
}, {
|
|
1402
1484
|
kind: "style.fontSize.mustMatchScale";
|
|
1403
1485
|
severity: "error" | "info" | "warn";
|
|
1404
1486
|
scale: string;
|
|
1487
|
+
exclude?: (string | {
|
|
1488
|
+
glob: string;
|
|
1489
|
+
reason?: string | undefined;
|
|
1490
|
+
})[] | undefined;
|
|
1405
1491
|
}>, z.ZodObject<{
|
|
1406
1492
|
kind: z.ZodLiteral<"style.cssVars.mustBeDefined">;
|
|
1407
1493
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1494
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1495
|
+
glob: z.ZodString;
|
|
1496
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
}, "strip", z.ZodTypeAny, {
|
|
1498
|
+
glob: string;
|
|
1499
|
+
reason?: string | undefined;
|
|
1500
|
+
}, {
|
|
1501
|
+
glob: string;
|
|
1502
|
+
reason?: string | undefined;
|
|
1503
|
+
}>]>, "many">>;
|
|
1408
1504
|
}, "strip", z.ZodTypeAny, {
|
|
1409
1505
|
kind: "style.cssVars.mustBeDefined";
|
|
1410
1506
|
severity: "error" | "info" | "warn";
|
|
1507
|
+
exclude?: (string | {
|
|
1508
|
+
glob: string;
|
|
1509
|
+
reason?: string | undefined;
|
|
1510
|
+
})[] | undefined;
|
|
1411
1511
|
}, {
|
|
1412
1512
|
kind: "style.cssVars.mustBeDefined";
|
|
1413
1513
|
severity: "error" | "info" | "warn";
|
|
1514
|
+
exclude?: (string | {
|
|
1515
|
+
glob: string;
|
|
1516
|
+
reason?: string | undefined;
|
|
1517
|
+
})[] | undefined;
|
|
1414
1518
|
}>]>;
|
|
1415
1519
|
declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1416
1520
|
kind: z.ZodLiteral<"jsx.unknownProps.forbid">;
|
|
1417
1521
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1522
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1523
|
+
glob: z.ZodString;
|
|
1524
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
}, "strip", z.ZodTypeAny, {
|
|
1526
|
+
glob: string;
|
|
1527
|
+
reason?: string | undefined;
|
|
1528
|
+
}, {
|
|
1529
|
+
glob: string;
|
|
1530
|
+
reason?: string | undefined;
|
|
1531
|
+
}>]>, "many">>;
|
|
1418
1532
|
}, "strip", z.ZodTypeAny, {
|
|
1419
1533
|
kind: "jsx.unknownProps.forbid";
|
|
1420
1534
|
severity: "error" | "info" | "warn";
|
|
1535
|
+
exclude?: (string | {
|
|
1536
|
+
glob: string;
|
|
1537
|
+
reason?: string | undefined;
|
|
1538
|
+
})[] | undefined;
|
|
1421
1539
|
}, {
|
|
1422
1540
|
kind: "jsx.unknownProps.forbid";
|
|
1423
1541
|
severity: "error" | "info" | "warn";
|
|
1542
|
+
exclude?: (string | {
|
|
1543
|
+
glob: string;
|
|
1544
|
+
reason?: string | undefined;
|
|
1545
|
+
})[] | undefined;
|
|
1424
1546
|
}>, z.ZodObject<{
|
|
1425
1547
|
kind: z.ZodLiteral<"jsx.inlineStyle.forbidRaw">;
|
|
1426
1548
|
properties: z.ZodArray<z.ZodString, "many">;
|
|
1427
1549
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1550
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1551
|
+
glob: z.ZodString;
|
|
1552
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1553
|
+
}, "strip", z.ZodTypeAny, {
|
|
1554
|
+
glob: string;
|
|
1555
|
+
reason?: string | undefined;
|
|
1556
|
+
}, {
|
|
1557
|
+
glob: string;
|
|
1558
|
+
reason?: string | undefined;
|
|
1559
|
+
}>]>, "many">>;
|
|
1428
1560
|
}, "strip", z.ZodTypeAny, {
|
|
1429
1561
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1430
1562
|
severity: "error" | "info" | "warn";
|
|
1431
1563
|
properties: string[];
|
|
1564
|
+
exclude?: (string | {
|
|
1565
|
+
glob: string;
|
|
1566
|
+
reason?: string | undefined;
|
|
1567
|
+
})[] | undefined;
|
|
1432
1568
|
}, {
|
|
1433
1569
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1434
1570
|
severity: "error" | "info" | "warn";
|
|
1435
1571
|
properties: string[];
|
|
1572
|
+
exclude?: (string | {
|
|
1573
|
+
glob: string;
|
|
1574
|
+
reason?: string | undefined;
|
|
1575
|
+
})[] | undefined;
|
|
1436
1576
|
}>, z.ZodObject<{
|
|
1437
1577
|
kind: z.ZodLiteral<"jsx.importPath.prefer">;
|
|
1438
1578
|
from: z.ZodString;
|
|
@@ -1440,11 +1580,25 @@ declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
1440
1580
|
imported: z.ZodOptional<z.ZodString>;
|
|
1441
1581
|
because: z.ZodOptional<z.ZodString>;
|
|
1442
1582
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1583
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1584
|
+
glob: z.ZodString;
|
|
1585
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1586
|
+
}, "strip", z.ZodTypeAny, {
|
|
1587
|
+
glob: string;
|
|
1588
|
+
reason?: string | undefined;
|
|
1589
|
+
}, {
|
|
1590
|
+
glob: string;
|
|
1591
|
+
reason?: string | undefined;
|
|
1592
|
+
}>]>, "many">>;
|
|
1443
1593
|
}, "strip", z.ZodTypeAny, {
|
|
1444
1594
|
kind: "jsx.importPath.prefer";
|
|
1445
1595
|
from: string;
|
|
1446
1596
|
to: string;
|
|
1447
1597
|
severity: "error" | "info" | "warn";
|
|
1598
|
+
exclude?: (string | {
|
|
1599
|
+
glob: string;
|
|
1600
|
+
reason?: string | undefined;
|
|
1601
|
+
})[] | undefined;
|
|
1448
1602
|
imported?: string | undefined;
|
|
1449
1603
|
because?: string | undefined;
|
|
1450
1604
|
}, {
|
|
@@ -1452,6 +1606,10 @@ declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
1452
1606
|
from: string;
|
|
1453
1607
|
to: string;
|
|
1454
1608
|
severity: "error" | "info" | "warn";
|
|
1609
|
+
exclude?: (string | {
|
|
1610
|
+
glob: string;
|
|
1611
|
+
reason?: string | undefined;
|
|
1612
|
+
})[] | undefined;
|
|
1455
1613
|
imported?: string | undefined;
|
|
1456
1614
|
because?: string | undefined;
|
|
1457
1615
|
}>, z.ZodObject<{
|
|
@@ -1460,17 +1618,35 @@ declare const globalJsxGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
1460
1618
|
to: z.ZodString;
|
|
1461
1619
|
because: z.ZodOptional<z.ZodString>;
|
|
1462
1620
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1621
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1622
|
+
glob: z.ZodString;
|
|
1623
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1624
|
+
}, "strip", z.ZodTypeAny, {
|
|
1625
|
+
glob: string;
|
|
1626
|
+
reason?: string | undefined;
|
|
1627
|
+
}, {
|
|
1628
|
+
glob: string;
|
|
1629
|
+
reason?: string | undefined;
|
|
1630
|
+
}>]>, "many">>;
|
|
1463
1631
|
}, "strip", z.ZodTypeAny, {
|
|
1464
1632
|
kind: "jsx.component.prefer";
|
|
1465
1633
|
from: string;
|
|
1466
1634
|
to: string;
|
|
1467
1635
|
severity: "error" | "info" | "warn";
|
|
1636
|
+
exclude?: (string | {
|
|
1637
|
+
glob: string;
|
|
1638
|
+
reason?: string | undefined;
|
|
1639
|
+
})[] | undefined;
|
|
1468
1640
|
because?: string | undefined;
|
|
1469
1641
|
}, {
|
|
1470
1642
|
kind: "jsx.component.prefer";
|
|
1471
1643
|
from: string;
|
|
1472
1644
|
to: string;
|
|
1473
1645
|
severity: "error" | "info" | "warn";
|
|
1646
|
+
exclude?: (string | {
|
|
1647
|
+
glob: string;
|
|
1648
|
+
reason?: string | undefined;
|
|
1649
|
+
})[] | undefined;
|
|
1474
1650
|
because?: string | undefined;
|
|
1475
1651
|
}>]>;
|
|
1476
1652
|
declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -1499,88 +1675,214 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1499
1675
|
except: z.ZodArray<z.ZodString, "many">;
|
|
1500
1676
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1501
1677
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1678
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1679
|
+
glob: z.ZodString;
|
|
1680
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
}, "strip", z.ZodTypeAny, {
|
|
1682
|
+
glob: string;
|
|
1683
|
+
reason?: string | undefined;
|
|
1684
|
+
}, {
|
|
1685
|
+
glob: string;
|
|
1686
|
+
reason?: string | undefined;
|
|
1687
|
+
}>]>, "many">>;
|
|
1502
1688
|
}, "strip", z.ZodTypeAny, {
|
|
1503
1689
|
kind: "style.rawColors.forbid";
|
|
1504
1690
|
severity: "error" | "info" | "warn";
|
|
1505
1691
|
except: string[];
|
|
1506
1692
|
prefer: "token" | "css-variable";
|
|
1693
|
+
exclude?: (string | {
|
|
1694
|
+
glob: string;
|
|
1695
|
+
reason?: string | undefined;
|
|
1696
|
+
})[] | undefined;
|
|
1507
1697
|
}, {
|
|
1508
1698
|
kind: "style.rawColors.forbid";
|
|
1509
1699
|
severity: "error" | "info" | "warn";
|
|
1510
1700
|
except: string[];
|
|
1511
1701
|
prefer: "token" | "css-variable";
|
|
1702
|
+
exclude?: (string | {
|
|
1703
|
+
glob: string;
|
|
1704
|
+
reason?: string | undefined;
|
|
1705
|
+
})[] | undefined;
|
|
1512
1706
|
}>, z.ZodObject<{
|
|
1513
1707
|
kind: z.ZodLiteral<"style.rawDimensions.forbid">;
|
|
1514
1708
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1515
1709
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
1516
1710
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1711
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1712
|
+
glob: z.ZodString;
|
|
1713
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
}, "strip", z.ZodTypeAny, {
|
|
1715
|
+
glob: string;
|
|
1716
|
+
reason?: string | undefined;
|
|
1717
|
+
}, {
|
|
1718
|
+
glob: string;
|
|
1719
|
+
reason?: string | undefined;
|
|
1720
|
+
}>]>, "many">>;
|
|
1517
1721
|
}, "strip", z.ZodTypeAny, {
|
|
1518
1722
|
kind: "style.rawDimensions.forbid";
|
|
1519
1723
|
severity: "error" | "info" | "warn";
|
|
1520
1724
|
prefer: "token" | "css-variable";
|
|
1521
1725
|
appliesTo: string[];
|
|
1726
|
+
exclude?: (string | {
|
|
1727
|
+
glob: string;
|
|
1728
|
+
reason?: string | undefined;
|
|
1729
|
+
})[] | undefined;
|
|
1522
1730
|
}, {
|
|
1523
1731
|
kind: "style.rawDimensions.forbid";
|
|
1524
1732
|
severity: "error" | "info" | "warn";
|
|
1525
1733
|
prefer: "token" | "css-variable";
|
|
1526
1734
|
appliesTo: string[];
|
|
1735
|
+
exclude?: (string | {
|
|
1736
|
+
glob: string;
|
|
1737
|
+
reason?: string | undefined;
|
|
1738
|
+
})[] | undefined;
|
|
1527
1739
|
}>, z.ZodObject<{
|
|
1528
1740
|
kind: z.ZodLiteral<"style.rawSpacing.mustMatchScale">;
|
|
1529
1741
|
scale: z.ZodString;
|
|
1530
1742
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
1531
1743
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1744
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1745
|
+
glob: z.ZodString;
|
|
1746
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1747
|
+
}, "strip", z.ZodTypeAny, {
|
|
1748
|
+
glob: string;
|
|
1749
|
+
reason?: string | undefined;
|
|
1750
|
+
}, {
|
|
1751
|
+
glob: string;
|
|
1752
|
+
reason?: string | undefined;
|
|
1753
|
+
}>]>, "many">>;
|
|
1532
1754
|
}, "strip", z.ZodTypeAny, {
|
|
1533
1755
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1534
1756
|
severity: "error" | "info" | "warn";
|
|
1535
1757
|
scale: string;
|
|
1536
1758
|
appliesTo: string[];
|
|
1759
|
+
exclude?: (string | {
|
|
1760
|
+
glob: string;
|
|
1761
|
+
reason?: string | undefined;
|
|
1762
|
+
})[] | undefined;
|
|
1537
1763
|
}, {
|
|
1538
1764
|
kind: "style.rawSpacing.mustMatchScale";
|
|
1539
1765
|
severity: "error" | "info" | "warn";
|
|
1540
1766
|
scale: string;
|
|
1541
1767
|
appliesTo: string[];
|
|
1768
|
+
exclude?: (string | {
|
|
1769
|
+
glob: string;
|
|
1770
|
+
reason?: string | undefined;
|
|
1771
|
+
})[] | undefined;
|
|
1542
1772
|
}>, z.ZodObject<{
|
|
1543
1773
|
kind: z.ZodLiteral<"style.fontSize.mustMatchScale">;
|
|
1544
1774
|
scale: z.ZodString;
|
|
1545
1775
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1776
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1777
|
+
glob: z.ZodString;
|
|
1778
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1779
|
+
}, "strip", z.ZodTypeAny, {
|
|
1780
|
+
glob: string;
|
|
1781
|
+
reason?: string | undefined;
|
|
1782
|
+
}, {
|
|
1783
|
+
glob: string;
|
|
1784
|
+
reason?: string | undefined;
|
|
1785
|
+
}>]>, "many">>;
|
|
1546
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1547
1787
|
kind: "style.fontSize.mustMatchScale";
|
|
1548
1788
|
severity: "error" | "info" | "warn";
|
|
1549
1789
|
scale: string;
|
|
1790
|
+
exclude?: (string | {
|
|
1791
|
+
glob: string;
|
|
1792
|
+
reason?: string | undefined;
|
|
1793
|
+
})[] | undefined;
|
|
1550
1794
|
}, {
|
|
1551
1795
|
kind: "style.fontSize.mustMatchScale";
|
|
1552
1796
|
severity: "error" | "info" | "warn";
|
|
1553
1797
|
scale: string;
|
|
1798
|
+
exclude?: (string | {
|
|
1799
|
+
glob: string;
|
|
1800
|
+
reason?: string | undefined;
|
|
1801
|
+
})[] | undefined;
|
|
1554
1802
|
}>, z.ZodObject<{
|
|
1555
1803
|
kind: z.ZodLiteral<"style.cssVars.mustBeDefined">;
|
|
1556
1804
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1805
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1806
|
+
glob: z.ZodString;
|
|
1807
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1808
|
+
}, "strip", z.ZodTypeAny, {
|
|
1809
|
+
glob: string;
|
|
1810
|
+
reason?: string | undefined;
|
|
1811
|
+
}, {
|
|
1812
|
+
glob: string;
|
|
1813
|
+
reason?: string | undefined;
|
|
1814
|
+
}>]>, "many">>;
|
|
1557
1815
|
}, "strip", z.ZodTypeAny, {
|
|
1558
1816
|
kind: "style.cssVars.mustBeDefined";
|
|
1559
1817
|
severity: "error" | "info" | "warn";
|
|
1818
|
+
exclude?: (string | {
|
|
1819
|
+
glob: string;
|
|
1820
|
+
reason?: string | undefined;
|
|
1821
|
+
})[] | undefined;
|
|
1560
1822
|
}, {
|
|
1561
1823
|
kind: "style.cssVars.mustBeDefined";
|
|
1562
1824
|
severity: "error" | "info" | "warn";
|
|
1825
|
+
exclude?: (string | {
|
|
1826
|
+
glob: string;
|
|
1827
|
+
reason?: string | undefined;
|
|
1828
|
+
})[] | undefined;
|
|
1563
1829
|
}>, z.ZodObject<{
|
|
1564
1830
|
kind: z.ZodLiteral<"jsx.unknownProps.forbid">;
|
|
1565
1831
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1832
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1833
|
+
glob: z.ZodString;
|
|
1834
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
}, "strip", z.ZodTypeAny, {
|
|
1836
|
+
glob: string;
|
|
1837
|
+
reason?: string | undefined;
|
|
1838
|
+
}, {
|
|
1839
|
+
glob: string;
|
|
1840
|
+
reason?: string | undefined;
|
|
1841
|
+
}>]>, "many">>;
|
|
1566
1842
|
}, "strip", z.ZodTypeAny, {
|
|
1567
1843
|
kind: "jsx.unknownProps.forbid";
|
|
1568
1844
|
severity: "error" | "info" | "warn";
|
|
1845
|
+
exclude?: (string | {
|
|
1846
|
+
glob: string;
|
|
1847
|
+
reason?: string | undefined;
|
|
1848
|
+
})[] | undefined;
|
|
1569
1849
|
}, {
|
|
1570
1850
|
kind: "jsx.unknownProps.forbid";
|
|
1571
1851
|
severity: "error" | "info" | "warn";
|
|
1852
|
+
exclude?: (string | {
|
|
1853
|
+
glob: string;
|
|
1854
|
+
reason?: string | undefined;
|
|
1855
|
+
})[] | undefined;
|
|
1572
1856
|
}>, z.ZodObject<{
|
|
1573
1857
|
kind: z.ZodLiteral<"jsx.inlineStyle.forbidRaw">;
|
|
1574
1858
|
properties: z.ZodArray<z.ZodString, "many">;
|
|
1575
1859
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1860
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1861
|
+
glob: z.ZodString;
|
|
1862
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
}, "strip", z.ZodTypeAny, {
|
|
1864
|
+
glob: string;
|
|
1865
|
+
reason?: string | undefined;
|
|
1866
|
+
}, {
|
|
1867
|
+
glob: string;
|
|
1868
|
+
reason?: string | undefined;
|
|
1869
|
+
}>]>, "many">>;
|
|
1576
1870
|
}, "strip", z.ZodTypeAny, {
|
|
1577
1871
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1578
1872
|
severity: "error" | "info" | "warn";
|
|
1579
1873
|
properties: string[];
|
|
1874
|
+
exclude?: (string | {
|
|
1875
|
+
glob: string;
|
|
1876
|
+
reason?: string | undefined;
|
|
1877
|
+
})[] | undefined;
|
|
1580
1878
|
}, {
|
|
1581
1879
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
1582
1880
|
severity: "error" | "info" | "warn";
|
|
1583
1881
|
properties: string[];
|
|
1882
|
+
exclude?: (string | {
|
|
1883
|
+
glob: string;
|
|
1884
|
+
reason?: string | undefined;
|
|
1885
|
+
})[] | undefined;
|
|
1584
1886
|
}>, z.ZodObject<{
|
|
1585
1887
|
kind: z.ZodLiteral<"jsx.importPath.prefer">;
|
|
1586
1888
|
from: z.ZodString;
|
|
@@ -1588,11 +1890,25 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1588
1890
|
imported: z.ZodOptional<z.ZodString>;
|
|
1589
1891
|
because: z.ZodOptional<z.ZodString>;
|
|
1590
1892
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1893
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1894
|
+
glob: z.ZodString;
|
|
1895
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1896
|
+
}, "strip", z.ZodTypeAny, {
|
|
1897
|
+
glob: string;
|
|
1898
|
+
reason?: string | undefined;
|
|
1899
|
+
}, {
|
|
1900
|
+
glob: string;
|
|
1901
|
+
reason?: string | undefined;
|
|
1902
|
+
}>]>, "many">>;
|
|
1591
1903
|
}, "strip", z.ZodTypeAny, {
|
|
1592
1904
|
kind: "jsx.importPath.prefer";
|
|
1593
1905
|
from: string;
|
|
1594
1906
|
to: string;
|
|
1595
1907
|
severity: "error" | "info" | "warn";
|
|
1908
|
+
exclude?: (string | {
|
|
1909
|
+
glob: string;
|
|
1910
|
+
reason?: string | undefined;
|
|
1911
|
+
})[] | undefined;
|
|
1596
1912
|
imported?: string | undefined;
|
|
1597
1913
|
because?: string | undefined;
|
|
1598
1914
|
}, {
|
|
@@ -1600,6 +1916,10 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1600
1916
|
from: string;
|
|
1601
1917
|
to: string;
|
|
1602
1918
|
severity: "error" | "info" | "warn";
|
|
1919
|
+
exclude?: (string | {
|
|
1920
|
+
glob: string;
|
|
1921
|
+
reason?: string | undefined;
|
|
1922
|
+
})[] | undefined;
|
|
1603
1923
|
imported?: string | undefined;
|
|
1604
1924
|
because?: string | undefined;
|
|
1605
1925
|
}>, z.ZodObject<{
|
|
@@ -1608,17 +1928,35 @@ declare const globalGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
1608
1928
|
to: z.ZodString;
|
|
1609
1929
|
because: z.ZodOptional<z.ZodString>;
|
|
1610
1930
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
1931
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1932
|
+
glob: z.ZodString;
|
|
1933
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1934
|
+
}, "strip", z.ZodTypeAny, {
|
|
1935
|
+
glob: string;
|
|
1936
|
+
reason?: string | undefined;
|
|
1937
|
+
}, {
|
|
1938
|
+
glob: string;
|
|
1939
|
+
reason?: string | undefined;
|
|
1940
|
+
}>]>, "many">>;
|
|
1611
1941
|
}, "strip", z.ZodTypeAny, {
|
|
1612
1942
|
kind: "jsx.component.prefer";
|
|
1613
1943
|
from: string;
|
|
1614
1944
|
to: string;
|
|
1615
1945
|
severity: "error" | "info" | "warn";
|
|
1946
|
+
exclude?: (string | {
|
|
1947
|
+
glob: string;
|
|
1948
|
+
reason?: string | undefined;
|
|
1949
|
+
})[] | undefined;
|
|
1616
1950
|
because?: string | undefined;
|
|
1617
1951
|
}, {
|
|
1618
1952
|
kind: "jsx.component.prefer";
|
|
1619
1953
|
from: string;
|
|
1620
1954
|
to: string;
|
|
1621
1955
|
severity: "error" | "info" | "warn";
|
|
1956
|
+
exclude?: (string | {
|
|
1957
|
+
glob: string;
|
|
1958
|
+
reason?: string | undefined;
|
|
1959
|
+
})[] | undefined;
|
|
1622
1960
|
because?: string | undefined;
|
|
1623
1961
|
}>]>;
|
|
1624
1962
|
declare const componentGovernanceRecordSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -2226,15 +2564,15 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2226
2564
|
}, "strip", z.ZodTypeAny, {
|
|
2227
2565
|
kind: "npm";
|
|
2228
2566
|
specifier: string;
|
|
2567
|
+
exclude?: string[] | undefined;
|
|
2229
2568
|
implementationPath?: string | undefined;
|
|
2230
2569
|
include?: string[] | undefined;
|
|
2231
|
-
exclude?: string[] | undefined;
|
|
2232
2570
|
}, {
|
|
2233
2571
|
kind: "npm";
|
|
2234
2572
|
specifier: string;
|
|
2573
|
+
exclude?: string[] | undefined;
|
|
2235
2574
|
implementationPath?: string | undefined;
|
|
2236
2575
|
include?: string[] | undefined;
|
|
2237
|
-
exclude?: string[] | undefined;
|
|
2238
2576
|
}>, z.ZodObject<{
|
|
2239
2577
|
kind: z.ZodLiteral<"directory">;
|
|
2240
2578
|
path: z.ZodString;
|
|
@@ -2243,13 +2581,13 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2243
2581
|
}, "strip", z.ZodTypeAny, {
|
|
2244
2582
|
path: string;
|
|
2245
2583
|
kind: "directory";
|
|
2246
|
-
include?: string[] | undefined;
|
|
2247
2584
|
exclude?: string[] | undefined;
|
|
2585
|
+
include?: string[] | undefined;
|
|
2248
2586
|
}, {
|
|
2249
2587
|
path: string;
|
|
2250
2588
|
kind: "directory";
|
|
2251
|
-
include?: string[] | undefined;
|
|
2252
2589
|
exclude?: string[] | undefined;
|
|
2590
|
+
include?: string[] | undefined;
|
|
2253
2591
|
}>, z.ZodObject<{
|
|
2254
2592
|
kind: z.ZodLiteral<"registry">;
|
|
2255
2593
|
registryId: z.ZodString;
|
|
@@ -2267,8 +2605,8 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2267
2605
|
installPath: string;
|
|
2268
2606
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2269
2607
|
importPath?: string | undefined;
|
|
2270
|
-
include?: string[] | undefined;
|
|
2271
2608
|
exclude?: string[] | undefined;
|
|
2609
|
+
include?: string[] | undefined;
|
|
2272
2610
|
registryHash?: string | undefined;
|
|
2273
2611
|
}, {
|
|
2274
2612
|
kind: "registry";
|
|
@@ -2276,8 +2614,8 @@ declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObjec
|
|
|
2276
2614
|
installPath: string;
|
|
2277
2615
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2278
2616
|
importPath?: string | undefined;
|
|
2279
|
-
include?: string[] | undefined;
|
|
2280
2617
|
exclude?: string[] | undefined;
|
|
2618
|
+
include?: string[] | undefined;
|
|
2281
2619
|
registryHash?: string | undefined;
|
|
2282
2620
|
receiptPath?: string | undefined;
|
|
2283
2621
|
}>]>;
|
|
@@ -2303,15 +2641,15 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2303
2641
|
}, "strip", z.ZodTypeAny, {
|
|
2304
2642
|
kind: "npm";
|
|
2305
2643
|
specifier: string;
|
|
2644
|
+
exclude?: string[] | undefined;
|
|
2306
2645
|
implementationPath?: string | undefined;
|
|
2307
2646
|
include?: string[] | undefined;
|
|
2308
|
-
exclude?: string[] | undefined;
|
|
2309
2647
|
}, {
|
|
2310
2648
|
kind: "npm";
|
|
2311
2649
|
specifier: string;
|
|
2650
|
+
exclude?: string[] | undefined;
|
|
2312
2651
|
implementationPath?: string | undefined;
|
|
2313
2652
|
include?: string[] | undefined;
|
|
2314
|
-
exclude?: string[] | undefined;
|
|
2315
2653
|
}>, z.ZodObject<{
|
|
2316
2654
|
kind: z.ZodLiteral<"directory">;
|
|
2317
2655
|
path: z.ZodString;
|
|
@@ -2320,13 +2658,13 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2320
2658
|
}, "strip", z.ZodTypeAny, {
|
|
2321
2659
|
path: string;
|
|
2322
2660
|
kind: "directory";
|
|
2323
|
-
include?: string[] | undefined;
|
|
2324
2661
|
exclude?: string[] | undefined;
|
|
2662
|
+
include?: string[] | undefined;
|
|
2325
2663
|
}, {
|
|
2326
2664
|
path: string;
|
|
2327
2665
|
kind: "directory";
|
|
2328
|
-
include?: string[] | undefined;
|
|
2329
2666
|
exclude?: string[] | undefined;
|
|
2667
|
+
include?: string[] | undefined;
|
|
2330
2668
|
}>, z.ZodObject<{
|
|
2331
2669
|
kind: z.ZodLiteral<"registry">;
|
|
2332
2670
|
registryId: z.ZodString;
|
|
@@ -2344,8 +2682,8 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2344
2682
|
installPath: string;
|
|
2345
2683
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2346
2684
|
importPath?: string | undefined;
|
|
2347
|
-
include?: string[] | undefined;
|
|
2348
2685
|
exclude?: string[] | undefined;
|
|
2686
|
+
include?: string[] | undefined;
|
|
2349
2687
|
registryHash?: string | undefined;
|
|
2350
2688
|
}, {
|
|
2351
2689
|
kind: "registry";
|
|
@@ -2353,8 +2691,8 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2353
2691
|
installPath: string;
|
|
2354
2692
|
severity?: "error" | "info" | "warn" | undefined;
|
|
2355
2693
|
importPath?: string | undefined;
|
|
2356
|
-
include?: string[] | undefined;
|
|
2357
2694
|
exclude?: string[] | undefined;
|
|
2695
|
+
include?: string[] | undefined;
|
|
2358
2696
|
registryHash?: string | undefined;
|
|
2359
2697
|
receiptPath?: string | undefined;
|
|
2360
2698
|
}>]>, "many">>;
|
|
@@ -2484,89 +2822,215 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2484
2822
|
except: z.ZodArray<z.ZodString, "many">;
|
|
2485
2823
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
2486
2824
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2825
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2826
|
+
glob: z.ZodString;
|
|
2827
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2828
|
+
}, "strip", z.ZodTypeAny, {
|
|
2829
|
+
glob: string;
|
|
2830
|
+
reason?: string | undefined;
|
|
2831
|
+
}, {
|
|
2832
|
+
glob: string;
|
|
2833
|
+
reason?: string | undefined;
|
|
2834
|
+
}>]>, "many">>;
|
|
2487
2835
|
}, "strip", z.ZodTypeAny, {
|
|
2488
2836
|
kind: "style.rawColors.forbid";
|
|
2489
2837
|
severity: "error" | "info" | "warn";
|
|
2490
2838
|
except: string[];
|
|
2491
2839
|
prefer: "token" | "css-variable";
|
|
2840
|
+
exclude?: (string | {
|
|
2841
|
+
glob: string;
|
|
2842
|
+
reason?: string | undefined;
|
|
2843
|
+
})[] | undefined;
|
|
2492
2844
|
}, {
|
|
2493
2845
|
kind: "style.rawColors.forbid";
|
|
2494
2846
|
severity: "error" | "info" | "warn";
|
|
2495
2847
|
except: string[];
|
|
2496
2848
|
prefer: "token" | "css-variable";
|
|
2849
|
+
exclude?: (string | {
|
|
2850
|
+
glob: string;
|
|
2851
|
+
reason?: string | undefined;
|
|
2852
|
+
})[] | undefined;
|
|
2497
2853
|
}>, z.ZodObject<{
|
|
2498
2854
|
kind: z.ZodLiteral<"style.rawDimensions.forbid">;
|
|
2499
2855
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
2500
2856
|
prefer: z.ZodEnum<["token", "css-variable"]>;
|
|
2501
2857
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2858
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2859
|
+
glob: z.ZodString;
|
|
2860
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2861
|
+
}, "strip", z.ZodTypeAny, {
|
|
2862
|
+
glob: string;
|
|
2863
|
+
reason?: string | undefined;
|
|
2864
|
+
}, {
|
|
2865
|
+
glob: string;
|
|
2866
|
+
reason?: string | undefined;
|
|
2867
|
+
}>]>, "many">>;
|
|
2502
2868
|
}, "strip", z.ZodTypeAny, {
|
|
2503
2869
|
kind: "style.rawDimensions.forbid";
|
|
2504
2870
|
severity: "error" | "info" | "warn";
|
|
2505
2871
|
prefer: "token" | "css-variable";
|
|
2506
2872
|
appliesTo: string[];
|
|
2873
|
+
exclude?: (string | {
|
|
2874
|
+
glob: string;
|
|
2875
|
+
reason?: string | undefined;
|
|
2876
|
+
})[] | undefined;
|
|
2507
2877
|
}, {
|
|
2508
2878
|
kind: "style.rawDimensions.forbid";
|
|
2509
2879
|
severity: "error" | "info" | "warn";
|
|
2510
2880
|
prefer: "token" | "css-variable";
|
|
2511
2881
|
appliesTo: string[];
|
|
2882
|
+
exclude?: (string | {
|
|
2883
|
+
glob: string;
|
|
2884
|
+
reason?: string | undefined;
|
|
2885
|
+
})[] | undefined;
|
|
2512
2886
|
}>, z.ZodObject<{
|
|
2513
2887
|
kind: z.ZodLiteral<"style.rawSpacing.mustMatchScale">;
|
|
2514
2888
|
scale: z.ZodString;
|
|
2515
2889
|
appliesTo: z.ZodArray<z.ZodString, "many">;
|
|
2516
2890
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2891
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2892
|
+
glob: z.ZodString;
|
|
2893
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2894
|
+
}, "strip", z.ZodTypeAny, {
|
|
2895
|
+
glob: string;
|
|
2896
|
+
reason?: string | undefined;
|
|
2897
|
+
}, {
|
|
2898
|
+
glob: string;
|
|
2899
|
+
reason?: string | undefined;
|
|
2900
|
+
}>]>, "many">>;
|
|
2517
2901
|
}, "strip", z.ZodTypeAny, {
|
|
2518
2902
|
kind: "style.rawSpacing.mustMatchScale";
|
|
2519
2903
|
severity: "error" | "info" | "warn";
|
|
2520
2904
|
scale: string;
|
|
2521
2905
|
appliesTo: string[];
|
|
2906
|
+
exclude?: (string | {
|
|
2907
|
+
glob: string;
|
|
2908
|
+
reason?: string | undefined;
|
|
2909
|
+
})[] | undefined;
|
|
2522
2910
|
}, {
|
|
2523
2911
|
kind: "style.rawSpacing.mustMatchScale";
|
|
2524
2912
|
severity: "error" | "info" | "warn";
|
|
2525
2913
|
scale: string;
|
|
2526
2914
|
appliesTo: string[];
|
|
2915
|
+
exclude?: (string | {
|
|
2916
|
+
glob: string;
|
|
2917
|
+
reason?: string | undefined;
|
|
2918
|
+
})[] | undefined;
|
|
2527
2919
|
}>, z.ZodObject<{
|
|
2528
2920
|
kind: z.ZodLiteral<"style.fontSize.mustMatchScale">;
|
|
2529
2921
|
scale: z.ZodString;
|
|
2530
2922
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2923
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2924
|
+
glob: z.ZodString;
|
|
2925
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2926
|
+
}, "strip", z.ZodTypeAny, {
|
|
2927
|
+
glob: string;
|
|
2928
|
+
reason?: string | undefined;
|
|
2929
|
+
}, {
|
|
2930
|
+
glob: string;
|
|
2931
|
+
reason?: string | undefined;
|
|
2932
|
+
}>]>, "many">>;
|
|
2531
2933
|
}, "strip", z.ZodTypeAny, {
|
|
2532
2934
|
kind: "style.fontSize.mustMatchScale";
|
|
2533
2935
|
severity: "error" | "info" | "warn";
|
|
2534
2936
|
scale: string;
|
|
2937
|
+
exclude?: (string | {
|
|
2938
|
+
glob: string;
|
|
2939
|
+
reason?: string | undefined;
|
|
2940
|
+
})[] | undefined;
|
|
2535
2941
|
}, {
|
|
2536
2942
|
kind: "style.fontSize.mustMatchScale";
|
|
2537
2943
|
severity: "error" | "info" | "warn";
|
|
2538
2944
|
scale: string;
|
|
2945
|
+
exclude?: (string | {
|
|
2946
|
+
glob: string;
|
|
2947
|
+
reason?: string | undefined;
|
|
2948
|
+
})[] | undefined;
|
|
2539
2949
|
}>, z.ZodObject<{
|
|
2540
2950
|
kind: z.ZodLiteral<"style.cssVars.mustBeDefined">;
|
|
2541
2951
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2952
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2953
|
+
glob: z.ZodString;
|
|
2954
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2955
|
+
}, "strip", z.ZodTypeAny, {
|
|
2956
|
+
glob: string;
|
|
2957
|
+
reason?: string | undefined;
|
|
2958
|
+
}, {
|
|
2959
|
+
glob: string;
|
|
2960
|
+
reason?: string | undefined;
|
|
2961
|
+
}>]>, "many">>;
|
|
2542
2962
|
}, "strip", z.ZodTypeAny, {
|
|
2543
2963
|
kind: "style.cssVars.mustBeDefined";
|
|
2544
2964
|
severity: "error" | "info" | "warn";
|
|
2965
|
+
exclude?: (string | {
|
|
2966
|
+
glob: string;
|
|
2967
|
+
reason?: string | undefined;
|
|
2968
|
+
})[] | undefined;
|
|
2545
2969
|
}, {
|
|
2546
2970
|
kind: "style.cssVars.mustBeDefined";
|
|
2547
2971
|
severity: "error" | "info" | "warn";
|
|
2972
|
+
exclude?: (string | {
|
|
2973
|
+
glob: string;
|
|
2974
|
+
reason?: string | undefined;
|
|
2975
|
+
})[] | undefined;
|
|
2548
2976
|
}>]>, "many">>;
|
|
2549
2977
|
jsx: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2550
2978
|
kind: z.ZodLiteral<"jsx.unknownProps.forbid">;
|
|
2551
2979
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
2980
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2981
|
+
glob: z.ZodString;
|
|
2982
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2983
|
+
}, "strip", z.ZodTypeAny, {
|
|
2984
|
+
glob: string;
|
|
2985
|
+
reason?: string | undefined;
|
|
2986
|
+
}, {
|
|
2987
|
+
glob: string;
|
|
2988
|
+
reason?: string | undefined;
|
|
2989
|
+
}>]>, "many">>;
|
|
2552
2990
|
}, "strip", z.ZodTypeAny, {
|
|
2553
2991
|
kind: "jsx.unknownProps.forbid";
|
|
2554
2992
|
severity: "error" | "info" | "warn";
|
|
2993
|
+
exclude?: (string | {
|
|
2994
|
+
glob: string;
|
|
2995
|
+
reason?: string | undefined;
|
|
2996
|
+
})[] | undefined;
|
|
2555
2997
|
}, {
|
|
2556
2998
|
kind: "jsx.unknownProps.forbid";
|
|
2557
2999
|
severity: "error" | "info" | "warn";
|
|
3000
|
+
exclude?: (string | {
|
|
3001
|
+
glob: string;
|
|
3002
|
+
reason?: string | undefined;
|
|
3003
|
+
})[] | undefined;
|
|
2558
3004
|
}>, z.ZodObject<{
|
|
2559
3005
|
kind: z.ZodLiteral<"jsx.inlineStyle.forbidRaw">;
|
|
2560
3006
|
properties: z.ZodArray<z.ZodString, "many">;
|
|
2561
3007
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
3008
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3009
|
+
glob: z.ZodString;
|
|
3010
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3011
|
+
}, "strip", z.ZodTypeAny, {
|
|
3012
|
+
glob: string;
|
|
3013
|
+
reason?: string | undefined;
|
|
3014
|
+
}, {
|
|
3015
|
+
glob: string;
|
|
3016
|
+
reason?: string | undefined;
|
|
3017
|
+
}>]>, "many">>;
|
|
2562
3018
|
}, "strip", z.ZodTypeAny, {
|
|
2563
3019
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
2564
3020
|
severity: "error" | "info" | "warn";
|
|
2565
3021
|
properties: string[];
|
|
3022
|
+
exclude?: (string | {
|
|
3023
|
+
glob: string;
|
|
3024
|
+
reason?: string | undefined;
|
|
3025
|
+
})[] | undefined;
|
|
2566
3026
|
}, {
|
|
2567
3027
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
2568
3028
|
severity: "error" | "info" | "warn";
|
|
2569
3029
|
properties: string[];
|
|
3030
|
+
exclude?: (string | {
|
|
3031
|
+
glob: string;
|
|
3032
|
+
reason?: string | undefined;
|
|
3033
|
+
})[] | undefined;
|
|
2570
3034
|
}>, z.ZodObject<{
|
|
2571
3035
|
kind: z.ZodLiteral<"jsx.importPath.prefer">;
|
|
2572
3036
|
from: z.ZodString;
|
|
@@ -2574,11 +3038,25 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2574
3038
|
imported: z.ZodOptional<z.ZodString>;
|
|
2575
3039
|
because: z.ZodOptional<z.ZodString>;
|
|
2576
3040
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
3041
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3042
|
+
glob: z.ZodString;
|
|
3043
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3044
|
+
}, "strip", z.ZodTypeAny, {
|
|
3045
|
+
glob: string;
|
|
3046
|
+
reason?: string | undefined;
|
|
3047
|
+
}, {
|
|
3048
|
+
glob: string;
|
|
3049
|
+
reason?: string | undefined;
|
|
3050
|
+
}>]>, "many">>;
|
|
2577
3051
|
}, "strip", z.ZodTypeAny, {
|
|
2578
3052
|
kind: "jsx.importPath.prefer";
|
|
2579
3053
|
from: string;
|
|
2580
3054
|
to: string;
|
|
2581
3055
|
severity: "error" | "info" | "warn";
|
|
3056
|
+
exclude?: (string | {
|
|
3057
|
+
glob: string;
|
|
3058
|
+
reason?: string | undefined;
|
|
3059
|
+
})[] | undefined;
|
|
2582
3060
|
imported?: string | undefined;
|
|
2583
3061
|
because?: string | undefined;
|
|
2584
3062
|
}, {
|
|
@@ -2586,6 +3064,10 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2586
3064
|
from: string;
|
|
2587
3065
|
to: string;
|
|
2588
3066
|
severity: "error" | "info" | "warn";
|
|
3067
|
+
exclude?: (string | {
|
|
3068
|
+
glob: string;
|
|
3069
|
+
reason?: string | undefined;
|
|
3070
|
+
})[] | undefined;
|
|
2589
3071
|
imported?: string | undefined;
|
|
2590
3072
|
because?: string | undefined;
|
|
2591
3073
|
}>, z.ZodObject<{
|
|
@@ -2594,17 +3076,35 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2594
3076
|
to: z.ZodString;
|
|
2595
3077
|
because: z.ZodOptional<z.ZodString>;
|
|
2596
3078
|
severity: z.ZodEnum<["error", "warn", "info"]>;
|
|
3079
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3080
|
+
glob: z.ZodString;
|
|
3081
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3082
|
+
}, "strip", z.ZodTypeAny, {
|
|
3083
|
+
glob: string;
|
|
3084
|
+
reason?: string | undefined;
|
|
3085
|
+
}, {
|
|
3086
|
+
glob: string;
|
|
3087
|
+
reason?: string | undefined;
|
|
3088
|
+
}>]>, "many">>;
|
|
2597
3089
|
}, "strip", z.ZodTypeAny, {
|
|
2598
3090
|
kind: "jsx.component.prefer";
|
|
2599
3091
|
from: string;
|
|
2600
3092
|
to: string;
|
|
2601
3093
|
severity: "error" | "info" | "warn";
|
|
3094
|
+
exclude?: (string | {
|
|
3095
|
+
glob: string;
|
|
3096
|
+
reason?: string | undefined;
|
|
3097
|
+
})[] | undefined;
|
|
2602
3098
|
because?: string | undefined;
|
|
2603
3099
|
}, {
|
|
2604
3100
|
kind: "jsx.component.prefer";
|
|
2605
3101
|
from: string;
|
|
2606
3102
|
to: string;
|
|
2607
3103
|
severity: "error" | "info" | "warn";
|
|
3104
|
+
exclude?: (string | {
|
|
3105
|
+
glob: string;
|
|
3106
|
+
reason?: string | undefined;
|
|
3107
|
+
})[] | undefined;
|
|
2608
3108
|
because?: string | undefined;
|
|
2609
3109
|
}>]>, "many">>;
|
|
2610
3110
|
tailwind: z.ZodOptional<z.ZodObject<{
|
|
@@ -3004,10 +3504,13 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3004
3504
|
}>, "many">>;
|
|
3005
3505
|
ci: z.ZodOptional<z.ZodObject<{
|
|
3006
3506
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3507
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3007
3508
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3008
3509
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3510
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3009
3511
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3010
3512
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3513
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3011
3514
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3012
3515
|
}, "strict", z.ZodTypeAny, {
|
|
3013
3516
|
components?: Record<string, {
|
|
@@ -3055,36 +3558,68 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3055
3558
|
severity: "error" | "info" | "warn";
|
|
3056
3559
|
except: string[];
|
|
3057
3560
|
prefer: "token" | "css-variable";
|
|
3561
|
+
exclude?: (string | {
|
|
3562
|
+
glob: string;
|
|
3563
|
+
reason?: string | undefined;
|
|
3564
|
+
})[] | undefined;
|
|
3058
3565
|
} | {
|
|
3059
3566
|
kind: "style.rawDimensions.forbid";
|
|
3060
3567
|
severity: "error" | "info" | "warn";
|
|
3061
3568
|
prefer: "token" | "css-variable";
|
|
3062
3569
|
appliesTo: string[];
|
|
3570
|
+
exclude?: (string | {
|
|
3571
|
+
glob: string;
|
|
3572
|
+
reason?: string | undefined;
|
|
3573
|
+
})[] | undefined;
|
|
3063
3574
|
} | {
|
|
3064
3575
|
kind: "style.rawSpacing.mustMatchScale";
|
|
3065
3576
|
severity: "error" | "info" | "warn";
|
|
3066
3577
|
scale: string;
|
|
3067
3578
|
appliesTo: string[];
|
|
3579
|
+
exclude?: (string | {
|
|
3580
|
+
glob: string;
|
|
3581
|
+
reason?: string | undefined;
|
|
3582
|
+
})[] | undefined;
|
|
3068
3583
|
} | {
|
|
3069
3584
|
kind: "style.fontSize.mustMatchScale";
|
|
3070
3585
|
severity: "error" | "info" | "warn";
|
|
3071
3586
|
scale: string;
|
|
3587
|
+
exclude?: (string | {
|
|
3588
|
+
glob: string;
|
|
3589
|
+
reason?: string | undefined;
|
|
3590
|
+
})[] | undefined;
|
|
3072
3591
|
} | {
|
|
3073
3592
|
kind: "style.cssVars.mustBeDefined";
|
|
3074
3593
|
severity: "error" | "info" | "warn";
|
|
3594
|
+
exclude?: (string | {
|
|
3595
|
+
glob: string;
|
|
3596
|
+
reason?: string | undefined;
|
|
3597
|
+
})[] | undefined;
|
|
3075
3598
|
})[] | undefined;
|
|
3076
3599
|
jsx?: ({
|
|
3077
3600
|
kind: "jsx.unknownProps.forbid";
|
|
3078
3601
|
severity: "error" | "info" | "warn";
|
|
3602
|
+
exclude?: (string | {
|
|
3603
|
+
glob: string;
|
|
3604
|
+
reason?: string | undefined;
|
|
3605
|
+
})[] | undefined;
|
|
3079
3606
|
} | {
|
|
3080
3607
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
3081
3608
|
severity: "error" | "info" | "warn";
|
|
3082
3609
|
properties: string[];
|
|
3610
|
+
exclude?: (string | {
|
|
3611
|
+
glob: string;
|
|
3612
|
+
reason?: string | undefined;
|
|
3613
|
+
})[] | undefined;
|
|
3083
3614
|
} | {
|
|
3084
3615
|
kind: "jsx.importPath.prefer";
|
|
3085
3616
|
from: string;
|
|
3086
3617
|
to: string;
|
|
3087
3618
|
severity: "error" | "info" | "warn";
|
|
3619
|
+
exclude?: (string | {
|
|
3620
|
+
glob: string;
|
|
3621
|
+
reason?: string | undefined;
|
|
3622
|
+
})[] | undefined;
|
|
3088
3623
|
imported?: string | undefined;
|
|
3089
3624
|
because?: string | undefined;
|
|
3090
3625
|
} | {
|
|
@@ -3092,6 +3627,10 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3092
3627
|
from: string;
|
|
3093
3628
|
to: string;
|
|
3094
3629
|
severity: "error" | "info" | "warn";
|
|
3630
|
+
exclude?: (string | {
|
|
3631
|
+
glob: string;
|
|
3632
|
+
reason?: string | undefined;
|
|
3633
|
+
})[] | undefined;
|
|
3095
3634
|
because?: string | undefined;
|
|
3096
3635
|
})[] | undefined;
|
|
3097
3636
|
tailwind?: z.objectOutputType<{
|
|
@@ -3157,14 +3696,14 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3157
3696
|
canonicalSources?: ({
|
|
3158
3697
|
kind: "npm";
|
|
3159
3698
|
specifier: string;
|
|
3699
|
+
exclude?: string[] | undefined;
|
|
3160
3700
|
implementationPath?: string | undefined;
|
|
3161
3701
|
include?: string[] | undefined;
|
|
3162
|
-
exclude?: string[] | undefined;
|
|
3163
3702
|
} | {
|
|
3164
3703
|
path: string;
|
|
3165
3704
|
kind: "directory";
|
|
3166
|
-
include?: string[] | undefined;
|
|
3167
3705
|
exclude?: string[] | undefined;
|
|
3706
|
+
include?: string[] | undefined;
|
|
3168
3707
|
} | {
|
|
3169
3708
|
kind: "registry";
|
|
3170
3709
|
registryId: string;
|
|
@@ -3172,8 +3711,8 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3172
3711
|
installPath: string;
|
|
3173
3712
|
severity?: "error" | "info" | "warn" | undefined;
|
|
3174
3713
|
importPath?: string | undefined;
|
|
3175
|
-
include?: string[] | undefined;
|
|
3176
3714
|
exclude?: string[] | undefined;
|
|
3715
|
+
include?: string[] | undefined;
|
|
3177
3716
|
registryHash?: string | undefined;
|
|
3178
3717
|
})[] | undefined;
|
|
3179
3718
|
canonicalBridges?: {
|
|
@@ -3198,6 +3737,7 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3198
3737
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3199
3738
|
ci?: z.objectOutputType<{
|
|
3200
3739
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3740
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3201
3741
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3202
3742
|
}, {
|
|
3203
3743
|
components?: Record<string, {
|
|
@@ -3245,36 +3785,68 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3245
3785
|
severity: "error" | "info" | "warn";
|
|
3246
3786
|
except: string[];
|
|
3247
3787
|
prefer: "token" | "css-variable";
|
|
3788
|
+
exclude?: (string | {
|
|
3789
|
+
glob: string;
|
|
3790
|
+
reason?: string | undefined;
|
|
3791
|
+
})[] | undefined;
|
|
3248
3792
|
} | {
|
|
3249
3793
|
kind: "style.rawDimensions.forbid";
|
|
3250
3794
|
severity: "error" | "info" | "warn";
|
|
3251
3795
|
prefer: "token" | "css-variable";
|
|
3252
3796
|
appliesTo: string[];
|
|
3797
|
+
exclude?: (string | {
|
|
3798
|
+
glob: string;
|
|
3799
|
+
reason?: string | undefined;
|
|
3800
|
+
})[] | undefined;
|
|
3253
3801
|
} | {
|
|
3254
3802
|
kind: "style.rawSpacing.mustMatchScale";
|
|
3255
3803
|
severity: "error" | "info" | "warn";
|
|
3256
3804
|
scale: string;
|
|
3257
3805
|
appliesTo: string[];
|
|
3806
|
+
exclude?: (string | {
|
|
3807
|
+
glob: string;
|
|
3808
|
+
reason?: string | undefined;
|
|
3809
|
+
})[] | undefined;
|
|
3258
3810
|
} | {
|
|
3259
3811
|
kind: "style.fontSize.mustMatchScale";
|
|
3260
3812
|
severity: "error" | "info" | "warn";
|
|
3261
3813
|
scale: string;
|
|
3814
|
+
exclude?: (string | {
|
|
3815
|
+
glob: string;
|
|
3816
|
+
reason?: string | undefined;
|
|
3817
|
+
})[] | undefined;
|
|
3262
3818
|
} | {
|
|
3263
3819
|
kind: "style.cssVars.mustBeDefined";
|
|
3264
3820
|
severity: "error" | "info" | "warn";
|
|
3821
|
+
exclude?: (string | {
|
|
3822
|
+
glob: string;
|
|
3823
|
+
reason?: string | undefined;
|
|
3824
|
+
})[] | undefined;
|
|
3265
3825
|
})[] | undefined;
|
|
3266
3826
|
jsx?: ({
|
|
3267
3827
|
kind: "jsx.unknownProps.forbid";
|
|
3268
3828
|
severity: "error" | "info" | "warn";
|
|
3829
|
+
exclude?: (string | {
|
|
3830
|
+
glob: string;
|
|
3831
|
+
reason?: string | undefined;
|
|
3832
|
+
})[] | undefined;
|
|
3269
3833
|
} | {
|
|
3270
3834
|
kind: "jsx.inlineStyle.forbidRaw";
|
|
3271
3835
|
severity: "error" | "info" | "warn";
|
|
3272
3836
|
properties: string[];
|
|
3837
|
+
exclude?: (string | {
|
|
3838
|
+
glob: string;
|
|
3839
|
+
reason?: string | undefined;
|
|
3840
|
+
})[] | undefined;
|
|
3273
3841
|
} | {
|
|
3274
3842
|
kind: "jsx.importPath.prefer";
|
|
3275
3843
|
from: string;
|
|
3276
3844
|
to: string;
|
|
3277
3845
|
severity: "error" | "info" | "warn";
|
|
3846
|
+
exclude?: (string | {
|
|
3847
|
+
glob: string;
|
|
3848
|
+
reason?: string | undefined;
|
|
3849
|
+
})[] | undefined;
|
|
3278
3850
|
imported?: string | undefined;
|
|
3279
3851
|
because?: string | undefined;
|
|
3280
3852
|
} | {
|
|
@@ -3282,6 +3854,10 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3282
3854
|
from: string;
|
|
3283
3855
|
to: string;
|
|
3284
3856
|
severity: "error" | "info" | "warn";
|
|
3857
|
+
exclude?: (string | {
|
|
3858
|
+
glob: string;
|
|
3859
|
+
reason?: string | undefined;
|
|
3860
|
+
})[] | undefined;
|
|
3285
3861
|
because?: string | undefined;
|
|
3286
3862
|
})[] | undefined;
|
|
3287
3863
|
tailwind?: z.objectInputType<{
|
|
@@ -3347,22 +3923,22 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3347
3923
|
canonicalSources?: ({
|
|
3348
3924
|
kind: "npm";
|
|
3349
3925
|
specifier: string;
|
|
3926
|
+
exclude?: string[] | undefined;
|
|
3350
3927
|
implementationPath?: string | undefined;
|
|
3351
3928
|
include?: string[] | undefined;
|
|
3352
|
-
exclude?: string[] | undefined;
|
|
3353
3929
|
} | {
|
|
3354
3930
|
path: string;
|
|
3355
3931
|
kind: "directory";
|
|
3356
|
-
include?: string[] | undefined;
|
|
3357
3932
|
exclude?: string[] | undefined;
|
|
3933
|
+
include?: string[] | undefined;
|
|
3358
3934
|
} | {
|
|
3359
3935
|
kind: "registry";
|
|
3360
3936
|
registryId: string;
|
|
3361
3937
|
installPath: string;
|
|
3362
3938
|
severity?: "error" | "info" | "warn" | undefined;
|
|
3363
3939
|
importPath?: string | undefined;
|
|
3364
|
-
include?: string[] | undefined;
|
|
3365
3940
|
exclude?: string[] | undefined;
|
|
3941
|
+
include?: string[] | undefined;
|
|
3366
3942
|
registryHash?: string | undefined;
|
|
3367
3943
|
receiptPath?: string | undefined;
|
|
3368
3944
|
})[] | undefined;
|
|
@@ -3388,6 +3964,7 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3388
3964
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3389
3965
|
ci?: z.objectInputType<{
|
|
3390
3966
|
failOnWarnings: z.ZodOptional<z.ZodBoolean>;
|
|
3967
|
+
failOnInert: z.ZodOptional<z.ZodBoolean>;
|
|
3391
3968
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3392
3969
|
}>;
|
|
3393
3970
|
type ScaleGovernanceRecord = z.infer<typeof scaleGovernanceRecordSchema>;
|
|
@@ -3400,20 +3977,45 @@ type ComponentPolicyOverride = z.infer<typeof componentPolicyOverrideSchema>;
|
|
|
3400
3977
|
type CanonicalSource = z.infer<typeof canonicalSourceSchema>;
|
|
3401
3978
|
type CanonicalBridgeV1 = z.infer<typeof canonicalBridgeV1Schema>;
|
|
3402
3979
|
interface GovernanceConfig {
|
|
3980
|
+
/** Shared governance config modules to extend before applying this file's declarations. */
|
|
3403
3981
|
extends?: string[];
|
|
3982
|
+
/** Default severity for governance rules that do not declare their own severity. */
|
|
3404
3983
|
severity?: GovernanceSeverity;
|
|
3984
|
+
/**
|
|
3985
|
+
* Rule-id keyed enablement and severity overrides. Only fields consumed by the named
|
|
3986
|
+
* rule are valid; unsupported fields are reported as inert config.
|
|
3987
|
+
*/
|
|
3405
3988
|
rules?: Record<string, unknown>;
|
|
3989
|
+
/** Agent-id keyed rule overrides for supported agent-specific governance policies. */
|
|
3406
3990
|
agents?: Record<string, {
|
|
3407
3991
|
rules?: Record<string, unknown>;
|
|
3408
3992
|
}>;
|
|
3993
|
+
/** Reserved audit compatibility object; undeclared child keys are reported as inert. */
|
|
3409
3994
|
audit?: Record<string, unknown>;
|
|
3995
|
+
/** Reserved runner compatibility map; undeclared child keys are reported as inert. */
|
|
3410
3996
|
runners?: Record<string, Record<string, unknown>>;
|
|
3997
|
+
/**
|
|
3998
|
+
* Canonical component authorities: npm packages, repository directories, or registry
|
|
3999
|
+
* receipts whose included exports arm canonical-component rules.
|
|
4000
|
+
*/
|
|
3411
4001
|
canonicalSources?: CanonicalSource[];
|
|
4002
|
+
/**
|
|
4003
|
+
* Confirmed mappings from an underlying library export to the approved local wrapper.
|
|
4004
|
+
* The wrapper's implementationFiles scope permits its direct underlying import.
|
|
4005
|
+
*/
|
|
3412
4006
|
canonicalBridges?: CanonicalBridgeV1[];
|
|
4007
|
+
/** Versioned governance presets to resolve before applying local rule overrides. */
|
|
3413
4008
|
presets?: string[];
|
|
4009
|
+
/**
|
|
4010
|
+
* Named numeric scales. Spacing rules bind through
|
|
4011
|
+
* style.rawSpacing.mustMatchScale; the built-in spacing policy references `space`.
|
|
4012
|
+
*/
|
|
3414
4013
|
scales?: Record<string, ScaleGovernanceRecord>;
|
|
4014
|
+
/** Legacy typed style-policy records, normalized into the active rule policy. */
|
|
3415
4015
|
styles?: GlobalStyleGovernanceRecord[];
|
|
4016
|
+
/** Legacy typed JSX-policy records, normalized into the active rule policy. */
|
|
3416
4017
|
jsx?: GlobalJsxGovernanceRecord[];
|
|
4018
|
+
/** Tailwind palette allow/deny policy used by Tailwind governance rules. */
|
|
3417
4019
|
tailwind?: {
|
|
3418
4020
|
palette?: {
|
|
3419
4021
|
allow?: string[];
|
|
@@ -3421,18 +4023,48 @@ interface GovernanceConfig {
|
|
|
3421
4023
|
};
|
|
3422
4024
|
[key: string]: unknown;
|
|
3423
4025
|
};
|
|
4026
|
+
/** Agent repair-order guidance consumed when presenting deterministic fixes. */
|
|
3424
4027
|
agent?: {
|
|
3425
4028
|
repairOrder?: string[];
|
|
3426
4029
|
[key: string]: unknown;
|
|
3427
4030
|
};
|
|
4031
|
+
/** Component-keyed governance records for canonical component metadata and prop policy. */
|
|
3428
4032
|
components?: Record<string, ComponentPolicyRecord>;
|
|
4033
|
+
/** Ordered component-policy overrides selected by component identity fields. */
|
|
3429
4034
|
overrides?: ComponentPolicyOverride[];
|
|
4035
|
+
/**
|
|
4036
|
+
* Governance CI rendering options: `failOnWarnings` makes warning findings fail the
|
|
4037
|
+
* `--ci` verdict, `failOnInert` makes inert-config diagnostics (FUI9004-FUI9008) fail
|
|
4038
|
+
* it. Both are opt-in; `--allow-inert` bypasses the inert gates.
|
|
4039
|
+
*/
|
|
3430
4040
|
ci?: {
|
|
3431
4041
|
failOnWarnings?: boolean;
|
|
4042
|
+
/**
|
|
4043
|
+
* Fail the `--ci` verdict when the run reports inert-config diagnostics
|
|
4044
|
+
* (FUI9004-FUI9008). Opt-in: the diagnostics themselves stay verdict-neutral,
|
|
4045
|
+
* so a team can adopt the gate once its config is clean. `--allow-inert`
|
|
4046
|
+
* bypasses it, like the governance-inert gate.
|
|
4047
|
+
*/
|
|
4048
|
+
failOnInert?: boolean;
|
|
3432
4049
|
[key: string]: unknown;
|
|
3433
4050
|
};
|
|
3434
4051
|
[key: string]: unknown;
|
|
3435
4052
|
}
|
|
4053
|
+
/**
|
|
4054
|
+
* Tag every entry of a preset's `govern.rules` map as preset-sourced. Non-object entries
|
|
4055
|
+
* (the `"warn"` string shorthand) cannot carry a symbol and are passed through untagged —
|
|
4056
|
+
* presets author the object form, so this is a documented floor, not a silent gap.
|
|
4057
|
+
*
|
|
4058
|
+
* **Non-enumerable**, which is the difference between "does not serialize" and "is not
|
|
4059
|
+
* there". A symbol key already survives neither `JSON.stringify` nor `Object.keys`, but
|
|
4060
|
+
* it does survive `toEqual` — so an enumerable marker turns every consumer that compares
|
|
4061
|
+
* a composed rule config structurally into a failing test, for a property they cannot see
|
|
4062
|
+
* and did not ask for. Fragments Cloud's own policy composer was the first to hit it.
|
|
4063
|
+
* Read it through `isPresetSourcedRule`; nothing else should know it exists.
|
|
4064
|
+
*/
|
|
4065
|
+
declare function markPresetSourcedRules(rules: Record<string, unknown> | undefined): Record<string, unknown> | undefined;
|
|
4066
|
+
/** Whether a merged `govern.rules` entry came from a preset rather than the user. */
|
|
4067
|
+
declare function isPresetSourcedRule(entry: unknown): boolean;
|
|
3436
4068
|
type SeverityOption = {
|
|
3437
4069
|
severity?: GovernanceSeverity;
|
|
3438
4070
|
};
|
|
@@ -3535,4 +4167,4 @@ declare const g: {
|
|
|
3535
4167
|
component: ComponentGovernanceBuilder<Record<string, unknown>>;
|
|
3536
4168
|
};
|
|
3537
4169
|
|
|
3538
|
-
export { type DesignSystemConfig as $, type AIMetadata as A, type BlockDefinition as B, type CompiledBlock as C, type CanonicalMappingStatus as D, type CompiledFragmentsFile as E, type FragmentDefinition as F, type GovernanceSeverity as G, type CompiledRecipe as H, type CompiledTokenData as I, type CompiledTokenEntry as J, type ComponentGovernanceBuilder as K, type ComponentGovernanceRecord as L, type ComponentRef as M, type ComponentRelation as N, type CompositionMetadata as O, type ContractComponentInput as P, type ContractIdentityPin as Q, type ResolvedGovernedFragmentDefinition as R, type StorybookFilterConfig as S, type TokenConfig as T, type ContractPolicyInput as U, type VariantRenderOptions as V, type ContractPreimage as W, type ContractPropMappingInput as X, type ContractTokenInput as Y, type ContractWaiverInput as Z, type ControlType as _, type FragmentDefinitionV2 as a,
|
|
4170
|
+
export { type DesignSystemConfig as $, type AIMetadata as A, type BlockDefinition as B, type CompiledBlock as C, type CanonicalMappingStatus as D, type CompiledFragmentsFile as E, type FragmentDefinition as F, type GovernanceSeverity as G, type CompiledRecipe as H, type CompiledTokenData as I, type CompiledTokenEntry as J, type ComponentGovernanceBuilder as K, type ComponentGovernanceRecord as L, type ComponentRef as M, type ComponentRelation as N, type CompositionMetadata as O, type ContractComponentInput as P, type ContractIdentityPin as Q, type ResolvedGovernedFragmentDefinition as R, type StorybookFilterConfig as S, type TokenConfig as T, type ContractPolicyInput as U, type VariantRenderOptions as V, type ContractPreimage as W, type ContractPropMappingInput as X, type ContractTokenInput as Y, type ContractWaiverInput as Z, type ControlType as _, type FragmentDefinitionV2 as a, verifiedContractPreimageFromPin as a$, type DiffResult as a0, type FigmaPropMapping as a1, type FragmentContract as a2, type FragmentExample as a3, type FragmentGenerated as a4, type FragmentGuidance as a5, type FragmentMeta as a6, type FragmentProvenance as a7, type FragmentUsage as a8, type FragmentVariant as a9, type SnippetPolicyConfig as aA, type Theme as aB, type ThemeSeeds as aC, type TokenSourceConfig as aD, type TokenSourceFormat as aE, type VerifyRequest as aF, type VerifyResult as aG, type Viewport as aH, canonicalBridgeV1Schema as aI, componentGovernanceRecordSchema as aJ, componentGovernanceRecordsSchema as aK, contractComponentsFromFragments as aL, contractPolicyFromGovernanceConfig as aM, diffContractDomains as aN, g as aO, globalGovernanceRecordSchema as aP, globalJsxGovernanceRecordSchema as aQ, globalStyleGovernanceRecordSchema as aR, governanceConfigSchema as aS, governanceConfigWithLocalCanonical as aT, governanceSeveritySchema as aU, isPresetSourcedRule as aV, localCanonicalContractMappings as aW, markPresetSourcedRules as aX, normalizeGovernanceConfig as aY, projectContractPreimage as aZ, scaleGovernanceRecordSchema as a_, type GlobalGovernanceRecord as aa, type GlobalJsxGovernanceRecord as ab, type GlobalStyleGovernanceRecord as ac, type GovernancePropValue as ad, type InspectConfig as ae, type LocalCanonicalDeclaration as af, type LocalCanonicalResolveRule as ag, type Manifest as ah, type ObservedComponentUsage as ai, type ObservedUsageProp as aj, type PlayFunction as ak, type PlayFunctionContext as al, type PropDefinition as am, type PropGovernanceBuilder as an, type PropGovernanceOptions as ao, type PropKey as ap, type PropType as aq, type RecipeDefinition as ar, type RegistryOptions as as, type RepoRelativePath as at, type ScaleGovernanceRecord as au, type Screenshot as av, type ScreenshotConfig as aw, type ScreenshotMetadata as ax, type ServiceConfig as ay, type SnapshotConfig as az, type CompiledFragment as b, type AIMetadata$1 as b0, type ComponentRelation$1 as b1, type FragmentContract$1 as b2, type FragmentGenerated$1 as b3, type FragmentMeta$1 as b4, type FragmentUsage$1 as b5, type ImportEntry as b6, type PerformanceData as b7, type PerformanceSummary as b8, type PropDefinition$1 as b9, type Theme$1 as ba, type VerifyResult$1 as bb, type ContractDomain as c, type ContractCatalogInput as d, type GovernedFragmentDefinition as e, type GovernanceConfig as f, type FragmentsConfig as g, type FragmentComponent as h, type FigmaStringMapping as i, type FigmaBooleanMapping as j, type FigmaEnumMapping as k, type FigmaInstanceMapping as l, type FigmaChildrenMapping as m, type FigmaTextContentMapping as n, type RelationshipType as o, type VariantLoader as p, type CanonicalSource as q, type CanonicalBridgeV1 as r, type ContractCanonicalMappingInput as s, type AccessibilityGovernanceBuilder as t, type AppConfig as u, type BaselineInfo as v, type BoundingBox as w, CONTRACT_DOMAINS as x, CONTRACT_PREIMAGE_CAPABILITY_HEADER as y, CONTRACT_PREIMAGE_SCHEMA as z };
|