@vibe-validate/config 0.14.2 → 0.15.0-rc.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/README.md +13 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +4 -3
- package/dist/schema-export.d.ts +1 -1
- package/dist/schema-export.js +1 -1
- package/dist/schema.d.ts +14 -8
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +12 -11
- package/dist/scripts/generate-schema.d.ts +1 -1
- package/dist/scripts/generate-schema.js +3 -3
- package/package.json +3 -3
- /package/{vibe-validate.schema.json → config.schema.json} +0 -0
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ All templates: https://github.com/jdutton/vibe-validate/tree/main/packages/cli/c
|
|
|
37
37
|
|
|
38
38
|
<!-- config:example -->
|
|
39
39
|
```yaml
|
|
40
|
-
$schema: https://
|
|
40
|
+
$schema: https://unpkg.com/@vibe-validate/config/config.schema.json
|
|
41
41
|
|
|
42
42
|
# Git settings
|
|
43
43
|
git:
|
|
@@ -74,15 +74,26 @@ The `$schema` property enables IDE autocomplete and validation:
|
|
|
74
74
|
|
|
75
75
|
<!-- config:partial -->
|
|
76
76
|
```yaml
|
|
77
|
-
|
|
77
|
+
# Version-pinned (recommended for production)
|
|
78
|
+
$schema: https://unpkg.com/@vibe-validate/config@0.15.0/config.schema.json
|
|
79
|
+
|
|
80
|
+
# Latest version (auto-updates to newest)
|
|
81
|
+
$schema: https://unpkg.com/@vibe-validate/config/config.schema.json
|
|
78
82
|
```
|
|
79
83
|
|
|
84
|
+
**Versioning Strategy:**
|
|
85
|
+
- **Version-pinned URLs** - Match your installed package version, stable API
|
|
86
|
+
- **Latest URLs** - Auto-update to newest schema, good for docs/prototyping
|
|
87
|
+
- **`vibe-validate init`** - Automatically generates version-pinned URLs
|
|
88
|
+
|
|
80
89
|
This gives you:
|
|
81
90
|
- ✅ Autocomplete for all configuration properties
|
|
82
91
|
- ✅ Inline validation errors
|
|
83
92
|
- ✅ Hover documentation for each field
|
|
84
93
|
- ✅ Type checking for YAML configs
|
|
85
94
|
|
|
95
|
+
See [Schema Documentation](../../docs/schemas.md) for complete details on versioning and all published schemas.
|
|
96
|
+
|
|
86
97
|
## API (Programmatic Usage)
|
|
87
98
|
|
|
88
99
|
### `loadConfig(cwd?)`
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @example Basic YAML configuration
|
|
8
8
|
* ```yaml
|
|
9
9
|
* # vibe-validate.config.yaml
|
|
10
|
-
* $schema: https://raw.githubusercontent.com/jdutton/vibe-validate/main/packages/config/
|
|
10
|
+
* $schema: https://raw.githubusercontent.com/jdutton/vibe-validate/main/packages/config/config.schema.json
|
|
11
11
|
*
|
|
12
12
|
* git:
|
|
13
13
|
* mainBranch: main
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @example Basic YAML configuration
|
|
8
8
|
* ```yaml
|
|
9
9
|
* # vibe-validate.config.yaml
|
|
10
|
-
* $schema: https://raw.githubusercontent.com/jdutton/vibe-validate/main/packages/config/
|
|
10
|
+
* $schema: https://raw.githubusercontent.com/jdutton/vibe-validate/main/packages/config/config.schema.json
|
|
11
11
|
*
|
|
12
12
|
* git:
|
|
13
13
|
* mainBranch: main
|
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC,CAqB7B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC,CAqB7B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CASzC"}
|
package/dist/loader.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Loads and resolves vibe-validate configuration from YAML files.
|
|
5
5
|
*/
|
|
6
|
-
import { resolve, dirname } from 'path';
|
|
7
|
-
import { readFileSync } from 'fs';
|
|
6
|
+
import { resolve, dirname } from 'node:path';
|
|
7
|
+
import { readFileSync } from 'node:fs';
|
|
8
8
|
import { parse as parseYaml } from 'yaml';
|
|
9
9
|
import { validateConfig } from './schema.js';
|
|
10
10
|
/**
|
|
@@ -49,7 +49,8 @@ export async function findAndLoadConfig(cwd = process.cwd()) {
|
|
|
49
49
|
try {
|
|
50
50
|
return await loadConfigFromFile(configPath);
|
|
51
51
|
}
|
|
52
|
-
catch
|
|
52
|
+
catch {
|
|
53
|
+
// Config file doesn't exist or failed to load - return undefined
|
|
53
54
|
return undefined;
|
|
54
55
|
}
|
|
55
56
|
}
|
package/dist/schema-export.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* This schema can be referenced in YAML files using the $schema property:
|
|
11
11
|
* ```yaml
|
|
12
|
-
* $schema: ./node_modules/@vibe-validate/config/
|
|
12
|
+
* $schema: ./node_modules/@vibe-validate/config/config.schema.json
|
|
13
13
|
* validation:
|
|
14
14
|
* phases: []
|
|
15
15
|
* ```
|
package/dist/schema-export.js
CHANGED
|
@@ -11,7 +11,7 @@ import { VibeValidateConfigSchema } from './schema.js';
|
|
|
11
11
|
*
|
|
12
12
|
* This schema can be referenced in YAML files using the $schema property:
|
|
13
13
|
* ```yaml
|
|
14
|
-
* $schema: ./node_modules/@vibe-validate/config/
|
|
14
|
+
* $schema: ./node_modules/@vibe-validate/config/config.schema.json
|
|
15
15
|
* validation:
|
|
16
16
|
* phases: []
|
|
17
17
|
* ```
|
package/dist/schema.d.ts
CHANGED
|
@@ -234,7 +234,7 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
234
234
|
}[];
|
|
235
235
|
failFast?: boolean | undefined;
|
|
236
236
|
}>;
|
|
237
|
-
export type ValidationConfig = z.
|
|
237
|
+
export type ValidationConfig = z.input<typeof ValidationConfigSchema>;
|
|
238
238
|
/**
|
|
239
239
|
* Git Config Schema
|
|
240
240
|
*/
|
|
@@ -749,7 +749,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
749
749
|
} | undefined;
|
|
750
750
|
developerFeedback?: boolean | undefined;
|
|
751
751
|
}>;
|
|
752
|
-
export type VibeValidateConfig = z.
|
|
752
|
+
export type VibeValidateConfig = z.input<typeof VibeValidateConfigSchema>;
|
|
753
753
|
/**
|
|
754
754
|
* Validate configuration object
|
|
755
755
|
*
|
|
@@ -759,14 +759,20 @@ export type VibeValidateConfig = z.infer<typeof VibeValidateConfigSchema>;
|
|
|
759
759
|
*/
|
|
760
760
|
export declare function validateConfig(config: unknown): VibeValidateConfig;
|
|
761
761
|
/**
|
|
762
|
-
*
|
|
762
|
+
* Safe validation function for VibeValidateConfig
|
|
763
763
|
*
|
|
764
|
-
*
|
|
765
|
-
*
|
|
764
|
+
* NOTE: This duplicates the pattern from @vibe-validate/core's createSafeValidator.
|
|
765
|
+
* We can't import from core here due to circular dependency (core → config).
|
|
766
|
+
* This is an acceptable trade-off for a foundational package.
|
|
767
|
+
*
|
|
768
|
+
* @param config - Configuration data to validate
|
|
769
|
+
* @returns Validation result with success/error information
|
|
766
770
|
*/
|
|
767
771
|
export declare function safeValidateConfig(config: unknown): {
|
|
768
|
-
success:
|
|
769
|
-
data
|
|
770
|
-
|
|
772
|
+
success: true;
|
|
773
|
+
data: VibeValidateConfig;
|
|
774
|
+
} | {
|
|
775
|
+
success: false;
|
|
776
|
+
errors: string[];
|
|
771
777
|
};
|
|
772
778
|
//# sourceMappingURL=schema.d.ts.map
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAC/B,kEAAkE;;IAGlE,qDAAqD;;IAGrD,uEAAuE;;IAGvE,+EAA+E;;IAG/E,qDAAqD;;IAGrD,oDAAoD;;IAGpD,wEAAwE;;;;;;;;;;;;;;;;;;EAE/D,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAChC,wDAAwD;;IAGxD,iDAAiD;;IAGjD,qCAAqC;;QArCrC,kEAAkE;;QAGlE,qDAAqD;;QAGrD,uEAAuE;;QAGvE,+EAA+E;;QAG/E,qDAAqD;;QAGrD,oDAAoD;;QAGpD,wEAAwE;;;;;;;;;;;;;;;;;;;IAsBxE,qFAAqF;;IAGrF,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEvD,CAAC;AAGZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEM,CAAC;AAGZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB,CAElE;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAC9C;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC3C;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAcvC"}
|
package/dist/schema.js
CHANGED
|
@@ -90,10 +90,7 @@ export const SecretScanningSchema = z.object({
|
|
|
90
90
|
scanCommand: z.string().min(1, 'scanCommand cannot be empty').optional(),
|
|
91
91
|
}).strict().refine((data) => {
|
|
92
92
|
// If enabled is true, scanCommand must be provided
|
|
93
|
-
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
return true;
|
|
93
|
+
return !data.enabled || !!data.scanCommand;
|
|
97
94
|
}, {
|
|
98
95
|
message: 'scanCommand is required when secret scanning is enabled',
|
|
99
96
|
path: ['scanCommand'],
|
|
@@ -187,20 +184,24 @@ export function validateConfig(config) {
|
|
|
187
184
|
return VibeValidateConfigSchema.parse(config);
|
|
188
185
|
}
|
|
189
186
|
/**
|
|
190
|
-
*
|
|
187
|
+
* Safe validation function for VibeValidateConfig
|
|
191
188
|
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
189
|
+
* NOTE: This duplicates the pattern from @vibe-validate/core's createSafeValidator.
|
|
190
|
+
* We can't import from core here due to circular dependency (core → config).
|
|
191
|
+
* This is an acceptable trade-off for a foundational package.
|
|
192
|
+
*
|
|
193
|
+
* @param config - Configuration data to validate
|
|
194
|
+
* @returns Validation result with success/error information
|
|
194
195
|
*/
|
|
195
196
|
export function safeValidateConfig(config) {
|
|
196
197
|
const result = VibeValidateConfigSchema.safeParse(config);
|
|
197
198
|
if (result.success) {
|
|
198
199
|
return { success: true, data: result.data };
|
|
199
200
|
}
|
|
200
|
-
//
|
|
201
|
-
const errors = result.error.
|
|
202
|
-
const path = err.path.
|
|
203
|
-
return `${path}: ${err.message}
|
|
201
|
+
// Extract error messages with full path
|
|
202
|
+
const errors = result.error.errors.map(err => {
|
|
203
|
+
const path = err.path.join('.');
|
|
204
|
+
return path ? `${path}: ${err.message}` : err.message;
|
|
204
205
|
});
|
|
205
206
|
return { success: false, errors };
|
|
206
207
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generate JSON Schema File
|
|
4
4
|
*
|
|
5
|
-
* Creates
|
|
5
|
+
* Creates config.schema.json in the package root for use in YAML configs.
|
|
6
6
|
* This script runs during the build process.
|
|
7
7
|
*/
|
|
8
8
|
import { writeFileSync } from 'node:fs';
|
|
@@ -12,7 +12,7 @@ import { vibeValidateJsonSchema } from '../schema-export.js';
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = dirname(__filename);
|
|
14
14
|
const packageRoot = join(__dirname, '..', '..');
|
|
15
|
-
const schemaPath = join(packageRoot, '
|
|
15
|
+
const schemaPath = join(packageRoot, 'config.schema.json');
|
|
16
16
|
// Generate and write schema file
|
|
17
17
|
writeFileSync(schemaPath, JSON.stringify(vibeValidateJsonSchema, null, 2), 'utf-8');
|
|
18
|
-
console.log('✓ Generated
|
|
18
|
+
console.log('✓ Generated config.schema.json');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibe-validate/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-rc.1",
|
|
4
4
|
"description": "Configuration system for vibe-validate with TypeScript-first design and config templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
16
|
-
"
|
|
16
|
+
"config.schema.json"
|
|
17
17
|
],
|
|
18
18
|
"keywords": [
|
|
19
19
|
"validation",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc && node --import tsx ./src/scripts/generate-schema.ts",
|
|
49
|
-
"clean": "rm -rf dist
|
|
49
|
+
"clean": "rm -rf dist config.schema.json"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
File without changes
|