@vibe-validate/config 0.10.3 → 0.12.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/README.md +100 -166
- package/dist/index.d.ts +17 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -37
- package/dist/loader.d.ts +6 -46
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +30 -133
- package/dist/schema.d.ts +168 -160
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +41 -51
- package/package.json +9 -10
- package/vibe-validate.schema.json +23 -61
- package/LICENSE +0 -21
- package/dist/define-config.d.ts +0 -49
- package/dist/define-config.d.ts.map +0 -1
- package/dist/define-config.js +0 -72
- package/dist/presets/index.d.ts +0 -27
- package/dist/presets/index.d.ts.map +0 -1
- package/dist/presets/index.js +0 -36
- package/dist/presets/typescript-library.d.ts +0 -9
- package/dist/presets/typescript-library.d.ts.map +0 -1
- package/dist/presets/typescript-library.js +0 -67
- package/dist/presets/typescript-nodejs.d.ts +0 -9
- package/dist/presets/typescript-nodejs.d.ts.map +0 -1
- package/dist/presets/typescript-nodejs.js +0 -64
- package/dist/presets/typescript-react.d.ts +0 -9
- package/dist/presets/typescript-react.d.ts.map +0 -1
- package/dist/presets/typescript-react.js +0 -73
package/dist/schema.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare const ValidationStepSchema: z.ZodObject<{
|
|
|
15
15
|
name: z.ZodString;
|
|
16
16
|
/** Command to execute (e.g., "npm run typecheck") */
|
|
17
17
|
command: z.ZodString;
|
|
18
|
+
/** Optional: Description of what this step does (for documentation) */
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
20
|
/** Optional: Custom timeout in milliseconds (default: inherited from phase) */
|
|
19
21
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
20
22
|
/** Optional: Continue on failure (default: false) */
|
|
@@ -23,9 +25,10 @@ export declare const ValidationStepSchema: z.ZodObject<{
|
|
|
23
25
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
26
|
/** Optional: Working directory for this step (default: project root) */
|
|
25
27
|
cwd: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, "
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
29
|
name: string;
|
|
28
30
|
command: string;
|
|
31
|
+
description?: string | undefined;
|
|
29
32
|
timeout?: number | undefined;
|
|
30
33
|
continueOnError?: boolean | undefined;
|
|
31
34
|
env?: Record<string, string> | undefined;
|
|
@@ -33,6 +36,7 @@ export declare const ValidationStepSchema: z.ZodObject<{
|
|
|
33
36
|
}, {
|
|
34
37
|
name: string;
|
|
35
38
|
command: string;
|
|
39
|
+
description?: string | undefined;
|
|
36
40
|
timeout?: number | undefined;
|
|
37
41
|
continueOnError?: boolean | undefined;
|
|
38
42
|
env?: Record<string, string> | undefined;
|
|
@@ -50,14 +54,14 @@ export declare const ValidationPhaseSchema: z.ZodObject<{
|
|
|
50
54
|
name: z.ZodString;
|
|
51
55
|
/** Execute steps in parallel (default: false) */
|
|
52
56
|
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
53
|
-
/** Optional: Phase names this phase depends on */
|
|
54
|
-
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
55
57
|
/** Steps to execute in this phase */
|
|
56
58
|
steps: z.ZodArray<z.ZodObject<{
|
|
57
59
|
/** Human-readable step name (e.g., "TypeScript type checking") */
|
|
58
60
|
name: z.ZodString;
|
|
59
61
|
/** Command to execute (e.g., "npm run typecheck") */
|
|
60
62
|
command: z.ZodString;
|
|
63
|
+
/** Optional: Description of what this step does (for documentation) */
|
|
64
|
+
description: z.ZodOptional<z.ZodString>;
|
|
61
65
|
/** Optional: Custom timeout in milliseconds (default: inherited from phase) */
|
|
62
66
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
63
67
|
/** Optional: Continue on failure (default: false) */
|
|
@@ -66,9 +70,10 @@ export declare const ValidationPhaseSchema: z.ZodObject<{
|
|
|
66
70
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
71
|
/** Optional: Working directory for this step (default: project root) */
|
|
68
72
|
cwd: z.ZodOptional<z.ZodString>;
|
|
69
|
-
}, "
|
|
73
|
+
}, "strict", z.ZodTypeAny, {
|
|
70
74
|
name: string;
|
|
71
75
|
command: string;
|
|
76
|
+
description?: string | undefined;
|
|
72
77
|
timeout?: number | undefined;
|
|
73
78
|
continueOnError?: boolean | undefined;
|
|
74
79
|
env?: Record<string, string> | undefined;
|
|
@@ -76,6 +81,7 @@ export declare const ValidationPhaseSchema: z.ZodObject<{
|
|
|
76
81
|
}, {
|
|
77
82
|
name: string;
|
|
78
83
|
command: string;
|
|
84
|
+
description?: string | undefined;
|
|
79
85
|
timeout?: number | undefined;
|
|
80
86
|
continueOnError?: boolean | undefined;
|
|
81
87
|
env?: Record<string, string> | undefined;
|
|
@@ -85,25 +91,26 @@ export declare const ValidationPhaseSchema: z.ZodObject<{
|
|
|
85
91
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
86
92
|
/** Optional: Fail fast - stop on first error (default: true) */
|
|
87
93
|
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
88
|
-
}, "
|
|
94
|
+
}, "strict", z.ZodTypeAny, {
|
|
89
95
|
name: string;
|
|
90
96
|
timeout: number;
|
|
91
97
|
parallel: boolean;
|
|
92
98
|
steps: {
|
|
93
99
|
name: string;
|
|
94
100
|
command: string;
|
|
101
|
+
description?: string | undefined;
|
|
95
102
|
timeout?: number | undefined;
|
|
96
103
|
continueOnError?: boolean | undefined;
|
|
97
104
|
env?: Record<string, string> | undefined;
|
|
98
105
|
cwd?: string | undefined;
|
|
99
106
|
}[];
|
|
100
107
|
failFast: boolean;
|
|
101
|
-
dependsOn?: string[] | undefined;
|
|
102
108
|
}, {
|
|
103
109
|
name: string;
|
|
104
110
|
steps: {
|
|
105
111
|
name: string;
|
|
106
112
|
command: string;
|
|
113
|
+
description?: string | undefined;
|
|
107
114
|
timeout?: number | undefined;
|
|
108
115
|
continueOnError?: boolean | undefined;
|
|
109
116
|
env?: Record<string, string> | undefined;
|
|
@@ -111,15 +118,9 @@ export declare const ValidationPhaseSchema: z.ZodObject<{
|
|
|
111
118
|
}[];
|
|
112
119
|
timeout?: number | undefined;
|
|
113
120
|
parallel?: boolean | undefined;
|
|
114
|
-
dependsOn?: string[] | undefined;
|
|
115
121
|
failFast?: boolean | undefined;
|
|
116
122
|
}>;
|
|
117
123
|
export type ValidationPhase = z.input<typeof ValidationPhaseSchema>;
|
|
118
|
-
/**
|
|
119
|
-
* Caching Strategy Schema
|
|
120
|
-
*/
|
|
121
|
-
export declare const CachingStrategySchema: z.ZodEnum<["git-tree-hash", "timestamp", "disabled"]>;
|
|
122
|
-
export type CachingStrategy = z.infer<typeof CachingStrategySchema>;
|
|
123
124
|
/**
|
|
124
125
|
* Validation Config Schema
|
|
125
126
|
*/
|
|
@@ -130,14 +131,14 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
130
131
|
name: z.ZodString;
|
|
131
132
|
/** Execute steps in parallel (default: false) */
|
|
132
133
|
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
133
|
-
/** Optional: Phase names this phase depends on */
|
|
134
|
-
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
135
134
|
/** Steps to execute in this phase */
|
|
136
135
|
steps: z.ZodArray<z.ZodObject<{
|
|
137
136
|
/** Human-readable step name (e.g., "TypeScript type checking") */
|
|
138
137
|
name: z.ZodString;
|
|
139
138
|
/** Command to execute (e.g., "npm run typecheck") */
|
|
140
139
|
command: z.ZodString;
|
|
140
|
+
/** Optional: Description of what this step does (for documentation) */
|
|
141
|
+
description: z.ZodOptional<z.ZodString>;
|
|
141
142
|
/** Optional: Custom timeout in milliseconds (default: inherited from phase) */
|
|
142
143
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
143
144
|
/** Optional: Continue on failure (default: false) */
|
|
@@ -146,9 +147,10 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
146
147
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
147
148
|
/** Optional: Working directory for this step (default: project root) */
|
|
148
149
|
cwd: z.ZodOptional<z.ZodString>;
|
|
149
|
-
}, "
|
|
150
|
+
}, "strict", z.ZodTypeAny, {
|
|
150
151
|
name: string;
|
|
151
152
|
command: string;
|
|
153
|
+
description?: string | undefined;
|
|
152
154
|
timeout?: number | undefined;
|
|
153
155
|
continueOnError?: boolean | undefined;
|
|
154
156
|
env?: Record<string, string> | undefined;
|
|
@@ -156,6 +158,7 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
156
158
|
}, {
|
|
157
159
|
name: string;
|
|
158
160
|
command: string;
|
|
161
|
+
description?: string | undefined;
|
|
159
162
|
timeout?: number | undefined;
|
|
160
163
|
continueOnError?: boolean | undefined;
|
|
161
164
|
env?: Record<string, string> | undefined;
|
|
@@ -165,25 +168,26 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
165
168
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
166
169
|
/** Optional: Fail fast - stop on first error (default: true) */
|
|
167
170
|
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
168
|
-
}, "
|
|
171
|
+
}, "strict", z.ZodTypeAny, {
|
|
169
172
|
name: string;
|
|
170
173
|
timeout: number;
|
|
171
174
|
parallel: boolean;
|
|
172
175
|
steps: {
|
|
173
176
|
name: string;
|
|
174
177
|
command: string;
|
|
178
|
+
description?: string | undefined;
|
|
175
179
|
timeout?: number | undefined;
|
|
176
180
|
continueOnError?: boolean | undefined;
|
|
177
181
|
env?: Record<string, string> | undefined;
|
|
178
182
|
cwd?: string | undefined;
|
|
179
183
|
}[];
|
|
180
184
|
failFast: boolean;
|
|
181
|
-
dependsOn?: string[] | undefined;
|
|
182
185
|
}, {
|
|
183
186
|
name: string;
|
|
184
187
|
steps: {
|
|
185
188
|
name: string;
|
|
186
189
|
command: string;
|
|
190
|
+
description?: string | undefined;
|
|
187
191
|
timeout?: number | undefined;
|
|
188
192
|
continueOnError?: boolean | undefined;
|
|
189
193
|
env?: Record<string, string> | undefined;
|
|
@@ -191,27 +195,12 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
191
195
|
}[];
|
|
192
196
|
timeout?: number | undefined;
|
|
193
197
|
parallel?: boolean | undefined;
|
|
194
|
-
dependsOn?: string[] | undefined;
|
|
195
198
|
failFast?: boolean | undefined;
|
|
196
199
|
}>, "many">;
|
|
197
|
-
/**
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
/** Enable caching (default: true) */
|
|
202
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
-
/** State file path (default: .vibe-validate-state.yaml) */
|
|
204
|
-
statePath: z.ZodDefault<z.ZodString>;
|
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
207
|
-
enabled: boolean;
|
|
208
|
-
statePath: string;
|
|
209
|
-
}, {
|
|
210
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
211
|
-
enabled?: boolean | undefined;
|
|
212
|
-
statePath?: string | undefined;
|
|
213
|
-
}>>>;
|
|
214
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
/** Optional: Fail fast - stop all validation on first phase failure (default: true) */
|
|
201
|
+
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
202
|
+
}, "strict", z.ZodTypeAny, {
|
|
203
|
+
failFast: boolean;
|
|
215
204
|
phases: {
|
|
216
205
|
name: string;
|
|
217
206
|
timeout: number;
|
|
@@ -219,25 +208,21 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
219
208
|
steps: {
|
|
220
209
|
name: string;
|
|
221
210
|
command: string;
|
|
211
|
+
description?: string | undefined;
|
|
222
212
|
timeout?: number | undefined;
|
|
223
213
|
continueOnError?: boolean | undefined;
|
|
224
214
|
env?: Record<string, string> | undefined;
|
|
225
215
|
cwd?: string | undefined;
|
|
226
216
|
}[];
|
|
227
217
|
failFast: boolean;
|
|
228
|
-
dependsOn?: string[] | undefined;
|
|
229
218
|
}[];
|
|
230
|
-
caching: {
|
|
231
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
232
|
-
enabled: boolean;
|
|
233
|
-
statePath: string;
|
|
234
|
-
};
|
|
235
219
|
}, {
|
|
236
220
|
phases: {
|
|
237
221
|
name: string;
|
|
238
222
|
steps: {
|
|
239
223
|
name: string;
|
|
240
224
|
command: string;
|
|
225
|
+
description?: string | undefined;
|
|
241
226
|
timeout?: number | undefined;
|
|
242
227
|
continueOnError?: boolean | undefined;
|
|
243
228
|
env?: Record<string, string> | undefined;
|
|
@@ -245,14 +230,9 @@ export declare const ValidationConfigSchema: z.ZodObject<{
|
|
|
245
230
|
}[];
|
|
246
231
|
timeout?: number | undefined;
|
|
247
232
|
parallel?: boolean | undefined;
|
|
248
|
-
dependsOn?: string[] | undefined;
|
|
249
233
|
failFast?: boolean | undefined;
|
|
250
234
|
}[];
|
|
251
|
-
|
|
252
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
253
|
-
enabled?: boolean | undefined;
|
|
254
|
-
statePath?: string | undefined;
|
|
255
|
-
} | undefined;
|
|
235
|
+
failFast?: boolean | undefined;
|
|
256
236
|
}>;
|
|
257
237
|
export type ValidationConfig = z.infer<typeof ValidationConfigSchema>;
|
|
258
238
|
/**
|
|
@@ -267,7 +247,7 @@ export declare const GitConfigSchema: z.ZodObject<{
|
|
|
267
247
|
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
268
248
|
/** Warn if branch is behind remote (default: true) */
|
|
269
249
|
warnIfBehind: z.ZodDefault<z.ZodBoolean>;
|
|
270
|
-
}, "
|
|
250
|
+
}, "strict", z.ZodTypeAny, {
|
|
271
251
|
mainBranch: string;
|
|
272
252
|
remoteOrigin: string;
|
|
273
253
|
autoSync: boolean;
|
|
@@ -279,26 +259,6 @@ export declare const GitConfigSchema: z.ZodObject<{
|
|
|
279
259
|
warnIfBehind?: boolean | undefined;
|
|
280
260
|
}>;
|
|
281
261
|
export type GitConfig = z.infer<typeof GitConfigSchema>;
|
|
282
|
-
/**
|
|
283
|
-
* Output Config Schema
|
|
284
|
-
*/
|
|
285
|
-
export declare const OutputConfigSchema: z.ZodObject<{
|
|
286
|
-
/** Show progress indicators (default: true) */
|
|
287
|
-
showProgress: z.ZodDefault<z.ZodBoolean>;
|
|
288
|
-
/** Verbose logging (default: false) */
|
|
289
|
-
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
290
|
-
/** Suppress ANSI colors (default: false) */
|
|
291
|
-
noColor: z.ZodDefault<z.ZodBoolean>;
|
|
292
|
-
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
showProgress: boolean;
|
|
294
|
-
verbose: boolean;
|
|
295
|
-
noColor: boolean;
|
|
296
|
-
}, {
|
|
297
|
-
showProgress?: boolean | undefined;
|
|
298
|
-
verbose?: boolean | undefined;
|
|
299
|
-
noColor?: boolean | undefined;
|
|
300
|
-
}>;
|
|
301
|
-
export type OutputConfig = z.infer<typeof OutputConfigSchema>;
|
|
302
262
|
/**
|
|
303
263
|
* CI/CD Configuration Schema
|
|
304
264
|
*/
|
|
@@ -311,7 +271,7 @@ export declare const CIConfigSchema: z.ZodObject<{
|
|
|
311
271
|
failFast: z.ZodOptional<z.ZodBoolean>;
|
|
312
272
|
/** Enable coverage reporting (default: false) */
|
|
313
273
|
coverage: z.ZodOptional<z.ZodBoolean>;
|
|
314
|
-
}, "
|
|
274
|
+
}, "strict", z.ZodTypeAny, {
|
|
315
275
|
failFast?: boolean | undefined;
|
|
316
276
|
nodeVersions?: string[] | undefined;
|
|
317
277
|
os?: string[] | undefined;
|
|
@@ -323,6 +283,28 @@ export declare const CIConfigSchema: z.ZodObject<{
|
|
|
323
283
|
coverage?: boolean | undefined;
|
|
324
284
|
}>;
|
|
325
285
|
export type CIConfig = z.infer<typeof CIConfigSchema>;
|
|
286
|
+
/**
|
|
287
|
+
* Secret Scanning Configuration Schema
|
|
288
|
+
*/
|
|
289
|
+
export declare const SecretScanningSchema: z.ZodEffects<z.ZodObject<{
|
|
290
|
+
/** Enable secret scanning in pre-commit (default: true) */
|
|
291
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
292
|
+
/** Command to run for secret scanning (required when enabled) */
|
|
293
|
+
scanCommand: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, "strict", z.ZodTypeAny, {
|
|
295
|
+
enabled: boolean;
|
|
296
|
+
scanCommand?: string | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
enabled?: boolean | undefined;
|
|
299
|
+
scanCommand?: string | undefined;
|
|
300
|
+
}>, {
|
|
301
|
+
enabled: boolean;
|
|
302
|
+
scanCommand?: string | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
enabled?: boolean | undefined;
|
|
305
|
+
scanCommand?: string | undefined;
|
|
306
|
+
}>;
|
|
307
|
+
export type SecretScanningConfig = z.infer<typeof SecretScanningSchema>;
|
|
326
308
|
/**
|
|
327
309
|
* Hooks Configuration Schema
|
|
328
310
|
*/
|
|
@@ -333,22 +315,57 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
333
315
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
334
316
|
/** Custom pre-commit command (default: 'npx vibe-validate pre-commit') */
|
|
335
317
|
command: z.ZodDefault<z.ZodString>;
|
|
336
|
-
|
|
318
|
+
/** Secret scanning configuration (optional) */
|
|
319
|
+
secretScanning: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
320
|
+
/** Enable secret scanning in pre-commit (default: true) */
|
|
321
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
322
|
+
/** Command to run for secret scanning (required when enabled) */
|
|
323
|
+
scanCommand: z.ZodOptional<z.ZodString>;
|
|
324
|
+
}, "strict", z.ZodTypeAny, {
|
|
325
|
+
enabled: boolean;
|
|
326
|
+
scanCommand?: string | undefined;
|
|
327
|
+
}, {
|
|
328
|
+
enabled?: boolean | undefined;
|
|
329
|
+
scanCommand?: string | undefined;
|
|
330
|
+
}>, {
|
|
331
|
+
enabled: boolean;
|
|
332
|
+
scanCommand?: string | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
enabled?: boolean | undefined;
|
|
335
|
+
scanCommand?: string | undefined;
|
|
336
|
+
}>>;
|
|
337
|
+
}, "strict", z.ZodTypeAny, {
|
|
337
338
|
command: string;
|
|
338
339
|
enabled: boolean;
|
|
340
|
+
secretScanning?: {
|
|
341
|
+
enabled: boolean;
|
|
342
|
+
scanCommand?: string | undefined;
|
|
343
|
+
} | undefined;
|
|
339
344
|
}, {
|
|
340
345
|
command?: string | undefined;
|
|
341
346
|
enabled?: boolean | undefined;
|
|
347
|
+
secretScanning?: {
|
|
348
|
+
enabled?: boolean | undefined;
|
|
349
|
+
scanCommand?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
342
351
|
}>>>;
|
|
343
|
-
}, "
|
|
352
|
+
}, "strict", z.ZodTypeAny, {
|
|
344
353
|
preCommit: {
|
|
345
354
|
command: string;
|
|
346
355
|
enabled: boolean;
|
|
356
|
+
secretScanning?: {
|
|
357
|
+
enabled: boolean;
|
|
358
|
+
scanCommand?: string | undefined;
|
|
359
|
+
} | undefined;
|
|
347
360
|
};
|
|
348
361
|
}, {
|
|
349
362
|
preCommit?: {
|
|
350
363
|
command?: string | undefined;
|
|
351
364
|
enabled?: boolean | undefined;
|
|
365
|
+
secretScanning?: {
|
|
366
|
+
enabled?: boolean | undefined;
|
|
367
|
+
scanCommand?: string | undefined;
|
|
368
|
+
} | undefined;
|
|
352
369
|
} | undefined;
|
|
353
370
|
}>;
|
|
354
371
|
export type HooksConfig = z.infer<typeof HooksConfigSchema>;
|
|
@@ -366,14 +383,14 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
366
383
|
name: z.ZodString;
|
|
367
384
|
/** Execute steps in parallel (default: false) */
|
|
368
385
|
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
369
|
-
/** Optional: Phase names this phase depends on */
|
|
370
|
-
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
371
386
|
/** Steps to execute in this phase */
|
|
372
387
|
steps: z.ZodArray<z.ZodObject<{
|
|
373
388
|
/** Human-readable step name (e.g., "TypeScript type checking") */
|
|
374
389
|
name: z.ZodString;
|
|
375
390
|
/** Command to execute (e.g., "npm run typecheck") */
|
|
376
391
|
command: z.ZodString;
|
|
392
|
+
/** Optional: Description of what this step does (for documentation) */
|
|
393
|
+
description: z.ZodOptional<z.ZodString>;
|
|
377
394
|
/** Optional: Custom timeout in milliseconds (default: inherited from phase) */
|
|
378
395
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
379
396
|
/** Optional: Continue on failure (default: false) */
|
|
@@ -382,9 +399,10 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
382
399
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
383
400
|
/** Optional: Working directory for this step (default: project root) */
|
|
384
401
|
cwd: z.ZodOptional<z.ZodString>;
|
|
385
|
-
}, "
|
|
402
|
+
}, "strict", z.ZodTypeAny, {
|
|
386
403
|
name: string;
|
|
387
404
|
command: string;
|
|
405
|
+
description?: string | undefined;
|
|
388
406
|
timeout?: number | undefined;
|
|
389
407
|
continueOnError?: boolean | undefined;
|
|
390
408
|
env?: Record<string, string> | undefined;
|
|
@@ -392,6 +410,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
392
410
|
}, {
|
|
393
411
|
name: string;
|
|
394
412
|
command: string;
|
|
413
|
+
description?: string | undefined;
|
|
395
414
|
timeout?: number | undefined;
|
|
396
415
|
continueOnError?: boolean | undefined;
|
|
397
416
|
env?: Record<string, string> | undefined;
|
|
@@ -401,25 +420,26 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
401
420
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
402
421
|
/** Optional: Fail fast - stop on first error (default: true) */
|
|
403
422
|
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
404
|
-
}, "
|
|
423
|
+
}, "strict", z.ZodTypeAny, {
|
|
405
424
|
name: string;
|
|
406
425
|
timeout: number;
|
|
407
426
|
parallel: boolean;
|
|
408
427
|
steps: {
|
|
409
428
|
name: string;
|
|
410
429
|
command: string;
|
|
430
|
+
description?: string | undefined;
|
|
411
431
|
timeout?: number | undefined;
|
|
412
432
|
continueOnError?: boolean | undefined;
|
|
413
433
|
env?: Record<string, string> | undefined;
|
|
414
434
|
cwd?: string | undefined;
|
|
415
435
|
}[];
|
|
416
436
|
failFast: boolean;
|
|
417
|
-
dependsOn?: string[] | undefined;
|
|
418
437
|
}, {
|
|
419
438
|
name: string;
|
|
420
439
|
steps: {
|
|
421
440
|
name: string;
|
|
422
441
|
command: string;
|
|
442
|
+
description?: string | undefined;
|
|
423
443
|
timeout?: number | undefined;
|
|
424
444
|
continueOnError?: boolean | undefined;
|
|
425
445
|
env?: Record<string, string> | undefined;
|
|
@@ -427,27 +447,12 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
427
447
|
}[];
|
|
428
448
|
timeout?: number | undefined;
|
|
429
449
|
parallel?: boolean | undefined;
|
|
430
|
-
dependsOn?: string[] | undefined;
|
|
431
450
|
failFast?: boolean | undefined;
|
|
432
451
|
}>, "many">;
|
|
433
|
-
/**
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
/** Enable caching (default: true) */
|
|
438
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
439
|
-
/** State file path (default: .vibe-validate-state.yaml) */
|
|
440
|
-
statePath: z.ZodDefault<z.ZodString>;
|
|
441
|
-
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
443
|
-
enabled: boolean;
|
|
444
|
-
statePath: string;
|
|
445
|
-
}, {
|
|
446
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
447
|
-
enabled?: boolean | undefined;
|
|
448
|
-
statePath?: string | undefined;
|
|
449
|
-
}>>>;
|
|
450
|
-
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
/** Optional: Fail fast - stop all validation on first phase failure (default: true) */
|
|
453
|
+
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
454
|
+
}, "strict", z.ZodTypeAny, {
|
|
455
|
+
failFast: boolean;
|
|
451
456
|
phases: {
|
|
452
457
|
name: string;
|
|
453
458
|
timeout: number;
|
|
@@ -455,25 +460,21 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
455
460
|
steps: {
|
|
456
461
|
name: string;
|
|
457
462
|
command: string;
|
|
463
|
+
description?: string | undefined;
|
|
458
464
|
timeout?: number | undefined;
|
|
459
465
|
continueOnError?: boolean | undefined;
|
|
460
466
|
env?: Record<string, string> | undefined;
|
|
461
467
|
cwd?: string | undefined;
|
|
462
468
|
}[];
|
|
463
469
|
failFast: boolean;
|
|
464
|
-
dependsOn?: string[] | undefined;
|
|
465
470
|
}[];
|
|
466
|
-
caching: {
|
|
467
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
468
|
-
enabled: boolean;
|
|
469
|
-
statePath: string;
|
|
470
|
-
};
|
|
471
471
|
}, {
|
|
472
472
|
phases: {
|
|
473
473
|
name: string;
|
|
474
474
|
steps: {
|
|
475
475
|
name: string;
|
|
476
476
|
command: string;
|
|
477
|
+
description?: string | undefined;
|
|
477
478
|
timeout?: number | undefined;
|
|
478
479
|
continueOnError?: boolean | undefined;
|
|
479
480
|
env?: Record<string, string> | undefined;
|
|
@@ -481,14 +482,9 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
481
482
|
}[];
|
|
482
483
|
timeout?: number | undefined;
|
|
483
484
|
parallel?: boolean | undefined;
|
|
484
|
-
dependsOn?: string[] | undefined;
|
|
485
485
|
failFast?: boolean | undefined;
|
|
486
486
|
}[];
|
|
487
|
-
|
|
488
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
489
|
-
enabled?: boolean | undefined;
|
|
490
|
-
statePath?: string | undefined;
|
|
491
|
-
} | undefined;
|
|
487
|
+
failFast?: boolean | undefined;
|
|
492
488
|
}>;
|
|
493
489
|
/** Git integration configuration */
|
|
494
490
|
git: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
@@ -500,7 +496,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
500
496
|
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
501
497
|
/** Warn if branch is behind remote (default: true) */
|
|
502
498
|
warnIfBehind: z.ZodDefault<z.ZodBoolean>;
|
|
503
|
-
}, "
|
|
499
|
+
}, "strict", z.ZodTypeAny, {
|
|
504
500
|
mainBranch: string;
|
|
505
501
|
remoteOrigin: string;
|
|
506
502
|
autoSync: boolean;
|
|
@@ -511,23 +507,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
511
507
|
autoSync?: boolean | undefined;
|
|
512
508
|
warnIfBehind?: boolean | undefined;
|
|
513
509
|
}>>>;
|
|
514
|
-
/** Output formatting configuration */
|
|
515
|
-
output: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
516
|
-
/** Show progress indicators (default: true) */
|
|
517
|
-
showProgress: z.ZodDefault<z.ZodBoolean>;
|
|
518
|
-
/** Verbose logging (default: false) */
|
|
519
|
-
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
520
|
-
/** Suppress ANSI colors (default: false) */
|
|
521
|
-
noColor: z.ZodDefault<z.ZodBoolean>;
|
|
522
|
-
}, "strip", z.ZodTypeAny, {
|
|
523
|
-
showProgress: boolean;
|
|
524
|
-
verbose: boolean;
|
|
525
|
-
noColor: boolean;
|
|
526
|
-
}, {
|
|
527
|
-
showProgress?: boolean | undefined;
|
|
528
|
-
verbose?: boolean | undefined;
|
|
529
|
-
noColor?: boolean | undefined;
|
|
530
|
-
}>>>;
|
|
531
510
|
/** CI/CD configuration (for GitHub Actions workflow generation) */
|
|
532
511
|
ci: z.ZodOptional<z.ZodObject<{
|
|
533
512
|
/** Node.js versions to test in CI (default: ['20', '22']) */
|
|
@@ -538,7 +517,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
538
517
|
failFast: z.ZodOptional<z.ZodBoolean>;
|
|
539
518
|
/** Enable coverage reporting (default: false) */
|
|
540
519
|
coverage: z.ZodOptional<z.ZodBoolean>;
|
|
541
|
-
}, "
|
|
520
|
+
}, "strict", z.ZodTypeAny, {
|
|
542
521
|
failFast?: boolean | undefined;
|
|
543
522
|
nodeVersions?: string[] | undefined;
|
|
544
523
|
os?: string[] | undefined;
|
|
@@ -557,30 +536,72 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
557
536
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
558
537
|
/** Custom pre-commit command (default: 'npx vibe-validate pre-commit') */
|
|
559
538
|
command: z.ZodDefault<z.ZodString>;
|
|
560
|
-
|
|
539
|
+
/** Secret scanning configuration (optional) */
|
|
540
|
+
secretScanning: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
541
|
+
/** Enable secret scanning in pre-commit (default: true) */
|
|
542
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
543
|
+
/** Command to run for secret scanning (required when enabled) */
|
|
544
|
+
scanCommand: z.ZodOptional<z.ZodString>;
|
|
545
|
+
}, "strict", z.ZodTypeAny, {
|
|
546
|
+
enabled: boolean;
|
|
547
|
+
scanCommand?: string | undefined;
|
|
548
|
+
}, {
|
|
549
|
+
enabled?: boolean | undefined;
|
|
550
|
+
scanCommand?: string | undefined;
|
|
551
|
+
}>, {
|
|
552
|
+
enabled: boolean;
|
|
553
|
+
scanCommand?: string | undefined;
|
|
554
|
+
}, {
|
|
555
|
+
enabled?: boolean | undefined;
|
|
556
|
+
scanCommand?: string | undefined;
|
|
557
|
+
}>>;
|
|
558
|
+
}, "strict", z.ZodTypeAny, {
|
|
561
559
|
command: string;
|
|
562
560
|
enabled: boolean;
|
|
561
|
+
secretScanning?: {
|
|
562
|
+
enabled: boolean;
|
|
563
|
+
scanCommand?: string | undefined;
|
|
564
|
+
} | undefined;
|
|
563
565
|
}, {
|
|
564
566
|
command?: string | undefined;
|
|
565
567
|
enabled?: boolean | undefined;
|
|
568
|
+
secretScanning?: {
|
|
569
|
+
enabled?: boolean | undefined;
|
|
570
|
+
scanCommand?: string | undefined;
|
|
571
|
+
} | undefined;
|
|
566
572
|
}>>>;
|
|
567
|
-
}, "
|
|
573
|
+
}, "strict", z.ZodTypeAny, {
|
|
568
574
|
preCommit: {
|
|
569
575
|
command: string;
|
|
570
576
|
enabled: boolean;
|
|
577
|
+
secretScanning?: {
|
|
578
|
+
enabled: boolean;
|
|
579
|
+
scanCommand?: string | undefined;
|
|
580
|
+
} | undefined;
|
|
571
581
|
};
|
|
572
582
|
}, {
|
|
573
583
|
preCommit?: {
|
|
574
584
|
command?: string | undefined;
|
|
575
585
|
enabled?: boolean | undefined;
|
|
586
|
+
secretScanning?: {
|
|
587
|
+
enabled?: boolean | undefined;
|
|
588
|
+
scanCommand?: string | undefined;
|
|
589
|
+
} | undefined;
|
|
576
590
|
} | undefined;
|
|
577
591
|
}>>>;
|
|
578
|
-
/**
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
592
|
+
/**
|
|
593
|
+
* Developer feedback for continuous quality improvement (optional, default: false)
|
|
594
|
+
*
|
|
595
|
+
* When enabled, provides additional alerts about extraction quality failures
|
|
596
|
+
* to help improve extractors through dogfooding. Useful for:
|
|
597
|
+
* - vibe-validate contributors
|
|
598
|
+
* - Projects building custom extractors
|
|
599
|
+
* - Teams wanting to improve validation feedback
|
|
600
|
+
*/
|
|
601
|
+
developerFeedback: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
602
|
+
}, "strict", z.ZodTypeAny, {
|
|
583
603
|
validation: {
|
|
604
|
+
failFast: boolean;
|
|
584
605
|
phases: {
|
|
585
606
|
name: string;
|
|
586
607
|
timeout: number;
|
|
@@ -588,19 +609,14 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
588
609
|
steps: {
|
|
589
610
|
name: string;
|
|
590
611
|
command: string;
|
|
612
|
+
description?: string | undefined;
|
|
591
613
|
timeout?: number | undefined;
|
|
592
614
|
continueOnError?: boolean | undefined;
|
|
593
615
|
env?: Record<string, string> | undefined;
|
|
594
616
|
cwd?: string | undefined;
|
|
595
617
|
}[];
|
|
596
618
|
failFast: boolean;
|
|
597
|
-
dependsOn?: string[] | undefined;
|
|
598
619
|
}[];
|
|
599
|
-
caching: {
|
|
600
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
601
|
-
enabled: boolean;
|
|
602
|
-
statePath: string;
|
|
603
|
-
};
|
|
604
620
|
};
|
|
605
621
|
git: {
|
|
606
622
|
mainBranch: string;
|
|
@@ -608,25 +624,23 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
608
624
|
autoSync: boolean;
|
|
609
625
|
warnIfBehind: boolean;
|
|
610
626
|
};
|
|
611
|
-
output: {
|
|
612
|
-
showProgress: boolean;
|
|
613
|
-
verbose: boolean;
|
|
614
|
-
noColor: boolean;
|
|
615
|
-
};
|
|
616
627
|
hooks: {
|
|
617
628
|
preCommit: {
|
|
618
629
|
command: string;
|
|
619
630
|
enabled: boolean;
|
|
631
|
+
secretScanning?: {
|
|
632
|
+
enabled: boolean;
|
|
633
|
+
scanCommand?: string | undefined;
|
|
634
|
+
} | undefined;
|
|
620
635
|
};
|
|
621
636
|
};
|
|
637
|
+
developerFeedback: boolean;
|
|
622
638
|
ci?: {
|
|
623
639
|
failFast?: boolean | undefined;
|
|
624
640
|
nodeVersions?: string[] | undefined;
|
|
625
641
|
os?: string[] | undefined;
|
|
626
642
|
coverage?: boolean | undefined;
|
|
627
643
|
} | undefined;
|
|
628
|
-
preset?: string | undefined;
|
|
629
|
-
extends?: string | undefined;
|
|
630
644
|
}, {
|
|
631
645
|
validation: {
|
|
632
646
|
phases: {
|
|
@@ -634,6 +648,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
634
648
|
steps: {
|
|
635
649
|
name: string;
|
|
636
650
|
command: string;
|
|
651
|
+
description?: string | undefined;
|
|
637
652
|
timeout?: number | undefined;
|
|
638
653
|
continueOnError?: boolean | undefined;
|
|
639
654
|
env?: Record<string, string> | undefined;
|
|
@@ -641,14 +656,9 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
641
656
|
}[];
|
|
642
657
|
timeout?: number | undefined;
|
|
643
658
|
parallel?: boolean | undefined;
|
|
644
|
-
dependsOn?: string[] | undefined;
|
|
645
659
|
failFast?: boolean | undefined;
|
|
646
660
|
}[];
|
|
647
|
-
|
|
648
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
649
|
-
enabled?: boolean | undefined;
|
|
650
|
-
statePath?: string | undefined;
|
|
651
|
-
} | undefined;
|
|
661
|
+
failFast?: boolean | undefined;
|
|
652
662
|
};
|
|
653
663
|
git?: {
|
|
654
664
|
mainBranch?: string | undefined;
|
|
@@ -656,11 +666,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
656
666
|
autoSync?: boolean | undefined;
|
|
657
667
|
warnIfBehind?: boolean | undefined;
|
|
658
668
|
} | undefined;
|
|
659
|
-
output?: {
|
|
660
|
-
showProgress?: boolean | undefined;
|
|
661
|
-
verbose?: boolean | undefined;
|
|
662
|
-
noColor?: boolean | undefined;
|
|
663
|
-
} | undefined;
|
|
664
669
|
ci?: {
|
|
665
670
|
failFast?: boolean | undefined;
|
|
666
671
|
nodeVersions?: string[] | undefined;
|
|
@@ -671,10 +676,13 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
671
676
|
preCommit?: {
|
|
672
677
|
command?: string | undefined;
|
|
673
678
|
enabled?: boolean | undefined;
|
|
679
|
+
secretScanning?: {
|
|
680
|
+
enabled?: boolean | undefined;
|
|
681
|
+
scanCommand?: string | undefined;
|
|
682
|
+
} | undefined;
|
|
674
683
|
} | undefined;
|
|
675
684
|
} | undefined;
|
|
676
|
-
|
|
677
|
-
extends?: string | undefined;
|
|
685
|
+
developerFeedback?: boolean | undefined;
|
|
678
686
|
}>;
|
|
679
687
|
export type VibeValidateConfig = z.infer<typeof VibeValidateConfigSchema>;
|
|
680
688
|
/**
|