@grunnverk/core 1.0.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.
Files changed (47) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +61 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +3227 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/src/constants.d.ts +235 -0
  7. package/dist/src/constants.d.ts.map +1 -0
  8. package/dist/src/content/diff.d.ts +25 -0
  9. package/dist/src/content/diff.d.ts.map +1 -0
  10. package/dist/src/content/files.d.ts +10 -0
  11. package/dist/src/content/files.d.ts.map +1 -0
  12. package/dist/src/content/log.d.ts +11 -0
  13. package/dist/src/content/log.d.ts.map +1 -0
  14. package/dist/src/errors.d.ts +82 -0
  15. package/dist/src/errors.d.ts.map +1 -0
  16. package/dist/src/index.d.ts +20 -0
  17. package/dist/src/index.d.ts.map +1 -0
  18. package/dist/src/logging.d.ts +18 -0
  19. package/dist/src/logging.d.ts.map +1 -0
  20. package/dist/src/transactionLog.d.ts +53 -0
  21. package/dist/src/transactionLog.d.ts.map +1 -0
  22. package/dist/src/types.d.ts +1445 -0
  23. package/dist/src/types.d.ts.map +1 -0
  24. package/dist/src/util/aiAdapter.d.ts +7 -0
  25. package/dist/src/util/aiAdapter.d.ts.map +1 -0
  26. package/dist/src/util/errorHandler.d.ts +34 -0
  27. package/dist/src/util/errorHandler.d.ts.map +1 -0
  28. package/dist/src/util/fileLock.d.ts +63 -0
  29. package/dist/src/util/fileLock.d.ts.map +1 -0
  30. package/dist/src/util/general.d.ts +83 -0
  31. package/dist/src/util/general.d.ts.map +1 -0
  32. package/dist/src/util/gitMutex.d.ts +66 -0
  33. package/dist/src/util/gitMutex.d.ts.map +1 -0
  34. package/dist/src/util/interactive.d.ts +36 -0
  35. package/dist/src/util/interactive.d.ts.map +1 -0
  36. package/dist/src/util/loggerAdapter.d.ts +6 -0
  37. package/dist/src/util/loggerAdapter.d.ts.map +1 -0
  38. package/dist/src/util/progressTracker.d.ts +54 -0
  39. package/dist/src/util/progressTracker.d.ts.map +1 -0
  40. package/dist/src/util/stopContext.d.ts +27 -0
  41. package/dist/src/util/stopContext.d.ts.map +1 -0
  42. package/dist/src/util/storageAdapter.d.ts +8 -0
  43. package/dist/src/util/storageAdapter.d.ts.map +1 -0
  44. package/dist/src/util/validation.d.ts +21 -0
  45. package/dist/src/util/validation.d.ts.map +1 -0
  46. package/guide/index.md +64 -0
  47. package/package.json +76 -0
@@ -0,0 +1,1445 @@
1
+ import { z } from 'zod';
2
+ import * as Cardigantime from '@theunwalked/cardigantime';
3
+ export declare const ConfigSchema: z.ZodObject<{
4
+ dryRun: z.ZodOptional<z.ZodBoolean>;
5
+ verbose: z.ZodOptional<z.ZodBoolean>;
6
+ debug: z.ZodOptional<z.ZodBoolean>;
7
+ overrides: z.ZodOptional<z.ZodBoolean>;
8
+ model: z.ZodOptional<z.ZodString>;
9
+ openaiReasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
10
+ openaiMaxOutputTokens: z.ZodOptional<z.ZodNumber>;
11
+ contextDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ outputDirectory: z.ZodOptional<z.ZodString>;
13
+ preferencesDirectory: z.ZodOptional<z.ZodString>;
14
+ commit: z.ZodOptional<z.ZodObject<{
15
+ add: z.ZodOptional<z.ZodBoolean>;
16
+ cached: z.ZodOptional<z.ZodBoolean>;
17
+ sendit: z.ZodOptional<z.ZodBoolean>;
18
+ interactive: z.ZodOptional<z.ZodBoolean>;
19
+ amend: z.ZodOptional<z.ZodBoolean>;
20
+ push: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
21
+ messageLimit: z.ZodOptional<z.ZodNumber>;
22
+ context: z.ZodOptional<z.ZodString>;
23
+ contextFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ direction: z.ZodOptional<z.ZodString>;
25
+ skipFileCheck: z.ZodOptional<z.ZodBoolean>;
26
+ maxDiffBytes: z.ZodOptional<z.ZodNumber>;
27
+ model: z.ZodOptional<z.ZodString>;
28
+ openaiReasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
29
+ openaiMaxOutputTokens: z.ZodOptional<z.ZodNumber>;
30
+ maxAgenticIterations: z.ZodOptional<z.ZodNumber>;
31
+ allowCommitSplitting: z.ZodOptional<z.ZodBoolean>;
32
+ autoSplit: z.ZodOptional<z.ZodBoolean>;
33
+ toolTimeout: z.ZodOptional<z.ZodNumber>;
34
+ selfReflection: z.ZodOptional<z.ZodBoolean>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ model?: string | undefined;
37
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
38
+ openaiMaxOutputTokens?: number | undefined;
39
+ push?: string | boolean | undefined;
40
+ add?: boolean | undefined;
41
+ cached?: boolean | undefined;
42
+ sendit?: boolean | undefined;
43
+ interactive?: boolean | undefined;
44
+ amend?: boolean | undefined;
45
+ messageLimit?: number | undefined;
46
+ context?: string | undefined;
47
+ contextFiles?: string[] | undefined;
48
+ direction?: string | undefined;
49
+ skipFileCheck?: boolean | undefined;
50
+ maxDiffBytes?: number | undefined;
51
+ maxAgenticIterations?: number | undefined;
52
+ allowCommitSplitting?: boolean | undefined;
53
+ autoSplit?: boolean | undefined;
54
+ toolTimeout?: number | undefined;
55
+ selfReflection?: boolean | undefined;
56
+ }, {
57
+ model?: string | undefined;
58
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
59
+ openaiMaxOutputTokens?: number | undefined;
60
+ push?: string | boolean | undefined;
61
+ add?: boolean | undefined;
62
+ cached?: boolean | undefined;
63
+ sendit?: boolean | undefined;
64
+ interactive?: boolean | undefined;
65
+ amend?: boolean | undefined;
66
+ messageLimit?: number | undefined;
67
+ context?: string | undefined;
68
+ contextFiles?: string[] | undefined;
69
+ direction?: string | undefined;
70
+ skipFileCheck?: boolean | undefined;
71
+ maxDiffBytes?: number | undefined;
72
+ maxAgenticIterations?: number | undefined;
73
+ allowCommitSplitting?: boolean | undefined;
74
+ autoSplit?: boolean | undefined;
75
+ toolTimeout?: number | undefined;
76
+ selfReflection?: boolean | undefined;
77
+ }>>;
78
+ audioCommit: z.ZodOptional<z.ZodObject<{
79
+ maxRecordingTime: z.ZodOptional<z.ZodNumber>;
80
+ audioDevice: z.ZodOptional<z.ZodString>;
81
+ file: z.ZodOptional<z.ZodString>;
82
+ keepTemp: z.ZodOptional<z.ZodBoolean>;
83
+ model: z.ZodOptional<z.ZodString>;
84
+ openaiReasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
85
+ openaiMaxOutputTokens: z.ZodOptional<z.ZodNumber>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ model?: string | undefined;
88
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
89
+ openaiMaxOutputTokens?: number | undefined;
90
+ maxRecordingTime?: number | undefined;
91
+ audioDevice?: string | undefined;
92
+ file?: string | undefined;
93
+ keepTemp?: boolean | undefined;
94
+ }, {
95
+ model?: string | undefined;
96
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
97
+ openaiMaxOutputTokens?: number | undefined;
98
+ maxRecordingTime?: number | undefined;
99
+ audioDevice?: string | undefined;
100
+ file?: string | undefined;
101
+ keepTemp?: boolean | undefined;
102
+ }>>;
103
+ release: z.ZodOptional<z.ZodObject<{
104
+ from: z.ZodOptional<z.ZodString>;
105
+ to: z.ZodOptional<z.ZodString>;
106
+ messageLimit: z.ZodOptional<z.ZodNumber>;
107
+ context: z.ZodOptional<z.ZodString>;
108
+ contextFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
+ interactive: z.ZodOptional<z.ZodBoolean>;
110
+ focus: z.ZodOptional<z.ZodString>;
111
+ maxDiffBytes: z.ZodOptional<z.ZodNumber>;
112
+ model: z.ZodOptional<z.ZodString>;
113
+ openaiReasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
114
+ openaiMaxOutputTokens: z.ZodOptional<z.ZodNumber>;
115
+ noMilestones: z.ZodOptional<z.ZodBoolean>;
116
+ fromMain: z.ZodOptional<z.ZodBoolean>;
117
+ currentBranch: z.ZodOptional<z.ZodString>;
118
+ version: z.ZodOptional<z.ZodString>;
119
+ maxAgenticIterations: z.ZodOptional<z.ZodNumber>;
120
+ selfReflection: z.ZodOptional<z.ZodBoolean>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ model?: string | undefined;
123
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
124
+ openaiMaxOutputTokens?: number | undefined;
125
+ interactive?: boolean | undefined;
126
+ messageLimit?: number | undefined;
127
+ context?: string | undefined;
128
+ contextFiles?: string[] | undefined;
129
+ maxDiffBytes?: number | undefined;
130
+ maxAgenticIterations?: number | undefined;
131
+ selfReflection?: boolean | undefined;
132
+ from?: string | undefined;
133
+ to?: string | undefined;
134
+ focus?: string | undefined;
135
+ noMilestones?: boolean | undefined;
136
+ fromMain?: boolean | undefined;
137
+ currentBranch?: string | undefined;
138
+ version?: string | undefined;
139
+ }, {
140
+ model?: string | undefined;
141
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
142
+ openaiMaxOutputTokens?: number | undefined;
143
+ interactive?: boolean | undefined;
144
+ messageLimit?: number | undefined;
145
+ context?: string | undefined;
146
+ contextFiles?: string[] | undefined;
147
+ maxDiffBytes?: number | undefined;
148
+ maxAgenticIterations?: number | undefined;
149
+ selfReflection?: boolean | undefined;
150
+ from?: string | undefined;
151
+ to?: string | undefined;
152
+ focus?: string | undefined;
153
+ noMilestones?: boolean | undefined;
154
+ fromMain?: boolean | undefined;
155
+ currentBranch?: string | undefined;
156
+ version?: string | undefined;
157
+ }>>;
158
+ review: z.ZodOptional<z.ZodObject<{
159
+ includeCommitHistory: z.ZodOptional<z.ZodBoolean>;
160
+ includeRecentDiffs: z.ZodOptional<z.ZodBoolean>;
161
+ includeReleaseNotes: z.ZodOptional<z.ZodBoolean>;
162
+ includeGithubIssues: z.ZodOptional<z.ZodBoolean>;
163
+ commitHistoryLimit: z.ZodOptional<z.ZodNumber>;
164
+ diffHistoryLimit: z.ZodOptional<z.ZodNumber>;
165
+ releaseNotesLimit: z.ZodOptional<z.ZodNumber>;
166
+ githubIssuesLimit: z.ZodOptional<z.ZodNumber>;
167
+ context: z.ZodOptional<z.ZodString>;
168
+ sendit: z.ZodOptional<z.ZodBoolean>;
169
+ note: z.ZodOptional<z.ZodString>;
170
+ editorTimeout: z.ZodOptional<z.ZodNumber>;
171
+ maxContextErrors: z.ZodOptional<z.ZodNumber>;
172
+ model: z.ZodOptional<z.ZodString>;
173
+ openaiReasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
174
+ openaiMaxOutputTokens: z.ZodOptional<z.ZodNumber>;
175
+ file: z.ZodOptional<z.ZodString>;
176
+ directory: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ model?: string | undefined;
179
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
180
+ openaiMaxOutputTokens?: number | undefined;
181
+ sendit?: boolean | undefined;
182
+ context?: string | undefined;
183
+ file?: string | undefined;
184
+ includeCommitHistory?: boolean | undefined;
185
+ includeRecentDiffs?: boolean | undefined;
186
+ includeReleaseNotes?: boolean | undefined;
187
+ includeGithubIssues?: boolean | undefined;
188
+ commitHistoryLimit?: number | undefined;
189
+ diffHistoryLimit?: number | undefined;
190
+ releaseNotesLimit?: number | undefined;
191
+ githubIssuesLimit?: number | undefined;
192
+ note?: string | undefined;
193
+ editorTimeout?: number | undefined;
194
+ maxContextErrors?: number | undefined;
195
+ directory?: string | undefined;
196
+ }, {
197
+ model?: string | undefined;
198
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
199
+ openaiMaxOutputTokens?: number | undefined;
200
+ sendit?: boolean | undefined;
201
+ context?: string | undefined;
202
+ file?: string | undefined;
203
+ includeCommitHistory?: boolean | undefined;
204
+ includeRecentDiffs?: boolean | undefined;
205
+ includeReleaseNotes?: boolean | undefined;
206
+ includeGithubIssues?: boolean | undefined;
207
+ commitHistoryLimit?: number | undefined;
208
+ diffHistoryLimit?: number | undefined;
209
+ releaseNotesLimit?: number | undefined;
210
+ githubIssuesLimit?: number | undefined;
211
+ note?: string | undefined;
212
+ editorTimeout?: number | undefined;
213
+ maxContextErrors?: number | undefined;
214
+ directory?: string | undefined;
215
+ }>>;
216
+ audioReview: z.ZodOptional<z.ZodObject<{
217
+ includeCommitHistory: z.ZodOptional<z.ZodBoolean>;
218
+ includeRecentDiffs: z.ZodOptional<z.ZodBoolean>;
219
+ includeReleaseNotes: z.ZodOptional<z.ZodBoolean>;
220
+ includeGithubIssues: z.ZodOptional<z.ZodBoolean>;
221
+ commitHistoryLimit: z.ZodOptional<z.ZodNumber>;
222
+ diffHistoryLimit: z.ZodOptional<z.ZodNumber>;
223
+ releaseNotesLimit: z.ZodOptional<z.ZodNumber>;
224
+ githubIssuesLimit: z.ZodOptional<z.ZodNumber>;
225
+ context: z.ZodOptional<z.ZodString>;
226
+ sendit: z.ZodOptional<z.ZodBoolean>;
227
+ maxRecordingTime: z.ZodOptional<z.ZodNumber>;
228
+ audioDevice: z.ZodOptional<z.ZodString>;
229
+ file: z.ZodOptional<z.ZodString>;
230
+ directory: z.ZodOptional<z.ZodString>;
231
+ keepTemp: z.ZodOptional<z.ZodBoolean>;
232
+ model: z.ZodOptional<z.ZodString>;
233
+ openaiReasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
234
+ openaiMaxOutputTokens: z.ZodOptional<z.ZodNumber>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ model?: string | undefined;
237
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
238
+ openaiMaxOutputTokens?: number | undefined;
239
+ sendit?: boolean | undefined;
240
+ context?: string | undefined;
241
+ maxRecordingTime?: number | undefined;
242
+ audioDevice?: string | undefined;
243
+ file?: string | undefined;
244
+ keepTemp?: boolean | undefined;
245
+ includeCommitHistory?: boolean | undefined;
246
+ includeRecentDiffs?: boolean | undefined;
247
+ includeReleaseNotes?: boolean | undefined;
248
+ includeGithubIssues?: boolean | undefined;
249
+ commitHistoryLimit?: number | undefined;
250
+ diffHistoryLimit?: number | undefined;
251
+ releaseNotesLimit?: number | undefined;
252
+ githubIssuesLimit?: number | undefined;
253
+ directory?: string | undefined;
254
+ }, {
255
+ model?: string | undefined;
256
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
257
+ openaiMaxOutputTokens?: number | undefined;
258
+ sendit?: boolean | undefined;
259
+ context?: string | undefined;
260
+ maxRecordingTime?: number | undefined;
261
+ audioDevice?: string | undefined;
262
+ file?: string | undefined;
263
+ keepTemp?: boolean | undefined;
264
+ includeCommitHistory?: boolean | undefined;
265
+ includeRecentDiffs?: boolean | undefined;
266
+ includeReleaseNotes?: boolean | undefined;
267
+ includeGithubIssues?: boolean | undefined;
268
+ commitHistoryLimit?: number | undefined;
269
+ diffHistoryLimit?: number | undefined;
270
+ releaseNotesLimit?: number | undefined;
271
+ githubIssuesLimit?: number | undefined;
272
+ directory?: string | undefined;
273
+ }>>;
274
+ precommit: z.ZodOptional<z.ZodObject<{
275
+ fix: z.ZodOptional<z.ZodBoolean>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ fix?: boolean | undefined;
278
+ }, {
279
+ fix?: boolean | undefined;
280
+ }>>;
281
+ publish: z.ZodOptional<z.ZodObject<{
282
+ mergeMethod: z.ZodOptional<z.ZodEnum<["merge", "squash", "rebase"]>>;
283
+ from: z.ZodOptional<z.ZodString>;
284
+ targetVersion: z.ZodOptional<z.ZodString>;
285
+ interactive: z.ZodOptional<z.ZodBoolean>;
286
+ skipAlreadyPublished: z.ZodOptional<z.ZodBoolean>;
287
+ forceRepublish: z.ZodOptional<z.ZodBoolean>;
288
+ dependencyUpdatePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
289
+ scopedDependencyUpdates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
290
+ requiredEnvVars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
291
+ linkWorkspacePackages: z.ZodOptional<z.ZodBoolean>;
292
+ unlinkWorkspacePackages: z.ZodOptional<z.ZodBoolean>;
293
+ checksTimeout: z.ZodOptional<z.ZodNumber>;
294
+ skipUserConfirmation: z.ZodOptional<z.ZodBoolean>;
295
+ syncTarget: z.ZodOptional<z.ZodBoolean>;
296
+ sendit: z.ZodOptional<z.ZodBoolean>;
297
+ waitForReleaseWorkflows: z.ZodOptional<z.ZodBoolean>;
298
+ releaseWorkflowsTimeout: z.ZodOptional<z.ZodNumber>;
299
+ releaseWorkflowNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
300
+ targetBranch: z.ZodOptional<z.ZodString>;
301
+ noMilestones: z.ZodOptional<z.ZodBoolean>;
302
+ fromMain: z.ZodOptional<z.ZodBoolean>;
303
+ skipPrePublishMerge: z.ZodOptional<z.ZodBoolean>;
304
+ updateDeps: z.ZodOptional<z.ZodString>;
305
+ agenticPublish: z.ZodOptional<z.ZodBoolean>;
306
+ agenticPublishMaxIterations: z.ZodOptional<z.ZodNumber>;
307
+ skipLinkCleanup: z.ZodOptional<z.ZodBoolean>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ sendit?: boolean | undefined;
310
+ interactive?: boolean | undefined;
311
+ from?: string | undefined;
312
+ noMilestones?: boolean | undefined;
313
+ fromMain?: boolean | undefined;
314
+ mergeMethod?: "merge" | "squash" | "rebase" | undefined;
315
+ targetVersion?: string | undefined;
316
+ skipAlreadyPublished?: boolean | undefined;
317
+ forceRepublish?: boolean | undefined;
318
+ dependencyUpdatePatterns?: string[] | undefined;
319
+ scopedDependencyUpdates?: string[] | undefined;
320
+ requiredEnvVars?: string[] | undefined;
321
+ linkWorkspacePackages?: boolean | undefined;
322
+ unlinkWorkspacePackages?: boolean | undefined;
323
+ checksTimeout?: number | undefined;
324
+ skipUserConfirmation?: boolean | undefined;
325
+ syncTarget?: boolean | undefined;
326
+ waitForReleaseWorkflows?: boolean | undefined;
327
+ releaseWorkflowsTimeout?: number | undefined;
328
+ releaseWorkflowNames?: string[] | undefined;
329
+ targetBranch?: string | undefined;
330
+ skipPrePublishMerge?: boolean | undefined;
331
+ updateDeps?: string | undefined;
332
+ agenticPublish?: boolean | undefined;
333
+ agenticPublishMaxIterations?: number | undefined;
334
+ skipLinkCleanup?: boolean | undefined;
335
+ }, {
336
+ sendit?: boolean | undefined;
337
+ interactive?: boolean | undefined;
338
+ from?: string | undefined;
339
+ noMilestones?: boolean | undefined;
340
+ fromMain?: boolean | undefined;
341
+ mergeMethod?: "merge" | "squash" | "rebase" | undefined;
342
+ targetVersion?: string | undefined;
343
+ skipAlreadyPublished?: boolean | undefined;
344
+ forceRepublish?: boolean | undefined;
345
+ dependencyUpdatePatterns?: string[] | undefined;
346
+ scopedDependencyUpdates?: string[] | undefined;
347
+ requiredEnvVars?: string[] | undefined;
348
+ linkWorkspacePackages?: boolean | undefined;
349
+ unlinkWorkspacePackages?: boolean | undefined;
350
+ checksTimeout?: number | undefined;
351
+ skipUserConfirmation?: boolean | undefined;
352
+ syncTarget?: boolean | undefined;
353
+ waitForReleaseWorkflows?: boolean | undefined;
354
+ releaseWorkflowsTimeout?: number | undefined;
355
+ releaseWorkflowNames?: string[] | undefined;
356
+ targetBranch?: string | undefined;
357
+ skipPrePublishMerge?: boolean | undefined;
358
+ updateDeps?: string | undefined;
359
+ agenticPublish?: boolean | undefined;
360
+ agenticPublishMaxIterations?: number | undefined;
361
+ skipLinkCleanup?: boolean | undefined;
362
+ }>>;
363
+ branches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
364
+ targetBranch: z.ZodOptional<z.ZodString>;
365
+ developmentBranch: z.ZodOptional<z.ZodBoolean>;
366
+ version: z.ZodOptional<z.ZodObject<{
367
+ type: z.ZodEnum<["release", "prerelease"]>;
368
+ increment: z.ZodOptional<z.ZodBoolean>;
369
+ incrementLevel: z.ZodOptional<z.ZodEnum<["patch", "minor", "major"]>>;
370
+ tag: z.ZodOptional<z.ZodString>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ type: "release" | "prerelease";
373
+ increment?: boolean | undefined;
374
+ incrementLevel?: "patch" | "minor" | "major" | undefined;
375
+ tag?: string | undefined;
376
+ }, {
377
+ type: "release" | "prerelease";
378
+ increment?: boolean | undefined;
379
+ incrementLevel?: "patch" | "minor" | "major" | undefined;
380
+ tag?: string | undefined;
381
+ }>>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ version?: {
384
+ type: "release" | "prerelease";
385
+ increment?: boolean | undefined;
386
+ incrementLevel?: "patch" | "minor" | "major" | undefined;
387
+ tag?: string | undefined;
388
+ } | undefined;
389
+ targetBranch?: string | undefined;
390
+ developmentBranch?: boolean | undefined;
391
+ }, {
392
+ version?: {
393
+ type: "release" | "prerelease";
394
+ increment?: boolean | undefined;
395
+ incrementLevel?: "patch" | "minor" | "major" | undefined;
396
+ tag?: string | undefined;
397
+ } | undefined;
398
+ targetBranch?: string | undefined;
399
+ developmentBranch?: boolean | undefined;
400
+ }>>>;
401
+ link: z.ZodOptional<z.ZodObject<{
402
+ scopeRoots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
403
+ dryRun: z.ZodOptional<z.ZodBoolean>;
404
+ packageArgument: z.ZodOptional<z.ZodString>;
405
+ externals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ dryRun?: boolean | undefined;
408
+ scopeRoots?: Record<string, string> | undefined;
409
+ packageArgument?: string | undefined;
410
+ externals?: string[] | undefined;
411
+ }, {
412
+ dryRun?: boolean | undefined;
413
+ scopeRoots?: Record<string, string> | undefined;
414
+ packageArgument?: string | undefined;
415
+ externals?: string[] | undefined;
416
+ }>>;
417
+ unlink: z.ZodOptional<z.ZodObject<{
418
+ scopeRoots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
419
+ workspaceFile: z.ZodOptional<z.ZodString>;
420
+ dryRun: z.ZodOptional<z.ZodBoolean>;
421
+ cleanNodeModules: z.ZodOptional<z.ZodBoolean>;
422
+ packageArgument: z.ZodOptional<z.ZodString>;
423
+ externals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ dryRun?: boolean | undefined;
426
+ scopeRoots?: Record<string, string> | undefined;
427
+ packageArgument?: string | undefined;
428
+ externals?: string[] | undefined;
429
+ workspaceFile?: string | undefined;
430
+ cleanNodeModules?: boolean | undefined;
431
+ }, {
432
+ dryRun?: boolean | undefined;
433
+ scopeRoots?: Record<string, string> | undefined;
434
+ packageArgument?: string | undefined;
435
+ externals?: string[] | undefined;
436
+ workspaceFile?: string | undefined;
437
+ cleanNodeModules?: boolean | undefined;
438
+ }>>;
439
+ tree: z.ZodOptional<z.ZodObject<{
440
+ directories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
442
+ startFrom: z.ZodOptional<z.ZodString>;
443
+ stopAt: z.ZodOptional<z.ZodString>;
444
+ cmd: z.ZodOptional<z.ZodString>;
445
+ builtInCommand: z.ZodOptional<z.ZodString>;
446
+ continue: z.ZodOptional<z.ZodBoolean>;
447
+ status: z.ZodOptional<z.ZodBoolean>;
448
+ promote: z.ZodOptional<z.ZodString>;
449
+ packageArgument: z.ZodOptional<z.ZodString>;
450
+ cleanNodeModules: z.ZodOptional<z.ZodBoolean>;
451
+ externals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
+ fix: z.ZodOptional<z.ZodBoolean>;
453
+ parallel: z.ZodOptional<z.ZodBoolean>;
454
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
455
+ retry: z.ZodOptional<z.ZodObject<{
456
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
457
+ initialDelayMs: z.ZodOptional<z.ZodNumber>;
458
+ maxDelayMs: z.ZodOptional<z.ZodNumber>;
459
+ backoffMultiplier: z.ZodOptional<z.ZodNumber>;
460
+ retriableErrors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ maxAttempts?: number | undefined;
463
+ initialDelayMs?: number | undefined;
464
+ maxDelayMs?: number | undefined;
465
+ backoffMultiplier?: number | undefined;
466
+ retriableErrors?: string[] | undefined;
467
+ }, {
468
+ maxAttempts?: number | undefined;
469
+ initialDelayMs?: number | undefined;
470
+ maxDelayMs?: number | undefined;
471
+ backoffMultiplier?: number | undefined;
472
+ retriableErrors?: string[] | undefined;
473
+ }>>;
474
+ recovery: z.ZodOptional<z.ZodObject<{
475
+ checkpointInterval: z.ZodOptional<z.ZodEnum<["package", "batch"]>>;
476
+ autoRetry: z.ZodOptional<z.ZodBoolean>;
477
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ checkpointInterval?: "package" | "batch" | undefined;
480
+ autoRetry?: boolean | undefined;
481
+ continueOnError?: boolean | undefined;
482
+ }, {
483
+ checkpointInterval?: "package" | "batch" | undefined;
484
+ autoRetry?: boolean | undefined;
485
+ continueOnError?: boolean | undefined;
486
+ }>>;
487
+ monitoring: z.ZodOptional<z.ZodObject<{
488
+ showProgress: z.ZodOptional<z.ZodBoolean>;
489
+ showMetrics: z.ZodOptional<z.ZodBoolean>;
490
+ logLevel: z.ZodOptional<z.ZodEnum<["minimal", "normal", "verbose"]>>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ showProgress?: boolean | undefined;
493
+ showMetrics?: boolean | undefined;
494
+ logLevel?: "verbose" | "minimal" | "normal" | undefined;
495
+ }, {
496
+ showProgress?: boolean | undefined;
497
+ showMetrics?: boolean | undefined;
498
+ logLevel?: "verbose" | "minimal" | "normal" | undefined;
499
+ }>>;
500
+ markCompleted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
501
+ skipPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
502
+ retryFailed: z.ZodOptional<z.ZodBoolean>;
503
+ skipFailed: z.ZodOptional<z.ZodBoolean>;
504
+ resetPackage: z.ZodOptional<z.ZodString>;
505
+ statusParallel: z.ZodOptional<z.ZodBoolean>;
506
+ auditBranches: z.ZodOptional<z.ZodBoolean>;
507
+ validateState: z.ZodOptional<z.ZodBoolean>;
508
+ order: z.ZodOptional<z.ZodBoolean>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ status?: boolean | undefined;
511
+ fix?: boolean | undefined;
512
+ packageArgument?: string | undefined;
513
+ externals?: string[] | undefined;
514
+ cleanNodeModules?: boolean | undefined;
515
+ directories?: string[] | undefined;
516
+ exclude?: string[] | undefined;
517
+ startFrom?: string | undefined;
518
+ stopAt?: string | undefined;
519
+ cmd?: string | undefined;
520
+ builtInCommand?: string | undefined;
521
+ continue?: boolean | undefined;
522
+ promote?: string | undefined;
523
+ parallel?: boolean | undefined;
524
+ maxConcurrency?: number | undefined;
525
+ retry?: {
526
+ maxAttempts?: number | undefined;
527
+ initialDelayMs?: number | undefined;
528
+ maxDelayMs?: number | undefined;
529
+ backoffMultiplier?: number | undefined;
530
+ retriableErrors?: string[] | undefined;
531
+ } | undefined;
532
+ recovery?: {
533
+ checkpointInterval?: "package" | "batch" | undefined;
534
+ autoRetry?: boolean | undefined;
535
+ continueOnError?: boolean | undefined;
536
+ } | undefined;
537
+ monitoring?: {
538
+ showProgress?: boolean | undefined;
539
+ showMetrics?: boolean | undefined;
540
+ logLevel?: "verbose" | "minimal" | "normal" | undefined;
541
+ } | undefined;
542
+ markCompleted?: string[] | undefined;
543
+ skipPackages?: string[] | undefined;
544
+ retryFailed?: boolean | undefined;
545
+ skipFailed?: boolean | undefined;
546
+ resetPackage?: string | undefined;
547
+ statusParallel?: boolean | undefined;
548
+ auditBranches?: boolean | undefined;
549
+ validateState?: boolean | undefined;
550
+ order?: boolean | undefined;
551
+ }, {
552
+ status?: boolean | undefined;
553
+ fix?: boolean | undefined;
554
+ packageArgument?: string | undefined;
555
+ externals?: string[] | undefined;
556
+ cleanNodeModules?: boolean | undefined;
557
+ directories?: string[] | undefined;
558
+ exclude?: string[] | undefined;
559
+ startFrom?: string | undefined;
560
+ stopAt?: string | undefined;
561
+ cmd?: string | undefined;
562
+ builtInCommand?: string | undefined;
563
+ continue?: boolean | undefined;
564
+ promote?: string | undefined;
565
+ parallel?: boolean | undefined;
566
+ maxConcurrency?: number | undefined;
567
+ retry?: {
568
+ maxAttempts?: number | undefined;
569
+ initialDelayMs?: number | undefined;
570
+ maxDelayMs?: number | undefined;
571
+ backoffMultiplier?: number | undefined;
572
+ retriableErrors?: string[] | undefined;
573
+ } | undefined;
574
+ recovery?: {
575
+ checkpointInterval?: "package" | "batch" | undefined;
576
+ autoRetry?: boolean | undefined;
577
+ continueOnError?: boolean | undefined;
578
+ } | undefined;
579
+ monitoring?: {
580
+ showProgress?: boolean | undefined;
581
+ showMetrics?: boolean | undefined;
582
+ logLevel?: "verbose" | "minimal" | "normal" | undefined;
583
+ } | undefined;
584
+ markCompleted?: string[] | undefined;
585
+ skipPackages?: string[] | undefined;
586
+ retryFailed?: boolean | undefined;
587
+ skipFailed?: boolean | undefined;
588
+ resetPackage?: string | undefined;
589
+ statusParallel?: boolean | undefined;
590
+ auditBranches?: boolean | undefined;
591
+ validateState?: boolean | undefined;
592
+ order?: boolean | undefined;
593
+ }>>;
594
+ development: z.ZodOptional<z.ZodObject<{
595
+ targetVersion: z.ZodOptional<z.ZodString>;
596
+ noMilestones: z.ZodOptional<z.ZodBoolean>;
597
+ tagWorkingBranch: z.ZodOptional<z.ZodBoolean>;
598
+ createRetroactiveTags: z.ZodOptional<z.ZodBoolean>;
599
+ workingTagPrefix: z.ZodOptional<z.ZodString>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ noMilestones?: boolean | undefined;
602
+ targetVersion?: string | undefined;
603
+ tagWorkingBranch?: boolean | undefined;
604
+ createRetroactiveTags?: boolean | undefined;
605
+ workingTagPrefix?: string | undefined;
606
+ }, {
607
+ noMilestones?: boolean | undefined;
608
+ targetVersion?: string | undefined;
609
+ tagWorkingBranch?: boolean | undefined;
610
+ createRetroactiveTags?: boolean | undefined;
611
+ workingTagPrefix?: string | undefined;
612
+ }>>;
613
+ versions: z.ZodOptional<z.ZodObject<{
614
+ subcommand: z.ZodOptional<z.ZodString>;
615
+ directories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ directories?: string[] | undefined;
618
+ subcommand?: string | undefined;
619
+ }, {
620
+ directories?: string[] | undefined;
621
+ subcommand?: string | undefined;
622
+ }>>;
623
+ updates: z.ZodOptional<z.ZodObject<{
624
+ scope: z.ZodOptional<z.ZodString>;
625
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
626
+ directories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
627
+ interProject: z.ZodOptional<z.ZodBoolean>;
628
+ report: z.ZodOptional<z.ZodBoolean>;
629
+ analyze: z.ZodOptional<z.ZodBoolean>;
630
+ strategy: z.ZodOptional<z.ZodEnum<["latest", "conservative", "compatible"]>>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ directories?: string[] | undefined;
633
+ scope?: string | undefined;
634
+ scopes?: string[] | undefined;
635
+ interProject?: boolean | undefined;
636
+ report?: boolean | undefined;
637
+ analyze?: boolean | undefined;
638
+ strategy?: "latest" | "conservative" | "compatible" | undefined;
639
+ }, {
640
+ directories?: string[] | undefined;
641
+ scope?: string | undefined;
642
+ scopes?: string[] | undefined;
643
+ interProject?: boolean | undefined;
644
+ report?: boolean | undefined;
645
+ analyze?: boolean | undefined;
646
+ strategy?: "latest" | "conservative" | "compatible" | undefined;
647
+ }>>;
648
+ pull: z.ZodOptional<z.ZodObject<{
649
+ remote: z.ZodOptional<z.ZodString>;
650
+ branch: z.ZodOptional<z.ZodString>;
651
+ autoStash: z.ZodOptional<z.ZodBoolean>;
652
+ autoResolve: z.ZodOptional<z.ZodBoolean>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ remote?: string | undefined;
655
+ branch?: string | undefined;
656
+ autoStash?: boolean | undefined;
657
+ autoResolve?: boolean | undefined;
658
+ }, {
659
+ remote?: string | undefined;
660
+ branch?: string | undefined;
661
+ autoStash?: boolean | undefined;
662
+ autoResolve?: boolean | undefined;
663
+ }>>;
664
+ excludedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
665
+ traits: z.ZodOptional<z.ZodAny>;
666
+ stopContext: z.ZodOptional<z.ZodObject<{
667
+ enabled: z.ZodOptional<z.ZodBoolean>;
668
+ strings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
669
+ patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
670
+ regex: z.ZodString;
671
+ flags: z.ZodOptional<z.ZodString>;
672
+ description: z.ZodOptional<z.ZodString>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ regex: string;
675
+ flags?: string | undefined;
676
+ description?: string | undefined;
677
+ }, {
678
+ regex: string;
679
+ flags?: string | undefined;
680
+ description?: string | undefined;
681
+ }>, "many">>;
682
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
683
+ replacement: z.ZodOptional<z.ZodString>;
684
+ warnOnFilter: z.ZodOptional<z.ZodBoolean>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ enabled?: boolean | undefined;
687
+ strings?: string[] | undefined;
688
+ patterns?: {
689
+ regex: string;
690
+ flags?: string | undefined;
691
+ description?: string | undefined;
692
+ }[] | undefined;
693
+ caseSensitive?: boolean | undefined;
694
+ replacement?: string | undefined;
695
+ warnOnFilter?: boolean | undefined;
696
+ }, {
697
+ enabled?: boolean | undefined;
698
+ strings?: string[] | undefined;
699
+ patterns?: {
700
+ regex: string;
701
+ flags?: string | undefined;
702
+ description?: string | undefined;
703
+ }[] | undefined;
704
+ caseSensitive?: boolean | undefined;
705
+ replacement?: string | undefined;
706
+ warnOnFilter?: boolean | undefined;
707
+ }>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ dryRun?: boolean | undefined;
710
+ verbose?: boolean | undefined;
711
+ debug?: boolean | undefined;
712
+ overrides?: boolean | undefined;
713
+ model?: string | undefined;
714
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
715
+ openaiMaxOutputTokens?: number | undefined;
716
+ contextDirectories?: string[] | undefined;
717
+ outputDirectory?: string | undefined;
718
+ preferencesDirectory?: string | undefined;
719
+ commit?: {
720
+ model?: string | undefined;
721
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
722
+ openaiMaxOutputTokens?: number | undefined;
723
+ push?: string | boolean | undefined;
724
+ add?: boolean | undefined;
725
+ cached?: boolean | undefined;
726
+ sendit?: boolean | undefined;
727
+ interactive?: boolean | undefined;
728
+ amend?: boolean | undefined;
729
+ messageLimit?: number | undefined;
730
+ context?: string | undefined;
731
+ contextFiles?: string[] | undefined;
732
+ direction?: string | undefined;
733
+ skipFileCheck?: boolean | undefined;
734
+ maxDiffBytes?: number | undefined;
735
+ maxAgenticIterations?: number | undefined;
736
+ allowCommitSplitting?: boolean | undefined;
737
+ autoSplit?: boolean | undefined;
738
+ toolTimeout?: number | undefined;
739
+ selfReflection?: boolean | undefined;
740
+ } | undefined;
741
+ audioCommit?: {
742
+ model?: string | undefined;
743
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
744
+ openaiMaxOutputTokens?: number | undefined;
745
+ maxRecordingTime?: number | undefined;
746
+ audioDevice?: string | undefined;
747
+ file?: string | undefined;
748
+ keepTemp?: boolean | undefined;
749
+ } | undefined;
750
+ release?: {
751
+ model?: string | undefined;
752
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
753
+ openaiMaxOutputTokens?: number | undefined;
754
+ interactive?: boolean | undefined;
755
+ messageLimit?: number | undefined;
756
+ context?: string | undefined;
757
+ contextFiles?: string[] | undefined;
758
+ maxDiffBytes?: number | undefined;
759
+ maxAgenticIterations?: number | undefined;
760
+ selfReflection?: boolean | undefined;
761
+ from?: string | undefined;
762
+ to?: string | undefined;
763
+ focus?: string | undefined;
764
+ noMilestones?: boolean | undefined;
765
+ fromMain?: boolean | undefined;
766
+ currentBranch?: string | undefined;
767
+ version?: string | undefined;
768
+ } | undefined;
769
+ review?: {
770
+ model?: string | undefined;
771
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
772
+ openaiMaxOutputTokens?: number | undefined;
773
+ sendit?: boolean | undefined;
774
+ context?: string | undefined;
775
+ file?: string | undefined;
776
+ includeCommitHistory?: boolean | undefined;
777
+ includeRecentDiffs?: boolean | undefined;
778
+ includeReleaseNotes?: boolean | undefined;
779
+ includeGithubIssues?: boolean | undefined;
780
+ commitHistoryLimit?: number | undefined;
781
+ diffHistoryLimit?: number | undefined;
782
+ releaseNotesLimit?: number | undefined;
783
+ githubIssuesLimit?: number | undefined;
784
+ note?: string | undefined;
785
+ editorTimeout?: number | undefined;
786
+ maxContextErrors?: number | undefined;
787
+ directory?: string | undefined;
788
+ } | undefined;
789
+ audioReview?: {
790
+ model?: string | undefined;
791
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
792
+ openaiMaxOutputTokens?: number | undefined;
793
+ sendit?: boolean | undefined;
794
+ context?: string | undefined;
795
+ maxRecordingTime?: number | undefined;
796
+ audioDevice?: string | undefined;
797
+ file?: string | undefined;
798
+ keepTemp?: boolean | undefined;
799
+ includeCommitHistory?: boolean | undefined;
800
+ includeRecentDiffs?: boolean | undefined;
801
+ includeReleaseNotes?: boolean | undefined;
802
+ includeGithubIssues?: boolean | undefined;
803
+ commitHistoryLimit?: number | undefined;
804
+ diffHistoryLimit?: number | undefined;
805
+ releaseNotesLimit?: number | undefined;
806
+ githubIssuesLimit?: number | undefined;
807
+ directory?: string | undefined;
808
+ } | undefined;
809
+ precommit?: {
810
+ fix?: boolean | undefined;
811
+ } | undefined;
812
+ publish?: {
813
+ sendit?: boolean | undefined;
814
+ interactive?: boolean | undefined;
815
+ from?: string | undefined;
816
+ noMilestones?: boolean | undefined;
817
+ fromMain?: boolean | undefined;
818
+ mergeMethod?: "merge" | "squash" | "rebase" | undefined;
819
+ targetVersion?: string | undefined;
820
+ skipAlreadyPublished?: boolean | undefined;
821
+ forceRepublish?: boolean | undefined;
822
+ dependencyUpdatePatterns?: string[] | undefined;
823
+ scopedDependencyUpdates?: string[] | undefined;
824
+ requiredEnvVars?: string[] | undefined;
825
+ linkWorkspacePackages?: boolean | undefined;
826
+ unlinkWorkspacePackages?: boolean | undefined;
827
+ checksTimeout?: number | undefined;
828
+ skipUserConfirmation?: boolean | undefined;
829
+ syncTarget?: boolean | undefined;
830
+ waitForReleaseWorkflows?: boolean | undefined;
831
+ releaseWorkflowsTimeout?: number | undefined;
832
+ releaseWorkflowNames?: string[] | undefined;
833
+ targetBranch?: string | undefined;
834
+ skipPrePublishMerge?: boolean | undefined;
835
+ updateDeps?: string | undefined;
836
+ agenticPublish?: boolean | undefined;
837
+ agenticPublishMaxIterations?: number | undefined;
838
+ skipLinkCleanup?: boolean | undefined;
839
+ } | undefined;
840
+ branches?: Record<string, {
841
+ version?: {
842
+ type: "release" | "prerelease";
843
+ increment?: boolean | undefined;
844
+ incrementLevel?: "patch" | "minor" | "major" | undefined;
845
+ tag?: string | undefined;
846
+ } | undefined;
847
+ targetBranch?: string | undefined;
848
+ developmentBranch?: boolean | undefined;
849
+ }> | undefined;
850
+ link?: {
851
+ dryRun?: boolean | undefined;
852
+ scopeRoots?: Record<string, string> | undefined;
853
+ packageArgument?: string | undefined;
854
+ externals?: string[] | undefined;
855
+ } | undefined;
856
+ unlink?: {
857
+ dryRun?: boolean | undefined;
858
+ scopeRoots?: Record<string, string> | undefined;
859
+ packageArgument?: string | undefined;
860
+ externals?: string[] | undefined;
861
+ workspaceFile?: string | undefined;
862
+ cleanNodeModules?: boolean | undefined;
863
+ } | undefined;
864
+ tree?: {
865
+ status?: boolean | undefined;
866
+ fix?: boolean | undefined;
867
+ packageArgument?: string | undefined;
868
+ externals?: string[] | undefined;
869
+ cleanNodeModules?: boolean | undefined;
870
+ directories?: string[] | undefined;
871
+ exclude?: string[] | undefined;
872
+ startFrom?: string | undefined;
873
+ stopAt?: string | undefined;
874
+ cmd?: string | undefined;
875
+ builtInCommand?: string | undefined;
876
+ continue?: boolean | undefined;
877
+ promote?: string | undefined;
878
+ parallel?: boolean | undefined;
879
+ maxConcurrency?: number | undefined;
880
+ retry?: {
881
+ maxAttempts?: number | undefined;
882
+ initialDelayMs?: number | undefined;
883
+ maxDelayMs?: number | undefined;
884
+ backoffMultiplier?: number | undefined;
885
+ retriableErrors?: string[] | undefined;
886
+ } | undefined;
887
+ recovery?: {
888
+ checkpointInterval?: "package" | "batch" | undefined;
889
+ autoRetry?: boolean | undefined;
890
+ continueOnError?: boolean | undefined;
891
+ } | undefined;
892
+ monitoring?: {
893
+ showProgress?: boolean | undefined;
894
+ showMetrics?: boolean | undefined;
895
+ logLevel?: "verbose" | "minimal" | "normal" | undefined;
896
+ } | undefined;
897
+ markCompleted?: string[] | undefined;
898
+ skipPackages?: string[] | undefined;
899
+ retryFailed?: boolean | undefined;
900
+ skipFailed?: boolean | undefined;
901
+ resetPackage?: string | undefined;
902
+ statusParallel?: boolean | undefined;
903
+ auditBranches?: boolean | undefined;
904
+ validateState?: boolean | undefined;
905
+ order?: boolean | undefined;
906
+ } | undefined;
907
+ development?: {
908
+ noMilestones?: boolean | undefined;
909
+ targetVersion?: string | undefined;
910
+ tagWorkingBranch?: boolean | undefined;
911
+ createRetroactiveTags?: boolean | undefined;
912
+ workingTagPrefix?: string | undefined;
913
+ } | undefined;
914
+ versions?: {
915
+ directories?: string[] | undefined;
916
+ subcommand?: string | undefined;
917
+ } | undefined;
918
+ updates?: {
919
+ directories?: string[] | undefined;
920
+ scope?: string | undefined;
921
+ scopes?: string[] | undefined;
922
+ interProject?: boolean | undefined;
923
+ report?: boolean | undefined;
924
+ analyze?: boolean | undefined;
925
+ strategy?: "latest" | "conservative" | "compatible" | undefined;
926
+ } | undefined;
927
+ pull?: {
928
+ remote?: string | undefined;
929
+ branch?: string | undefined;
930
+ autoStash?: boolean | undefined;
931
+ autoResolve?: boolean | undefined;
932
+ } | undefined;
933
+ excludedPatterns?: string[] | undefined;
934
+ traits?: any;
935
+ stopContext?: {
936
+ enabled?: boolean | undefined;
937
+ strings?: string[] | undefined;
938
+ patterns?: {
939
+ regex: string;
940
+ flags?: string | undefined;
941
+ description?: string | undefined;
942
+ }[] | undefined;
943
+ caseSensitive?: boolean | undefined;
944
+ replacement?: string | undefined;
945
+ warnOnFilter?: boolean | undefined;
946
+ } | undefined;
947
+ }, {
948
+ dryRun?: boolean | undefined;
949
+ verbose?: boolean | undefined;
950
+ debug?: boolean | undefined;
951
+ overrides?: boolean | undefined;
952
+ model?: string | undefined;
953
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
954
+ openaiMaxOutputTokens?: number | undefined;
955
+ contextDirectories?: string[] | undefined;
956
+ outputDirectory?: string | undefined;
957
+ preferencesDirectory?: string | undefined;
958
+ commit?: {
959
+ model?: string | undefined;
960
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
961
+ openaiMaxOutputTokens?: number | undefined;
962
+ push?: string | boolean | undefined;
963
+ add?: boolean | undefined;
964
+ cached?: boolean | undefined;
965
+ sendit?: boolean | undefined;
966
+ interactive?: boolean | undefined;
967
+ amend?: boolean | undefined;
968
+ messageLimit?: number | undefined;
969
+ context?: string | undefined;
970
+ contextFiles?: string[] | undefined;
971
+ direction?: string | undefined;
972
+ skipFileCheck?: boolean | undefined;
973
+ maxDiffBytes?: number | undefined;
974
+ maxAgenticIterations?: number | undefined;
975
+ allowCommitSplitting?: boolean | undefined;
976
+ autoSplit?: boolean | undefined;
977
+ toolTimeout?: number | undefined;
978
+ selfReflection?: boolean | undefined;
979
+ } | undefined;
980
+ audioCommit?: {
981
+ model?: string | undefined;
982
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
983
+ openaiMaxOutputTokens?: number | undefined;
984
+ maxRecordingTime?: number | undefined;
985
+ audioDevice?: string | undefined;
986
+ file?: string | undefined;
987
+ keepTemp?: boolean | undefined;
988
+ } | undefined;
989
+ release?: {
990
+ model?: string | undefined;
991
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
992
+ openaiMaxOutputTokens?: number | undefined;
993
+ interactive?: boolean | undefined;
994
+ messageLimit?: number | undefined;
995
+ context?: string | undefined;
996
+ contextFiles?: string[] | undefined;
997
+ maxDiffBytes?: number | undefined;
998
+ maxAgenticIterations?: number | undefined;
999
+ selfReflection?: boolean | undefined;
1000
+ from?: string | undefined;
1001
+ to?: string | undefined;
1002
+ focus?: string | undefined;
1003
+ noMilestones?: boolean | undefined;
1004
+ fromMain?: boolean | undefined;
1005
+ currentBranch?: string | undefined;
1006
+ version?: string | undefined;
1007
+ } | undefined;
1008
+ review?: {
1009
+ model?: string | undefined;
1010
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
1011
+ openaiMaxOutputTokens?: number | undefined;
1012
+ sendit?: boolean | undefined;
1013
+ context?: string | undefined;
1014
+ file?: string | undefined;
1015
+ includeCommitHistory?: boolean | undefined;
1016
+ includeRecentDiffs?: boolean | undefined;
1017
+ includeReleaseNotes?: boolean | undefined;
1018
+ includeGithubIssues?: boolean | undefined;
1019
+ commitHistoryLimit?: number | undefined;
1020
+ diffHistoryLimit?: number | undefined;
1021
+ releaseNotesLimit?: number | undefined;
1022
+ githubIssuesLimit?: number | undefined;
1023
+ note?: string | undefined;
1024
+ editorTimeout?: number | undefined;
1025
+ maxContextErrors?: number | undefined;
1026
+ directory?: string | undefined;
1027
+ } | undefined;
1028
+ audioReview?: {
1029
+ model?: string | undefined;
1030
+ openaiReasoning?: "low" | "medium" | "high" | undefined;
1031
+ openaiMaxOutputTokens?: number | undefined;
1032
+ sendit?: boolean | undefined;
1033
+ context?: string | undefined;
1034
+ maxRecordingTime?: number | undefined;
1035
+ audioDevice?: string | undefined;
1036
+ file?: string | undefined;
1037
+ keepTemp?: boolean | undefined;
1038
+ includeCommitHistory?: boolean | undefined;
1039
+ includeRecentDiffs?: boolean | undefined;
1040
+ includeReleaseNotes?: boolean | undefined;
1041
+ includeGithubIssues?: boolean | undefined;
1042
+ commitHistoryLimit?: number | undefined;
1043
+ diffHistoryLimit?: number | undefined;
1044
+ releaseNotesLimit?: number | undefined;
1045
+ githubIssuesLimit?: number | undefined;
1046
+ directory?: string | undefined;
1047
+ } | undefined;
1048
+ precommit?: {
1049
+ fix?: boolean | undefined;
1050
+ } | undefined;
1051
+ publish?: {
1052
+ sendit?: boolean | undefined;
1053
+ interactive?: boolean | undefined;
1054
+ from?: string | undefined;
1055
+ noMilestones?: boolean | undefined;
1056
+ fromMain?: boolean | undefined;
1057
+ mergeMethod?: "merge" | "squash" | "rebase" | undefined;
1058
+ targetVersion?: string | undefined;
1059
+ skipAlreadyPublished?: boolean | undefined;
1060
+ forceRepublish?: boolean | undefined;
1061
+ dependencyUpdatePatterns?: string[] | undefined;
1062
+ scopedDependencyUpdates?: string[] | undefined;
1063
+ requiredEnvVars?: string[] | undefined;
1064
+ linkWorkspacePackages?: boolean | undefined;
1065
+ unlinkWorkspacePackages?: boolean | undefined;
1066
+ checksTimeout?: number | undefined;
1067
+ skipUserConfirmation?: boolean | undefined;
1068
+ syncTarget?: boolean | undefined;
1069
+ waitForReleaseWorkflows?: boolean | undefined;
1070
+ releaseWorkflowsTimeout?: number | undefined;
1071
+ releaseWorkflowNames?: string[] | undefined;
1072
+ targetBranch?: string | undefined;
1073
+ skipPrePublishMerge?: boolean | undefined;
1074
+ updateDeps?: string | undefined;
1075
+ agenticPublish?: boolean | undefined;
1076
+ agenticPublishMaxIterations?: number | undefined;
1077
+ skipLinkCleanup?: boolean | undefined;
1078
+ } | undefined;
1079
+ branches?: Record<string, {
1080
+ version?: {
1081
+ type: "release" | "prerelease";
1082
+ increment?: boolean | undefined;
1083
+ incrementLevel?: "patch" | "minor" | "major" | undefined;
1084
+ tag?: string | undefined;
1085
+ } | undefined;
1086
+ targetBranch?: string | undefined;
1087
+ developmentBranch?: boolean | undefined;
1088
+ }> | undefined;
1089
+ link?: {
1090
+ dryRun?: boolean | undefined;
1091
+ scopeRoots?: Record<string, string> | undefined;
1092
+ packageArgument?: string | undefined;
1093
+ externals?: string[] | undefined;
1094
+ } | undefined;
1095
+ unlink?: {
1096
+ dryRun?: boolean | undefined;
1097
+ scopeRoots?: Record<string, string> | undefined;
1098
+ packageArgument?: string | undefined;
1099
+ externals?: string[] | undefined;
1100
+ workspaceFile?: string | undefined;
1101
+ cleanNodeModules?: boolean | undefined;
1102
+ } | undefined;
1103
+ tree?: {
1104
+ status?: boolean | undefined;
1105
+ fix?: boolean | undefined;
1106
+ packageArgument?: string | undefined;
1107
+ externals?: string[] | undefined;
1108
+ cleanNodeModules?: boolean | undefined;
1109
+ directories?: string[] | undefined;
1110
+ exclude?: string[] | undefined;
1111
+ startFrom?: string | undefined;
1112
+ stopAt?: string | undefined;
1113
+ cmd?: string | undefined;
1114
+ builtInCommand?: string | undefined;
1115
+ continue?: boolean | undefined;
1116
+ promote?: string | undefined;
1117
+ parallel?: boolean | undefined;
1118
+ maxConcurrency?: number | undefined;
1119
+ retry?: {
1120
+ maxAttempts?: number | undefined;
1121
+ initialDelayMs?: number | undefined;
1122
+ maxDelayMs?: number | undefined;
1123
+ backoffMultiplier?: number | undefined;
1124
+ retriableErrors?: string[] | undefined;
1125
+ } | undefined;
1126
+ recovery?: {
1127
+ checkpointInterval?: "package" | "batch" | undefined;
1128
+ autoRetry?: boolean | undefined;
1129
+ continueOnError?: boolean | undefined;
1130
+ } | undefined;
1131
+ monitoring?: {
1132
+ showProgress?: boolean | undefined;
1133
+ showMetrics?: boolean | undefined;
1134
+ logLevel?: "verbose" | "minimal" | "normal" | undefined;
1135
+ } | undefined;
1136
+ markCompleted?: string[] | undefined;
1137
+ skipPackages?: string[] | undefined;
1138
+ retryFailed?: boolean | undefined;
1139
+ skipFailed?: boolean | undefined;
1140
+ resetPackage?: string | undefined;
1141
+ statusParallel?: boolean | undefined;
1142
+ auditBranches?: boolean | undefined;
1143
+ validateState?: boolean | undefined;
1144
+ order?: boolean | undefined;
1145
+ } | undefined;
1146
+ development?: {
1147
+ noMilestones?: boolean | undefined;
1148
+ targetVersion?: string | undefined;
1149
+ tagWorkingBranch?: boolean | undefined;
1150
+ createRetroactiveTags?: boolean | undefined;
1151
+ workingTagPrefix?: string | undefined;
1152
+ } | undefined;
1153
+ versions?: {
1154
+ directories?: string[] | undefined;
1155
+ subcommand?: string | undefined;
1156
+ } | undefined;
1157
+ updates?: {
1158
+ directories?: string[] | undefined;
1159
+ scope?: string | undefined;
1160
+ scopes?: string[] | undefined;
1161
+ interProject?: boolean | undefined;
1162
+ report?: boolean | undefined;
1163
+ analyze?: boolean | undefined;
1164
+ strategy?: "latest" | "conservative" | "compatible" | undefined;
1165
+ } | undefined;
1166
+ pull?: {
1167
+ remote?: string | undefined;
1168
+ branch?: string | undefined;
1169
+ autoStash?: boolean | undefined;
1170
+ autoResolve?: boolean | undefined;
1171
+ } | undefined;
1172
+ excludedPatterns?: string[] | undefined;
1173
+ traits?: any;
1174
+ stopContext?: {
1175
+ enabled?: boolean | undefined;
1176
+ strings?: string[] | undefined;
1177
+ patterns?: {
1178
+ regex: string;
1179
+ flags?: string | undefined;
1180
+ description?: string | undefined;
1181
+ }[] | undefined;
1182
+ caseSensitive?: boolean | undefined;
1183
+ replacement?: string | undefined;
1184
+ warnOnFilter?: boolean | undefined;
1185
+ } | undefined;
1186
+ }>;
1187
+ export declare const SecureConfigSchema: z.ZodObject<{
1188
+ openaiApiKey: z.ZodOptional<z.ZodString>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ openaiApiKey?: string | undefined;
1191
+ }, {
1192
+ openaiApiKey?: string | undefined;
1193
+ }>;
1194
+ export declare const CommandConfigSchema: z.ZodObject<{
1195
+ commandName: z.ZodOptional<z.ZodString>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ commandName?: string | undefined;
1198
+ }, {
1199
+ commandName?: string | undefined;
1200
+ }>;
1201
+ export type Config = z.infer<typeof ConfigSchema> & Cardigantime.Config & {
1202
+ discoveredConfigDirs?: string[];
1203
+ };
1204
+ export type SecureConfig = z.infer<typeof SecureConfigSchema>;
1205
+ export type CommandConfig = z.infer<typeof CommandConfigSchema>;
1206
+ export type MergeMethod = 'merge' | 'squash' | 'rebase';
1207
+ export interface PullRequest {
1208
+ html_url: string;
1209
+ number: number;
1210
+ labels?: {
1211
+ name: string;
1212
+ }[];
1213
+ }
1214
+ export type ReleaseSummary = {
1215
+ title: string;
1216
+ body: string;
1217
+ };
1218
+ export type ReleaseConfig = {
1219
+ from?: string;
1220
+ to?: string;
1221
+ context?: string;
1222
+ contextFiles?: string[];
1223
+ interactive?: boolean;
1224
+ focus?: string;
1225
+ messageLimit?: number;
1226
+ maxDiffBytes?: number;
1227
+ model?: string;
1228
+ openaiReasoning?: 'low' | 'medium' | 'high';
1229
+ openaiMaxOutputTokens?: number;
1230
+ currentBranch?: string;
1231
+ maxAgenticIterations?: number;
1232
+ selfReflection?: boolean;
1233
+ };
1234
+ export type ReviewConfig = {
1235
+ includeCommitHistory?: boolean;
1236
+ includeRecentDiffs?: boolean;
1237
+ includeReleaseNotes?: boolean;
1238
+ includeGithubIssues?: boolean;
1239
+ commitHistoryLimit?: number;
1240
+ diffHistoryLimit?: number;
1241
+ releaseNotesLimit?: number;
1242
+ githubIssuesLimit?: number;
1243
+ context?: string;
1244
+ sendit?: boolean;
1245
+ note?: string;
1246
+ editorTimeout?: number;
1247
+ maxContextErrors?: number;
1248
+ model?: string;
1249
+ openaiReasoning?: 'low' | 'medium' | 'high';
1250
+ openaiMaxOutputTokens?: number;
1251
+ };
1252
+ export type AudioReviewConfig = {
1253
+ includeCommitHistory?: boolean;
1254
+ includeRecentDiffs?: boolean;
1255
+ includeReleaseNotes?: boolean;
1256
+ includeGithubIssues?: boolean;
1257
+ commitHistoryLimit?: number;
1258
+ diffHistoryLimit?: number;
1259
+ releaseNotesLimit?: number;
1260
+ githubIssuesLimit?: number;
1261
+ context?: string;
1262
+ sendit?: boolean;
1263
+ maxRecordingTime?: number;
1264
+ audioDevice?: string;
1265
+ file?: string;
1266
+ directory?: string;
1267
+ keepTemp?: boolean;
1268
+ model?: string;
1269
+ openaiReasoning?: 'low' | 'medium' | 'high';
1270
+ openaiMaxOutputTokens?: number;
1271
+ };
1272
+ export type CommitConfig = {
1273
+ add?: boolean;
1274
+ cached?: boolean;
1275
+ sendit?: boolean;
1276
+ interactive?: boolean;
1277
+ amend?: boolean;
1278
+ push?: string | boolean;
1279
+ messageLimit?: number;
1280
+ context?: string;
1281
+ contextFiles?: string[];
1282
+ direction?: string;
1283
+ skipFileCheck?: boolean;
1284
+ maxDiffBytes?: number;
1285
+ model?: string;
1286
+ openaiReasoning?: 'low' | 'medium' | 'high';
1287
+ openaiMaxOutputTokens?: number;
1288
+ maxAgenticIterations?: number;
1289
+ allowCommitSplitting?: boolean;
1290
+ autoSplit?: boolean;
1291
+ toolTimeout?: number;
1292
+ selfReflection?: boolean;
1293
+ };
1294
+ export type AudioCommitConfig = {
1295
+ maxRecordingTime?: number;
1296
+ audioDevice?: string;
1297
+ file?: string;
1298
+ keepTemp?: boolean;
1299
+ model?: string;
1300
+ openaiReasoning?: 'low' | 'medium' | 'high';
1301
+ openaiMaxOutputTokens?: number;
1302
+ };
1303
+ export type LinkConfig = {
1304
+ scopeRoots?: Record<string, string>;
1305
+ dryRun?: boolean;
1306
+ packageArgument?: string;
1307
+ externalLinkPatterns?: string[];
1308
+ };
1309
+ export type UnlinkConfig = {
1310
+ scopeRoots?: Record<string, string>;
1311
+ workspaceFile?: string;
1312
+ dryRun?: boolean;
1313
+ cleanNodeModules?: boolean;
1314
+ packageArgument?: string;
1315
+ };
1316
+ export type PublishConfig = {
1317
+ mergeMethod?: 'merge' | 'squash' | 'rebase';
1318
+ from?: string;
1319
+ targetVersion?: string;
1320
+ interactive?: boolean;
1321
+ skipAlreadyPublished?: boolean;
1322
+ forceRepublish?: boolean;
1323
+ syncTarget?: boolean;
1324
+ dependencyUpdatePatterns?: string[];
1325
+ scopedDependencyUpdates?: string[];
1326
+ requiredEnvVars?: string[];
1327
+ linkWorkspacePackages?: boolean;
1328
+ unlinkWorkspacePackages?: boolean;
1329
+ checksTimeout?: number;
1330
+ skipUserConfirmation?: boolean;
1331
+ sendit?: boolean;
1332
+ waitForReleaseWorkflows?: boolean;
1333
+ releaseWorkflowsTimeout?: number;
1334
+ releaseWorkflowNames?: string[];
1335
+ targetBranch?: string;
1336
+ noMilestones?: boolean;
1337
+ updateDeps?: string;
1338
+ agenticPublish?: boolean;
1339
+ agenticPublishMaxIterations?: number;
1340
+ skipLinkCleanup?: boolean;
1341
+ };
1342
+ export type VersionTargetConfig = {
1343
+ type: 'release' | 'prerelease';
1344
+ increment?: boolean;
1345
+ tag?: string;
1346
+ };
1347
+ export type BranchTargetConfig = {
1348
+ targetBranch: string;
1349
+ developmentBranch?: boolean;
1350
+ version?: VersionTargetConfig;
1351
+ };
1352
+ export type TargetsConfig = Record<string, BranchTargetConfig>;
1353
+ /**
1354
+ * Callback function called when a tree command focuses on a particular package
1355
+ * @param packageName - The name of the package being processed
1356
+ * @param index - Zero-based index of the package in the build order
1357
+ * @param total - Total number of packages to process
1358
+ */
1359
+ export type PackageFocusCallback = (packageName: string, index: number, total: number) => void | Promise<void>;
1360
+ export type TreeConfig = {
1361
+ directories?: string[];
1362
+ excludedPatterns?: string[];
1363
+ exclude?: string[];
1364
+ startFrom?: string;
1365
+ stopAt?: string;
1366
+ cmd?: string;
1367
+ builtInCommand?: string;
1368
+ continue?: boolean;
1369
+ status?: boolean;
1370
+ promote?: string;
1371
+ packageArgument?: string;
1372
+ cleanNodeModules?: boolean;
1373
+ externalLinkPatterns?: string[];
1374
+ externals?: string[];
1375
+ parallel?: boolean;
1376
+ maxConcurrency?: number;
1377
+ retry?: {
1378
+ maxAttempts: number;
1379
+ initialDelayMs: number;
1380
+ maxDelayMs: number;
1381
+ backoffMultiplier: number;
1382
+ retriableErrors?: string[];
1383
+ };
1384
+ recovery?: {
1385
+ checkpointInterval: 'package' | 'batch';
1386
+ autoRetry: boolean;
1387
+ continueOnError: boolean;
1388
+ };
1389
+ monitoring?: {
1390
+ showProgress: boolean;
1391
+ showMetrics: boolean;
1392
+ logLevel: 'minimal' | 'normal' | 'verbose';
1393
+ };
1394
+ markCompleted?: string[];
1395
+ skipPackages?: string[];
1396
+ retryFailed?: boolean;
1397
+ skipFailed?: boolean;
1398
+ resetPackage?: string;
1399
+ statusParallel?: boolean;
1400
+ auditBranches?: boolean;
1401
+ validateState?: boolean;
1402
+ order?: boolean;
1403
+ fix?: boolean;
1404
+ onPackageFocus?: PackageFocusCallback;
1405
+ };
1406
+ export type DevelopmentConfig = {
1407
+ targetVersion?: string;
1408
+ noMilestones?: boolean;
1409
+ tagWorkingBranch?: boolean;
1410
+ createRetroactiveTags?: boolean;
1411
+ workingTagPrefix?: string;
1412
+ };
1413
+ export type VersionsConfig = {
1414
+ subcommand?: string;
1415
+ directories?: string[];
1416
+ };
1417
+ export type UpdatesConfig = {
1418
+ scope?: string;
1419
+ scopes?: string[];
1420
+ directories?: string[];
1421
+ interProject?: boolean;
1422
+ report?: boolean;
1423
+ analyze?: boolean;
1424
+ strategy?: 'latest' | 'conservative' | 'compatible';
1425
+ };
1426
+ export type PullConfig = {
1427
+ remote?: string;
1428
+ branch?: string;
1429
+ autoStash?: boolean;
1430
+ autoResolve?: boolean;
1431
+ };
1432
+ export type StopContextPattern = {
1433
+ regex: string;
1434
+ flags?: string;
1435
+ description?: string;
1436
+ };
1437
+ export type StopContextConfig = {
1438
+ enabled?: boolean;
1439
+ strings?: string[];
1440
+ patterns?: StopContextPattern[];
1441
+ caseSensitive?: boolean;
1442
+ replacement?: string;
1443
+ warnOnFilter?: boolean;
1444
+ };
1445
+ //# sourceMappingURL=types.d.ts.map