workflow-agent-cli 2.2.1 → 2.3.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.
@@ -1,437 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const DEFAULT_RESERVED_SCOPE_NAMES: string[];
4
- declare function validateScopeName(name: string, reservedNames?: string[]): {
5
- valid: boolean;
6
- error?: string;
7
- suggestion?: string;
8
- };
9
- declare const BranchTypeSchema: z.ZodEnum<["feature", "bugfix", "hotfix", "chore", "refactor", "docs", "test", "release"]>;
10
- declare const ConventionalTypeSchema: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "perf", "style", "ci", "build", "revert"]>;
11
- declare const ScopeSchema: z.ZodObject<{
12
- name: z.ZodString;
13
- description: z.ZodString;
14
- allowedTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "perf", "style", "ci", "build", "revert"]>, "many">>;
15
- mandatoryGuidelines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
- emoji: z.ZodOptional<z.ZodString>;
17
- category: z.ZodOptional<z.ZodEnum<["auth", "features", "infrastructure", "documentation", "testing", "performance", "other"]>>;
18
- }, "strip", z.ZodTypeAny, {
19
- name: string;
20
- description: string;
21
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
22
- mandatoryGuidelines?: string[] | undefined;
23
- emoji?: string | undefined;
24
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
25
- }, {
26
- name: string;
27
- description: string;
28
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
29
- mandatoryGuidelines?: string[] | undefined;
30
- emoji?: string | undefined;
31
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
32
- }>;
33
- declare const WorkflowConfigSchema: z.ZodEffects<z.ZodObject<{
34
- projectName: z.ZodString;
35
- scopes: z.ZodArray<z.ZodObject<{
36
- name: z.ZodString;
37
- description: z.ZodString;
38
- allowedTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "perf", "style", "ci", "build", "revert"]>, "many">>;
39
- mandatoryGuidelines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
40
- emoji: z.ZodOptional<z.ZodString>;
41
- category: z.ZodOptional<z.ZodEnum<["auth", "features", "infrastructure", "documentation", "testing", "performance", "other"]>>;
42
- }, "strip", z.ZodTypeAny, {
43
- name: string;
44
- description: string;
45
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
46
- mandatoryGuidelines?: string[] | undefined;
47
- emoji?: string | undefined;
48
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
49
- }, {
50
- name: string;
51
- description: string;
52
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
53
- mandatoryGuidelines?: string[] | undefined;
54
- emoji?: string | undefined;
55
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
56
- }>, "many">;
57
- branchTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["feature", "bugfix", "hotfix", "chore", "refactor", "docs", "test", "release"]>, "many">>;
58
- conventionalTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "perf", "style", "ci", "build", "revert"]>, "many">>;
59
- enforcement: z.ZodDefault<z.ZodEnum<["strict", "advisory", "learning"]>>;
60
- language: z.ZodDefault<z.ZodString>;
61
- analytics: z.ZodOptional<z.ZodObject<{
62
- enabled: z.ZodDefault<z.ZodBoolean>;
63
- shareAnonymous: z.ZodDefault<z.ZodBoolean>;
64
- }, "strip", z.ZodTypeAny, {
65
- enabled: boolean;
66
- shareAnonymous: boolean;
67
- }, {
68
- enabled?: boolean | undefined;
69
- shareAnonymous?: boolean | undefined;
70
- }>>;
71
- adapter: z.ZodOptional<z.ZodString>;
72
- syncRemote: z.ZodOptional<z.ZodString>;
73
- hooks: z.ZodOptional<z.ZodObject<{
74
- enabled: z.ZodDefault<z.ZodBoolean>;
75
- preCommit: z.ZodDefault<z.ZodArray<z.ZodEnum<["validate-branch", "validate-commit", "check-guidelines", "validate-scopes"]>, "many">>;
76
- commitMsg: z.ZodDefault<z.ZodArray<z.ZodEnum<["validate-branch", "validate-commit", "check-guidelines", "validate-scopes"]>, "many">>;
77
- }, "strip", z.ZodTypeAny, {
78
- enabled: boolean;
79
- preCommit: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
80
- commitMsg: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
81
- }, {
82
- enabled?: boolean | undefined;
83
- preCommit?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
84
- commitMsg?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
85
- }>>;
86
- guidelines: z.ZodOptional<z.ZodObject<{
87
- additionalMandatory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
88
- optionalOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
- }, "strip", z.ZodTypeAny, {
90
- additionalMandatory?: string[] | undefined;
91
- optionalOverrides?: string[] | undefined;
92
- }, {
93
- additionalMandatory?: string[] | undefined;
94
- optionalOverrides?: string[] | undefined;
95
- }>>;
96
- reservedScopeNames: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
97
- ci: z.ZodOptional<z.ZodObject<{
98
- enabled: z.ZodDefault<z.ZodBoolean>;
99
- provider: z.ZodDefault<z.ZodEnum<["github", "gitlab", "bitbucket"]>>;
100
- checks: z.ZodDefault<z.ZodArray<z.ZodEnum<["lint", "typecheck", "format", "test", "build"]>, "many">>;
101
- }, "strip", z.ZodTypeAny, {
102
- enabled: boolean;
103
- provider: "github" | "gitlab" | "bitbucket";
104
- checks: ("build" | "test" | "lint" | "typecheck" | "format")[];
105
- }, {
106
- enabled?: boolean | undefined;
107
- provider?: "github" | "gitlab" | "bitbucket" | undefined;
108
- checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
109
- }>>;
110
- pipeline: z.ZodOptional<z.ZodObject<{
111
- autoHeal: z.ZodDefault<z.ZodBoolean>;
112
- maxRetries: z.ZodDefault<z.ZodNumber>;
113
- backoffMinutes: z.ZodDefault<z.ZodNumber>;
114
- maxBackoffMinutes: z.ZodDefault<z.ZodNumber>;
115
- minConfidence: z.ZodDefault<z.ZodNumber>;
116
- createPullRequest: z.ZodDefault<z.ZodBoolean>;
117
- branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
- excludeWorkflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
- }, "strip", z.ZodTypeAny, {
120
- autoHeal: boolean;
121
- maxRetries: number;
122
- backoffMinutes: number;
123
- maxBackoffMinutes: number;
124
- minConfidence: number;
125
- createPullRequest: boolean;
126
- branches?: string[] | undefined;
127
- excludeWorkflows?: string[] | undefined;
128
- }, {
129
- autoHeal?: boolean | undefined;
130
- maxRetries?: number | undefined;
131
- backoffMinutes?: number | undefined;
132
- maxBackoffMinutes?: number | undefined;
133
- minConfidence?: number | undefined;
134
- createPullRequest?: boolean | undefined;
135
- branches?: string[] | undefined;
136
- excludeWorkflows?: string[] | undefined;
137
- }>>;
138
- visualTesting: z.ZodOptional<z.ZodObject<{
139
- enabled: z.ZodDefault<z.ZodBoolean>;
140
- llmProvider: z.ZodDefault<z.ZodEnum<["anthropic", "openai"]>>;
141
- baselineDir: z.ZodDefault<z.ZodString>;
142
- viewportWidth: z.ZodDefault<z.ZodNumber>;
143
- viewportHeight: z.ZodDefault<z.ZodNumber>;
144
- runOnPullRequest: z.ZodDefault<z.ZodBoolean>;
145
- blockOnDifference: z.ZodDefault<z.ZodBoolean>;
146
- urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
- name: z.ZodString;
148
- url: z.ZodString;
149
- viewportWidth: z.ZodOptional<z.ZodNumber>;
150
- viewportHeight: z.ZodOptional<z.ZodNumber>;
151
- }, "strip", z.ZodTypeAny, {
152
- name: string;
153
- url: string;
154
- viewportWidth?: number | undefined;
155
- viewportHeight?: number | undefined;
156
- }, {
157
- name: string;
158
- url: string;
159
- viewportWidth?: number | undefined;
160
- viewportHeight?: number | undefined;
161
- }>, "many">>;
162
- }, "strip", z.ZodTypeAny, {
163
- enabled: boolean;
164
- llmProvider: "anthropic" | "openai";
165
- baselineDir: string;
166
- viewportWidth: number;
167
- viewportHeight: number;
168
- runOnPullRequest: boolean;
169
- blockOnDifference: boolean;
170
- urls?: {
171
- name: string;
172
- url: string;
173
- viewportWidth?: number | undefined;
174
- viewportHeight?: number | undefined;
175
- }[] | undefined;
176
- }, {
177
- enabled?: boolean | undefined;
178
- llmProvider?: "anthropic" | "openai" | undefined;
179
- baselineDir?: string | undefined;
180
- viewportWidth?: number | undefined;
181
- viewportHeight?: number | undefined;
182
- runOnPullRequest?: boolean | undefined;
183
- blockOnDifference?: boolean | undefined;
184
- urls?: {
185
- name: string;
186
- url: string;
187
- viewportWidth?: number | undefined;
188
- viewportHeight?: number | undefined;
189
- }[] | undefined;
190
- }>>;
191
- }, "strip", z.ZodTypeAny, {
192
- projectName: string;
193
- scopes: {
194
- name: string;
195
- description: string;
196
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
197
- mandatoryGuidelines?: string[] | undefined;
198
- emoji?: string | undefined;
199
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
200
- }[];
201
- enforcement: "strict" | "advisory" | "learning";
202
- language: string;
203
- reservedScopeNames: string[];
204
- ci?: {
205
- enabled: boolean;
206
- provider: "github" | "gitlab" | "bitbucket";
207
- checks: ("build" | "test" | "lint" | "typecheck" | "format")[];
208
- } | undefined;
209
- branchTypes?: ("test" | "docs" | "feature" | "bugfix" | "hotfix" | "chore" | "refactor" | "release")[] | undefined;
210
- conventionalTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
211
- analytics?: {
212
- enabled: boolean;
213
- shareAnonymous: boolean;
214
- } | undefined;
215
- adapter?: string | undefined;
216
- syncRemote?: string | undefined;
217
- hooks?: {
218
- enabled: boolean;
219
- preCommit: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
220
- commitMsg: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
221
- } | undefined;
222
- guidelines?: {
223
- additionalMandatory?: string[] | undefined;
224
- optionalOverrides?: string[] | undefined;
225
- } | undefined;
226
- pipeline?: {
227
- autoHeal: boolean;
228
- maxRetries: number;
229
- backoffMinutes: number;
230
- maxBackoffMinutes: number;
231
- minConfidence: number;
232
- createPullRequest: boolean;
233
- branches?: string[] | undefined;
234
- excludeWorkflows?: string[] | undefined;
235
- } | undefined;
236
- visualTesting?: {
237
- enabled: boolean;
238
- llmProvider: "anthropic" | "openai";
239
- baselineDir: string;
240
- viewportWidth: number;
241
- viewportHeight: number;
242
- runOnPullRequest: boolean;
243
- blockOnDifference: boolean;
244
- urls?: {
245
- name: string;
246
- url: string;
247
- viewportWidth?: number | undefined;
248
- viewportHeight?: number | undefined;
249
- }[] | undefined;
250
- } | undefined;
251
- }, {
252
- projectName: string;
253
- scopes: {
254
- name: string;
255
- description: string;
256
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
257
- mandatoryGuidelines?: string[] | undefined;
258
- emoji?: string | undefined;
259
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
260
- }[];
261
- ci?: {
262
- enabled?: boolean | undefined;
263
- provider?: "github" | "gitlab" | "bitbucket" | undefined;
264
- checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
265
- } | undefined;
266
- branchTypes?: ("test" | "docs" | "feature" | "bugfix" | "hotfix" | "chore" | "refactor" | "release")[] | undefined;
267
- conventionalTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
268
- enforcement?: "strict" | "advisory" | "learning" | undefined;
269
- language?: string | undefined;
270
- analytics?: {
271
- enabled?: boolean | undefined;
272
- shareAnonymous?: boolean | undefined;
273
- } | undefined;
274
- adapter?: string | undefined;
275
- syncRemote?: string | undefined;
276
- hooks?: {
277
- enabled?: boolean | undefined;
278
- preCommit?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
279
- commitMsg?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
280
- } | undefined;
281
- guidelines?: {
282
- additionalMandatory?: string[] | undefined;
283
- optionalOverrides?: string[] | undefined;
284
- } | undefined;
285
- reservedScopeNames?: string[] | undefined;
286
- pipeline?: {
287
- autoHeal?: boolean | undefined;
288
- maxRetries?: number | undefined;
289
- backoffMinutes?: number | undefined;
290
- maxBackoffMinutes?: number | undefined;
291
- minConfidence?: number | undefined;
292
- createPullRequest?: boolean | undefined;
293
- branches?: string[] | undefined;
294
- excludeWorkflows?: string[] | undefined;
295
- } | undefined;
296
- visualTesting?: {
297
- enabled?: boolean | undefined;
298
- llmProvider?: "anthropic" | "openai" | undefined;
299
- baselineDir?: string | undefined;
300
- viewportWidth?: number | undefined;
301
- viewportHeight?: number | undefined;
302
- runOnPullRequest?: boolean | undefined;
303
- blockOnDifference?: boolean | undefined;
304
- urls?: {
305
- name: string;
306
- url: string;
307
- viewportWidth?: number | undefined;
308
- viewportHeight?: number | undefined;
309
- }[] | undefined;
310
- } | undefined;
311
- }>, {
312
- projectName: string;
313
- scopes: {
314
- name: string;
315
- description: string;
316
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
317
- mandatoryGuidelines?: string[] | undefined;
318
- emoji?: string | undefined;
319
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
320
- }[];
321
- enforcement: "strict" | "advisory" | "learning";
322
- language: string;
323
- reservedScopeNames: string[];
324
- ci?: {
325
- enabled: boolean;
326
- provider: "github" | "gitlab" | "bitbucket";
327
- checks: ("build" | "test" | "lint" | "typecheck" | "format")[];
328
- } | undefined;
329
- branchTypes?: ("test" | "docs" | "feature" | "bugfix" | "hotfix" | "chore" | "refactor" | "release")[] | undefined;
330
- conventionalTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
331
- analytics?: {
332
- enabled: boolean;
333
- shareAnonymous: boolean;
334
- } | undefined;
335
- adapter?: string | undefined;
336
- syncRemote?: string | undefined;
337
- hooks?: {
338
- enabled: boolean;
339
- preCommit: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
340
- commitMsg: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
341
- } | undefined;
342
- guidelines?: {
343
- additionalMandatory?: string[] | undefined;
344
- optionalOverrides?: string[] | undefined;
345
- } | undefined;
346
- pipeline?: {
347
- autoHeal: boolean;
348
- maxRetries: number;
349
- backoffMinutes: number;
350
- maxBackoffMinutes: number;
351
- minConfidence: number;
352
- createPullRequest: boolean;
353
- branches?: string[] | undefined;
354
- excludeWorkflows?: string[] | undefined;
355
- } | undefined;
356
- visualTesting?: {
357
- enabled: boolean;
358
- llmProvider: "anthropic" | "openai";
359
- baselineDir: string;
360
- viewportWidth: number;
361
- viewportHeight: number;
362
- runOnPullRequest: boolean;
363
- blockOnDifference: boolean;
364
- urls?: {
365
- name: string;
366
- url: string;
367
- viewportWidth?: number | undefined;
368
- viewportHeight?: number | undefined;
369
- }[] | undefined;
370
- } | undefined;
371
- }, {
372
- projectName: string;
373
- scopes: {
374
- name: string;
375
- description: string;
376
- allowedTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
377
- mandatoryGuidelines?: string[] | undefined;
378
- emoji?: string | undefined;
379
- category?: "documentation" | "testing" | "auth" | "features" | "infrastructure" | "performance" | "other" | undefined;
380
- }[];
381
- ci?: {
382
- enabled?: boolean | undefined;
383
- provider?: "github" | "gitlab" | "bitbucket" | undefined;
384
- checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
385
- } | undefined;
386
- branchTypes?: ("test" | "docs" | "feature" | "bugfix" | "hotfix" | "chore" | "refactor" | "release")[] | undefined;
387
- conventionalTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
388
- enforcement?: "strict" | "advisory" | "learning" | undefined;
389
- language?: string | undefined;
390
- analytics?: {
391
- enabled?: boolean | undefined;
392
- shareAnonymous?: boolean | undefined;
393
- } | undefined;
394
- adapter?: string | undefined;
395
- syncRemote?: string | undefined;
396
- hooks?: {
397
- enabled?: boolean | undefined;
398
- preCommit?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
399
- commitMsg?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
400
- } | undefined;
401
- guidelines?: {
402
- additionalMandatory?: string[] | undefined;
403
- optionalOverrides?: string[] | undefined;
404
- } | undefined;
405
- reservedScopeNames?: string[] | undefined;
406
- pipeline?: {
407
- autoHeal?: boolean | undefined;
408
- maxRetries?: number | undefined;
409
- backoffMinutes?: number | undefined;
410
- maxBackoffMinutes?: number | undefined;
411
- minConfidence?: number | undefined;
412
- createPullRequest?: boolean | undefined;
413
- branches?: string[] | undefined;
414
- excludeWorkflows?: string[] | undefined;
415
- } | undefined;
416
- visualTesting?: {
417
- enabled?: boolean | undefined;
418
- llmProvider?: "anthropic" | "openai" | undefined;
419
- baselineDir?: string | undefined;
420
- viewportWidth?: number | undefined;
421
- viewportHeight?: number | undefined;
422
- runOnPullRequest?: boolean | undefined;
423
- blockOnDifference?: boolean | undefined;
424
- urls?: {
425
- name: string;
426
- url: string;
427
- viewportWidth?: number | undefined;
428
- viewportHeight?: number | undefined;
429
- }[] | undefined;
430
- } | undefined;
431
- }>;
432
- type Scope = z.infer<typeof ScopeSchema>;
433
- type BranchType = z.infer<typeof BranchTypeSchema>;
434
- type ConventionalType = z.infer<typeof ConventionalTypeSchema>;
435
- type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>;
436
-
437
- export { type BranchType as B, type ConventionalType as C, DEFAULT_RESERVED_SCOPE_NAMES as D, type Scope as S, type WorkflowConfig as W, WorkflowConfigSchema as a, validateScopeName as v };