@usefragments/core 1.9.0 → 1.9.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.
@@ -1,5 +1,5 @@
1
1
  import { Severity } from '../severity.js';
2
- import { n as Violation, F as Finding } from '../index-DtHxs0Pf.js';
2
+ import { n as Violation, F as Finding } from '../index-_sxhUNqx.js';
3
3
  import 'zod';
4
4
 
5
5
  declare const EXPLAIN_URL_BASE = "https://usefragments.com/errors/";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { GOVERNANCE_TELEMETRY_FIELDS, GOVERNANCE_TELEMETRY_SOURCE_DISCLOSURE, GOVERNANCE_TELEMETRY_TOP_LEVEL_FIELDS, GovernanceTelemetryCarriage, GovernanceTelemetryField, GovernanceTelemetryTopLevelField } from './governance-telemetry.js';
2
- import { F as Finding, A as AgentFormat, E as EvidenceGrade, a as FindingFix } from './index-DtHxs0Pf.js';
3
- export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOutput, G as CanonicalGovernanceVerdict, e as EVIDENCE_ORDER, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, l as GovernanceVerdictMetadata, I as InspectClaim, m as InspectClaimTier, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, s as canBlock, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from './index-DtHxs0Pf.js';
2
+ import { F as Finding, A as AgentFormat, E as EvidenceGrade, a as FindingFix } from './index-_sxhUNqx.js';
3
+ export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, d as AgentOutput, G as CanonicalGovernanceVerdict, e as EVIDENCE_ORDER, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, l as GovernanceVerdictMetadata, I as InspectClaim, m as InspectClaimTier, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, s as canBlock, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from './index-_sxhUNqx.js';
4
4
  import { Severity } from './severity.js';
5
5
  export { SEVERITIES, SEVERITY_RANK, SEVERITY_WEIGHTS, SeverityLevel, compareSeverity, maxSeverity, severityLevel, severitySchema, sortBySeverity } from './severity.js';
6
6
  export { BridgeViolationInput, CODES, CodeCategory, CodeLifecycle, EXPLAIN_URL_BASE, FuiCode, bridgeSourceViolation, bridgeSourceViolations, byCode, byRuleId, explainUrlForCode } from './codes/index.js';
@@ -2224,7 +2224,7 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
2224
2224
  name: string;
2225
2225
  }[];
2226
2226
  file: string;
2227
- tier: "core" | "composition";
2227
+ tier: "composition" | "core";
2228
2228
  description: string;
2229
2229
  publicSlug: string | null;
2230
2230
  propCount: number;
@@ -2245,7 +2245,7 @@ declare const bundleManifestComponentEntrySchema: z.ZodObject<{
2245
2245
  name: string;
2246
2246
  }[];
2247
2247
  file: string;
2248
- tier: "core" | "composition";
2248
+ tier: "composition" | "core";
2249
2249
  description: string;
2250
2250
  publicSlug: string | null;
2251
2251
  propCount: number;
@@ -2354,7 +2354,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2354
2354
  name: string;
2355
2355
  }[];
2356
2356
  file: string;
2357
- tier: "core" | "composition";
2357
+ tier: "composition" | "core";
2358
2358
  description: string;
2359
2359
  publicSlug: string | null;
2360
2360
  propCount: number;
@@ -2375,7 +2375,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2375
2375
  name: string;
2376
2376
  }[];
2377
2377
  file: string;
2378
- tier: "core" | "composition";
2378
+ tier: "composition" | "core";
2379
2379
  description: string;
2380
2380
  publicSlug: string | null;
2381
2381
  propCount: number;
@@ -2398,7 +2398,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2398
2398
  name: string;
2399
2399
  }[];
2400
2400
  file: string;
2401
- tier: "core" | "composition";
2401
+ tier: "composition" | "core";
2402
2402
  description: string;
2403
2403
  publicSlug: string | null;
2404
2404
  propCount: number;
@@ -2444,7 +2444,7 @@ declare const bundleManifestSchema: z.ZodObject<{
2444
2444
  name: string;
2445
2445
  }[];
2446
2446
  file: string;
2447
- tier: "core" | "composition";
2447
+ tier: "composition" | "core";
2448
2448
  description: string;
2449
2449
  publicSlug: string | null;
2450
2450
  propCount: number;
@@ -2552,6 +2552,7 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2552
2552
  description?: string | undefined;
2553
2553
  }>, "many">;
2554
2554
  }, "strip", z.ZodTypeAny, {
2555
+ schemaVersion: 1;
2555
2556
  flat: {
2556
2557
  value: string;
2557
2558
  path: string[];
@@ -2560,7 +2561,6 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2560
2561
  type?: string | undefined;
2561
2562
  description?: string | undefined;
2562
2563
  }[];
2563
- schemaVersion: 1;
2564
2564
  catalogRevision: string;
2565
2565
  catalogUpdatedAt: string;
2566
2566
  categories: Record<string, {
@@ -2575,6 +2575,7 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2575
2575
  count: number;
2576
2576
  }>;
2577
2577
  }, {
2578
+ schemaVersion: 1;
2578
2579
  flat: {
2579
2580
  value: string;
2580
2581
  path: string[];
@@ -2583,7 +2584,6 @@ declare const bundleTokenFileSchema: z.ZodObject<{
2583
2584
  type?: string | undefined;
2584
2585
  description?: string | undefined;
2585
2586
  }[];
2586
- schemaVersion: 1;
2587
2587
  catalogRevision: string;
2588
2588
  catalogUpdatedAt: string;
2589
2589
  categories: Record<string, {
@@ -2637,8 +2637,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2637
2637
  parentComponentName: z.ZodOptional<z.ZodString>;
2638
2638
  parentComponentKey: z.ZodOptional<z.ZodString>;
2639
2639
  }, "strip", z.ZodTypeAny, {
2640
- status: string;
2641
2640
  source: "design-system";
2641
+ status: string;
2642
2642
  props: Record<string, unknown>;
2643
2643
  category: string;
2644
2644
  name: string;
@@ -2648,7 +2648,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2648
2648
  componentId: string;
2649
2649
  name: string;
2650
2650
  }[];
2651
- tier: "core" | "composition";
2651
+ tier: "composition" | "core";
2652
2652
  description: string;
2653
2653
  publicSlug: string | null;
2654
2654
  relations: Record<string, unknown>[];
@@ -2663,8 +2663,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2663
2663
  parentComponentName?: string | undefined;
2664
2664
  parentComponentKey?: string | undefined;
2665
2665
  }, {
2666
- status: string;
2667
2666
  source: "design-system";
2667
+ status: string;
2668
2668
  props: Record<string, unknown>;
2669
2669
  category: string;
2670
2670
  name: string;
@@ -2674,7 +2674,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2674
2674
  componentId: string;
2675
2675
  name: string;
2676
2676
  }[];
2677
- tier: "core" | "composition";
2677
+ tier: "composition" | "core";
2678
2678
  description: string;
2679
2679
  publicSlug: string | null;
2680
2680
  relations: Record<string, unknown>[];
@@ -2694,8 +2694,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2694
2694
  componentId: string;
2695
2695
  file: string;
2696
2696
  component: {
2697
- status: string;
2698
2697
  source: "design-system";
2698
+ status: string;
2699
2699
  props: Record<string, unknown>;
2700
2700
  category: string;
2701
2701
  name: string;
@@ -2705,7 +2705,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2705
2705
  componentId: string;
2706
2706
  name: string;
2707
2707
  }[];
2708
- tier: "core" | "composition";
2708
+ tier: "composition" | "core";
2709
2709
  description: string;
2710
2710
  publicSlug: string | null;
2711
2711
  relations: Record<string, unknown>[];
@@ -2727,8 +2727,8 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2727
2727
  componentId: string;
2728
2728
  file: string;
2729
2729
  component: {
2730
- status: string;
2731
2730
  source: "design-system";
2731
+ status: string;
2732
2732
  props: Record<string, unknown>;
2733
2733
  category: string;
2734
2734
  name: string;
@@ -2738,7 +2738,7 @@ declare const bundleComponentShardSchema: z.ZodObject<{
2738
2738
  componentId: string;
2739
2739
  name: string;
2740
2740
  }[];
2741
- tier: "core" | "composition";
2741
+ tier: "composition" | "core";
2742
2742
  description: string;
2743
2743
  publicSlug: string | null;
2744
2744
  relations: Record<string, unknown>[];
@@ -7659,6 +7659,60 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7659
7659
  }[] | undefined;
7660
7660
  }>>;
7661
7661
  }, "strip", z.ZodTypeAny, {
7662
+ components?: string[] | undefined;
7663
+ screenshots?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
7664
+ topology?: {
7665
+ version: number;
7666
+ areas: {
7667
+ name: string;
7668
+ criticality: "high" | "medium" | "low" | "revenue" | "regulated";
7669
+ owners: string[];
7670
+ id: string;
7671
+ files: string[];
7672
+ routes?: string[] | undefined;
7673
+ priority?: number | undefined;
7674
+ }[];
7675
+ base?: "app" | "repo" | undefined;
7676
+ } | undefined;
7677
+ tokens?: z.objectOutputType<{
7678
+ include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7679
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
7680
+ path: z.ZodEffects<z.ZodString, string, string>;
7681
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7682
+ }, "strip", z.ZodTypeAny, {
7683
+ path: string;
7684
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7685
+ }, {
7686
+ path: string;
7687
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7688
+ }>, "many">>;
7689
+ packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7690
+ aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7691
+ upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
7692
+ packageName: z.ZodString;
7693
+ version: z.ZodOptional<z.ZodString>;
7694
+ digest: z.ZodOptional<z.ZodString>;
7695
+ }, "strip", z.ZodTypeAny, {
7696
+ packageName: string;
7697
+ version?: string | undefined;
7698
+ digest?: string | undefined;
7699
+ }, {
7700
+ packageName: string;
7701
+ version?: string | undefined;
7702
+ digest?: string | undefined;
7703
+ }>, "many">>;
7704
+ exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7705
+ themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7706
+ enabled: z.ZodOptional<z.ZodBoolean>;
7707
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7708
+ namespace: z.ZodOptional<z.ZodString>;
7709
+ }, z.ZodTypeAny, "passthrough"> | undefined;
7710
+ performance?: "strict" | "relaxed" | "standard" | {
7711
+ preset?: "strict" | "relaxed" | "standard" | undefined;
7712
+ budgets?: {
7713
+ bundleSize?: number | undefined;
7714
+ } | undefined;
7715
+ } | undefined;
7662
7716
  govern?: {
7663
7717
  components?: Record<string, {
7664
7718
  rules: ({
@@ -7887,60 +7941,6 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7887
7941
  failOnInert: z.ZodOptional<z.ZodBoolean>;
7888
7942
  }, z.ZodTypeAny, "passthrough"> | undefined;
7889
7943
  } | undefined;
7890
- components?: string[] | undefined;
7891
- screenshots?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
7892
- topology?: {
7893
- version: number;
7894
- areas: {
7895
- name: string;
7896
- criticality: "high" | "medium" | "low" | "revenue" | "regulated";
7897
- owners: string[];
7898
- id: string;
7899
- files: string[];
7900
- routes?: string[] | undefined;
7901
- priority?: number | undefined;
7902
- }[];
7903
- base?: "app" | "repo" | undefined;
7904
- } | undefined;
7905
- tokens?: z.objectOutputType<{
7906
- include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7907
- sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
7908
- path: z.ZodEffects<z.ZodString, string, string>;
7909
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7910
- }, "strip", z.ZodTypeAny, {
7911
- path: string;
7912
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7913
- }, {
7914
- path: string;
7915
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
7916
- }>, "many">>;
7917
- packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7918
- aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7919
- upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
7920
- packageName: z.ZodString;
7921
- version: z.ZodOptional<z.ZodString>;
7922
- digest: z.ZodOptional<z.ZodString>;
7923
- }, "strip", z.ZodTypeAny, {
7924
- packageName: string;
7925
- version?: string | undefined;
7926
- digest?: string | undefined;
7927
- }, {
7928
- packageName: string;
7929
- version?: string | undefined;
7930
- digest?: string | undefined;
7931
- }>, "many">>;
7932
- exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
7933
- themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7934
- enabled: z.ZodOptional<z.ZodBoolean>;
7935
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
7936
- namespace: z.ZodOptional<z.ZodString>;
7937
- }, z.ZodTypeAny, "passthrough"> | undefined;
7938
- performance?: "strict" | "relaxed" | "standard" | {
7939
- preset?: "strict" | "relaxed" | "standard" | undefined;
7940
- budgets?: {
7941
- bundleSize?: number | undefined;
7942
- } | undefined;
7943
- } | undefined;
7944
7944
  exclude?: string[] | undefined;
7945
7945
  include?: string[] | undefined;
7946
7946
  registry?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7994,6 +7994,60 @@ declare const fragmentsConfigSchema: z.ZodObject<{
7994
7994
  }[] | undefined;
7995
7995
  } | undefined;
7996
7996
  }, {
7997
+ components?: string[] | undefined;
7998
+ screenshots?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
7999
+ topology?: {
8000
+ version: number;
8001
+ areas: {
8002
+ name: string;
8003
+ criticality: "high" | "medium" | "low" | "revenue" | "regulated";
8004
+ owners: string[];
8005
+ id: string;
8006
+ files: string[];
8007
+ routes?: string[] | undefined;
8008
+ priority?: number | undefined;
8009
+ }[];
8010
+ base?: "app" | "repo" | undefined;
8011
+ } | undefined;
8012
+ tokens?: z.objectInputType<{
8013
+ include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8014
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
8015
+ path: z.ZodEffects<z.ZodString, string, string>;
8016
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8017
+ }, "strip", z.ZodTypeAny, {
8018
+ path: string;
8019
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8020
+ }, {
8021
+ path: string;
8022
+ format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8023
+ }>, "many">>;
8024
+ packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8025
+ aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8026
+ upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
8027
+ packageName: z.ZodString;
8028
+ version: z.ZodOptional<z.ZodString>;
8029
+ digest: z.ZodOptional<z.ZodString>;
8030
+ }, "strip", z.ZodTypeAny, {
8031
+ packageName: string;
8032
+ version?: string | undefined;
8033
+ digest?: string | undefined;
8034
+ }, {
8035
+ packageName: string;
8036
+ version?: string | undefined;
8037
+ digest?: string | undefined;
8038
+ }>, "many">>;
8039
+ exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8040
+ themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8041
+ enabled: z.ZodOptional<z.ZodBoolean>;
8042
+ format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8043
+ namespace: z.ZodOptional<z.ZodString>;
8044
+ }, z.ZodTypeAny, "passthrough"> | undefined;
8045
+ performance?: "strict" | "relaxed" | "standard" | {
8046
+ preset?: "strict" | "relaxed" | "standard" | undefined;
8047
+ budgets?: {
8048
+ bundleSize?: number | undefined;
8049
+ } | undefined;
8050
+ } | undefined;
7997
8051
  govern?: {
7998
8052
  components?: Record<string, {
7999
8053
  rules: ({
@@ -8222,60 +8276,6 @@ declare const fragmentsConfigSchema: z.ZodObject<{
8222
8276
  failOnInert: z.ZodOptional<z.ZodBoolean>;
8223
8277
  }, z.ZodTypeAny, "passthrough"> | undefined;
8224
8278
  } | undefined;
8225
- components?: string[] | undefined;
8226
- screenshots?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
8227
- topology?: {
8228
- version: number;
8229
- areas: {
8230
- name: string;
8231
- criticality: "high" | "medium" | "low" | "revenue" | "regulated";
8232
- owners: string[];
8233
- id: string;
8234
- files: string[];
8235
- routes?: string[] | undefined;
8236
- priority?: number | undefined;
8237
- }[];
8238
- base?: "app" | "repo" | undefined;
8239
- } | undefined;
8240
- tokens?: z.objectInputType<{
8241
- include: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8242
- sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
8243
- path: z.ZodEffects<z.ZodString, string, string>;
8244
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8245
- }, "strip", z.ZodTypeAny, {
8246
- path: string;
8247
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8248
- }, {
8249
- path: string;
8250
- format?: "tailwind" | "auto" | "css" | "scss" | "dtcg" | undefined;
8251
- }>, "many">>;
8252
- packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8253
- aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8254
- upstream: z.ZodOptional<z.ZodArray<z.ZodObject<{
8255
- packageName: z.ZodString;
8256
- version: z.ZodOptional<z.ZodString>;
8257
- digest: z.ZodOptional<z.ZodString>;
8258
- }, "strip", z.ZodTypeAny, {
8259
- packageName: string;
8260
- version?: string | undefined;
8261
- digest?: string | undefined;
8262
- }, {
8263
- packageName: string;
8264
- version?: string | undefined;
8265
- digest?: string | undefined;
8266
- }>, "many">>;
8267
- exclude: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8268
- themeSelectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8269
- enabled: z.ZodOptional<z.ZodBoolean>;
8270
- format: z.ZodOptional<z.ZodEnum<["auto", "css", "scss", "dtcg", "tailwind"]>>;
8271
- namespace: z.ZodOptional<z.ZodString>;
8272
- }, z.ZodTypeAny, "passthrough"> | undefined;
8273
- performance?: "strict" | "relaxed" | "standard" | {
8274
- preset?: "strict" | "relaxed" | "standard" | undefined;
8275
- budgets?: {
8276
- bundleSize?: number | undefined;
8277
- } | undefined;
8278
- } | undefined;
8279
8279
  exclude?: string[] | undefined;
8280
8280
  include?: string[] | undefined;
8281
8281
  registry?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -9756,7 +9756,6 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9756
9756
  guidelines?: string[] | undefined;
9757
9757
  accessibility?: string[] | undefined;
9758
9758
  };
9759
- govern?: ((...args: unknown[]) => unknown) | undefined;
9760
9759
  composition?: {
9761
9760
  pattern?: "compound" | "simple" | "controlled" | "wrapper" | undefined;
9762
9761
  subComponents?: string[] | undefined;
@@ -9772,6 +9771,7 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9772
9771
  constraints?: string[] | undefined;
9773
9772
  typeDetails?: Record<string, unknown> | undefined;
9774
9773
  }> | undefined;
9774
+ govern?: ((...args: unknown[]) => unknown) | undefined;
9775
9775
  contract?: {
9776
9776
  composition?: {
9777
9777
  rule: {
@@ -9902,7 +9902,6 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9902
9902
  guidelines?: string[] | undefined;
9903
9903
  accessibility?: string[] | undefined;
9904
9904
  };
9905
- govern?: ((...args: unknown[]) => unknown) | undefined;
9906
9905
  composition?: {
9907
9906
  pattern?: "compound" | "simple" | "controlled" | "wrapper" | undefined;
9908
9907
  subComponents?: string[] | undefined;
@@ -9918,6 +9917,7 @@ declare const governedFragmentDefinitionSchema: z.ZodObject<{
9918
9917
  constraints?: string[] | undefined;
9919
9918
  typeDetails?: Record<string, unknown> | undefined;
9920
9919
  }> | undefined;
9920
+ govern?: ((...args: unknown[]) => unknown) | undefined;
9921
9921
  contract?: {
9922
9922
  composition?: {
9923
9923
  rule: {
@@ -11360,6 +11360,8 @@ declare const componentContractSchema: z.ZodObject<{
11360
11360
  };
11361
11361
  propsSummary: string[];
11362
11362
  $schema: string;
11363
+ status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11364
+ tokens?: string[] | undefined;
11363
11365
  preview?: {
11364
11366
  css?: string[] | undefined;
11365
11367
  theme?: "light" | "dark" | undefined;
@@ -11367,8 +11369,6 @@ declare const componentContractSchema: z.ZodObject<{
11367
11369
  wrapperModule?: string | undefined;
11368
11370
  wrapperExport?: string | undefined;
11369
11371
  } | undefined;
11370
- status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11371
- tokens?: string[] | undefined;
11372
11372
  contract?: {
11373
11373
  compoundChildren?: Record<string, {
11374
11374
  required?: boolean | undefined;
@@ -11446,6 +11446,8 @@ declare const componentContractSchema: z.ZodObject<{
11446
11446
  };
11447
11447
  propsSummary: string[];
11448
11448
  $schema: string;
11449
+ status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11450
+ tokens?: string[] | undefined;
11449
11451
  preview?: {
11450
11452
  css?: string[] | undefined;
11451
11453
  theme?: "light" | "dark" | undefined;
@@ -11453,8 +11455,6 @@ declare const componentContractSchema: z.ZodObject<{
11453
11455
  wrapperModule?: string | undefined;
11454
11456
  wrapperExport?: string | undefined;
11455
11457
  } | undefined;
11456
- status?: "experimental" | "stable" | "deprecated" | "beta" | undefined;
11457
- tokens?: string[] | undefined;
11458
11458
  contract?: {
11459
11459
  compoundChildren?: Record<string, {
11460
11460
  required?: boolean | undefined;
@@ -215,7 +215,7 @@ declare const registryComponentSchema: z.ZodObject<{
215
215
  componentId: string;
216
216
  name: string;
217
217
  publicRef: string;
218
- tier: "core" | "composition" | "custom" | "utility";
218
+ tier: "composition" | "core" | "custom" | "utility";
219
219
  provenance: Record<string, unknown>;
220
220
  examples: unknown[];
221
221
  files: {
@@ -263,7 +263,7 @@ declare const registryComponentSchema: z.ZodObject<{
263
263
  status?: string | undefined;
264
264
  category?: string | undefined;
265
265
  contract?: unknown;
266
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
266
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
267
267
  provenance?: Record<string, unknown> | undefined;
268
268
  examples?: unknown[] | undefined;
269
269
  styleFiles?: string[] | undefined;
@@ -497,7 +497,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
497
497
  componentId: string;
498
498
  name: string;
499
499
  publicRef: string;
500
- tier: "core" | "composition" | "custom" | "utility";
500
+ tier: "composition" | "core" | "custom" | "utility";
501
501
  provenance: Record<string, unknown>;
502
502
  examples: unknown[];
503
503
  files: {
@@ -545,7 +545,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
545
545
  status?: string | undefined;
546
546
  category?: string | undefined;
547
547
  contract?: unknown;
548
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
548
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
549
549
  provenance?: Record<string, unknown> | undefined;
550
550
  examples?: unknown[] | undefined;
551
551
  styleFiles?: string[] | undefined;
@@ -610,7 +610,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
610
610
  componentId: string;
611
611
  name: string;
612
612
  publicRef: string;
613
- tier: "core" | "composition" | "custom" | "utility";
613
+ tier: "composition" | "core" | "custom" | "utility";
614
614
  provenance: Record<string, unknown>;
615
615
  examples: unknown[];
616
616
  files: {
@@ -712,7 +712,7 @@ declare const registryManifestDraftSchema: z.ZodObject<{
712
712
  status?: string | undefined;
713
713
  category?: string | undefined;
714
714
  contract?: unknown;
715
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
715
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
716
716
  provenance?: Record<string, unknown> | undefined;
717
717
  examples?: unknown[] | undefined;
718
718
  styleFiles?: string[] | undefined;
@@ -970,7 +970,7 @@ declare const registryManifestSchema: z.ZodObject<{
970
970
  componentId: string;
971
971
  name: string;
972
972
  publicRef: string;
973
- tier: "core" | "composition" | "custom" | "utility";
973
+ tier: "composition" | "core" | "custom" | "utility";
974
974
  provenance: Record<string, unknown>;
975
975
  examples: unknown[];
976
976
  files: {
@@ -1018,7 +1018,7 @@ declare const registryManifestSchema: z.ZodObject<{
1018
1018
  status?: string | undefined;
1019
1019
  category?: string | undefined;
1020
1020
  contract?: unknown;
1021
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
1021
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
1022
1022
  provenance?: Record<string, unknown> | undefined;
1023
1023
  examples?: unknown[] | undefined;
1024
1024
  styleFiles?: string[] | undefined;
@@ -1085,7 +1085,7 @@ declare const registryManifestSchema: z.ZodObject<{
1085
1085
  componentId: string;
1086
1086
  name: string;
1087
1087
  publicRef: string;
1088
- tier: "core" | "composition" | "custom" | "utility";
1088
+ tier: "composition" | "core" | "custom" | "utility";
1089
1089
  provenance: Record<string, unknown>;
1090
1090
  examples: unknown[];
1091
1091
  files: {
@@ -1188,7 +1188,7 @@ declare const registryManifestSchema: z.ZodObject<{
1188
1188
  status?: string | undefined;
1189
1189
  category?: string | undefined;
1190
1190
  contract?: unknown;
1191
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
1191
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
1192
1192
  provenance?: Record<string, unknown> | undefined;
1193
1193
  examples?: unknown[] | undefined;
1194
1194
  styleFiles?: string[] | undefined;
@@ -1449,7 +1449,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1449
1449
  componentId: string;
1450
1450
  name: string;
1451
1451
  publicRef: string;
1452
- tier: "core" | "composition" | "custom" | "utility";
1452
+ tier: "composition" | "core" | "custom" | "utility";
1453
1453
  provenance: Record<string, unknown>;
1454
1454
  examples: unknown[];
1455
1455
  files: {
@@ -1497,7 +1497,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1497
1497
  status?: string | undefined;
1498
1498
  category?: string | undefined;
1499
1499
  contract?: unknown;
1500
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
1500
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
1501
1501
  provenance?: Record<string, unknown> | undefined;
1502
1502
  examples?: unknown[] | undefined;
1503
1503
  styleFiles?: string[] | undefined;
@@ -1564,7 +1564,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1564
1564
  componentId: string;
1565
1565
  name: string;
1566
1566
  publicRef: string;
1567
- tier: "core" | "composition" | "custom" | "utility";
1567
+ tier: "composition" | "core" | "custom" | "utility";
1568
1568
  provenance: Record<string, unknown>;
1569
1569
  examples: unknown[];
1570
1570
  files: {
@@ -1667,7 +1667,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1667
1667
  status?: string | undefined;
1668
1668
  category?: string | undefined;
1669
1669
  contract?: unknown;
1670
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
1670
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
1671
1671
  provenance?: Record<string, unknown> | undefined;
1672
1672
  examples?: unknown[] | undefined;
1673
1673
  styleFiles?: string[] | undefined;
@@ -1772,7 +1772,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1772
1772
  componentId: string;
1773
1773
  name: string;
1774
1774
  publicRef: string;
1775
- tier: "core" | "composition" | "custom" | "utility";
1775
+ tier: "composition" | "core" | "custom" | "utility";
1776
1776
  provenance: Record<string, unknown>;
1777
1777
  examples: unknown[];
1778
1778
  files: {
@@ -1885,7 +1885,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1885
1885
  status?: string | undefined;
1886
1886
  category?: string | undefined;
1887
1887
  contract?: unknown;
1888
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
1888
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
1889
1889
  provenance?: Record<string, unknown> | undefined;
1890
1890
  examples?: unknown[] | undefined;
1891
1891
  styleFiles?: string[] | undefined;
@@ -1978,7 +1978,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
1978
1978
  componentId: string;
1979
1979
  name: string;
1980
1980
  publicRef: string;
1981
- tier: "core" | "composition" | "custom" | "utility";
1981
+ tier: "composition" | "core" | "custom" | "utility";
1982
1982
  provenance: Record<string, unknown>;
1983
1983
  examples: unknown[];
1984
1984
  files: {
@@ -2091,7 +2091,7 @@ declare const registryArtifactSchema: z.ZodEffects<z.ZodObject<{
2091
2091
  status?: string | undefined;
2092
2092
  category?: string | undefined;
2093
2093
  contract?: unknown;
2094
- tier?: "core" | "composition" | "custom" | "utility" | undefined;
2094
+ tier?: "composition" | "core" | "custom" | "utility" | undefined;
2095
2095
  provenance?: Record<string, unknown> | undefined;
2096
2096
  examples?: unknown[] | undefined;
2097
2097
  styleFiles?: string[] | undefined;
@@ -1,3 +1,3 @@
1
1
  import 'zod';
2
2
  export { LegacySeverityLevel, Severity, SeverityLevel, legacySeverityLevelSchema, severityLevelSchema, severitySchema } from '../severity.js';
3
- export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, A as AgentFormat, d as AgentOutput, Q as FactEvidence, R as FactLocation, F as Finding, a as FindingFix, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, G as GovernanceVerdict, l as GovernanceVerdictMetadata, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, T as agentFindingSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, U as agentPlanSchema, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from '../index-DtHxs0Pf.js';
3
+ export { b as AGENT_FORMAT_SCHEMA_VERSION, c as AgentErrorEnvelope, A as AgentFormat, d as AgentOutput, Q as FactEvidence, R as FactLocation, F as Finding, a as FindingFix, f as FindingReplaceClassTokenFix, g as FindingReplaceComponentFix, h as FindingReplaceImportFix, i as FindingReplacePropValueFix, j as FindingReplaceStyleValueFix, k as Fix, G as GovernanceVerdict, l as GovernanceVerdictMetadata, S as SuppressionDirective, V as ValidatorResult, n as Violation, o as agentErrorEnvelopeSchema, T as agentFindingSchema, p as agentFormatSchema, q as agentIntegritySchema, r as agentOutputSchema, U as agentPlanSchema, t as factEvidenceSchema, u as factLocationSchema, v as findingFixSchema, w as findingReplaceClassTokenFixSchema, x as findingReplaceComponentFixSchema, y as findingReplaceImportFixSchema, z as findingReplacePropValueFixSchema, B as findingReplaceStyleValueFixSchema, C as findingSchema, D as fixSchema, H as governanceVerdictMetadataSchema, J as governanceVerdictSchema, K as normalizeFinding, L as normalizeSeverity, M as normalizeViolation, N as suppressionDirectiveSchema, O as validatorResultSchema, P as violationSchema } from '../index-_sxhUNqx.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usefragments/core",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "license": "MIT",
5
5
  "description": "Core types, schemas, and runtime API for Fragments component definitions",
6
6
  "author": "Conan McNicholl",
@@ -2575,7 +2575,6 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
2575
2575
  maxIterations: number;
2576
2576
  scoreDelta: number;
2577
2577
  };
2578
- status?: undefined;
2579
2578
  suppressions?: {
2580
2579
  reason: string;
2581
2580
  scope: "file" | "line" | "block";
@@ -2589,6 +2588,7 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
2589
2588
  exitCode: 0 | 1;
2590
2589
  gatingFindingCount: number;
2591
2590
  } | undefined;
2591
+ status?: undefined;
2592
2592
  findings?: {
2593
2593
  message: string;
2594
2594
  ruleId: string;
@@ -2719,7 +2719,6 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
2719
2719
  maxIterations: number;
2720
2720
  scoreDelta: number;
2721
2721
  };
2722
- status?: undefined;
2723
2722
  suppressions?: {
2724
2723
  reason: string;
2725
2724
  code?: string | undefined;
@@ -2733,6 +2732,7 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
2733
2732
  exitCode: 0 | 1;
2734
2733
  gatingFindingCount: number;
2735
2734
  } | undefined;
2735
+ status?: undefined;
2736
2736
  findings?: {
2737
2737
  message: string;
2738
2738
  ruleId: string;
@@ -3327,9 +3327,9 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
3327
3327
  reasons: string[];
3328
3328
  }>;
3329
3329
  }, "strip", z.ZodTypeAny, {
3330
- status: "indeterminate";
3331
3330
  schemaVersion: "typestyle.agent.v2";
3332
3331
  summary: string;
3332
+ status: "indeterminate";
3333
3333
  passed: false;
3334
3334
  reasons: ["zero_rules_loaded"];
3335
3335
  integrity: {
@@ -3471,9 +3471,9 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
3471
3471
  inputsHash?: string | undefined;
3472
3472
  } | undefined;
3473
3473
  }, {
3474
- status: "indeterminate";
3475
3474
  schemaVersion: "typestyle.agent.v2";
3476
3475
  summary: string;
3476
+ status: "indeterminate";
3477
3477
  passed: false;
3478
3478
  reasons: ["zero_rules_loaded"];
3479
3479
  integrity: {
@@ -4135,7 +4135,6 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
4135
4135
  gatingFindingCount: number;
4136
4136
  }>;
4137
4137
  }, "strip", z.ZodTypeAny, {
4138
- status: "indeterminate";
4139
4138
  schemaVersion: "typestyle.agent.v2";
4140
4139
  summary: string;
4141
4140
  verdict: {
@@ -4143,6 +4142,7 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
4143
4142
  exitCode: 0;
4144
4143
  gatingFindingCount: number;
4145
4144
  };
4145
+ status: "indeterminate";
4146
4146
  passed: true;
4147
4147
  reasons: ["zero_rules_loaded"];
4148
4148
  integrity: {
@@ -4279,7 +4279,6 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
4279
4279
  }[] | undefined;
4280
4280
  score?: undefined;
4281
4281
  }, {
4282
- status: "indeterminate";
4283
4282
  schemaVersion: "typestyle.agent.v2";
4284
4283
  summary: string;
4285
4284
  verdict: {
@@ -4287,6 +4286,7 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
4287
4286
  exitCode: 0;
4288
4287
  gatingFindingCount: number;
4289
4288
  };
4289
+ status: "indeterminate";
4290
4290
  passed: true;
4291
4291
  reasons: ["zero_rules_loaded"];
4292
4292
  integrity: {
@@ -5126,7 +5126,6 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5126
5126
  maxIterations: number;
5127
5127
  scoreDelta: number;
5128
5128
  };
5129
- status?: undefined;
5130
5129
  suppressions?: {
5131
5130
  reason: string;
5132
5131
  scope: "file" | "line" | "block";
@@ -5140,6 +5139,7 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5140
5139
  exitCode: 0 | 1;
5141
5140
  gatingFindingCount: number;
5142
5141
  } | undefined;
5142
+ status?: undefined;
5143
5143
  findings?: {
5144
5144
  message: string;
5145
5145
  ruleId: string;
@@ -5270,7 +5270,6 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5270
5270
  maxIterations: number;
5271
5271
  scoreDelta: number;
5272
5272
  };
5273
- status?: undefined;
5274
5273
  suppressions?: {
5275
5274
  reason: string;
5276
5275
  code?: string | undefined;
@@ -5284,6 +5283,7 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5284
5283
  exitCode: 0 | 1;
5285
5284
  gatingFindingCount: number;
5286
5285
  } | undefined;
5286
+ status?: undefined;
5287
5287
  findings?: {
5288
5288
  message: string;
5289
5289
  ruleId: string;
@@ -5878,9 +5878,9 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5878
5878
  reasons: string[];
5879
5879
  }>;
5880
5880
  }, "strip", z.ZodTypeAny, {
5881
- status: "indeterminate";
5882
5881
  schemaVersion: "typestyle.agent.v2";
5883
5882
  summary: string;
5883
+ status: "indeterminate";
5884
5884
  passed: false;
5885
5885
  reasons: ["zero_rules_loaded"];
5886
5886
  integrity: {
@@ -6022,9 +6022,9 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6022
6022
  inputsHash?: string | undefined;
6023
6023
  } | undefined;
6024
6024
  }, {
6025
- status: "indeterminate";
6026
6025
  schemaVersion: "typestyle.agent.v2";
6027
6026
  summary: string;
6027
+ status: "indeterminate";
6028
6028
  passed: false;
6029
6029
  reasons: ["zero_rules_loaded"];
6030
6030
  integrity: {
@@ -6686,7 +6686,6 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6686
6686
  gatingFindingCount: number;
6687
6687
  }>;
6688
6688
  }, "strip", z.ZodTypeAny, {
6689
- status: "indeterminate";
6690
6689
  schemaVersion: "typestyle.agent.v2";
6691
6690
  summary: string;
6692
6691
  verdict: {
@@ -6694,6 +6693,7 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6694
6693
  exitCode: 0;
6695
6694
  gatingFindingCount: number;
6696
6695
  };
6696
+ status: "indeterminate";
6697
6697
  passed: true;
6698
6698
  reasons: ["zero_rules_loaded"];
6699
6699
  integrity: {
@@ -6830,7 +6830,6 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6830
6830
  }[] | undefined;
6831
6831
  score?: undefined;
6832
6832
  }, {
6833
- status: "indeterminate";
6834
6833
  schemaVersion: "typestyle.agent.v2";
6835
6834
  summary: string;
6836
6835
  verdict: {
@@ -6838,6 +6837,7 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6838
6837
  exitCode: 0;
6839
6838
  gatingFindingCount: number;
6840
6839
  };
6840
+ status: "indeterminate";
6841
6841
  passed: true;
6842
6842
  reasons: ["zero_rules_loaded"];
6843
6843
  integrity: {