@usefragments/core 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{chunk-CBSNXFOD.js → chunk-HXGE3O2F.js} +39 -1
  2. package/dist/chunk-HXGE3O2F.js.map +1 -0
  3. package/dist/codes/index.d.ts +2 -2
  4. package/dist/codes/index.js +1 -1
  5. package/dist/compiled-types/index.d.ts +1 -1
  6. package/dist/generate/index.d.ts +1 -1
  7. package/dist/{governance-DxdJV6lx.d.ts → governance-BLsyk56o.d.ts} +11 -0
  8. package/dist/index.d.ts +359 -139
  9. package/dist/index.js +349 -95
  10. package/dist/index.js.map +1 -1
  11. package/dist/react-types.d.ts +1 -1
  12. package/dist/registry.d.ts +18 -18
  13. package/dist/schemas/index.d.ts +1 -1
  14. package/dist/test-utils.d.ts +1 -1
  15. package/package.json +1 -1
  16. package/src/codes/codes.ts +9 -0
  17. package/src/conform.ts +5 -0
  18. package/src/facts/builders.ts +45 -1
  19. package/src/facts/facts.test.ts +30 -0
  20. package/src/facts/index.ts +6 -0
  21. package/src/facts/types.ts +61 -1
  22. package/src/governance.test.ts +26 -0
  23. package/src/identity/classify.test.ts +185 -0
  24. package/src/identity/classify.ts +257 -0
  25. package/src/identity/component-key.test.ts +32 -0
  26. package/src/identity/component-key.ts +35 -0
  27. package/src/identity/usage.ts +39 -0
  28. package/src/index.ts +25 -0
  29. package/src/rules/components-prefer-library.test.ts +48 -0
  30. package/src/rules/components-prefer-library.ts +16 -0
  31. package/src/rules/components-shadow-component.test.ts +145 -0
  32. package/src/rules/components-shadow-component.ts +81 -0
  33. package/src/rules/fix-availability.ts +1 -0
  34. package/src/rules/index.ts +7 -0
  35. package/src/rules/taxonomy.test.ts +16 -1
  36. package/src/rules/tiers.ts +7 -5
  37. package/src/schema.ts +15 -0
  38. package/src/types.ts +12 -0
  39. package/dist/chunk-CBSNXFOD.js.map +0 -1
  40. package/dist/{index-0lmh0Lbo.d.ts → index-h_yWj15D.d.ts} +8 -8
@@ -2534,12 +2534,12 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
2534
2534
  maxIterations: number;
2535
2535
  scoreDelta: number;
2536
2536
  };
2537
+ status?: undefined;
2537
2538
  verdict?: {
2538
2539
  reasons: string[];
2539
2540
  exitCode: 0 | 1;
2540
2541
  gatingFindingCount: number;
2541
2542
  } | undefined;
2542
- status?: undefined;
2543
2543
  findings?: {
2544
2544
  message: string;
2545
2545
  location: {
@@ -2676,12 +2676,12 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
2676
2676
  maxIterations: number;
2677
2677
  scoreDelta: number;
2678
2678
  };
2679
+ status?: undefined;
2679
2680
  verdict?: {
2680
2681
  reasons: string[];
2681
2682
  exitCode: 0 | 1;
2682
2683
  gatingFindingCount: number;
2683
2684
  } | undefined;
2684
- status?: undefined;
2685
2685
  findings?: {
2686
2686
  message: string;
2687
2687
  location: {
@@ -4064,12 +4064,12 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
4064
4064
  gatingFindingCount: number;
4065
4065
  }>;
4066
4066
  }, "strip", z.ZodTypeAny, {
4067
+ status: "indeterminate";
4067
4068
  verdict: {
4068
4069
  reasons: string[];
4069
4070
  exitCode: 0;
4070
4071
  gatingFindingCount: number;
4071
4072
  };
4072
- status: "indeterminate";
4073
4073
  passed: true;
4074
4074
  reasons: ["zero_rules_loaded"];
4075
4075
  schemaVersion: "typestyle.agent.v2";
@@ -4206,12 +4206,12 @@ declare const agentFormatSchema: z.ZodUnion<[z.ZodObject<{
4206
4206
  expiresOn?: string | undefined;
4207
4207
  }[] | undefined;
4208
4208
  }, {
4209
+ status: "indeterminate";
4209
4210
  verdict: {
4210
4211
  reasons: string[];
4211
4212
  exitCode: 0;
4212
4213
  gatingFindingCount: number;
4213
4214
  };
4214
- status: "indeterminate";
4215
4215
  passed: true;
4216
4216
  reasons: ["zero_rules_loaded"];
4217
4217
  schemaVersion: "typestyle.agent.v2";
@@ -5035,12 +5035,12 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5035
5035
  maxIterations: number;
5036
5036
  scoreDelta: number;
5037
5037
  };
5038
+ status?: undefined;
5038
5039
  verdict?: {
5039
5040
  reasons: string[];
5040
5041
  exitCode: 0 | 1;
5041
5042
  gatingFindingCount: number;
5042
5043
  } | undefined;
5043
- status?: undefined;
5044
5044
  findings?: {
5045
5045
  message: string;
5046
5046
  location: {
@@ -5177,12 +5177,12 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5177
5177
  maxIterations: number;
5178
5178
  scoreDelta: number;
5179
5179
  };
5180
+ status?: undefined;
5180
5181
  verdict?: {
5181
5182
  reasons: string[];
5182
5183
  exitCode: 0 | 1;
5183
5184
  gatingFindingCount: number;
5184
5185
  } | undefined;
5185
- status?: undefined;
5186
5186
  findings?: {
5187
5187
  message: string;
5188
5188
  location: {
@@ -6565,12 +6565,12 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6565
6565
  gatingFindingCount: number;
6566
6566
  }>;
6567
6567
  }, "strip", z.ZodTypeAny, {
6568
+ status: "indeterminate";
6568
6569
  verdict: {
6569
6570
  reasons: string[];
6570
6571
  exitCode: 0;
6571
6572
  gatingFindingCount: number;
6572
6573
  };
6573
- status: "indeterminate";
6574
6574
  passed: true;
6575
6575
  reasons: ["zero_rules_loaded"];
6576
6576
  schemaVersion: "typestyle.agent.v2";
@@ -6707,12 +6707,12 @@ declare const agentOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6707
6707
  expiresOn?: string | undefined;
6708
6708
  }[] | undefined;
6709
6709
  }, {
6710
+ status: "indeterminate";
6710
6711
  verdict: {
6711
6712
  reasons: string[];
6712
6713
  exitCode: 0;
6713
6714
  gatingFindingCount: number;
6714
6715
  };
6715
- status: "indeterminate";
6716
6716
  passed: true;
6717
6717
  reasons: ["zero_rules_loaded"];
6718
6718
  schemaVersion: "typestyle.agent.v2";