@vibe-validate/config 0.10.2 → 0.11.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/define-config.d.ts +1 -12
- package/dist/define-config.d.ts.map +1 -1
- package/dist/define-config.js +1 -35
- 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 +56 -160
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +12 -52
- package/package.json +4 -5
- package/vibe-validate.schema.json +6 -62
- 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;
|
|
@@ -333,14 +293,14 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
333
293
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
334
294
|
/** Custom pre-commit command (default: 'npx vibe-validate pre-commit') */
|
|
335
295
|
command: z.ZodDefault<z.ZodString>;
|
|
336
|
-
}, "
|
|
296
|
+
}, "strict", z.ZodTypeAny, {
|
|
337
297
|
command: string;
|
|
338
298
|
enabled: boolean;
|
|
339
299
|
}, {
|
|
340
300
|
command?: string | undefined;
|
|
341
301
|
enabled?: boolean | undefined;
|
|
342
302
|
}>>>;
|
|
343
|
-
}, "
|
|
303
|
+
}, "strict", z.ZodTypeAny, {
|
|
344
304
|
preCommit: {
|
|
345
305
|
command: string;
|
|
346
306
|
enabled: boolean;
|
|
@@ -366,14 +326,14 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
366
326
|
name: z.ZodString;
|
|
367
327
|
/** Execute steps in parallel (default: false) */
|
|
368
328
|
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
329
|
/** Steps to execute in this phase */
|
|
372
330
|
steps: z.ZodArray<z.ZodObject<{
|
|
373
331
|
/** Human-readable step name (e.g., "TypeScript type checking") */
|
|
374
332
|
name: z.ZodString;
|
|
375
333
|
/** Command to execute (e.g., "npm run typecheck") */
|
|
376
334
|
command: z.ZodString;
|
|
335
|
+
/** Optional: Description of what this step does (for documentation) */
|
|
336
|
+
description: z.ZodOptional<z.ZodString>;
|
|
377
337
|
/** Optional: Custom timeout in milliseconds (default: inherited from phase) */
|
|
378
338
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
379
339
|
/** Optional: Continue on failure (default: false) */
|
|
@@ -382,9 +342,10 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
382
342
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
383
343
|
/** Optional: Working directory for this step (default: project root) */
|
|
384
344
|
cwd: z.ZodOptional<z.ZodString>;
|
|
385
|
-
}, "
|
|
345
|
+
}, "strict", z.ZodTypeAny, {
|
|
386
346
|
name: string;
|
|
387
347
|
command: string;
|
|
348
|
+
description?: string | undefined;
|
|
388
349
|
timeout?: number | undefined;
|
|
389
350
|
continueOnError?: boolean | undefined;
|
|
390
351
|
env?: Record<string, string> | undefined;
|
|
@@ -392,6 +353,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
392
353
|
}, {
|
|
393
354
|
name: string;
|
|
394
355
|
command: string;
|
|
356
|
+
description?: string | undefined;
|
|
395
357
|
timeout?: number | undefined;
|
|
396
358
|
continueOnError?: boolean | undefined;
|
|
397
359
|
env?: Record<string, string> | undefined;
|
|
@@ -401,25 +363,26 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
401
363
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
402
364
|
/** Optional: Fail fast - stop on first error (default: true) */
|
|
403
365
|
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
404
|
-
}, "
|
|
366
|
+
}, "strict", z.ZodTypeAny, {
|
|
405
367
|
name: string;
|
|
406
368
|
timeout: number;
|
|
407
369
|
parallel: boolean;
|
|
408
370
|
steps: {
|
|
409
371
|
name: string;
|
|
410
372
|
command: string;
|
|
373
|
+
description?: string | undefined;
|
|
411
374
|
timeout?: number | undefined;
|
|
412
375
|
continueOnError?: boolean | undefined;
|
|
413
376
|
env?: Record<string, string> | undefined;
|
|
414
377
|
cwd?: string | undefined;
|
|
415
378
|
}[];
|
|
416
379
|
failFast: boolean;
|
|
417
|
-
dependsOn?: string[] | undefined;
|
|
418
380
|
}, {
|
|
419
381
|
name: string;
|
|
420
382
|
steps: {
|
|
421
383
|
name: string;
|
|
422
384
|
command: string;
|
|
385
|
+
description?: string | undefined;
|
|
423
386
|
timeout?: number | undefined;
|
|
424
387
|
continueOnError?: boolean | undefined;
|
|
425
388
|
env?: Record<string, string> | undefined;
|
|
@@ -427,27 +390,12 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
427
390
|
}[];
|
|
428
391
|
timeout?: number | undefined;
|
|
429
392
|
parallel?: boolean | undefined;
|
|
430
|
-
dependsOn?: string[] | undefined;
|
|
431
393
|
failFast?: boolean | undefined;
|
|
432
394
|
}>, "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, {
|
|
395
|
+
/** Optional: Fail fast - stop all validation on first phase failure (default: true) */
|
|
396
|
+
failFast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
397
|
+
}, "strict", z.ZodTypeAny, {
|
|
398
|
+
failFast: boolean;
|
|
451
399
|
phases: {
|
|
452
400
|
name: string;
|
|
453
401
|
timeout: number;
|
|
@@ -455,25 +403,21 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
455
403
|
steps: {
|
|
456
404
|
name: string;
|
|
457
405
|
command: string;
|
|
406
|
+
description?: string | undefined;
|
|
458
407
|
timeout?: number | undefined;
|
|
459
408
|
continueOnError?: boolean | undefined;
|
|
460
409
|
env?: Record<string, string> | undefined;
|
|
461
410
|
cwd?: string | undefined;
|
|
462
411
|
}[];
|
|
463
412
|
failFast: boolean;
|
|
464
|
-
dependsOn?: string[] | undefined;
|
|
465
413
|
}[];
|
|
466
|
-
caching: {
|
|
467
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
468
|
-
enabled: boolean;
|
|
469
|
-
statePath: string;
|
|
470
|
-
};
|
|
471
414
|
}, {
|
|
472
415
|
phases: {
|
|
473
416
|
name: string;
|
|
474
417
|
steps: {
|
|
475
418
|
name: string;
|
|
476
419
|
command: string;
|
|
420
|
+
description?: string | undefined;
|
|
477
421
|
timeout?: number | undefined;
|
|
478
422
|
continueOnError?: boolean | undefined;
|
|
479
423
|
env?: Record<string, string> | undefined;
|
|
@@ -481,14 +425,9 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
481
425
|
}[];
|
|
482
426
|
timeout?: number | undefined;
|
|
483
427
|
parallel?: boolean | undefined;
|
|
484
|
-
dependsOn?: string[] | undefined;
|
|
485
428
|
failFast?: boolean | undefined;
|
|
486
429
|
}[];
|
|
487
|
-
|
|
488
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
489
|
-
enabled?: boolean | undefined;
|
|
490
|
-
statePath?: string | undefined;
|
|
491
|
-
} | undefined;
|
|
430
|
+
failFast?: boolean | undefined;
|
|
492
431
|
}>;
|
|
493
432
|
/** Git integration configuration */
|
|
494
433
|
git: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
@@ -500,7 +439,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
500
439
|
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
501
440
|
/** Warn if branch is behind remote (default: true) */
|
|
502
441
|
warnIfBehind: z.ZodDefault<z.ZodBoolean>;
|
|
503
|
-
}, "
|
|
442
|
+
}, "strict", z.ZodTypeAny, {
|
|
504
443
|
mainBranch: string;
|
|
505
444
|
remoteOrigin: string;
|
|
506
445
|
autoSync: boolean;
|
|
@@ -511,23 +450,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
511
450
|
autoSync?: boolean | undefined;
|
|
512
451
|
warnIfBehind?: boolean | undefined;
|
|
513
452
|
}>>>;
|
|
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
453
|
/** CI/CD configuration (for GitHub Actions workflow generation) */
|
|
532
454
|
ci: z.ZodOptional<z.ZodObject<{
|
|
533
455
|
/** Node.js versions to test in CI (default: ['20', '22']) */
|
|
@@ -538,7 +460,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
538
460
|
failFast: z.ZodOptional<z.ZodBoolean>;
|
|
539
461
|
/** Enable coverage reporting (default: false) */
|
|
540
462
|
coverage: z.ZodOptional<z.ZodBoolean>;
|
|
541
|
-
}, "
|
|
463
|
+
}, "strict", z.ZodTypeAny, {
|
|
542
464
|
failFast?: boolean | undefined;
|
|
543
465
|
nodeVersions?: string[] | undefined;
|
|
544
466
|
os?: string[] | undefined;
|
|
@@ -557,14 +479,14 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
557
479
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
558
480
|
/** Custom pre-commit command (default: 'npx vibe-validate pre-commit') */
|
|
559
481
|
command: z.ZodDefault<z.ZodString>;
|
|
560
|
-
}, "
|
|
482
|
+
}, "strict", z.ZodTypeAny, {
|
|
561
483
|
command: string;
|
|
562
484
|
enabled: boolean;
|
|
563
485
|
}, {
|
|
564
486
|
command?: string | undefined;
|
|
565
487
|
enabled?: boolean | undefined;
|
|
566
488
|
}>>>;
|
|
567
|
-
}, "
|
|
489
|
+
}, "strict", z.ZodTypeAny, {
|
|
568
490
|
preCommit: {
|
|
569
491
|
command: string;
|
|
570
492
|
enabled: boolean;
|
|
@@ -575,12 +497,9 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
575
497
|
enabled?: boolean | undefined;
|
|
576
498
|
} | undefined;
|
|
577
499
|
}>>>;
|
|
578
|
-
|
|
579
|
-
preset: z.ZodOptional<z.ZodString>;
|
|
580
|
-
/** Optional: Extend another config file */
|
|
581
|
-
extends: z.ZodOptional<z.ZodString>;
|
|
582
|
-
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
}, "strict", z.ZodTypeAny, {
|
|
583
501
|
validation: {
|
|
502
|
+
failFast: boolean;
|
|
584
503
|
phases: {
|
|
585
504
|
name: string;
|
|
586
505
|
timeout: number;
|
|
@@ -588,19 +507,14 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
588
507
|
steps: {
|
|
589
508
|
name: string;
|
|
590
509
|
command: string;
|
|
510
|
+
description?: string | undefined;
|
|
591
511
|
timeout?: number | undefined;
|
|
592
512
|
continueOnError?: boolean | undefined;
|
|
593
513
|
env?: Record<string, string> | undefined;
|
|
594
514
|
cwd?: string | undefined;
|
|
595
515
|
}[];
|
|
596
516
|
failFast: boolean;
|
|
597
|
-
dependsOn?: string[] | undefined;
|
|
598
517
|
}[];
|
|
599
|
-
caching: {
|
|
600
|
-
strategy: "git-tree-hash" | "timestamp" | "disabled";
|
|
601
|
-
enabled: boolean;
|
|
602
|
-
statePath: string;
|
|
603
|
-
};
|
|
604
518
|
};
|
|
605
519
|
git: {
|
|
606
520
|
mainBranch: string;
|
|
@@ -608,11 +522,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
608
522
|
autoSync: boolean;
|
|
609
523
|
warnIfBehind: boolean;
|
|
610
524
|
};
|
|
611
|
-
output: {
|
|
612
|
-
showProgress: boolean;
|
|
613
|
-
verbose: boolean;
|
|
614
|
-
noColor: boolean;
|
|
615
|
-
};
|
|
616
525
|
hooks: {
|
|
617
526
|
preCommit: {
|
|
618
527
|
command: string;
|
|
@@ -625,8 +534,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
625
534
|
os?: string[] | undefined;
|
|
626
535
|
coverage?: boolean | undefined;
|
|
627
536
|
} | undefined;
|
|
628
|
-
preset?: string | undefined;
|
|
629
|
-
extends?: string | undefined;
|
|
630
537
|
}, {
|
|
631
538
|
validation: {
|
|
632
539
|
phases: {
|
|
@@ -634,6 +541,7 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
634
541
|
steps: {
|
|
635
542
|
name: string;
|
|
636
543
|
command: string;
|
|
544
|
+
description?: string | undefined;
|
|
637
545
|
timeout?: number | undefined;
|
|
638
546
|
continueOnError?: boolean | undefined;
|
|
639
547
|
env?: Record<string, string> | undefined;
|
|
@@ -641,14 +549,9 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
641
549
|
}[];
|
|
642
550
|
timeout?: number | undefined;
|
|
643
551
|
parallel?: boolean | undefined;
|
|
644
|
-
dependsOn?: string[] | undefined;
|
|
645
552
|
failFast?: boolean | undefined;
|
|
646
553
|
}[];
|
|
647
|
-
|
|
648
|
-
strategy?: "git-tree-hash" | "timestamp" | "disabled" | undefined;
|
|
649
|
-
enabled?: boolean | undefined;
|
|
650
|
-
statePath?: string | undefined;
|
|
651
|
-
} | undefined;
|
|
554
|
+
failFast?: boolean | undefined;
|
|
652
555
|
};
|
|
653
556
|
git?: {
|
|
654
557
|
mainBranch?: string | undefined;
|
|
@@ -656,11 +559,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
656
559
|
autoSync?: boolean | undefined;
|
|
657
560
|
warnIfBehind?: boolean | undefined;
|
|
658
561
|
} | undefined;
|
|
659
|
-
output?: {
|
|
660
|
-
showProgress?: boolean | undefined;
|
|
661
|
-
verbose?: boolean | undefined;
|
|
662
|
-
noColor?: boolean | undefined;
|
|
663
|
-
} | undefined;
|
|
664
562
|
ci?: {
|
|
665
563
|
failFast?: boolean | undefined;
|
|
666
564
|
nodeVersions?: string[] | undefined;
|
|
@@ -673,8 +571,6 @@ export declare const VibeValidateConfigSchema: z.ZodObject<{
|
|
|
673
571
|
enabled?: boolean | undefined;
|
|
674
572
|
} | undefined;
|
|
675
573
|
} | undefined;
|
|
676
|
-
preset?: string | undefined;
|
|
677
|
-
extends?: string | undefined;
|
|
678
574
|
}>;
|
|
679
575
|
export type VibeValidateConfig = z.infer<typeof VibeValidateConfigSchema>;
|
|
680
576
|
/**
|
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,+EAA+E;;IAG/E,qDAAqD;;IAGrD,oDAAoD;;IAGpD,wEAAwE
|
|
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;;;;;;;;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