@azizbekdevuz/gitguard-schema 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.
@@ -0,0 +1,877 @@
1
+ import { z } from 'zod';
2
+ export declare const IssueTypeSchema: z.ZodEnum<["merge_conflict", "detached_head", "rebase_in_progress", "clean", "unknown"]>;
3
+ export type IssueType = z.infer<typeof IssueTypeSchema>;
4
+ export declare const DangerLevelSchema: z.ZodEnum<["safe", "caution", "dangerous"]>;
5
+ export type DangerLevel = z.infer<typeof DangerLevelSchema>;
6
+ export declare const HunkChoiceSchema: z.ZodEnum<["ours", "theirs", "manual", "combine"]>;
7
+ export type HunkChoice = z.infer<typeof HunkChoiceSchema>;
8
+ export declare const GraphNodeSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ type: z.ZodEnum<["commit", "branch", "tag", "head", "remote"]>;
11
+ label: z.ZodString;
12
+ sha: z.ZodOptional<z.ZodString>;
13
+ isCurrent: z.ZodOptional<z.ZodBoolean>;
14
+ isDetached: z.ZodOptional<z.ZodBoolean>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ id: string;
17
+ type: "commit" | "branch" | "tag" | "head" | "remote";
18
+ label: string;
19
+ sha?: string | undefined;
20
+ isCurrent?: boolean | undefined;
21
+ isDetached?: boolean | undefined;
22
+ }, {
23
+ id: string;
24
+ type: "commit" | "branch" | "tag" | "head" | "remote";
25
+ label: string;
26
+ sha?: string | undefined;
27
+ isCurrent?: boolean | undefined;
28
+ isDetached?: boolean | undefined;
29
+ }>;
30
+ export type GraphNode = z.infer<typeof GraphNodeSchema>;
31
+ export declare const GraphEdgeSchema: z.ZodObject<{
32
+ from: z.ZodString;
33
+ to: z.ZodString;
34
+ type: z.ZodOptional<z.ZodEnum<["parent", "branch", "merge"]>>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ from: string;
37
+ to: string;
38
+ type?: "branch" | "parent" | "merge" | undefined;
39
+ }, {
40
+ from: string;
41
+ to: string;
42
+ type?: "branch" | "parent" | "merge" | undefined;
43
+ }>;
44
+ export type GraphEdge = z.infer<typeof GraphEdgeSchema>;
45
+ export declare const RepoGraphSchema: z.ZodObject<{
46
+ nodes: z.ZodArray<z.ZodObject<{
47
+ id: z.ZodString;
48
+ type: z.ZodEnum<["commit", "branch", "tag", "head", "remote"]>;
49
+ label: z.ZodString;
50
+ sha: z.ZodOptional<z.ZodString>;
51
+ isCurrent: z.ZodOptional<z.ZodBoolean>;
52
+ isDetached: z.ZodOptional<z.ZodBoolean>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ id: string;
55
+ type: "commit" | "branch" | "tag" | "head" | "remote";
56
+ label: string;
57
+ sha?: string | undefined;
58
+ isCurrent?: boolean | undefined;
59
+ isDetached?: boolean | undefined;
60
+ }, {
61
+ id: string;
62
+ type: "commit" | "branch" | "tag" | "head" | "remote";
63
+ label: string;
64
+ sha?: string | undefined;
65
+ isCurrent?: boolean | undefined;
66
+ isDetached?: boolean | undefined;
67
+ }>, "many">;
68
+ edges: z.ZodArray<z.ZodObject<{
69
+ from: z.ZodString;
70
+ to: z.ZodString;
71
+ type: z.ZodOptional<z.ZodEnum<["parent", "branch", "merge"]>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ from: string;
74
+ to: string;
75
+ type?: "branch" | "parent" | "merge" | undefined;
76
+ }, {
77
+ from: string;
78
+ to: string;
79
+ type?: "branch" | "parent" | "merge" | undefined;
80
+ }>, "many">;
81
+ headRef: z.ZodOptional<z.ZodString>;
82
+ mergeHeadRef: z.ZodOptional<z.ZodString>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ nodes: {
85
+ id: string;
86
+ type: "commit" | "branch" | "tag" | "head" | "remote";
87
+ label: string;
88
+ sha?: string | undefined;
89
+ isCurrent?: boolean | undefined;
90
+ isDetached?: boolean | undefined;
91
+ }[];
92
+ edges: {
93
+ from: string;
94
+ to: string;
95
+ type?: "branch" | "parent" | "merge" | undefined;
96
+ }[];
97
+ headRef?: string | undefined;
98
+ mergeHeadRef?: string | undefined;
99
+ }, {
100
+ nodes: {
101
+ id: string;
102
+ type: "commit" | "branch" | "tag" | "head" | "remote";
103
+ label: string;
104
+ sha?: string | undefined;
105
+ isCurrent?: boolean | undefined;
106
+ isDetached?: boolean | undefined;
107
+ }[];
108
+ edges: {
109
+ from: string;
110
+ to: string;
111
+ type?: "branch" | "parent" | "merge" | undefined;
112
+ }[];
113
+ headRef?: string | undefined;
114
+ mergeHeadRef?: string | undefined;
115
+ }>;
116
+ export type RepoGraph = z.infer<typeof RepoGraphSchema>;
117
+ export declare const ConflictHunkSchema: z.ZodObject<{
118
+ index: z.ZodNumber;
119
+ startLine: z.ZodOptional<z.ZodNumber>;
120
+ endLine: z.ZodOptional<z.ZodNumber>;
121
+ baseText: z.ZodString;
122
+ oursText: z.ZodString;
123
+ theirsText: z.ZodString;
124
+ explanation: z.ZodOptional<z.ZodString>;
125
+ suggestedChoice: z.ZodOptional<z.ZodEnum<["ours", "theirs", "manual", "combine"]>>;
126
+ suggestedContent: z.ZodOptional<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ index: number;
129
+ baseText: string;
130
+ oursText: string;
131
+ theirsText: string;
132
+ startLine?: number | undefined;
133
+ endLine?: number | undefined;
134
+ explanation?: string | undefined;
135
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
136
+ suggestedContent?: string | undefined;
137
+ }, {
138
+ index: number;
139
+ baseText: string;
140
+ oursText: string;
141
+ theirsText: string;
142
+ startLine?: number | undefined;
143
+ endLine?: number | undefined;
144
+ explanation?: string | undefined;
145
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
146
+ suggestedContent?: string | undefined;
147
+ }>;
148
+ export type ConflictHunk = z.infer<typeof ConflictHunkSchema>;
149
+ export declare const ConflictFileSchema: z.ZodObject<{
150
+ path: z.ZodString;
151
+ highLevelSummary: z.ZodOptional<z.ZodString>;
152
+ hunks: z.ZodArray<z.ZodObject<{
153
+ index: z.ZodNumber;
154
+ startLine: z.ZodOptional<z.ZodNumber>;
155
+ endLine: z.ZodOptional<z.ZodNumber>;
156
+ baseText: z.ZodString;
157
+ oursText: z.ZodString;
158
+ theirsText: z.ZodString;
159
+ explanation: z.ZodOptional<z.ZodString>;
160
+ suggestedChoice: z.ZodOptional<z.ZodEnum<["ours", "theirs", "manual", "combine"]>>;
161
+ suggestedContent: z.ZodOptional<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ index: number;
164
+ baseText: string;
165
+ oursText: string;
166
+ theirsText: string;
167
+ startLine?: number | undefined;
168
+ endLine?: number | undefined;
169
+ explanation?: string | undefined;
170
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
171
+ suggestedContent?: string | undefined;
172
+ }, {
173
+ index: number;
174
+ baseText: string;
175
+ oursText: string;
176
+ theirsText: string;
177
+ startLine?: number | undefined;
178
+ endLine?: number | undefined;
179
+ explanation?: string | undefined;
180
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
181
+ suggestedContent?: string | undefined;
182
+ }>, "many">;
183
+ }, "strip", z.ZodTypeAny, {
184
+ path: string;
185
+ hunks: {
186
+ index: number;
187
+ baseText: string;
188
+ oursText: string;
189
+ theirsText: string;
190
+ startLine?: number | undefined;
191
+ endLine?: number | undefined;
192
+ explanation?: string | undefined;
193
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
194
+ suggestedContent?: string | undefined;
195
+ }[];
196
+ highLevelSummary?: string | undefined;
197
+ }, {
198
+ path: string;
199
+ hunks: {
200
+ index: number;
201
+ baseText: string;
202
+ oursText: string;
203
+ theirsText: string;
204
+ startLine?: number | undefined;
205
+ endLine?: number | undefined;
206
+ explanation?: string | undefined;
207
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
208
+ suggestedContent?: string | undefined;
209
+ }[];
210
+ highLevelSummary?: string | undefined;
211
+ }>;
212
+ export type ConflictFile = z.infer<typeof ConflictFileSchema>;
213
+ export declare const PlanStepSchema: z.ZodObject<{
214
+ index: z.ZodNumber;
215
+ title: z.ZodString;
216
+ rationale: z.ZodOptional<z.ZodString>;
217
+ commands: z.ZodArray<z.ZodString, "many">;
218
+ verify: z.ZodArray<z.ZodString, "many">;
219
+ undo: z.ZodArray<z.ZodString, "many">;
220
+ dangerLevel: z.ZodEnum<["safe", "caution", "dangerous"]>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ index: number;
223
+ title: string;
224
+ commands: string[];
225
+ verify: string[];
226
+ undo: string[];
227
+ dangerLevel: "safe" | "caution" | "dangerous";
228
+ rationale?: string | undefined;
229
+ }, {
230
+ index: number;
231
+ title: string;
232
+ commands: string[];
233
+ verify: string[];
234
+ undo: string[];
235
+ dangerLevel: "safe" | "caution" | "dangerous";
236
+ rationale?: string | undefined;
237
+ }>;
238
+ export type PlanStep = z.infer<typeof PlanStepSchema>;
239
+ export declare const AnalysisResultSchema: z.ZodObject<{
240
+ issueType: z.ZodEnum<["merge_conflict", "detached_head", "rebase_in_progress", "clean", "unknown"]>;
241
+ summary: z.ZodString;
242
+ repoGraph: z.ZodOptional<z.ZodObject<{
243
+ nodes: z.ZodArray<z.ZodObject<{
244
+ id: z.ZodString;
245
+ type: z.ZodEnum<["commit", "branch", "tag", "head", "remote"]>;
246
+ label: z.ZodString;
247
+ sha: z.ZodOptional<z.ZodString>;
248
+ isCurrent: z.ZodOptional<z.ZodBoolean>;
249
+ isDetached: z.ZodOptional<z.ZodBoolean>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ id: string;
252
+ type: "commit" | "branch" | "tag" | "head" | "remote";
253
+ label: string;
254
+ sha?: string | undefined;
255
+ isCurrent?: boolean | undefined;
256
+ isDetached?: boolean | undefined;
257
+ }, {
258
+ id: string;
259
+ type: "commit" | "branch" | "tag" | "head" | "remote";
260
+ label: string;
261
+ sha?: string | undefined;
262
+ isCurrent?: boolean | undefined;
263
+ isDetached?: boolean | undefined;
264
+ }>, "many">;
265
+ edges: z.ZodArray<z.ZodObject<{
266
+ from: z.ZodString;
267
+ to: z.ZodString;
268
+ type: z.ZodOptional<z.ZodEnum<["parent", "branch", "merge"]>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ from: string;
271
+ to: string;
272
+ type?: "branch" | "parent" | "merge" | undefined;
273
+ }, {
274
+ from: string;
275
+ to: string;
276
+ type?: "branch" | "parent" | "merge" | undefined;
277
+ }>, "many">;
278
+ headRef: z.ZodOptional<z.ZodString>;
279
+ mergeHeadRef: z.ZodOptional<z.ZodString>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ nodes: {
282
+ id: string;
283
+ type: "commit" | "branch" | "tag" | "head" | "remote";
284
+ label: string;
285
+ sha?: string | undefined;
286
+ isCurrent?: boolean | undefined;
287
+ isDetached?: boolean | undefined;
288
+ }[];
289
+ edges: {
290
+ from: string;
291
+ to: string;
292
+ type?: "branch" | "parent" | "merge" | undefined;
293
+ }[];
294
+ headRef?: string | undefined;
295
+ mergeHeadRef?: string | undefined;
296
+ }, {
297
+ nodes: {
298
+ id: string;
299
+ type: "commit" | "branch" | "tag" | "head" | "remote";
300
+ label: string;
301
+ sha?: string | undefined;
302
+ isCurrent?: boolean | undefined;
303
+ isDetached?: boolean | undefined;
304
+ }[];
305
+ edges: {
306
+ from: string;
307
+ to: string;
308
+ type?: "branch" | "parent" | "merge" | undefined;
309
+ }[];
310
+ headRef?: string | undefined;
311
+ mergeHeadRef?: string | undefined;
312
+ }>>;
313
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
314
+ path: z.ZodString;
315
+ highLevelSummary: z.ZodOptional<z.ZodString>;
316
+ hunks: z.ZodArray<z.ZodObject<{
317
+ index: z.ZodNumber;
318
+ startLine: z.ZodOptional<z.ZodNumber>;
319
+ endLine: z.ZodOptional<z.ZodNumber>;
320
+ baseText: z.ZodString;
321
+ oursText: z.ZodString;
322
+ theirsText: z.ZodString;
323
+ explanation: z.ZodOptional<z.ZodString>;
324
+ suggestedChoice: z.ZodOptional<z.ZodEnum<["ours", "theirs", "manual", "combine"]>>;
325
+ suggestedContent: z.ZodOptional<z.ZodString>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ index: number;
328
+ baseText: string;
329
+ oursText: string;
330
+ theirsText: string;
331
+ startLine?: number | undefined;
332
+ endLine?: number | undefined;
333
+ explanation?: string | undefined;
334
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
335
+ suggestedContent?: string | undefined;
336
+ }, {
337
+ index: number;
338
+ baseText: string;
339
+ oursText: string;
340
+ theirsText: string;
341
+ startLine?: number | undefined;
342
+ endLine?: number | undefined;
343
+ explanation?: string | undefined;
344
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
345
+ suggestedContent?: string | undefined;
346
+ }>, "many">;
347
+ }, "strip", z.ZodTypeAny, {
348
+ path: string;
349
+ hunks: {
350
+ index: number;
351
+ baseText: string;
352
+ oursText: string;
353
+ theirsText: string;
354
+ startLine?: number | undefined;
355
+ endLine?: number | undefined;
356
+ explanation?: string | undefined;
357
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
358
+ suggestedContent?: string | undefined;
359
+ }[];
360
+ highLevelSummary?: string | undefined;
361
+ }, {
362
+ path: string;
363
+ hunks: {
364
+ index: number;
365
+ baseText: string;
366
+ oursText: string;
367
+ theirsText: string;
368
+ startLine?: number | undefined;
369
+ endLine?: number | undefined;
370
+ explanation?: string | undefined;
371
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
372
+ suggestedContent?: string | undefined;
373
+ }[];
374
+ highLevelSummary?: string | undefined;
375
+ }>, "many">>;
376
+ plan: z.ZodArray<z.ZodObject<{
377
+ index: z.ZodNumber;
378
+ title: z.ZodString;
379
+ rationale: z.ZodOptional<z.ZodString>;
380
+ commands: z.ZodArray<z.ZodString, "many">;
381
+ verify: z.ZodArray<z.ZodString, "many">;
382
+ undo: z.ZodArray<z.ZodString, "many">;
383
+ dangerLevel: z.ZodEnum<["safe", "caution", "dangerous"]>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ index: number;
386
+ title: string;
387
+ commands: string[];
388
+ verify: string[];
389
+ undo: string[];
390
+ dangerLevel: "safe" | "caution" | "dangerous";
391
+ rationale?: string | undefined;
392
+ }, {
393
+ index: number;
394
+ title: string;
395
+ commands: string[];
396
+ verify: string[];
397
+ undo: string[];
398
+ dangerLevel: "safe" | "caution" | "dangerous";
399
+ rationale?: string | undefined;
400
+ }>, "many">;
401
+ }, "strip", z.ZodTypeAny, {
402
+ issueType: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
403
+ summary: string;
404
+ plan: {
405
+ index: number;
406
+ title: string;
407
+ commands: string[];
408
+ verify: string[];
409
+ undo: string[];
410
+ dangerLevel: "safe" | "caution" | "dangerous";
411
+ rationale?: string | undefined;
412
+ }[];
413
+ repoGraph?: {
414
+ nodes: {
415
+ id: string;
416
+ type: "commit" | "branch" | "tag" | "head" | "remote";
417
+ label: string;
418
+ sha?: string | undefined;
419
+ isCurrent?: boolean | undefined;
420
+ isDetached?: boolean | undefined;
421
+ }[];
422
+ edges: {
423
+ from: string;
424
+ to: string;
425
+ type?: "branch" | "parent" | "merge" | undefined;
426
+ }[];
427
+ headRef?: string | undefined;
428
+ mergeHeadRef?: string | undefined;
429
+ } | undefined;
430
+ conflicts?: {
431
+ path: string;
432
+ hunks: {
433
+ index: number;
434
+ baseText: string;
435
+ oursText: string;
436
+ theirsText: string;
437
+ startLine?: number | undefined;
438
+ endLine?: number | undefined;
439
+ explanation?: string | undefined;
440
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
441
+ suggestedContent?: string | undefined;
442
+ }[];
443
+ highLevelSummary?: string | undefined;
444
+ }[] | undefined;
445
+ }, {
446
+ issueType: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
447
+ summary: string;
448
+ plan: {
449
+ index: number;
450
+ title: string;
451
+ commands: string[];
452
+ verify: string[];
453
+ undo: string[];
454
+ dangerLevel: "safe" | "caution" | "dangerous";
455
+ rationale?: string | undefined;
456
+ }[];
457
+ repoGraph?: {
458
+ nodes: {
459
+ id: string;
460
+ type: "commit" | "branch" | "tag" | "head" | "remote";
461
+ label: string;
462
+ sha?: string | undefined;
463
+ isCurrent?: boolean | undefined;
464
+ isDetached?: boolean | undefined;
465
+ }[];
466
+ edges: {
467
+ from: string;
468
+ to: string;
469
+ type?: "branch" | "parent" | "merge" | undefined;
470
+ }[];
471
+ headRef?: string | undefined;
472
+ mergeHeadRef?: string | undefined;
473
+ } | undefined;
474
+ conflicts?: {
475
+ path: string;
476
+ hunks: {
477
+ index: number;
478
+ baseText: string;
479
+ oursText: string;
480
+ theirsText: string;
481
+ startLine?: number | undefined;
482
+ endLine?: number | undefined;
483
+ explanation?: string | undefined;
484
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
485
+ suggestedContent?: string | undefined;
486
+ }[];
487
+ highLevelSummary?: string | undefined;
488
+ }[] | undefined;
489
+ }>;
490
+ export type AnalysisResult = z.infer<typeof AnalysisResultSchema>;
491
+ export declare const AnalyzeRequestSchema: z.ZodObject<{
492
+ snapshot: z.ZodAny;
493
+ options: z.ZodOptional<z.ZodObject<{
494
+ includeGraph: z.ZodOptional<z.ZodBoolean>;
495
+ maxConflictFiles: z.ZodOptional<z.ZodNumber>;
496
+ maxHunksPerFile: z.ZodOptional<z.ZodNumber>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ includeGraph?: boolean | undefined;
499
+ maxConflictFiles?: number | undefined;
500
+ maxHunksPerFile?: number | undefined;
501
+ }, {
502
+ includeGraph?: boolean | undefined;
503
+ maxConflictFiles?: number | undefined;
504
+ maxHunksPerFile?: number | undefined;
505
+ }>>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ options?: {
508
+ includeGraph?: boolean | undefined;
509
+ maxConflictFiles?: number | undefined;
510
+ maxHunksPerFile?: number | undefined;
511
+ } | undefined;
512
+ snapshot?: any;
513
+ }, {
514
+ options?: {
515
+ includeGraph?: boolean | undefined;
516
+ maxConflictFiles?: number | undefined;
517
+ maxHunksPerFile?: number | undefined;
518
+ } | undefined;
519
+ snapshot?: any;
520
+ }>;
521
+ export type AnalyzeRequest = z.infer<typeof AnalyzeRequestSchema>;
522
+ export declare const AnalyzeResponseSchema: z.ZodObject<{
523
+ success: z.ZodBoolean;
524
+ analysis: z.ZodOptional<z.ZodObject<{
525
+ issueType: z.ZodEnum<["merge_conflict", "detached_head", "rebase_in_progress", "clean", "unknown"]>;
526
+ summary: z.ZodString;
527
+ repoGraph: z.ZodOptional<z.ZodObject<{
528
+ nodes: z.ZodArray<z.ZodObject<{
529
+ id: z.ZodString;
530
+ type: z.ZodEnum<["commit", "branch", "tag", "head", "remote"]>;
531
+ label: z.ZodString;
532
+ sha: z.ZodOptional<z.ZodString>;
533
+ isCurrent: z.ZodOptional<z.ZodBoolean>;
534
+ isDetached: z.ZodOptional<z.ZodBoolean>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ id: string;
537
+ type: "commit" | "branch" | "tag" | "head" | "remote";
538
+ label: string;
539
+ sha?: string | undefined;
540
+ isCurrent?: boolean | undefined;
541
+ isDetached?: boolean | undefined;
542
+ }, {
543
+ id: string;
544
+ type: "commit" | "branch" | "tag" | "head" | "remote";
545
+ label: string;
546
+ sha?: string | undefined;
547
+ isCurrent?: boolean | undefined;
548
+ isDetached?: boolean | undefined;
549
+ }>, "many">;
550
+ edges: z.ZodArray<z.ZodObject<{
551
+ from: z.ZodString;
552
+ to: z.ZodString;
553
+ type: z.ZodOptional<z.ZodEnum<["parent", "branch", "merge"]>>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ from: string;
556
+ to: string;
557
+ type?: "branch" | "parent" | "merge" | undefined;
558
+ }, {
559
+ from: string;
560
+ to: string;
561
+ type?: "branch" | "parent" | "merge" | undefined;
562
+ }>, "many">;
563
+ headRef: z.ZodOptional<z.ZodString>;
564
+ mergeHeadRef: z.ZodOptional<z.ZodString>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ nodes: {
567
+ id: string;
568
+ type: "commit" | "branch" | "tag" | "head" | "remote";
569
+ label: string;
570
+ sha?: string | undefined;
571
+ isCurrent?: boolean | undefined;
572
+ isDetached?: boolean | undefined;
573
+ }[];
574
+ edges: {
575
+ from: string;
576
+ to: string;
577
+ type?: "branch" | "parent" | "merge" | undefined;
578
+ }[];
579
+ headRef?: string | undefined;
580
+ mergeHeadRef?: string | undefined;
581
+ }, {
582
+ nodes: {
583
+ id: string;
584
+ type: "commit" | "branch" | "tag" | "head" | "remote";
585
+ label: string;
586
+ sha?: string | undefined;
587
+ isCurrent?: boolean | undefined;
588
+ isDetached?: boolean | undefined;
589
+ }[];
590
+ edges: {
591
+ from: string;
592
+ to: string;
593
+ type?: "branch" | "parent" | "merge" | undefined;
594
+ }[];
595
+ headRef?: string | undefined;
596
+ mergeHeadRef?: string | undefined;
597
+ }>>;
598
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
599
+ path: z.ZodString;
600
+ highLevelSummary: z.ZodOptional<z.ZodString>;
601
+ hunks: z.ZodArray<z.ZodObject<{
602
+ index: z.ZodNumber;
603
+ startLine: z.ZodOptional<z.ZodNumber>;
604
+ endLine: z.ZodOptional<z.ZodNumber>;
605
+ baseText: z.ZodString;
606
+ oursText: z.ZodString;
607
+ theirsText: z.ZodString;
608
+ explanation: z.ZodOptional<z.ZodString>;
609
+ suggestedChoice: z.ZodOptional<z.ZodEnum<["ours", "theirs", "manual", "combine"]>>;
610
+ suggestedContent: z.ZodOptional<z.ZodString>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ index: number;
613
+ baseText: string;
614
+ oursText: string;
615
+ theirsText: string;
616
+ startLine?: number | undefined;
617
+ endLine?: number | undefined;
618
+ explanation?: string | undefined;
619
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
620
+ suggestedContent?: string | undefined;
621
+ }, {
622
+ index: number;
623
+ baseText: string;
624
+ oursText: string;
625
+ theirsText: string;
626
+ startLine?: number | undefined;
627
+ endLine?: number | undefined;
628
+ explanation?: string | undefined;
629
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
630
+ suggestedContent?: string | undefined;
631
+ }>, "many">;
632
+ }, "strip", z.ZodTypeAny, {
633
+ path: string;
634
+ hunks: {
635
+ index: number;
636
+ baseText: string;
637
+ oursText: string;
638
+ theirsText: string;
639
+ startLine?: number | undefined;
640
+ endLine?: number | undefined;
641
+ explanation?: string | undefined;
642
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
643
+ suggestedContent?: string | undefined;
644
+ }[];
645
+ highLevelSummary?: string | undefined;
646
+ }, {
647
+ path: string;
648
+ hunks: {
649
+ index: number;
650
+ baseText: string;
651
+ oursText: string;
652
+ theirsText: string;
653
+ startLine?: number | undefined;
654
+ endLine?: number | undefined;
655
+ explanation?: string | undefined;
656
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
657
+ suggestedContent?: string | undefined;
658
+ }[];
659
+ highLevelSummary?: string | undefined;
660
+ }>, "many">>;
661
+ plan: z.ZodArray<z.ZodObject<{
662
+ index: z.ZodNumber;
663
+ title: z.ZodString;
664
+ rationale: z.ZodOptional<z.ZodString>;
665
+ commands: z.ZodArray<z.ZodString, "many">;
666
+ verify: z.ZodArray<z.ZodString, "many">;
667
+ undo: z.ZodArray<z.ZodString, "many">;
668
+ dangerLevel: z.ZodEnum<["safe", "caution", "dangerous"]>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ index: number;
671
+ title: string;
672
+ commands: string[];
673
+ verify: string[];
674
+ undo: string[];
675
+ dangerLevel: "safe" | "caution" | "dangerous";
676
+ rationale?: string | undefined;
677
+ }, {
678
+ index: number;
679
+ title: string;
680
+ commands: string[];
681
+ verify: string[];
682
+ undo: string[];
683
+ dangerLevel: "safe" | "caution" | "dangerous";
684
+ rationale?: string | undefined;
685
+ }>, "many">;
686
+ }, "strip", z.ZodTypeAny, {
687
+ issueType: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
688
+ summary: string;
689
+ plan: {
690
+ index: number;
691
+ title: string;
692
+ commands: string[];
693
+ verify: string[];
694
+ undo: string[];
695
+ dangerLevel: "safe" | "caution" | "dangerous";
696
+ rationale?: string | undefined;
697
+ }[];
698
+ repoGraph?: {
699
+ nodes: {
700
+ id: string;
701
+ type: "commit" | "branch" | "tag" | "head" | "remote";
702
+ label: string;
703
+ sha?: string | undefined;
704
+ isCurrent?: boolean | undefined;
705
+ isDetached?: boolean | undefined;
706
+ }[];
707
+ edges: {
708
+ from: string;
709
+ to: string;
710
+ type?: "branch" | "parent" | "merge" | undefined;
711
+ }[];
712
+ headRef?: string | undefined;
713
+ mergeHeadRef?: string | undefined;
714
+ } | undefined;
715
+ conflicts?: {
716
+ path: string;
717
+ hunks: {
718
+ index: number;
719
+ baseText: string;
720
+ oursText: string;
721
+ theirsText: string;
722
+ startLine?: number | undefined;
723
+ endLine?: number | undefined;
724
+ explanation?: string | undefined;
725
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
726
+ suggestedContent?: string | undefined;
727
+ }[];
728
+ highLevelSummary?: string | undefined;
729
+ }[] | undefined;
730
+ }, {
731
+ issueType: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
732
+ summary: string;
733
+ plan: {
734
+ index: number;
735
+ title: string;
736
+ commands: string[];
737
+ verify: string[];
738
+ undo: string[];
739
+ dangerLevel: "safe" | "caution" | "dangerous";
740
+ rationale?: string | undefined;
741
+ }[];
742
+ repoGraph?: {
743
+ nodes: {
744
+ id: string;
745
+ type: "commit" | "branch" | "tag" | "head" | "remote";
746
+ label: string;
747
+ sha?: string | undefined;
748
+ isCurrent?: boolean | undefined;
749
+ isDetached?: boolean | undefined;
750
+ }[];
751
+ edges: {
752
+ from: string;
753
+ to: string;
754
+ type?: "branch" | "parent" | "merge" | undefined;
755
+ }[];
756
+ headRef?: string | undefined;
757
+ mergeHeadRef?: string | undefined;
758
+ } | undefined;
759
+ conflicts?: {
760
+ path: string;
761
+ hunks: {
762
+ index: number;
763
+ baseText: string;
764
+ oursText: string;
765
+ theirsText: string;
766
+ startLine?: number | undefined;
767
+ endLine?: number | undefined;
768
+ explanation?: string | undefined;
769
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
770
+ suggestedContent?: string | undefined;
771
+ }[];
772
+ highLevelSummary?: string | undefined;
773
+ }[] | undefined;
774
+ }>>;
775
+ error: z.ZodOptional<z.ZodString>;
776
+ durationMs: z.ZodOptional<z.ZodNumber>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ success: boolean;
779
+ analysis?: {
780
+ issueType: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
781
+ summary: string;
782
+ plan: {
783
+ index: number;
784
+ title: string;
785
+ commands: string[];
786
+ verify: string[];
787
+ undo: string[];
788
+ dangerLevel: "safe" | "caution" | "dangerous";
789
+ rationale?: string | undefined;
790
+ }[];
791
+ repoGraph?: {
792
+ nodes: {
793
+ id: string;
794
+ type: "commit" | "branch" | "tag" | "head" | "remote";
795
+ label: string;
796
+ sha?: string | undefined;
797
+ isCurrent?: boolean | undefined;
798
+ isDetached?: boolean | undefined;
799
+ }[];
800
+ edges: {
801
+ from: string;
802
+ to: string;
803
+ type?: "branch" | "parent" | "merge" | undefined;
804
+ }[];
805
+ headRef?: string | undefined;
806
+ mergeHeadRef?: string | undefined;
807
+ } | undefined;
808
+ conflicts?: {
809
+ path: string;
810
+ hunks: {
811
+ index: number;
812
+ baseText: string;
813
+ oursText: string;
814
+ theirsText: string;
815
+ startLine?: number | undefined;
816
+ endLine?: number | undefined;
817
+ explanation?: string | undefined;
818
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
819
+ suggestedContent?: string | undefined;
820
+ }[];
821
+ highLevelSummary?: string | undefined;
822
+ }[] | undefined;
823
+ } | undefined;
824
+ error?: string | undefined;
825
+ durationMs?: number | undefined;
826
+ }, {
827
+ success: boolean;
828
+ analysis?: {
829
+ issueType: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
830
+ summary: string;
831
+ plan: {
832
+ index: number;
833
+ title: string;
834
+ commands: string[];
835
+ verify: string[];
836
+ undo: string[];
837
+ dangerLevel: "safe" | "caution" | "dangerous";
838
+ rationale?: string | undefined;
839
+ }[];
840
+ repoGraph?: {
841
+ nodes: {
842
+ id: string;
843
+ type: "commit" | "branch" | "tag" | "head" | "remote";
844
+ label: string;
845
+ sha?: string | undefined;
846
+ isCurrent?: boolean | undefined;
847
+ isDetached?: boolean | undefined;
848
+ }[];
849
+ edges: {
850
+ from: string;
851
+ to: string;
852
+ type?: "branch" | "parent" | "merge" | undefined;
853
+ }[];
854
+ headRef?: string | undefined;
855
+ mergeHeadRef?: string | undefined;
856
+ } | undefined;
857
+ conflicts?: {
858
+ path: string;
859
+ hunks: {
860
+ index: number;
861
+ baseText: string;
862
+ oursText: string;
863
+ theirsText: string;
864
+ startLine?: number | undefined;
865
+ endLine?: number | undefined;
866
+ explanation?: string | undefined;
867
+ suggestedChoice?: "ours" | "theirs" | "manual" | "combine" | undefined;
868
+ suggestedContent?: string | undefined;
869
+ }[];
870
+ highLevelSummary?: string | undefined;
871
+ }[] | undefined;
872
+ } | undefined;
873
+ error?: string | undefined;
874
+ durationMs?: number | undefined;
875
+ }>;
876
+ export type AnalyzeResponse = z.infer<typeof AnalyzeResponseSchema>;
877
+ //# sourceMappingURL=analysis.d.ts.map