@usefragments/core 1.5.0 → 1.5.1
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-HXGE3O2F.js → chunk-AOG4FTV6.js} +108 -6
- package/dist/chunk-AOG4FTV6.js.map +1 -0
- package/dist/{chunk-57QDBEHQ.js → chunk-ZHS52OT4.js} +3 -9
- package/dist/chunk-ZHS52OT4.js.map +1 -0
- package/dist/codes/index.d.ts +2 -2
- package/dist/codes/index.js +2 -2
- package/dist/compiled-types/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/{governance-BLsyk56o.d.ts → governance-B88uR3Zq.d.ts} +218 -1
- package/dist/{index-h_yWj15D.d.ts → index-DbkPE46t.d.ts} +40 -0
- package/dist/index.d.ts +429 -28
- package/dist/index.js +326 -33
- package/dist/index.js.map +1 -1
- package/dist/react-types.d.ts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/agent-format.test.ts +1 -0
- package/src/canonical-bridge.ts +46 -0
- package/src/canonical-direction.ts +118 -0
- package/src/codes/codes.ts +9 -0
- package/src/contract/preimage.test.ts +40 -0
- package/src/contract/preimage.ts +20 -0
- package/src/effective-governance-inputs.test.ts +52 -0
- package/src/effective-governance-inputs.ts +106 -0
- package/src/facts/builders.ts +25 -1
- package/src/facts/compile.ts +20 -2
- package/src/facts/fact-index.ts +4 -0
- package/src/facts/types.ts +25 -6
- package/src/governance-integrity.test.ts +22 -0
- package/src/governance-integrity.ts +10 -4
- package/src/governance.test.ts +67 -0
- package/src/governance.ts +76 -0
- package/src/index.ts +27 -4
- package/src/rules/__tests__/fix-emission-invariant.test.ts +35 -4
- package/src/rules/components-prefer-library.test.ts +103 -0
- package/src/rules/components-prefer-library.ts +30 -4
- package/src/rules/fix-availability.ts +1 -0
- package/src/rules/index.ts +7 -0
- package/src/rules/jsx-preferred-import-path.ts +45 -9
- package/src/rules/rules.test.ts +202 -6
- package/src/rules/spacing-resolution.ts +2 -2
- package/src/rules/styles-no-raw-color.test.ts +6 -1
- package/src/rules/styles-no-raw-color.ts +3 -2
- package/src/rules/styles-no-raw-dimensions.ts +5 -7
- package/src/rules/styles-no-raw-spacing.ts +5 -2
- package/src/rules/styles-no-raw-typography.ts +7 -4
- package/src/rules/taxonomy.test.ts +3 -0
- package/src/rules/tiers.ts +2 -0
- package/src/rules/token-candidates.ts +36 -0
- package/src/rules/tokens-require-dual-fallback.ts +2 -1
- package/src/rules/tokens-upstream-drift.test.ts +111 -0
- package/src/rules/tokens-upstream-drift.ts +57 -0
- package/src/rules/utils.ts +22 -14
- package/src/schema.ts +13 -0
- package/src/schemas/index.ts +5 -8
- package/src/token-types.ts +71 -1
- package/src/types.ts +6 -0
- package/dist/chunk-57QDBEHQ.js.map +0 -1
- package/dist/chunk-HXGE3O2F.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schemas/index.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n legacySeverityLevelSchema,\n severityFromLevel,\n severityLevel,\n severityLevelSchema,\n severitySchema,\n} from \"../severity.js\";\nimport type { LegacySeverityLevel, Severity } from \"../severity.js\";\nimport type { EvidenceGrade } from \"../evidence.js\";\n\nconst evidenceGradeSchema: z.ZodType<EvidenceGrade> = z.enum([\n \"none\",\n \"runtime_advisory\",\n \"provenance_bound\",\n \"source_backed\",\n \"receipt_backed\",\n]);\n\nexport { legacySeverityLevelSchema, severityLevelSchema, severitySchema };\nexport type { LegacySeverityLevel, Severity, SeverityLevel } from \"../severity.js\";\n\nexport const factLocationSchema = z.object({\n file: z.string(),\n line: z.number().int().nonnegative(),\n column: z.number().int().nonnegative(),\n endLine: z.number().int().nonnegative().optional(),\n endColumn: z.number().int().nonnegative().optional(),\n});\nexport type FactLocation = z.infer<typeof factLocationSchema>;\n\nexport const findingReplacePropValueFixSchema = z.object({\n kind: z.literal(\"replacePropValue\"),\n title: z.string(),\n prop: z.string(),\n value: z.unknown(),\n deterministic: z.boolean().optional(),\n});\n\nexport const findingReplaceStyleValueFixSchema = z.object({\n kind: z.literal(\"replaceStyleValue\"),\n title: z.string(),\n property: z.string(),\n value: z.string(),\n deterministic: z.boolean().optional(),\n});\n\nexport const findingReplaceImportFixSchema = z.object({\n kind: z.literal(\"replaceImport\"),\n title: z.string(),\n from: z.string(),\n to: z.string(),\n deterministic: z.boolean().optional(),\n});\n\nexport const findingReplaceComponentFixSchema = z.object({\n kind: z.literal(\"replaceComponent\"),\n title: z.string(),\n from: z.string(),\n to: z.string(),\n deterministic: z.boolean().optional(),\n});\n\nexport const findingReplaceClassTokenFixSchema = z.object({\n kind: z.literal(\"replaceClassToken\"),\n title: z.string(),\n from: z.string(),\n to: z.string().nullable(),\n utility: z.string(),\n deterministic: z.boolean().optional(),\n});\n\nexport const findingFixSchema = z.discriminatedUnion(\"kind\", [\n findingReplacePropValueFixSchema,\n findingReplaceStyleValueFixSchema,\n findingReplaceImportFixSchema,\n findingReplaceComponentFixSchema,\n findingReplaceClassTokenFixSchema,\n]);\nexport type FindingFix = z.infer<typeof findingFixSchema>;\nexport type FindingReplacePropValueFix = z.infer<typeof findingReplacePropValueFixSchema>;\nexport type FindingReplaceStyleValueFix = z.infer<typeof findingReplaceStyleValueFixSchema>;\nexport type FindingReplaceImportFix = z.infer<typeof findingReplaceImportFixSchema>;\nexport type FindingReplaceComponentFix = z.infer<typeof findingReplaceComponentFixSchema>;\nexport type FindingReplaceClassTokenFix = z.infer<typeof findingReplaceClassTokenFixSchema>;\n\nexport interface FactEvidence {\n factId: string;\n fact: {\n kind: string;\n location?: FactLocation;\n };\n}\n\nexport const factEvidenceSchema: z.ZodType<FactEvidence> = z.object({\n factId: z.string(),\n fact: z\n .object({\n kind: z.string(),\n location: factLocationSchema.optional(),\n })\n .passthrough(),\n});\n\nexport const findingSchema = z.object({\n ruleId: z.string(),\n ruleVersion: z.string(),\n severity: severitySchema,\n level: severityLevelSchema,\n code: z\n .string()\n .regex(/^FUI\\d{4}$/)\n .optional(),\n helpUrl: z.string().url().optional(),\n message: z.string(),\n fingerprint: z.string(),\n location: factLocationSchema,\n evidence: z.array(factEvidenceSchema).min(1),\n evidenceGrade: evidenceGradeSchema.optional(),\n fix: findingFixSchema.optional(),\n attributes: z.record(z.unknown()).optional(),\n /**\n * Product area this finding's file resolved to (topology layer). Optional —\n * absent when the repo has no `topology` config. See `topology/resolve-area`.\n */\n area: z\n .object({\n areaId: z.string(),\n areaName: z.string(),\n criticality: z.enum([\"low\", \"medium\", \"high\", \"revenue\", \"regulated\"]),\n owners: z.array(z.string()),\n matchedGlob: z.string(),\n })\n .optional(),\n});\nexport type Finding = z.infer<typeof findingSchema>;\n\nexport const violationSchema = z.object({\n nodeId: z.string(),\n nodeType: z.string(),\n rule: z.string(),\n severity: severitySchema,\n level: severityLevelSchema.optional(),\n code: z\n .string()\n .regex(/^FUI\\d{4}$/)\n .optional(),\n helpUrl: z.string().url().optional(),\n message: z.string(),\n path: z.string().optional(),\n suggestion: z.string().optional(),\n prop: z.string().optional(),\n filePath: z.string().optional(),\n line: z.number().int().nonnegative().optional(),\n column: z.number().int().nonnegative().optional(),\n rawValue: z.string().optional(),\n extra: z.record(z.unknown()).optional(),\n});\nexport type Violation = z.infer<typeof violationSchema>;\n\nexport const fixSchema = z.object({\n nodeId: z.string(),\n prop: z.string().optional(),\n action: z.enum([\"remove\", \"replace\", \"add\"]),\n value: z.unknown().optional(),\n description: z.string(),\n});\nexport type Fix = z.infer<typeof fixSchema>;\n\nexport const validatorResultSchema = z.object({\n validator: z.string(),\n severity: severitySchema,\n passed: z.boolean(),\n violations: z.array(violationSchema),\n findings: z.array(findingSchema).optional(),\n suggestions: z.array(fixSchema).optional(),\n});\nexport type ValidatorResult = z.infer<typeof validatorResultSchema>;\n\nexport const governanceVerdictMetadataSchema = z.object({\n runner: z.string(),\n policyVersion: z.string().optional(),\n duration: z.number().nonnegative(),\n nodeCount: z.number().int().nonnegative(),\n componentTypes: z.array(z.string()),\n});\nexport type GovernanceVerdictMetadata = z.infer<typeof governanceVerdictMetadataSchema>;\n\nexport const governanceVerdictSchema = z.object({\n verdict: z.enum([\"pass\", \"warn\", \"fail\"]).optional(),\n passed: z.boolean(),\n score: z.number(),\n results: z.array(validatorResultSchema),\n metadata: governanceVerdictMetadataSchema,\n});\nexport type GovernanceVerdict = z.infer<typeof governanceVerdictSchema>;\n\nexport const suppressionDirectiveSchema = z.object({\n ruleId: z.string().optional(),\n reason: z.string().min(1),\n expiresAt: z.string().datetime().optional(),\n expiresOn: z\n .string()\n .regex(/^\\d{4}-\\d{2}-\\d{2}$/)\n .optional(),\n scope: z.enum([\"line\", \"block\", \"file\"]).default(\"line\"),\n code: z\n .string()\n .regex(/^FUI\\d{4}$/)\n .optional(),\n});\nexport type SuppressionDirective = z.infer<typeof suppressionDirectiveSchema>;\n\nexport const agentPlanSchema = z.object({\n tool: z.enum([\n \"design_system/list_primitives\",\n \"design_system/conform\",\n \"design_system/prove_compliant\",\n ]),\n args: z.record(z.unknown()),\n confidence: z.number().min(0).max(1),\n});\n\nexport const agentFindingSchema = z.object({\n code: z\n .string()\n .regex(/^FUI\\d{4}$/)\n .optional(),\n ruleId: z.string(),\n filePath: z.string(),\n line: z.number().int().nonnegative(),\n col: z.number().int().nonnegative(),\n severity: severitySchema,\n level: severityLevelSchema,\n message: z.string(),\n evidenceGrade: evidenceGradeSchema.optional(),\n evidence: z.array(factEvidenceSchema),\n plan: agentPlanSchema,\n});\n\nexport const AGENT_FORMAT_SCHEMA_VERSION = \"typestyle.agent.v2\" as const;\n\nexport const agentIntegritySchema = z.object({\n rulesLoaded: z.number().int().nonnegative(),\n status: z.enum([\"healthy\", \"degraded\", \"inert\"]),\n healthy: z.boolean(),\n inert: z.boolean(),\n reasons: z.array(z.string()),\n});\n\nconst agentRunProvenanceSchema = z.object({\n runId: z.string().regex(/^run_[a-f0-9]{12}$/),\n fcid: z.string().min(1),\n baselineId: z.string().min(1).optional(),\n scope: z.object({\n method: z.enum([\"three-dot\", \"tree-diff\", \"status\", \"fallback-full\", \"explicit\", \"full\"]),\n gitOk: z.boolean(),\n }),\n engineVersion: z.string().min(1),\n scopeHash: z.string().regex(/^[a-f0-9]{64}$/),\n inputsHash: z\n .string()\n .regex(/^[a-f0-9]{64}$/)\n .optional(),\n inputFilesHash: z.string().regex(/^[a-f0-9]{64}$/),\n});\n\nconst agentRunVerdictSchema = z.object({\n exitCode: z.union([z.literal(0), z.literal(1)]),\n reasons: z.array(z.string()),\n gatingFindingCount: z.number().int().nonnegative(),\n});\n\nconst agentFormatBaseSchema = z.object({\n schemaVersion: z.literal(AGENT_FORMAT_SCHEMA_VERSION),\n summary: z.string(),\n integrity: agentIntegritySchema,\n fix_first: z.array(agentFindingSchema),\n remaining: z.array(agentFindingSchema),\n suppression_template: z.object({\n directive: z.string(),\n requiredFields: z.array(z.string()),\n example: z.string(),\n }),\n budget: z.object({\n iteration: z.number().int().nonnegative(),\n maxIterations: z.number().int().positive(),\n scoreDelta: z.number(),\n }),\n findings: z.array(findingSchema).optional(),\n suppressions: z.array(suppressionDirectiveSchema).optional(),\n provenance: agentRunProvenanceSchema.optional(),\n verdict: agentRunVerdictSchema.optional(),\n});\n\nexport const agentFormatSchema = z.union([\n agentFormatBaseSchema.extend({\n passed: z.boolean(),\n score: z.number(),\n status: z.never().optional(),\n reasons: z.never().optional(),\n integrity: agentIntegritySchema.extend({\n rulesLoaded: z.number().int().positive(),\n }),\n }),\n agentFormatBaseSchema.extend({\n passed: z.literal(false),\n score: z.never().optional(),\n status: z.literal(\"indeterminate\"),\n reasons: z.tuple([z.literal(\"zero_rules_loaded\")]),\n integrity: agentIntegritySchema.extend({\n rulesLoaded: z.literal(0),\n }),\n }),\n // A finalized Run can explicitly allow inert governance. Preserve the\n // indeterminate integrity truth while making `passed` match that Run's sole\n // verdict; requiring Run pins prevents generic zero-rule envelopes from\n // accidentally becoming green.\n agentFormatBaseSchema.extend({\n passed: z.literal(true),\n score: z.never().optional(),\n status: z.literal(\"indeterminate\"),\n reasons: z.tuple([z.literal(\"zero_rules_loaded\")]),\n integrity: agentIntegritySchema.extend({\n rulesLoaded: z.literal(0),\n }),\n provenance: agentRunProvenanceSchema,\n verdict: agentRunVerdictSchema.extend({ exitCode: z.literal(0) }),\n }),\n]);\nexport type AgentFormat = z.infer<typeof agentFormatSchema>;\n\nexport const agentErrorEnvelopeSchema = z.object({\n schemaVersion: z.literal(AGENT_FORMAT_SCHEMA_VERSION),\n passed: z.literal(false),\n error: z.object({\n code: z.string().min(1),\n message: z.string().min(1),\n }),\n provenance: agentRunProvenanceSchema.optional(),\n verdict: agentRunVerdictSchema.optional(),\n cloudReport: z.enum([\"reported\", \"failed\", \"skipped\"]).optional(),\n notices: z.array(z.string()).optional(),\n});\nexport type AgentErrorEnvelope = z.infer<typeof agentErrorEnvelopeSchema>;\n\nexport const agentOutputSchema = z.union([agentFormatSchema, agentErrorEnvelopeSchema]);\nexport type AgentOutput = z.infer<typeof agentOutputSchema>;\n\nexport function normalizeSeverity(severity: Severity | LegacySeverityLevel): Severity {\n return severitySchema.safeParse(severity).success\n ? (severity as Severity)\n : severityFromLevel(legacySeverityLevelSchema.parse(severity));\n}\n\nexport function normalizeFinding(\n input: Omit<Finding, \"level\"> & { level?: Finding[\"level\"] }\n): Finding {\n return {\n ...input,\n evidenceGrade: input.evidenceGrade ?? \"source_backed\",\n level: input.level ?? severityLevel(input.severity),\n };\n}\n\nexport function normalizeViolation(\n input: Omit<Violation, \"level\"> & { level?: Violation[\"level\"] }\n): Violation {\n return {\n ...input,\n level: input.level ?? severityLevel(input.severity),\n };\n}\n"],"mappings":";;;;;;;;;AAAA,SAAS,SAAS;AAYlB,IAAM,sBAAgD,EAAE,KAAK;AAAA,EAC3D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAKM,IAAM,qBAAqB,EAAE,OAAO;AA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AK,CAAC,YAAY,UAAU,SAAS,CAAC,EAAE,SAAS;AAAA,EAChE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AACxC,CAAC;AAGM,IAAM,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,wBAAwB,CAAC;AAG/E,SAAS,kBAAkB,UAAoD;AACpF,SAAO,eAAe,UAAU,QAAQ,EAAE,UACrC,WACD,kBAAkB,0BAA0B,MAAM,QAAQ,CAAC;AACjE;AAEO,SAAS,iBACd,OACS;AACT,SAAO;AAAA,IACL,GAAG;AAAA,IACH,eAAe,MAAM,iBAAiB;AAAA,IACtC,OAAO,MAAM,SAAS,cAAc,MAAM,QAAQ;AAAA,EACpD;AACF;AAEO,SAAS,mBACd,OACW;AACX,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO,MAAM,SAAS,cAAc,MAAM,QAAQ;AAAA,EACpD;AACF;","names":[]}
|
package/dist/codes/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Severity } from '../severity.js';
|
|
2
|
-
import { n as Violation, F as Finding } from '../index-
|
|
2
|
+
import { n as Violation, F as Finding } from '../index-DbkPE46t.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const EXPLAIN_URL_BASE = "https://usefragments.com/errors/";
|
|
@@ -17,7 +17,7 @@ interface FuiCode {
|
|
|
17
17
|
fixAvailable: boolean;
|
|
18
18
|
evidenceRequired: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare const CODES: readonly [FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode];
|
|
20
|
+
declare const CODES: readonly [FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode, FuiCode];
|
|
21
21
|
declare const byCode: ReadonlyMap<string, FuiCode>;
|
|
22
22
|
declare const byRuleId: ReadonlyMap<string, FuiCode>;
|
|
23
23
|
declare function explainUrlForCode(code: string): string;
|
package/dist/codes/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
byCode,
|
|
7
7
|
byRuleId,
|
|
8
8
|
explainUrlForCode
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-AOG4FTV6.js";
|
|
10
|
+
import "../chunk-ZHS52OT4.js";
|
|
11
11
|
import "../chunk-JNBFJ34I.js";
|
|
12
12
|
import "../chunk-EIYNNS77.js";
|
|
13
13
|
import "../chunk-V4VQB57N.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../types-xJ2xyp_G.js';
|
|
2
|
-
export {
|
|
2
|
+
export { a_ as AIMetadata, C as CompiledBlock, b as CompiledFragment, E as CompiledFragmentsFile, I as CompiledTokenData, J as CompiledTokenEntry, a$ as ComponentRelation, b0 as FragmentContract, b1 as FragmentGenerated, b2 as FragmentMeta, b3 as FragmentUsage, b4 as ImportEntry, ai as ObservedComponentUsage, aj as ObservedUsageProp, b5 as PerformanceData, b6 as PerformanceSummary, b7 as PropDefinition, b8 as Theme, b9 as VerifyResult } from '../governance-B88uR3Zq.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../topology/index.js';
|
package/dist/generate/index.d.ts
CHANGED
|
@@ -75,6 +75,15 @@ interface ContractCanonicalMappingInput {
|
|
|
75
75
|
status: CanonicalMappingStatus;
|
|
76
76
|
/** Local/offline canonical import target, when the mapping is config-authored. */
|
|
77
77
|
importPath?: string;
|
|
78
|
+
/** Confirmed package-to-local relation metadata. Absent for legacy mappings. */
|
|
79
|
+
bridge?: {
|
|
80
|
+
underlyingPackageName: string;
|
|
81
|
+
underlyingExportName: string;
|
|
82
|
+
localComponentKey: string;
|
|
83
|
+
localExportName: string;
|
|
84
|
+
implementationFiles: readonly string[];
|
|
85
|
+
decisionSource: "authored" | "migration";
|
|
86
|
+
};
|
|
78
87
|
/** Explicit raw element or semantic resolutions covered by a local declaration. */
|
|
79
88
|
resolves?: readonly {
|
|
80
89
|
tag: string;
|
|
@@ -927,6 +936,14 @@ interface TokenConfig {
|
|
|
927
936
|
* no-inference mandate intact.
|
|
928
937
|
*/
|
|
929
938
|
packages?: string[];
|
|
939
|
+
/** Explicit local-name -> upstream-name mappings for cross-authority drift checks. */
|
|
940
|
+
aliases?: Record<string, string>;
|
|
941
|
+
/** Deterministic pins for upstream token manifests; local scans never fetch them. */
|
|
942
|
+
upstream?: Array<{
|
|
943
|
+
packageName: string;
|
|
944
|
+
version?: string;
|
|
945
|
+
digest?: string;
|
|
946
|
+
}>;
|
|
930
947
|
/**
|
|
931
948
|
* Glob patterns to exclude
|
|
932
949
|
* @example ["node_modules"]
|
|
@@ -2132,6 +2149,74 @@ declare const componentPolicyOverrideSchema: z.ZodObject<{
|
|
|
2132
2149
|
};
|
|
2133
2150
|
status?: "active" | "draft" | "disabled" | undefined;
|
|
2134
2151
|
}>;
|
|
2152
|
+
declare const canonicalBridgeV1Schema: z.ZodObject<{
|
|
2153
|
+
underlying: z.ZodObject<{
|
|
2154
|
+
packageName: z.ZodString;
|
|
2155
|
+
exportName: z.ZodString;
|
|
2156
|
+
}, "strict", z.ZodTypeAny, {
|
|
2157
|
+
exportName: string;
|
|
2158
|
+
packageName: string;
|
|
2159
|
+
}, {
|
|
2160
|
+
exportName: string;
|
|
2161
|
+
packageName: string;
|
|
2162
|
+
}>;
|
|
2163
|
+
local: z.ZodObject<{
|
|
2164
|
+
componentKey: z.ZodString;
|
|
2165
|
+
moduleSpecifier: z.ZodEffects<z.ZodString, string, string>;
|
|
2166
|
+
exportName: z.ZodString;
|
|
2167
|
+
implementationFiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2168
|
+
}, "strict", z.ZodTypeAny, {
|
|
2169
|
+
componentKey: string;
|
|
2170
|
+
exportName: string;
|
|
2171
|
+
moduleSpecifier: string;
|
|
2172
|
+
implementationFiles: string[];
|
|
2173
|
+
}, {
|
|
2174
|
+
componentKey: string;
|
|
2175
|
+
exportName: string;
|
|
2176
|
+
moduleSpecifier: string;
|
|
2177
|
+
implementationFiles: string[];
|
|
2178
|
+
}>;
|
|
2179
|
+
decision: z.ZodObject<{
|
|
2180
|
+
state: z.ZodLiteral<"confirmed">;
|
|
2181
|
+
source: z.ZodEnum<["authored", "migration"]>;
|
|
2182
|
+
}, "strict", z.ZodTypeAny, {
|
|
2183
|
+
state: "confirmed";
|
|
2184
|
+
source: "authored" | "migration";
|
|
2185
|
+
}, {
|
|
2186
|
+
state: "confirmed";
|
|
2187
|
+
source: "authored" | "migration";
|
|
2188
|
+
}>;
|
|
2189
|
+
}, "strict", z.ZodTypeAny, {
|
|
2190
|
+
underlying: {
|
|
2191
|
+
exportName: string;
|
|
2192
|
+
packageName: string;
|
|
2193
|
+
};
|
|
2194
|
+
local: {
|
|
2195
|
+
componentKey: string;
|
|
2196
|
+
exportName: string;
|
|
2197
|
+
moduleSpecifier: string;
|
|
2198
|
+
implementationFiles: string[];
|
|
2199
|
+
};
|
|
2200
|
+
decision: {
|
|
2201
|
+
state: "confirmed";
|
|
2202
|
+
source: "authored" | "migration";
|
|
2203
|
+
};
|
|
2204
|
+
}, {
|
|
2205
|
+
underlying: {
|
|
2206
|
+
exportName: string;
|
|
2207
|
+
packageName: string;
|
|
2208
|
+
};
|
|
2209
|
+
local: {
|
|
2210
|
+
componentKey: string;
|
|
2211
|
+
exportName: string;
|
|
2212
|
+
moduleSpecifier: string;
|
|
2213
|
+
implementationFiles: string[];
|
|
2214
|
+
};
|
|
2215
|
+
decision: {
|
|
2216
|
+
state: "confirmed";
|
|
2217
|
+
source: "authored" | "migration";
|
|
2218
|
+
};
|
|
2219
|
+
}>;
|
|
2135
2220
|
declare const canonicalSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2136
2221
|
kind: z.ZodLiteral<"npm">;
|
|
2137
2222
|
specifier: z.ZodString;
|
|
@@ -2273,6 +2358,104 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2273
2358
|
registryHash?: string | undefined;
|
|
2274
2359
|
receiptPath?: string | undefined;
|
|
2275
2360
|
}>]>, "many">>;
|
|
2361
|
+
canonicalBridges: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
2362
|
+
underlying: z.ZodObject<{
|
|
2363
|
+
packageName: z.ZodString;
|
|
2364
|
+
exportName: z.ZodString;
|
|
2365
|
+
}, "strict", z.ZodTypeAny, {
|
|
2366
|
+
exportName: string;
|
|
2367
|
+
packageName: string;
|
|
2368
|
+
}, {
|
|
2369
|
+
exportName: string;
|
|
2370
|
+
packageName: string;
|
|
2371
|
+
}>;
|
|
2372
|
+
local: z.ZodObject<{
|
|
2373
|
+
componentKey: z.ZodString;
|
|
2374
|
+
moduleSpecifier: z.ZodEffects<z.ZodString, string, string>;
|
|
2375
|
+
exportName: z.ZodString;
|
|
2376
|
+
implementationFiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2377
|
+
}, "strict", z.ZodTypeAny, {
|
|
2378
|
+
componentKey: string;
|
|
2379
|
+
exportName: string;
|
|
2380
|
+
moduleSpecifier: string;
|
|
2381
|
+
implementationFiles: string[];
|
|
2382
|
+
}, {
|
|
2383
|
+
componentKey: string;
|
|
2384
|
+
exportName: string;
|
|
2385
|
+
moduleSpecifier: string;
|
|
2386
|
+
implementationFiles: string[];
|
|
2387
|
+
}>;
|
|
2388
|
+
decision: z.ZodObject<{
|
|
2389
|
+
state: z.ZodLiteral<"confirmed">;
|
|
2390
|
+
source: z.ZodEnum<["authored", "migration"]>;
|
|
2391
|
+
}, "strict", z.ZodTypeAny, {
|
|
2392
|
+
state: "confirmed";
|
|
2393
|
+
source: "authored" | "migration";
|
|
2394
|
+
}, {
|
|
2395
|
+
state: "confirmed";
|
|
2396
|
+
source: "authored" | "migration";
|
|
2397
|
+
}>;
|
|
2398
|
+
}, "strict", z.ZodTypeAny, {
|
|
2399
|
+
underlying: {
|
|
2400
|
+
exportName: string;
|
|
2401
|
+
packageName: string;
|
|
2402
|
+
};
|
|
2403
|
+
local: {
|
|
2404
|
+
componentKey: string;
|
|
2405
|
+
exportName: string;
|
|
2406
|
+
moduleSpecifier: string;
|
|
2407
|
+
implementationFiles: string[];
|
|
2408
|
+
};
|
|
2409
|
+
decision: {
|
|
2410
|
+
state: "confirmed";
|
|
2411
|
+
source: "authored" | "migration";
|
|
2412
|
+
};
|
|
2413
|
+
}, {
|
|
2414
|
+
underlying: {
|
|
2415
|
+
exportName: string;
|
|
2416
|
+
packageName: string;
|
|
2417
|
+
};
|
|
2418
|
+
local: {
|
|
2419
|
+
componentKey: string;
|
|
2420
|
+
exportName: string;
|
|
2421
|
+
moduleSpecifier: string;
|
|
2422
|
+
implementationFiles: string[];
|
|
2423
|
+
};
|
|
2424
|
+
decision: {
|
|
2425
|
+
state: "confirmed";
|
|
2426
|
+
source: "authored" | "migration";
|
|
2427
|
+
};
|
|
2428
|
+
}>, "many">, {
|
|
2429
|
+
underlying: {
|
|
2430
|
+
exportName: string;
|
|
2431
|
+
packageName: string;
|
|
2432
|
+
};
|
|
2433
|
+
local: {
|
|
2434
|
+
componentKey: string;
|
|
2435
|
+
exportName: string;
|
|
2436
|
+
moduleSpecifier: string;
|
|
2437
|
+
implementationFiles: string[];
|
|
2438
|
+
};
|
|
2439
|
+
decision: {
|
|
2440
|
+
state: "confirmed";
|
|
2441
|
+
source: "authored" | "migration";
|
|
2442
|
+
};
|
|
2443
|
+
}[], {
|
|
2444
|
+
underlying: {
|
|
2445
|
+
exportName: string;
|
|
2446
|
+
packageName: string;
|
|
2447
|
+
};
|
|
2448
|
+
local: {
|
|
2449
|
+
componentKey: string;
|
|
2450
|
+
exportName: string;
|
|
2451
|
+
moduleSpecifier: string;
|
|
2452
|
+
implementationFiles: string[];
|
|
2453
|
+
};
|
|
2454
|
+
decision: {
|
|
2455
|
+
state: "confirmed";
|
|
2456
|
+
source: "authored" | "migration";
|
|
2457
|
+
};
|
|
2458
|
+
}[]>>;
|
|
2276
2459
|
presets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2277
2460
|
scales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2278
2461
|
kind: z.ZodDefault<z.ZodLiteral<"scale">>;
|
|
@@ -2993,6 +3176,22 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
2993
3176
|
exclude?: string[] | undefined;
|
|
2994
3177
|
registryHash?: string | undefined;
|
|
2995
3178
|
})[] | undefined;
|
|
3179
|
+
canonicalBridges?: {
|
|
3180
|
+
underlying: {
|
|
3181
|
+
exportName: string;
|
|
3182
|
+
packageName: string;
|
|
3183
|
+
};
|
|
3184
|
+
local: {
|
|
3185
|
+
componentKey: string;
|
|
3186
|
+
exportName: string;
|
|
3187
|
+
moduleSpecifier: string;
|
|
3188
|
+
implementationFiles: string[];
|
|
3189
|
+
};
|
|
3190
|
+
decision: {
|
|
3191
|
+
state: "confirmed";
|
|
3192
|
+
source: "authored" | "migration";
|
|
3193
|
+
};
|
|
3194
|
+
}[] | undefined;
|
|
2996
3195
|
presets?: string[] | undefined;
|
|
2997
3196
|
agent?: z.objectOutputType<{
|
|
2998
3197
|
repairOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3167,6 +3366,22 @@ declare const governanceConfigSchema: z.ZodObject<{
|
|
|
3167
3366
|
registryHash?: string | undefined;
|
|
3168
3367
|
receiptPath?: string | undefined;
|
|
3169
3368
|
})[] | undefined;
|
|
3369
|
+
canonicalBridges?: {
|
|
3370
|
+
underlying: {
|
|
3371
|
+
exportName: string;
|
|
3372
|
+
packageName: string;
|
|
3373
|
+
};
|
|
3374
|
+
local: {
|
|
3375
|
+
componentKey: string;
|
|
3376
|
+
exportName: string;
|
|
3377
|
+
moduleSpecifier: string;
|
|
3378
|
+
implementationFiles: string[];
|
|
3379
|
+
};
|
|
3380
|
+
decision: {
|
|
3381
|
+
state: "confirmed";
|
|
3382
|
+
source: "authored" | "migration";
|
|
3383
|
+
};
|
|
3384
|
+
}[] | undefined;
|
|
3170
3385
|
presets?: string[] | undefined;
|
|
3171
3386
|
agent?: z.objectInputType<{
|
|
3172
3387
|
repairOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3183,6 +3398,7 @@ type ComponentGovernanceRecord = z.infer<typeof componentGovernanceRecordSchema>
|
|
|
3183
3398
|
type ComponentPolicyRecord = z.infer<typeof componentPolicyRecordSchema>;
|
|
3184
3399
|
type ComponentPolicyOverride = z.infer<typeof componentPolicyOverrideSchema>;
|
|
3185
3400
|
type CanonicalSource = z.infer<typeof canonicalSourceSchema>;
|
|
3401
|
+
type CanonicalBridgeV1 = z.infer<typeof canonicalBridgeV1Schema>;
|
|
3186
3402
|
interface GovernanceConfig {
|
|
3187
3403
|
extends?: string[];
|
|
3188
3404
|
severity?: GovernanceSeverity;
|
|
@@ -3193,6 +3409,7 @@ interface GovernanceConfig {
|
|
|
3193
3409
|
audit?: Record<string, unknown>;
|
|
3194
3410
|
runners?: Record<string, Record<string, unknown>>;
|
|
3195
3411
|
canonicalSources?: CanonicalSource[];
|
|
3412
|
+
canonicalBridges?: CanonicalBridgeV1[];
|
|
3196
3413
|
presets?: string[];
|
|
3197
3414
|
scales?: Record<string, ScaleGovernanceRecord>;
|
|
3198
3415
|
styles?: GlobalStyleGovernanceRecord[];
|
|
@@ -3318,4 +3535,4 @@ declare const g: {
|
|
|
3318
3535
|
component: ComponentGovernanceBuilder<Record<string, unknown>>;
|
|
3319
3536
|
};
|
|
3320
3537
|
|
|
3321
|
-
export { type
|
|
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, type ComponentRelation$1 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, localCanonicalContractMappings as aV, normalizeGovernanceConfig as aW, projectContractPreimage as aX, scaleGovernanceRecordSchema as aY, verifiedContractPreimageFromPin as aZ, type AIMetadata$1 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 FragmentContract$1 as b0, type FragmentGenerated$1 as b1, type FragmentMeta$1 as b2, type FragmentUsage$1 as b3, type ImportEntry as b4, type PerformanceData as b5, type PerformanceSummary as b6, type PropDefinition$1 as b7, type Theme$1 as b8, type VerifyResult$1 as b9, 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 };
|