@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.
- package/dist/{chunk-CBSNXFOD.js → chunk-HXGE3O2F.js} +39 -1
- package/dist/chunk-HXGE3O2F.js.map +1 -0
- package/dist/codes/index.d.ts +2 -2
- 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-DxdJV6lx.d.ts → governance-BLsyk56o.d.ts} +11 -0
- package/dist/index.d.ts +359 -139
- package/dist/index.js +349 -95
- package/dist/index.js.map +1 -1
- package/dist/react-types.d.ts +1 -1
- package/dist/registry.d.ts +18 -18
- package/dist/schemas/index.d.ts +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/codes/codes.ts +9 -0
- package/src/conform.ts +5 -0
- package/src/facts/builders.ts +45 -1
- package/src/facts/facts.test.ts +30 -0
- package/src/facts/index.ts +6 -0
- package/src/facts/types.ts +61 -1
- package/src/governance.test.ts +26 -0
- package/src/identity/classify.test.ts +185 -0
- package/src/identity/classify.ts +257 -0
- package/src/identity/component-key.test.ts +32 -0
- package/src/identity/component-key.ts +35 -0
- package/src/identity/usage.ts +39 -0
- package/src/index.ts +25 -0
- package/src/rules/components-prefer-library.test.ts +48 -0
- package/src/rules/components-prefer-library.ts +16 -0
- package/src/rules/components-shadow-component.test.ts +145 -0
- package/src/rules/components-shadow-component.ts +81 -0
- package/src/rules/fix-availability.ts +1 -0
- package/src/rules/index.ts +7 -0
- package/src/rules/taxonomy.test.ts +16 -1
- package/src/rules/tiers.ts +7 -5
- package/src/schema.ts +15 -0
- package/src/types.ts +12 -0
- package/dist/chunk-CBSNXFOD.js.map +0 -1
- 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";
|