@kb-labs/commit-contracts 0.6.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.
@@ -0,0 +1,1352 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Conventional commit types
5
+ */
6
+ declare const ConventionalTypeSchema: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "build", "ci", "perf"]>;
7
+ type ConventionalType = z.infer<typeof ConventionalTypeSchema>;
8
+ /**
9
+ * Release hint for semantic versioning
10
+ */
11
+ declare const ReleaseHintSchema: z.ZodEnum<["none", "patch", "minor", "major"]>;
12
+ type ReleaseHint = z.infer<typeof ReleaseHintSchema>;
13
+ /**
14
+ * Git status snapshot
15
+ */
16
+ declare const GitStatusSchema: z.ZodObject<{
17
+ staged: z.ZodArray<z.ZodString, "many">;
18
+ unstaged: z.ZodArray<z.ZodString, "many">;
19
+ untracked: z.ZodArray<z.ZodString, "many">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ staged: string[];
22
+ unstaged: string[];
23
+ untracked: string[];
24
+ }, {
25
+ staged: string[];
26
+ unstaged: string[];
27
+ untracked: string[];
28
+ }>;
29
+ type GitStatus = z.infer<typeof GitStatusSchema>;
30
+ /**
31
+ * File summary with diff stats
32
+ */
33
+ declare const FileSummarySchema: z.ZodObject<{
34
+ path: z.ZodString;
35
+ status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied"]>;
36
+ additions: z.ZodNumber;
37
+ deletions: z.ZodNumber;
38
+ binary: z.ZodDefault<z.ZodBoolean>;
39
+ /** Whether file is truly new (never existed in repo history) */
40
+ isNewFile: z.ZodDefault<z.ZodBoolean>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ binary: boolean;
43
+ path: string;
44
+ status: "added" | "modified" | "deleted" | "renamed" | "copied";
45
+ additions: number;
46
+ deletions: number;
47
+ isNewFile: boolean;
48
+ }, {
49
+ path: string;
50
+ status: "added" | "modified" | "deleted" | "renamed" | "copied";
51
+ additions: number;
52
+ deletions: number;
53
+ binary?: boolean | undefined;
54
+ isNewFile?: boolean | undefined;
55
+ }>;
56
+ type FileSummary = z.infer<typeof FileSummarySchema>;
57
+ /**
58
+ * Reasoning for commit type classification
59
+ */
60
+ declare const CommitReasoningSchema: z.ZodObject<{
61
+ /** Does this change add NEW user-visible behavior? */
62
+ newBehavior: z.ZodDefault<z.ZodBoolean>;
63
+ /** Does this change fix BROKEN functionality? */
64
+ fixesBug: z.ZodDefault<z.ZodBoolean>;
65
+ /** Is this only INTERNAL restructuring? */
66
+ internalOnly: z.ZodDefault<z.ZodBoolean>;
67
+ /** Human-readable explanation of why this type was chosen */
68
+ explanation: z.ZodDefault<z.ZodString>;
69
+ /** LLM confidence in this classification (0.0-1.0) */
70
+ confidence: z.ZodDefault<z.ZodNumber>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ newBehavior: boolean;
73
+ fixesBug: boolean;
74
+ internalOnly: boolean;
75
+ explanation: string;
76
+ confidence: number;
77
+ }, {
78
+ newBehavior?: boolean | undefined;
79
+ fixesBug?: boolean | undefined;
80
+ internalOnly?: boolean | undefined;
81
+ explanation?: string | undefined;
82
+ confidence?: number | undefined;
83
+ }>;
84
+ type CommitReasoning = z.infer<typeof CommitReasoningSchema>;
85
+ /**
86
+ * A single commit group in the plan
87
+ */
88
+ declare const CommitGroupSchema: z.ZodObject<{
89
+ id: z.ZodString;
90
+ type: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "build", "ci", "perf"]>;
91
+ scope: z.ZodOptional<z.ZodString>;
92
+ message: z.ZodString;
93
+ body: z.ZodOptional<z.ZodString>;
94
+ files: z.ZodArray<z.ZodString, "many">;
95
+ releaseHint: z.ZodDefault<z.ZodEnum<["none", "patch", "minor", "major"]>>;
96
+ breaking: z.ZodDefault<z.ZodBoolean>;
97
+ /** Reasoning for commit type classification (optional, added by LLM) */
98
+ reasoning: z.ZodOptional<z.ZodObject<{
99
+ /** Does this change add NEW user-visible behavior? */
100
+ newBehavior: z.ZodDefault<z.ZodBoolean>;
101
+ /** Does this change fix BROKEN functionality? */
102
+ fixesBug: z.ZodDefault<z.ZodBoolean>;
103
+ /** Is this only INTERNAL restructuring? */
104
+ internalOnly: z.ZodDefault<z.ZodBoolean>;
105
+ /** Human-readable explanation of why this type was chosen */
106
+ explanation: z.ZodDefault<z.ZodString>;
107
+ /** LLM confidence in this classification (0.0-1.0) */
108
+ confidence: z.ZodDefault<z.ZodNumber>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ newBehavior: boolean;
111
+ fixesBug: boolean;
112
+ internalOnly: boolean;
113
+ explanation: string;
114
+ confidence: number;
115
+ }, {
116
+ newBehavior?: boolean | undefined;
117
+ fixesBug?: boolean | undefined;
118
+ internalOnly?: boolean | undefined;
119
+ explanation?: string | undefined;
120
+ confidence?: number | undefined;
121
+ }>>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ message: string;
124
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
125
+ id: string;
126
+ files: string[];
127
+ releaseHint: "minor" | "none" | "patch" | "major";
128
+ breaking: boolean;
129
+ scope?: string | undefined;
130
+ body?: string | undefined;
131
+ reasoning?: {
132
+ newBehavior: boolean;
133
+ fixesBug: boolean;
134
+ internalOnly: boolean;
135
+ explanation: string;
136
+ confidence: number;
137
+ } | undefined;
138
+ }, {
139
+ message: string;
140
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
141
+ id: string;
142
+ files: string[];
143
+ scope?: string | undefined;
144
+ body?: string | undefined;
145
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
146
+ breaking?: boolean | undefined;
147
+ reasoning?: {
148
+ newBehavior?: boolean | undefined;
149
+ fixesBug?: boolean | undefined;
150
+ internalOnly?: boolean | undefined;
151
+ explanation?: string | undefined;
152
+ confidence?: number | undefined;
153
+ } | undefined;
154
+ }>;
155
+ type CommitGroup = z.infer<typeof CommitGroupSchema>;
156
+ /**
157
+ * Complete commit plan
158
+ */
159
+ declare const CommitPlanSchema: z.ZodObject<{
160
+ schemaVersion: z.ZodLiteral<"1.0">;
161
+ createdAt: z.ZodString;
162
+ repoRoot: z.ZodString;
163
+ gitStatus: z.ZodObject<{
164
+ staged: z.ZodArray<z.ZodString, "many">;
165
+ unstaged: z.ZodArray<z.ZodString, "many">;
166
+ untracked: z.ZodArray<z.ZodString, "many">;
167
+ }, "strip", z.ZodTypeAny, {
168
+ staged: string[];
169
+ unstaged: string[];
170
+ untracked: string[];
171
+ }, {
172
+ staged: string[];
173
+ unstaged: string[];
174
+ untracked: string[];
175
+ }>;
176
+ commits: z.ZodArray<z.ZodObject<{
177
+ id: z.ZodString;
178
+ type: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "build", "ci", "perf"]>;
179
+ scope: z.ZodOptional<z.ZodString>;
180
+ message: z.ZodString;
181
+ body: z.ZodOptional<z.ZodString>;
182
+ files: z.ZodArray<z.ZodString, "many">;
183
+ releaseHint: z.ZodDefault<z.ZodEnum<["none", "patch", "minor", "major"]>>;
184
+ breaking: z.ZodDefault<z.ZodBoolean>;
185
+ /** Reasoning for commit type classification (optional, added by LLM) */
186
+ reasoning: z.ZodOptional<z.ZodObject<{
187
+ /** Does this change add NEW user-visible behavior? */
188
+ newBehavior: z.ZodDefault<z.ZodBoolean>;
189
+ /** Does this change fix BROKEN functionality? */
190
+ fixesBug: z.ZodDefault<z.ZodBoolean>;
191
+ /** Is this only INTERNAL restructuring? */
192
+ internalOnly: z.ZodDefault<z.ZodBoolean>;
193
+ /** Human-readable explanation of why this type was chosen */
194
+ explanation: z.ZodDefault<z.ZodString>;
195
+ /** LLM confidence in this classification (0.0-1.0) */
196
+ confidence: z.ZodDefault<z.ZodNumber>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ newBehavior: boolean;
199
+ fixesBug: boolean;
200
+ internalOnly: boolean;
201
+ explanation: string;
202
+ confidence: number;
203
+ }, {
204
+ newBehavior?: boolean | undefined;
205
+ fixesBug?: boolean | undefined;
206
+ internalOnly?: boolean | undefined;
207
+ explanation?: string | undefined;
208
+ confidence?: number | undefined;
209
+ }>>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ message: string;
212
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
213
+ id: string;
214
+ files: string[];
215
+ releaseHint: "minor" | "none" | "patch" | "major";
216
+ breaking: boolean;
217
+ scope?: string | undefined;
218
+ body?: string | undefined;
219
+ reasoning?: {
220
+ newBehavior: boolean;
221
+ fixesBug: boolean;
222
+ internalOnly: boolean;
223
+ explanation: string;
224
+ confidence: number;
225
+ } | undefined;
226
+ }, {
227
+ message: string;
228
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
229
+ id: string;
230
+ files: string[];
231
+ scope?: string | undefined;
232
+ body?: string | undefined;
233
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
234
+ breaking?: boolean | undefined;
235
+ reasoning?: {
236
+ newBehavior?: boolean | undefined;
237
+ fixesBug?: boolean | undefined;
238
+ internalOnly?: boolean | undefined;
239
+ explanation?: string | undefined;
240
+ confidence?: number | undefined;
241
+ } | undefined;
242
+ }>, "many">;
243
+ metadata: z.ZodObject<{
244
+ totalFiles: z.ZodNumber;
245
+ totalCommits: z.ZodNumber;
246
+ llmUsed: z.ZodBoolean;
247
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
248
+ /** Whether LLM escalated to Phase 2 (requested diff for more context) */
249
+ escalated: z.ZodOptional<z.ZodBoolean>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ totalFiles: number;
252
+ totalCommits: number;
253
+ llmUsed: boolean;
254
+ tokensUsed?: number | undefined;
255
+ escalated?: boolean | undefined;
256
+ }, {
257
+ totalFiles: number;
258
+ totalCommits: number;
259
+ llmUsed: boolean;
260
+ tokensUsed?: number | undefined;
261
+ escalated?: boolean | undefined;
262
+ }>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ schemaVersion: "1.0";
265
+ createdAt: string;
266
+ repoRoot: string;
267
+ gitStatus: {
268
+ staged: string[];
269
+ unstaged: string[];
270
+ untracked: string[];
271
+ };
272
+ commits: {
273
+ message: string;
274
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
275
+ id: string;
276
+ files: string[];
277
+ releaseHint: "minor" | "none" | "patch" | "major";
278
+ breaking: boolean;
279
+ scope?: string | undefined;
280
+ body?: string | undefined;
281
+ reasoning?: {
282
+ newBehavior: boolean;
283
+ fixesBug: boolean;
284
+ internalOnly: boolean;
285
+ explanation: string;
286
+ confidence: number;
287
+ } | undefined;
288
+ }[];
289
+ metadata: {
290
+ totalFiles: number;
291
+ totalCommits: number;
292
+ llmUsed: boolean;
293
+ tokensUsed?: number | undefined;
294
+ escalated?: boolean | undefined;
295
+ };
296
+ }, {
297
+ schemaVersion: "1.0";
298
+ createdAt: string;
299
+ repoRoot: string;
300
+ gitStatus: {
301
+ staged: string[];
302
+ unstaged: string[];
303
+ untracked: string[];
304
+ };
305
+ commits: {
306
+ message: string;
307
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
308
+ id: string;
309
+ files: string[];
310
+ scope?: string | undefined;
311
+ body?: string | undefined;
312
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
313
+ breaking?: boolean | undefined;
314
+ reasoning?: {
315
+ newBehavior?: boolean | undefined;
316
+ fixesBug?: boolean | undefined;
317
+ internalOnly?: boolean | undefined;
318
+ explanation?: string | undefined;
319
+ confidence?: number | undefined;
320
+ } | undefined;
321
+ }[];
322
+ metadata: {
323
+ totalFiles: number;
324
+ totalCommits: number;
325
+ llmUsed: boolean;
326
+ tokensUsed?: number | undefined;
327
+ escalated?: boolean | undefined;
328
+ };
329
+ }>;
330
+ type CommitPlan = z.infer<typeof CommitPlanSchema>;
331
+ /**
332
+ * Git status snapshot for storage
333
+ */
334
+ declare const GitStatusSnapshotSchema: z.ZodObject<{
335
+ schemaVersion: z.ZodLiteral<"1.0">;
336
+ createdAt: z.ZodString;
337
+ status: z.ZodObject<{
338
+ staged: z.ZodArray<z.ZodString, "many">;
339
+ unstaged: z.ZodArray<z.ZodString, "many">;
340
+ untracked: z.ZodArray<z.ZodString, "many">;
341
+ }, "strip", z.ZodTypeAny, {
342
+ staged: string[];
343
+ unstaged: string[];
344
+ untracked: string[];
345
+ }, {
346
+ staged: string[];
347
+ unstaged: string[];
348
+ untracked: string[];
349
+ }>;
350
+ summaries: z.ZodArray<z.ZodObject<{
351
+ path: z.ZodString;
352
+ status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied"]>;
353
+ additions: z.ZodNumber;
354
+ deletions: z.ZodNumber;
355
+ binary: z.ZodDefault<z.ZodBoolean>;
356
+ /** Whether file is truly new (never existed in repo history) */
357
+ isNewFile: z.ZodDefault<z.ZodBoolean>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ binary: boolean;
360
+ path: string;
361
+ status: "added" | "modified" | "deleted" | "renamed" | "copied";
362
+ additions: number;
363
+ deletions: number;
364
+ isNewFile: boolean;
365
+ }, {
366
+ path: string;
367
+ status: "added" | "modified" | "deleted" | "renamed" | "copied";
368
+ additions: number;
369
+ deletions: number;
370
+ binary?: boolean | undefined;
371
+ isNewFile?: boolean | undefined;
372
+ }>, "many">;
373
+ }, "strip", z.ZodTypeAny, {
374
+ status: {
375
+ staged: string[];
376
+ unstaged: string[];
377
+ untracked: string[];
378
+ };
379
+ schemaVersion: "1.0";
380
+ createdAt: string;
381
+ summaries: {
382
+ binary: boolean;
383
+ path: string;
384
+ status: "added" | "modified" | "deleted" | "renamed" | "copied";
385
+ additions: number;
386
+ deletions: number;
387
+ isNewFile: boolean;
388
+ }[];
389
+ }, {
390
+ status: {
391
+ staged: string[];
392
+ unstaged: string[];
393
+ untracked: string[];
394
+ };
395
+ schemaVersion: "1.0";
396
+ createdAt: string;
397
+ summaries: {
398
+ path: string;
399
+ status: "added" | "modified" | "deleted" | "renamed" | "copied";
400
+ additions: number;
401
+ deletions: number;
402
+ binary?: boolean | undefined;
403
+ isNewFile?: boolean | undefined;
404
+ }[];
405
+ }>;
406
+ type GitStatusSnapshot = z.infer<typeof GitStatusSnapshotSchema>;
407
+ declare const CommitRunInputSchema: z.ZodObject<{
408
+ scope: z.ZodOptional<z.ZodString>;
409
+ dryRun: z.ZodDefault<z.ZodBoolean>;
410
+ withPush: z.ZodDefault<z.ZodBoolean>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ dryRun: boolean;
413
+ withPush: boolean;
414
+ scope?: string | undefined;
415
+ }, {
416
+ scope?: string | undefined;
417
+ dryRun?: boolean | undefined;
418
+ withPush?: boolean | undefined;
419
+ }>;
420
+ type CommitRunInput = z.infer<typeof CommitRunInputSchema>;
421
+ declare const CommitRunOutputSchema: z.ZodObject<{
422
+ plan: z.ZodObject<{
423
+ schemaVersion: z.ZodLiteral<"1.0">;
424
+ createdAt: z.ZodString;
425
+ repoRoot: z.ZodString;
426
+ gitStatus: z.ZodObject<{
427
+ staged: z.ZodArray<z.ZodString, "many">;
428
+ unstaged: z.ZodArray<z.ZodString, "many">;
429
+ untracked: z.ZodArray<z.ZodString, "many">;
430
+ }, "strip", z.ZodTypeAny, {
431
+ staged: string[];
432
+ unstaged: string[];
433
+ untracked: string[];
434
+ }, {
435
+ staged: string[];
436
+ unstaged: string[];
437
+ untracked: string[];
438
+ }>;
439
+ commits: z.ZodArray<z.ZodObject<{
440
+ id: z.ZodString;
441
+ type: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "build", "ci", "perf"]>;
442
+ scope: z.ZodOptional<z.ZodString>;
443
+ message: z.ZodString;
444
+ body: z.ZodOptional<z.ZodString>;
445
+ files: z.ZodArray<z.ZodString, "many">;
446
+ releaseHint: z.ZodDefault<z.ZodEnum<["none", "patch", "minor", "major"]>>;
447
+ breaking: z.ZodDefault<z.ZodBoolean>;
448
+ /** Reasoning for commit type classification (optional, added by LLM) */
449
+ reasoning: z.ZodOptional<z.ZodObject<{
450
+ /** Does this change add NEW user-visible behavior? */
451
+ newBehavior: z.ZodDefault<z.ZodBoolean>;
452
+ /** Does this change fix BROKEN functionality? */
453
+ fixesBug: z.ZodDefault<z.ZodBoolean>;
454
+ /** Is this only INTERNAL restructuring? */
455
+ internalOnly: z.ZodDefault<z.ZodBoolean>;
456
+ /** Human-readable explanation of why this type was chosen */
457
+ explanation: z.ZodDefault<z.ZodString>;
458
+ /** LLM confidence in this classification (0.0-1.0) */
459
+ confidence: z.ZodDefault<z.ZodNumber>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ newBehavior: boolean;
462
+ fixesBug: boolean;
463
+ internalOnly: boolean;
464
+ explanation: string;
465
+ confidence: number;
466
+ }, {
467
+ newBehavior?: boolean | undefined;
468
+ fixesBug?: boolean | undefined;
469
+ internalOnly?: boolean | undefined;
470
+ explanation?: string | undefined;
471
+ confidence?: number | undefined;
472
+ }>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ message: string;
475
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
476
+ id: string;
477
+ files: string[];
478
+ releaseHint: "minor" | "none" | "patch" | "major";
479
+ breaking: boolean;
480
+ scope?: string | undefined;
481
+ body?: string | undefined;
482
+ reasoning?: {
483
+ newBehavior: boolean;
484
+ fixesBug: boolean;
485
+ internalOnly: boolean;
486
+ explanation: string;
487
+ confidence: number;
488
+ } | undefined;
489
+ }, {
490
+ message: string;
491
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
492
+ id: string;
493
+ files: string[];
494
+ scope?: string | undefined;
495
+ body?: string | undefined;
496
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
497
+ breaking?: boolean | undefined;
498
+ reasoning?: {
499
+ newBehavior?: boolean | undefined;
500
+ fixesBug?: boolean | undefined;
501
+ internalOnly?: boolean | undefined;
502
+ explanation?: string | undefined;
503
+ confidence?: number | undefined;
504
+ } | undefined;
505
+ }>, "many">;
506
+ metadata: z.ZodObject<{
507
+ totalFiles: z.ZodNumber;
508
+ totalCommits: z.ZodNumber;
509
+ llmUsed: z.ZodBoolean;
510
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
511
+ /** Whether LLM escalated to Phase 2 (requested diff for more context) */
512
+ escalated: z.ZodOptional<z.ZodBoolean>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ totalFiles: number;
515
+ totalCommits: number;
516
+ llmUsed: boolean;
517
+ tokensUsed?: number | undefined;
518
+ escalated?: boolean | undefined;
519
+ }, {
520
+ totalFiles: number;
521
+ totalCommits: number;
522
+ llmUsed: boolean;
523
+ tokensUsed?: number | undefined;
524
+ escalated?: boolean | undefined;
525
+ }>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ schemaVersion: "1.0";
528
+ createdAt: string;
529
+ repoRoot: string;
530
+ gitStatus: {
531
+ staged: string[];
532
+ unstaged: string[];
533
+ untracked: string[];
534
+ };
535
+ commits: {
536
+ message: string;
537
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
538
+ id: string;
539
+ files: string[];
540
+ releaseHint: "minor" | "none" | "patch" | "major";
541
+ breaking: boolean;
542
+ scope?: string | undefined;
543
+ body?: string | undefined;
544
+ reasoning?: {
545
+ newBehavior: boolean;
546
+ fixesBug: boolean;
547
+ internalOnly: boolean;
548
+ explanation: string;
549
+ confidence: number;
550
+ } | undefined;
551
+ }[];
552
+ metadata: {
553
+ totalFiles: number;
554
+ totalCommits: number;
555
+ llmUsed: boolean;
556
+ tokensUsed?: number | undefined;
557
+ escalated?: boolean | undefined;
558
+ };
559
+ }, {
560
+ schemaVersion: "1.0";
561
+ createdAt: string;
562
+ repoRoot: string;
563
+ gitStatus: {
564
+ staged: string[];
565
+ unstaged: string[];
566
+ untracked: string[];
567
+ };
568
+ commits: {
569
+ message: string;
570
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
571
+ id: string;
572
+ files: string[];
573
+ scope?: string | undefined;
574
+ body?: string | undefined;
575
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
576
+ breaking?: boolean | undefined;
577
+ reasoning?: {
578
+ newBehavior?: boolean | undefined;
579
+ fixesBug?: boolean | undefined;
580
+ internalOnly?: boolean | undefined;
581
+ explanation?: string | undefined;
582
+ confidence?: number | undefined;
583
+ } | undefined;
584
+ }[];
585
+ metadata: {
586
+ totalFiles: number;
587
+ totalCommits: number;
588
+ llmUsed: boolean;
589
+ tokensUsed?: number | undefined;
590
+ escalated?: boolean | undefined;
591
+ };
592
+ }>;
593
+ applied: z.ZodBoolean;
594
+ pushed: z.ZodBoolean;
595
+ commits: z.ZodArray<z.ZodObject<{
596
+ id: z.ZodString;
597
+ sha: z.ZodOptional<z.ZodString>;
598
+ message: z.ZodString;
599
+ }, "strip", z.ZodTypeAny, {
600
+ message: string;
601
+ id: string;
602
+ sha?: string | undefined;
603
+ }, {
604
+ message: string;
605
+ id: string;
606
+ sha?: string | undefined;
607
+ }>, "many">;
608
+ }, "strip", z.ZodTypeAny, {
609
+ commits: {
610
+ message: string;
611
+ id: string;
612
+ sha?: string | undefined;
613
+ }[];
614
+ plan: {
615
+ schemaVersion: "1.0";
616
+ createdAt: string;
617
+ repoRoot: string;
618
+ gitStatus: {
619
+ staged: string[];
620
+ unstaged: string[];
621
+ untracked: string[];
622
+ };
623
+ commits: {
624
+ message: string;
625
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
626
+ id: string;
627
+ files: string[];
628
+ releaseHint: "minor" | "none" | "patch" | "major";
629
+ breaking: boolean;
630
+ scope?: string | undefined;
631
+ body?: string | undefined;
632
+ reasoning?: {
633
+ newBehavior: boolean;
634
+ fixesBug: boolean;
635
+ internalOnly: boolean;
636
+ explanation: string;
637
+ confidence: number;
638
+ } | undefined;
639
+ }[];
640
+ metadata: {
641
+ totalFiles: number;
642
+ totalCommits: number;
643
+ llmUsed: boolean;
644
+ tokensUsed?: number | undefined;
645
+ escalated?: boolean | undefined;
646
+ };
647
+ };
648
+ applied: boolean;
649
+ pushed: boolean;
650
+ }, {
651
+ commits: {
652
+ message: string;
653
+ id: string;
654
+ sha?: string | undefined;
655
+ }[];
656
+ plan: {
657
+ schemaVersion: "1.0";
658
+ createdAt: string;
659
+ repoRoot: string;
660
+ gitStatus: {
661
+ staged: string[];
662
+ unstaged: string[];
663
+ untracked: string[];
664
+ };
665
+ commits: {
666
+ message: string;
667
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
668
+ id: string;
669
+ files: string[];
670
+ scope?: string | undefined;
671
+ body?: string | undefined;
672
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
673
+ breaking?: boolean | undefined;
674
+ reasoning?: {
675
+ newBehavior?: boolean | undefined;
676
+ fixesBug?: boolean | undefined;
677
+ internalOnly?: boolean | undefined;
678
+ explanation?: string | undefined;
679
+ confidence?: number | undefined;
680
+ } | undefined;
681
+ }[];
682
+ metadata: {
683
+ totalFiles: number;
684
+ totalCommits: number;
685
+ llmUsed: boolean;
686
+ tokensUsed?: number | undefined;
687
+ escalated?: boolean | undefined;
688
+ };
689
+ };
690
+ applied: boolean;
691
+ pushed: boolean;
692
+ }>;
693
+ type CommitRunOutput = z.infer<typeof CommitRunOutputSchema>;
694
+ declare const GenerateInputSchema: z.ZodObject<{
695
+ scope: z.ZodOptional<z.ZodString>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ scope?: string | undefined;
698
+ }, {
699
+ scope?: string | undefined;
700
+ }>;
701
+ type GenerateInput = z.infer<typeof GenerateInputSchema>;
702
+ declare const GenerateOutputSchema: z.ZodObject<{
703
+ plan: z.ZodObject<{
704
+ schemaVersion: z.ZodLiteral<"1.0">;
705
+ createdAt: z.ZodString;
706
+ repoRoot: z.ZodString;
707
+ gitStatus: z.ZodObject<{
708
+ staged: z.ZodArray<z.ZodString, "many">;
709
+ unstaged: z.ZodArray<z.ZodString, "many">;
710
+ untracked: z.ZodArray<z.ZodString, "many">;
711
+ }, "strip", z.ZodTypeAny, {
712
+ staged: string[];
713
+ unstaged: string[];
714
+ untracked: string[];
715
+ }, {
716
+ staged: string[];
717
+ unstaged: string[];
718
+ untracked: string[];
719
+ }>;
720
+ commits: z.ZodArray<z.ZodObject<{
721
+ id: z.ZodString;
722
+ type: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "build", "ci", "perf"]>;
723
+ scope: z.ZodOptional<z.ZodString>;
724
+ message: z.ZodString;
725
+ body: z.ZodOptional<z.ZodString>;
726
+ files: z.ZodArray<z.ZodString, "many">;
727
+ releaseHint: z.ZodDefault<z.ZodEnum<["none", "patch", "minor", "major"]>>;
728
+ breaking: z.ZodDefault<z.ZodBoolean>;
729
+ /** Reasoning for commit type classification (optional, added by LLM) */
730
+ reasoning: z.ZodOptional<z.ZodObject<{
731
+ /** Does this change add NEW user-visible behavior? */
732
+ newBehavior: z.ZodDefault<z.ZodBoolean>;
733
+ /** Does this change fix BROKEN functionality? */
734
+ fixesBug: z.ZodDefault<z.ZodBoolean>;
735
+ /** Is this only INTERNAL restructuring? */
736
+ internalOnly: z.ZodDefault<z.ZodBoolean>;
737
+ /** Human-readable explanation of why this type was chosen */
738
+ explanation: z.ZodDefault<z.ZodString>;
739
+ /** LLM confidence in this classification (0.0-1.0) */
740
+ confidence: z.ZodDefault<z.ZodNumber>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ newBehavior: boolean;
743
+ fixesBug: boolean;
744
+ internalOnly: boolean;
745
+ explanation: string;
746
+ confidence: number;
747
+ }, {
748
+ newBehavior?: boolean | undefined;
749
+ fixesBug?: boolean | undefined;
750
+ internalOnly?: boolean | undefined;
751
+ explanation?: string | undefined;
752
+ confidence?: number | undefined;
753
+ }>>;
754
+ }, "strip", z.ZodTypeAny, {
755
+ message: string;
756
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
757
+ id: string;
758
+ files: string[];
759
+ releaseHint: "minor" | "none" | "patch" | "major";
760
+ breaking: boolean;
761
+ scope?: string | undefined;
762
+ body?: string | undefined;
763
+ reasoning?: {
764
+ newBehavior: boolean;
765
+ fixesBug: boolean;
766
+ internalOnly: boolean;
767
+ explanation: string;
768
+ confidence: number;
769
+ } | undefined;
770
+ }, {
771
+ message: string;
772
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
773
+ id: string;
774
+ files: string[];
775
+ scope?: string | undefined;
776
+ body?: string | undefined;
777
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
778
+ breaking?: boolean | undefined;
779
+ reasoning?: {
780
+ newBehavior?: boolean | undefined;
781
+ fixesBug?: boolean | undefined;
782
+ internalOnly?: boolean | undefined;
783
+ explanation?: string | undefined;
784
+ confidence?: number | undefined;
785
+ } | undefined;
786
+ }>, "many">;
787
+ metadata: z.ZodObject<{
788
+ totalFiles: z.ZodNumber;
789
+ totalCommits: z.ZodNumber;
790
+ llmUsed: z.ZodBoolean;
791
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
792
+ /** Whether LLM escalated to Phase 2 (requested diff for more context) */
793
+ escalated: z.ZodOptional<z.ZodBoolean>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ totalFiles: number;
796
+ totalCommits: number;
797
+ llmUsed: boolean;
798
+ tokensUsed?: number | undefined;
799
+ escalated?: boolean | undefined;
800
+ }, {
801
+ totalFiles: number;
802
+ totalCommits: number;
803
+ llmUsed: boolean;
804
+ tokensUsed?: number | undefined;
805
+ escalated?: boolean | undefined;
806
+ }>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ schemaVersion: "1.0";
809
+ createdAt: string;
810
+ repoRoot: string;
811
+ gitStatus: {
812
+ staged: string[];
813
+ unstaged: string[];
814
+ untracked: string[];
815
+ };
816
+ commits: {
817
+ message: string;
818
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
819
+ id: string;
820
+ files: string[];
821
+ releaseHint: "minor" | "none" | "patch" | "major";
822
+ breaking: boolean;
823
+ scope?: string | undefined;
824
+ body?: string | undefined;
825
+ reasoning?: {
826
+ newBehavior: boolean;
827
+ fixesBug: boolean;
828
+ internalOnly: boolean;
829
+ explanation: string;
830
+ confidence: number;
831
+ } | undefined;
832
+ }[];
833
+ metadata: {
834
+ totalFiles: number;
835
+ totalCommits: number;
836
+ llmUsed: boolean;
837
+ tokensUsed?: number | undefined;
838
+ escalated?: boolean | undefined;
839
+ };
840
+ }, {
841
+ schemaVersion: "1.0";
842
+ createdAt: string;
843
+ repoRoot: string;
844
+ gitStatus: {
845
+ staged: string[];
846
+ unstaged: string[];
847
+ untracked: string[];
848
+ };
849
+ commits: {
850
+ message: string;
851
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
852
+ id: string;
853
+ files: string[];
854
+ scope?: string | undefined;
855
+ body?: string | undefined;
856
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
857
+ breaking?: boolean | undefined;
858
+ reasoning?: {
859
+ newBehavior?: boolean | undefined;
860
+ fixesBug?: boolean | undefined;
861
+ internalOnly?: boolean | undefined;
862
+ explanation?: string | undefined;
863
+ confidence?: number | undefined;
864
+ } | undefined;
865
+ }[];
866
+ metadata: {
867
+ totalFiles: number;
868
+ totalCommits: number;
869
+ llmUsed: boolean;
870
+ tokensUsed?: number | undefined;
871
+ escalated?: boolean | undefined;
872
+ };
873
+ }>;
874
+ planPath: z.ZodString;
875
+ }, "strip", z.ZodTypeAny, {
876
+ plan: {
877
+ schemaVersion: "1.0";
878
+ createdAt: string;
879
+ repoRoot: string;
880
+ gitStatus: {
881
+ staged: string[];
882
+ unstaged: string[];
883
+ untracked: string[];
884
+ };
885
+ commits: {
886
+ message: string;
887
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
888
+ id: string;
889
+ files: string[];
890
+ releaseHint: "minor" | "none" | "patch" | "major";
891
+ breaking: boolean;
892
+ scope?: string | undefined;
893
+ body?: string | undefined;
894
+ reasoning?: {
895
+ newBehavior: boolean;
896
+ fixesBug: boolean;
897
+ internalOnly: boolean;
898
+ explanation: string;
899
+ confidence: number;
900
+ } | undefined;
901
+ }[];
902
+ metadata: {
903
+ totalFiles: number;
904
+ totalCommits: number;
905
+ llmUsed: boolean;
906
+ tokensUsed?: number | undefined;
907
+ escalated?: boolean | undefined;
908
+ };
909
+ };
910
+ planPath: string;
911
+ }, {
912
+ plan: {
913
+ schemaVersion: "1.0";
914
+ createdAt: string;
915
+ repoRoot: string;
916
+ gitStatus: {
917
+ staged: string[];
918
+ unstaged: string[];
919
+ untracked: string[];
920
+ };
921
+ commits: {
922
+ message: string;
923
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
924
+ id: string;
925
+ files: string[];
926
+ scope?: string | undefined;
927
+ body?: string | undefined;
928
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
929
+ breaking?: boolean | undefined;
930
+ reasoning?: {
931
+ newBehavior?: boolean | undefined;
932
+ fixesBug?: boolean | undefined;
933
+ internalOnly?: boolean | undefined;
934
+ explanation?: string | undefined;
935
+ confidence?: number | undefined;
936
+ } | undefined;
937
+ }[];
938
+ metadata: {
939
+ totalFiles: number;
940
+ totalCommits: number;
941
+ llmUsed: boolean;
942
+ tokensUsed?: number | undefined;
943
+ escalated?: boolean | undefined;
944
+ };
945
+ };
946
+ planPath: string;
947
+ }>;
948
+ type GenerateOutput = z.infer<typeof GenerateOutputSchema>;
949
+ declare const ApplyInputSchema: z.ZodObject<{
950
+ force: z.ZodDefault<z.ZodBoolean>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ force: boolean;
953
+ }, {
954
+ force?: boolean | undefined;
955
+ }>;
956
+ type ApplyInput = z.infer<typeof ApplyInputSchema>;
957
+ declare const ApplyOutputSchema: z.ZodObject<{
958
+ success: z.ZodBoolean;
959
+ commits: z.ZodArray<z.ZodObject<{
960
+ id: z.ZodString;
961
+ sha: z.ZodString;
962
+ message: z.ZodString;
963
+ }, "strip", z.ZodTypeAny, {
964
+ message: string;
965
+ id: string;
966
+ sha: string;
967
+ }, {
968
+ message: string;
969
+ id: string;
970
+ sha: string;
971
+ }>, "many">;
972
+ errors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ commits: {
975
+ message: string;
976
+ id: string;
977
+ sha: string;
978
+ }[];
979
+ success: boolean;
980
+ errors: string[];
981
+ }, {
982
+ commits: {
983
+ message: string;
984
+ id: string;
985
+ sha: string;
986
+ }[];
987
+ success: boolean;
988
+ errors?: string[] | undefined;
989
+ }>;
990
+ type ApplyOutput = z.infer<typeof ApplyOutputSchema>;
991
+ declare const PushInputSchema: z.ZodObject<{
992
+ force: z.ZodDefault<z.ZodBoolean>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ force: boolean;
995
+ }, {
996
+ force?: boolean | undefined;
997
+ }>;
998
+ type PushInput = z.infer<typeof PushInputSchema>;
999
+ declare const PushOutputSchema: z.ZodObject<{
1000
+ success: z.ZodBoolean;
1001
+ remote: z.ZodString;
1002
+ branch: z.ZodString;
1003
+ commits: z.ZodNumber;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ commits: number;
1006
+ success: boolean;
1007
+ remote: string;
1008
+ branch: string;
1009
+ }, {
1010
+ commits: number;
1011
+ success: boolean;
1012
+ remote: string;
1013
+ branch: string;
1014
+ }>;
1015
+ type PushOutput = z.infer<typeof PushOutputSchema>;
1016
+ declare const OpenInputSchema: z.ZodObject<{
1017
+ json: z.ZodDefault<z.ZodBoolean>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ json: boolean;
1020
+ }, {
1021
+ json?: boolean | undefined;
1022
+ }>;
1023
+ type OpenInput = z.infer<typeof OpenInputSchema>;
1024
+ declare const OpenOutputSchema: z.ZodObject<{
1025
+ hasPlan: z.ZodBoolean;
1026
+ plan: z.ZodOptional<z.ZodObject<{
1027
+ schemaVersion: z.ZodLiteral<"1.0">;
1028
+ createdAt: z.ZodString;
1029
+ repoRoot: z.ZodString;
1030
+ gitStatus: z.ZodObject<{
1031
+ staged: z.ZodArray<z.ZodString, "many">;
1032
+ unstaged: z.ZodArray<z.ZodString, "many">;
1033
+ untracked: z.ZodArray<z.ZodString, "many">;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ staged: string[];
1036
+ unstaged: string[];
1037
+ untracked: string[];
1038
+ }, {
1039
+ staged: string[];
1040
+ unstaged: string[];
1041
+ untracked: string[];
1042
+ }>;
1043
+ commits: z.ZodArray<z.ZodObject<{
1044
+ id: z.ZodString;
1045
+ type: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "build", "ci", "perf"]>;
1046
+ scope: z.ZodOptional<z.ZodString>;
1047
+ message: z.ZodString;
1048
+ body: z.ZodOptional<z.ZodString>;
1049
+ files: z.ZodArray<z.ZodString, "many">;
1050
+ releaseHint: z.ZodDefault<z.ZodEnum<["none", "patch", "minor", "major"]>>;
1051
+ breaking: z.ZodDefault<z.ZodBoolean>;
1052
+ /** Reasoning for commit type classification (optional, added by LLM) */
1053
+ reasoning: z.ZodOptional<z.ZodObject<{
1054
+ /** Does this change add NEW user-visible behavior? */
1055
+ newBehavior: z.ZodDefault<z.ZodBoolean>;
1056
+ /** Does this change fix BROKEN functionality? */
1057
+ fixesBug: z.ZodDefault<z.ZodBoolean>;
1058
+ /** Is this only INTERNAL restructuring? */
1059
+ internalOnly: z.ZodDefault<z.ZodBoolean>;
1060
+ /** Human-readable explanation of why this type was chosen */
1061
+ explanation: z.ZodDefault<z.ZodString>;
1062
+ /** LLM confidence in this classification (0.0-1.0) */
1063
+ confidence: z.ZodDefault<z.ZodNumber>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ newBehavior: boolean;
1066
+ fixesBug: boolean;
1067
+ internalOnly: boolean;
1068
+ explanation: string;
1069
+ confidence: number;
1070
+ }, {
1071
+ newBehavior?: boolean | undefined;
1072
+ fixesBug?: boolean | undefined;
1073
+ internalOnly?: boolean | undefined;
1074
+ explanation?: string | undefined;
1075
+ confidence?: number | undefined;
1076
+ }>>;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ message: string;
1079
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
1080
+ id: string;
1081
+ files: string[];
1082
+ releaseHint: "minor" | "none" | "patch" | "major";
1083
+ breaking: boolean;
1084
+ scope?: string | undefined;
1085
+ body?: string | undefined;
1086
+ reasoning?: {
1087
+ newBehavior: boolean;
1088
+ fixesBug: boolean;
1089
+ internalOnly: boolean;
1090
+ explanation: string;
1091
+ confidence: number;
1092
+ } | undefined;
1093
+ }, {
1094
+ message: string;
1095
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
1096
+ id: string;
1097
+ files: string[];
1098
+ scope?: string | undefined;
1099
+ body?: string | undefined;
1100
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
1101
+ breaking?: boolean | undefined;
1102
+ reasoning?: {
1103
+ newBehavior?: boolean | undefined;
1104
+ fixesBug?: boolean | undefined;
1105
+ internalOnly?: boolean | undefined;
1106
+ explanation?: string | undefined;
1107
+ confidence?: number | undefined;
1108
+ } | undefined;
1109
+ }>, "many">;
1110
+ metadata: z.ZodObject<{
1111
+ totalFiles: z.ZodNumber;
1112
+ totalCommits: z.ZodNumber;
1113
+ llmUsed: z.ZodBoolean;
1114
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
1115
+ /** Whether LLM escalated to Phase 2 (requested diff for more context) */
1116
+ escalated: z.ZodOptional<z.ZodBoolean>;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ totalFiles: number;
1119
+ totalCommits: number;
1120
+ llmUsed: boolean;
1121
+ tokensUsed?: number | undefined;
1122
+ escalated?: boolean | undefined;
1123
+ }, {
1124
+ totalFiles: number;
1125
+ totalCommits: number;
1126
+ llmUsed: boolean;
1127
+ tokensUsed?: number | undefined;
1128
+ escalated?: boolean | undefined;
1129
+ }>;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ schemaVersion: "1.0";
1132
+ createdAt: string;
1133
+ repoRoot: string;
1134
+ gitStatus: {
1135
+ staged: string[];
1136
+ unstaged: string[];
1137
+ untracked: string[];
1138
+ };
1139
+ commits: {
1140
+ message: string;
1141
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
1142
+ id: string;
1143
+ files: string[];
1144
+ releaseHint: "minor" | "none" | "patch" | "major";
1145
+ breaking: boolean;
1146
+ scope?: string | undefined;
1147
+ body?: string | undefined;
1148
+ reasoning?: {
1149
+ newBehavior: boolean;
1150
+ fixesBug: boolean;
1151
+ internalOnly: boolean;
1152
+ explanation: string;
1153
+ confidence: number;
1154
+ } | undefined;
1155
+ }[];
1156
+ metadata: {
1157
+ totalFiles: number;
1158
+ totalCommits: number;
1159
+ llmUsed: boolean;
1160
+ tokensUsed?: number | undefined;
1161
+ escalated?: boolean | undefined;
1162
+ };
1163
+ }, {
1164
+ schemaVersion: "1.0";
1165
+ createdAt: string;
1166
+ repoRoot: string;
1167
+ gitStatus: {
1168
+ staged: string[];
1169
+ unstaged: string[];
1170
+ untracked: string[];
1171
+ };
1172
+ commits: {
1173
+ message: string;
1174
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
1175
+ id: string;
1176
+ files: string[];
1177
+ scope?: string | undefined;
1178
+ body?: string | undefined;
1179
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
1180
+ breaking?: boolean | undefined;
1181
+ reasoning?: {
1182
+ newBehavior?: boolean | undefined;
1183
+ fixesBug?: boolean | undefined;
1184
+ internalOnly?: boolean | undefined;
1185
+ explanation?: string | undefined;
1186
+ confidence?: number | undefined;
1187
+ } | undefined;
1188
+ }[];
1189
+ metadata: {
1190
+ totalFiles: number;
1191
+ totalCommits: number;
1192
+ llmUsed: boolean;
1193
+ tokensUsed?: number | undefined;
1194
+ escalated?: boolean | undefined;
1195
+ };
1196
+ }>>;
1197
+ planPath: z.ZodOptional<z.ZodString>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ hasPlan: boolean;
1200
+ plan?: {
1201
+ schemaVersion: "1.0";
1202
+ createdAt: string;
1203
+ repoRoot: string;
1204
+ gitStatus: {
1205
+ staged: string[];
1206
+ unstaged: string[];
1207
+ untracked: string[];
1208
+ };
1209
+ commits: {
1210
+ message: string;
1211
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
1212
+ id: string;
1213
+ files: string[];
1214
+ releaseHint: "minor" | "none" | "patch" | "major";
1215
+ breaking: boolean;
1216
+ scope?: string | undefined;
1217
+ body?: string | undefined;
1218
+ reasoning?: {
1219
+ newBehavior: boolean;
1220
+ fixesBug: boolean;
1221
+ internalOnly: boolean;
1222
+ explanation: string;
1223
+ confidence: number;
1224
+ } | undefined;
1225
+ }[];
1226
+ metadata: {
1227
+ totalFiles: number;
1228
+ totalCommits: number;
1229
+ llmUsed: boolean;
1230
+ tokensUsed?: number | undefined;
1231
+ escalated?: boolean | undefined;
1232
+ };
1233
+ } | undefined;
1234
+ planPath?: string | undefined;
1235
+ }, {
1236
+ hasPlan: boolean;
1237
+ plan?: {
1238
+ schemaVersion: "1.0";
1239
+ createdAt: string;
1240
+ repoRoot: string;
1241
+ gitStatus: {
1242
+ staged: string[];
1243
+ unstaged: string[];
1244
+ untracked: string[];
1245
+ };
1246
+ commits: {
1247
+ message: string;
1248
+ type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
1249
+ id: string;
1250
+ files: string[];
1251
+ scope?: string | undefined;
1252
+ body?: string | undefined;
1253
+ releaseHint?: "minor" | "none" | "patch" | "major" | undefined;
1254
+ breaking?: boolean | undefined;
1255
+ reasoning?: {
1256
+ newBehavior?: boolean | undefined;
1257
+ fixesBug?: boolean | undefined;
1258
+ internalOnly?: boolean | undefined;
1259
+ explanation?: string | undefined;
1260
+ confidence?: number | undefined;
1261
+ } | undefined;
1262
+ }[];
1263
+ metadata: {
1264
+ totalFiles: number;
1265
+ totalCommits: number;
1266
+ llmUsed: boolean;
1267
+ tokensUsed?: number | undefined;
1268
+ escalated?: boolean | undefined;
1269
+ };
1270
+ } | undefined;
1271
+ planPath?: string | undefined;
1272
+ }>;
1273
+ type OpenOutput = z.infer<typeof OpenOutputSchema>;
1274
+ declare const ResetOutputSchema: z.ZodObject<{
1275
+ success: z.ZodBoolean;
1276
+ message: z.ZodString;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ message: string;
1279
+ success: boolean;
1280
+ }, {
1281
+ message: string;
1282
+ success: boolean;
1283
+ }>;
1284
+ type ResetOutput = z.infer<typeof ResetOutputSchema>;
1285
+ declare const ApplyResultSchema: z.ZodObject<{
1286
+ success: z.ZodBoolean;
1287
+ appliedCommits: z.ZodArray<z.ZodObject<{
1288
+ groupId: z.ZodString;
1289
+ sha: z.ZodString;
1290
+ message: z.ZodString;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ message: string;
1293
+ sha: string;
1294
+ groupId: string;
1295
+ }, {
1296
+ message: string;
1297
+ sha: string;
1298
+ groupId: string;
1299
+ }>, "many">;
1300
+ errors: z.ZodArray<z.ZodString, "many">;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ success: boolean;
1303
+ errors: string[];
1304
+ appliedCommits: {
1305
+ message: string;
1306
+ sha: string;
1307
+ groupId: string;
1308
+ }[];
1309
+ }, {
1310
+ success: boolean;
1311
+ errors: string[];
1312
+ appliedCommits: {
1313
+ message: string;
1314
+ sha: string;
1315
+ groupId: string;
1316
+ }[];
1317
+ }>;
1318
+ type ApplyResult = z.infer<typeof ApplyResultSchema>;
1319
+ declare const PushResultSchema: z.ZodObject<{
1320
+ success: z.ZodBoolean;
1321
+ remote: z.ZodString;
1322
+ branch: z.ZodString;
1323
+ commitsPushed: z.ZodNumber;
1324
+ error: z.ZodOptional<z.ZodString>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ success: boolean;
1327
+ remote: string;
1328
+ branch: string;
1329
+ commitsPushed: number;
1330
+ error?: string | undefined;
1331
+ }, {
1332
+ success: boolean;
1333
+ remote: string;
1334
+ branch: string;
1335
+ commitsPushed: number;
1336
+ error?: string | undefined;
1337
+ }>;
1338
+ type PushResult = z.infer<typeof PushResultSchema>;
1339
+ /**
1340
+ * GET /actions response
1341
+ * Returns empty object for actions widget (widget only needs action buttons)
1342
+ */
1343
+ declare const ActionsResponseSchema: z.ZodObject<{
1344
+ scope: z.ZodOptional<z.ZodString>;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ scope?: string | undefined;
1347
+ }, {
1348
+ scope?: string | undefined;
1349
+ }>;
1350
+ type ActionsResponse = z.infer<typeof ActionsResponseSchema>;
1351
+
1352
+ export { type ActionsResponse, ActionsResponseSchema, type ApplyInput, ApplyInputSchema, type ApplyOutput, ApplyOutputSchema, type ApplyResult, ApplyResultSchema, type CommitGroup, CommitGroupSchema, type CommitPlan, CommitPlanSchema, type CommitReasoning, CommitReasoningSchema, type CommitRunInput, CommitRunInputSchema, type CommitRunOutput, CommitRunOutputSchema, type ConventionalType, ConventionalTypeSchema, type FileSummary, FileSummarySchema, type GenerateInput, GenerateInputSchema, type GenerateOutput, GenerateOutputSchema, type GitStatus, GitStatusSchema, type GitStatusSnapshot, GitStatusSnapshotSchema, type OpenInput, OpenInputSchema, type OpenOutput, OpenOutputSchema, type PushInput, PushInputSchema, type PushOutput, PushOutputSchema, type PushResult, PushResultSchema, type ReleaseHint, ReleaseHintSchema, type ResetOutput, ResetOutputSchema };