workflow-agent-cli 2.2.0 → 2.2.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.
@@ -1,256 +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?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
22
- mandatoryGuidelines?: string[] | undefined;
23
- emoji?: string | undefined;
24
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
25
- }, {
26
- name: string;
27
- description: string;
28
- allowedTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
29
- mandatoryGuidelines?: string[] | undefined;
30
- emoji?: string | undefined;
31
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "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?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
46
- mandatoryGuidelines?: string[] | undefined;
47
- emoji?: string | undefined;
48
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
49
- }, {
50
- name: string;
51
- description: string;
52
- allowedTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
53
- mandatoryGuidelines?: string[] | undefined;
54
- emoji?: string | undefined;
55
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "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: ("test" | "build" | "lint" | "typecheck" | "format")[];
105
- }, {
106
- enabled?: boolean | undefined;
107
- provider?: "github" | "gitlab" | "bitbucket" | undefined;
108
- checks?: ("test" | "build" | "lint" | "typecheck" | "format")[] | undefined;
109
- }>>;
110
- }, "strip", z.ZodTypeAny, {
111
- projectName: string;
112
- scopes: {
113
- name: string;
114
- description: string;
115
- allowedTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
116
- mandatoryGuidelines?: string[] | undefined;
117
- emoji?: string | undefined;
118
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
119
- }[];
120
- enforcement: "strict" | "advisory" | "learning";
121
- language: string;
122
- reservedScopeNames: string[];
123
- ci?: {
124
- enabled: boolean;
125
- provider: "github" | "gitlab" | "bitbucket";
126
- checks: ("test" | "build" | "lint" | "typecheck" | "format")[];
127
- } | undefined;
128
- branchTypes?: ("refactor" | "chore" | "docs" | "test" | "feature" | "bugfix" | "hotfix" | "release")[] | undefined;
129
- conventionalTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
130
- analytics?: {
131
- enabled: boolean;
132
- shareAnonymous: boolean;
133
- } | undefined;
134
- adapter?: string | undefined;
135
- syncRemote?: string | undefined;
136
- hooks?: {
137
- enabled: boolean;
138
- preCommit: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
139
- commitMsg: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
140
- } | undefined;
141
- guidelines?: {
142
- additionalMandatory?: string[] | undefined;
143
- optionalOverrides?: string[] | undefined;
144
- } | undefined;
145
- }, {
146
- projectName: string;
147
- scopes: {
148
- name: string;
149
- description: string;
150
- allowedTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
151
- mandatoryGuidelines?: string[] | undefined;
152
- emoji?: string | undefined;
153
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
154
- }[];
155
- ci?: {
156
- enabled?: boolean | undefined;
157
- provider?: "github" | "gitlab" | "bitbucket" | undefined;
158
- checks?: ("test" | "build" | "lint" | "typecheck" | "format")[] | undefined;
159
- } | undefined;
160
- branchTypes?: ("refactor" | "chore" | "docs" | "test" | "feature" | "bugfix" | "hotfix" | "release")[] | undefined;
161
- conventionalTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
162
- enforcement?: "strict" | "advisory" | "learning" | undefined;
163
- language?: string | undefined;
164
- analytics?: {
165
- enabled?: boolean | undefined;
166
- shareAnonymous?: boolean | undefined;
167
- } | undefined;
168
- adapter?: string | undefined;
169
- syncRemote?: string | undefined;
170
- hooks?: {
171
- enabled?: boolean | undefined;
172
- preCommit?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
173
- commitMsg?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
174
- } | undefined;
175
- guidelines?: {
176
- additionalMandatory?: string[] | undefined;
177
- optionalOverrides?: string[] | undefined;
178
- } | undefined;
179
- reservedScopeNames?: string[] | undefined;
180
- }>, {
181
- projectName: string;
182
- scopes: {
183
- name: string;
184
- description: string;
185
- allowedTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
186
- mandatoryGuidelines?: string[] | undefined;
187
- emoji?: string | undefined;
188
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
189
- }[];
190
- enforcement: "strict" | "advisory" | "learning";
191
- language: string;
192
- reservedScopeNames: string[];
193
- ci?: {
194
- enabled: boolean;
195
- provider: "github" | "gitlab" | "bitbucket";
196
- checks: ("test" | "build" | "lint" | "typecheck" | "format")[];
197
- } | undefined;
198
- branchTypes?: ("refactor" | "chore" | "docs" | "test" | "feature" | "bugfix" | "hotfix" | "release")[] | undefined;
199
- conventionalTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
200
- analytics?: {
201
- enabled: boolean;
202
- shareAnonymous: boolean;
203
- } | undefined;
204
- adapter?: string | undefined;
205
- syncRemote?: string | undefined;
206
- hooks?: {
207
- enabled: boolean;
208
- preCommit: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
209
- commitMsg: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[];
210
- } | undefined;
211
- guidelines?: {
212
- additionalMandatory?: string[] | undefined;
213
- optionalOverrides?: string[] | undefined;
214
- } | undefined;
215
- }, {
216
- projectName: string;
217
- scopes: {
218
- name: string;
219
- description: string;
220
- allowedTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
221
- mandatoryGuidelines?: string[] | undefined;
222
- emoji?: string | undefined;
223
- category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
224
- }[];
225
- ci?: {
226
- enabled?: boolean | undefined;
227
- provider?: "github" | "gitlab" | "bitbucket" | undefined;
228
- checks?: ("test" | "build" | "lint" | "typecheck" | "format")[] | undefined;
229
- } | undefined;
230
- branchTypes?: ("refactor" | "chore" | "docs" | "test" | "feature" | "bugfix" | "hotfix" | "release")[] | undefined;
231
- conventionalTypes?: ("feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "perf" | "style" | "ci" | "build" | "revert")[] | undefined;
232
- enforcement?: "strict" | "advisory" | "learning" | undefined;
233
- language?: string | undefined;
234
- analytics?: {
235
- enabled?: boolean | undefined;
236
- shareAnonymous?: boolean | undefined;
237
- } | undefined;
238
- adapter?: string | undefined;
239
- syncRemote?: string | undefined;
240
- hooks?: {
241
- enabled?: boolean | undefined;
242
- preCommit?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
243
- commitMsg?: ("validate-branch" | "validate-commit" | "check-guidelines" | "validate-scopes")[] | undefined;
244
- } | undefined;
245
- guidelines?: {
246
- additionalMandatory?: string[] | undefined;
247
- optionalOverrides?: string[] | undefined;
248
- } | undefined;
249
- reservedScopeNames?: string[] | undefined;
250
- }>;
251
- type Scope = z.infer<typeof ScopeSchema>;
252
- type BranchType = z.infer<typeof BranchTypeSchema>;
253
- type ConventionalType = z.infer<typeof ConventionalTypeSchema>;
254
- type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>;
255
-
256
- 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 };