@azizbekdevuz/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.
- package/dist/analysis.d.ts +877 -0
- package/dist/analysis.d.ts.map +1 -0
- package/dist/analysis.js +94 -0
- package/dist/analysis.js.map +1 -0
- package/dist/api.d.ts +2545 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +127 -0
- package/dist/api.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/plan.d.ts +346 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +58 -0
- package/dist/plan.js.map +1 -0
- package/dist/signals.d.ts +107 -0
- package/dist/signals.d.ts.map +1 -0
- package/dist/signals.js +39 -0
- package/dist/signals.js.map +1 -0
- package/dist/snapshot.d.ts +463 -0
- package/dist/snapshot.d.ts.map +1 -0
- package/dist/snapshot.js +88 -0
- package/dist/snapshot.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SignalsSchema: z.ZodObject<{
|
|
3
|
+
hasConflicts: z.ZodBoolean;
|
|
4
|
+
conflictCount: z.ZodNumber;
|
|
5
|
+
conflictFiles: z.ZodArray<z.ZodString, "many">;
|
|
6
|
+
isDetachedHead: z.ZodBoolean;
|
|
7
|
+
detachedAt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
isRebaseInProgress: z.ZodBoolean;
|
|
9
|
+
rebaseType: z.ZodEnum<["merge", "apply", "none"]>;
|
|
10
|
+
rebaseOnto: z.ZodOptional<z.ZodString>;
|
|
11
|
+
currentBranch: z.ZodString;
|
|
12
|
+
upstreamBranch: z.ZodOptional<z.ZodString>;
|
|
13
|
+
aheadCount: z.ZodNumber;
|
|
14
|
+
behindCount: z.ZodNumber;
|
|
15
|
+
hasStagedChanges: z.ZodBoolean;
|
|
16
|
+
hasUnstagedChanges: z.ZodBoolean;
|
|
17
|
+
hasUntrackedFiles: z.ZodBoolean;
|
|
18
|
+
recentCheckouts: z.ZodArray<z.ZodObject<{
|
|
19
|
+
from: z.ZodString;
|
|
20
|
+
to: z.ZodString;
|
|
21
|
+
reflogSelector: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
from: string;
|
|
24
|
+
to: string;
|
|
25
|
+
reflogSelector: string;
|
|
26
|
+
}, {
|
|
27
|
+
from: string;
|
|
28
|
+
to: string;
|
|
29
|
+
reflogSelector: string;
|
|
30
|
+
}>, "many">;
|
|
31
|
+
recentResets: z.ZodArray<z.ZodObject<{
|
|
32
|
+
type: z.ZodString;
|
|
33
|
+
target: z.ZodString;
|
|
34
|
+
reflogSelector: z.ZodString;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
type: string;
|
|
37
|
+
reflogSelector: string;
|
|
38
|
+
target: string;
|
|
39
|
+
}, {
|
|
40
|
+
type: string;
|
|
41
|
+
reflogSelector: string;
|
|
42
|
+
target: string;
|
|
43
|
+
}>, "many">;
|
|
44
|
+
primaryIssue: z.ZodEnum<["merge_conflict", "detached_head", "rebase_in_progress", "clean", "unknown"]>;
|
|
45
|
+
secondaryIssues: z.ZodArray<z.ZodEnum<["merge_conflict", "detached_head", "rebase_in_progress", "clean", "unknown"]>, "many">;
|
|
46
|
+
estimatedRisk: z.ZodEnum<["low", "medium", "high"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
isDetachedHead: boolean;
|
|
49
|
+
hasConflicts: boolean;
|
|
50
|
+
conflictCount: number;
|
|
51
|
+
conflictFiles: string[];
|
|
52
|
+
isRebaseInProgress: boolean;
|
|
53
|
+
rebaseType: "merge" | "apply" | "none";
|
|
54
|
+
currentBranch: string;
|
|
55
|
+
aheadCount: number;
|
|
56
|
+
behindCount: number;
|
|
57
|
+
hasStagedChanges: boolean;
|
|
58
|
+
hasUnstagedChanges: boolean;
|
|
59
|
+
hasUntrackedFiles: boolean;
|
|
60
|
+
recentCheckouts: {
|
|
61
|
+
from: string;
|
|
62
|
+
to: string;
|
|
63
|
+
reflogSelector: string;
|
|
64
|
+
}[];
|
|
65
|
+
recentResets: {
|
|
66
|
+
type: string;
|
|
67
|
+
reflogSelector: string;
|
|
68
|
+
target: string;
|
|
69
|
+
}[];
|
|
70
|
+
primaryIssue: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
|
|
71
|
+
secondaryIssues: ("merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown")[];
|
|
72
|
+
estimatedRisk: "low" | "medium" | "high";
|
|
73
|
+
detachedAt?: string | undefined;
|
|
74
|
+
rebaseOnto?: string | undefined;
|
|
75
|
+
upstreamBranch?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
isDetachedHead: boolean;
|
|
78
|
+
hasConflicts: boolean;
|
|
79
|
+
conflictCount: number;
|
|
80
|
+
conflictFiles: string[];
|
|
81
|
+
isRebaseInProgress: boolean;
|
|
82
|
+
rebaseType: "merge" | "apply" | "none";
|
|
83
|
+
currentBranch: string;
|
|
84
|
+
aheadCount: number;
|
|
85
|
+
behindCount: number;
|
|
86
|
+
hasStagedChanges: boolean;
|
|
87
|
+
hasUnstagedChanges: boolean;
|
|
88
|
+
hasUntrackedFiles: boolean;
|
|
89
|
+
recentCheckouts: {
|
|
90
|
+
from: string;
|
|
91
|
+
to: string;
|
|
92
|
+
reflogSelector: string;
|
|
93
|
+
}[];
|
|
94
|
+
recentResets: {
|
|
95
|
+
type: string;
|
|
96
|
+
reflogSelector: string;
|
|
97
|
+
target: string;
|
|
98
|
+
}[];
|
|
99
|
+
primaryIssue: "merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown";
|
|
100
|
+
secondaryIssues: ("merge_conflict" | "detached_head" | "rebase_in_progress" | "clean" | "unknown")[];
|
|
101
|
+
estimatedRisk: "low" | "medium" | "high";
|
|
102
|
+
detachedAt?: string | undefined;
|
|
103
|
+
rebaseOnto?: string | undefined;
|
|
104
|
+
upstreamBranch?: string | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export type Signals = z.infer<typeof SignalsSchema>;
|
|
107
|
+
//# sourceMappingURL=signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../src/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/signals.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IssueTypeSchema, RiskLevelSchema } from './plan.js';
|
|
3
|
+
// Normalized signals from snapshot for agent processing
|
|
4
|
+
export const SignalsSchema = z.object({
|
|
5
|
+
// Detected issues
|
|
6
|
+
hasConflicts: z.boolean(),
|
|
7
|
+
conflictCount: z.number(),
|
|
8
|
+
conflictFiles: z.array(z.string()),
|
|
9
|
+
isDetachedHead: z.boolean(),
|
|
10
|
+
detachedAt: z.string().optional(), // commit hash
|
|
11
|
+
isRebaseInProgress: z.boolean(),
|
|
12
|
+
rebaseType: z.enum(['merge', 'apply', 'none']),
|
|
13
|
+
rebaseOnto: z.string().optional(),
|
|
14
|
+
// Branch context
|
|
15
|
+
currentBranch: z.string(),
|
|
16
|
+
upstreamBranch: z.string().optional(),
|
|
17
|
+
aheadCount: z.number(),
|
|
18
|
+
behindCount: z.number(),
|
|
19
|
+
// Working tree state
|
|
20
|
+
hasStagedChanges: z.boolean(),
|
|
21
|
+
hasUnstagedChanges: z.boolean(),
|
|
22
|
+
hasUntrackedFiles: z.boolean(),
|
|
23
|
+
// Recovery hints from reflog
|
|
24
|
+
recentCheckouts: z.array(z.object({
|
|
25
|
+
from: z.string(),
|
|
26
|
+
to: z.string(),
|
|
27
|
+
reflogSelector: z.string(),
|
|
28
|
+
})),
|
|
29
|
+
recentResets: z.array(z.object({
|
|
30
|
+
type: z.string(), // soft, mixed, hard
|
|
31
|
+
target: z.string(),
|
|
32
|
+
reflogSelector: z.string(),
|
|
33
|
+
})),
|
|
34
|
+
// Classification result
|
|
35
|
+
primaryIssue: IssueTypeSchema,
|
|
36
|
+
secondaryIssues: z.array(IssueTypeSchema),
|
|
37
|
+
estimatedRisk: RiskLevelSchema,
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signals.js","sourceRoot":"","sources":["../src/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE7D,wDAAwD;AACxD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,kBAAkB;IAClB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAElC,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,cAAc;IAEjD,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEjC,iBAAiB;IACjB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IAEvB,qBAAqB;IACrB,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;IAE9B,6BAA6B;IAC7B,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;KAC3B,CAAC,CAAC;IACH,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,oBAAoB;QACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;KAC3B,CAAC,CAAC;IAEH,wBAAwB;IACxB,YAAY,EAAE,eAAe;IAC7B,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACzC,aAAa,EAAE,eAAe;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ConflictBlockSchema: z.ZodObject<{
|
|
3
|
+
startLine: z.ZodNumber;
|
|
4
|
+
endLine: z.ZodNumber;
|
|
5
|
+
oursContent: z.ZodString;
|
|
6
|
+
theirsContent: z.ZodString;
|
|
7
|
+
context: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
startLine: number;
|
|
10
|
+
endLine: number;
|
|
11
|
+
oursContent: string;
|
|
12
|
+
theirsContent: string;
|
|
13
|
+
context: string;
|
|
14
|
+
}, {
|
|
15
|
+
startLine: number;
|
|
16
|
+
endLine: number;
|
|
17
|
+
oursContent: string;
|
|
18
|
+
theirsContent: string;
|
|
19
|
+
context: string;
|
|
20
|
+
}>;
|
|
21
|
+
export type ConflictBlock = z.infer<typeof ConflictBlockSchema>;
|
|
22
|
+
export declare const UnmergedFileSchema: z.ZodObject<{
|
|
23
|
+
path: z.ZodString;
|
|
24
|
+
stageOurs: z.ZodOptional<z.ZodString>;
|
|
25
|
+
stageTheirs: z.ZodOptional<z.ZodString>;
|
|
26
|
+
stageBase: z.ZodOptional<z.ZodString>;
|
|
27
|
+
conflictBlocks: z.ZodArray<z.ZodObject<{
|
|
28
|
+
startLine: z.ZodNumber;
|
|
29
|
+
endLine: z.ZodNumber;
|
|
30
|
+
oursContent: z.ZodString;
|
|
31
|
+
theirsContent: z.ZodString;
|
|
32
|
+
context: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
startLine: number;
|
|
35
|
+
endLine: number;
|
|
36
|
+
oursContent: string;
|
|
37
|
+
theirsContent: string;
|
|
38
|
+
context: string;
|
|
39
|
+
}, {
|
|
40
|
+
startLine: number;
|
|
41
|
+
endLine: number;
|
|
42
|
+
oursContent: string;
|
|
43
|
+
theirsContent: string;
|
|
44
|
+
context: string;
|
|
45
|
+
}>, "many">;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
path: string;
|
|
48
|
+
conflictBlocks: {
|
|
49
|
+
startLine: number;
|
|
50
|
+
endLine: number;
|
|
51
|
+
oursContent: string;
|
|
52
|
+
theirsContent: string;
|
|
53
|
+
context: string;
|
|
54
|
+
}[];
|
|
55
|
+
stageOurs?: string | undefined;
|
|
56
|
+
stageTheirs?: string | undefined;
|
|
57
|
+
stageBase?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
path: string;
|
|
60
|
+
conflictBlocks: {
|
|
61
|
+
startLine: number;
|
|
62
|
+
endLine: number;
|
|
63
|
+
oursContent: string;
|
|
64
|
+
theirsContent: string;
|
|
65
|
+
context: string;
|
|
66
|
+
}[];
|
|
67
|
+
stageOurs?: string | undefined;
|
|
68
|
+
stageTheirs?: string | undefined;
|
|
69
|
+
stageBase?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type UnmergedFile = z.infer<typeof UnmergedFileSchema>;
|
|
72
|
+
export declare const BranchInfoSchema: z.ZodObject<{
|
|
73
|
+
head: z.ZodString;
|
|
74
|
+
oid: z.ZodString;
|
|
75
|
+
upstream: z.ZodOptional<z.ZodString>;
|
|
76
|
+
aheadBehind: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
ahead: z.ZodNumber;
|
|
78
|
+
behind: z.ZodNumber;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
ahead: number;
|
|
81
|
+
behind: number;
|
|
82
|
+
}, {
|
|
83
|
+
ahead: number;
|
|
84
|
+
behind: number;
|
|
85
|
+
}>>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
head: string;
|
|
88
|
+
oid: string;
|
|
89
|
+
upstream?: string | undefined;
|
|
90
|
+
aheadBehind?: {
|
|
91
|
+
ahead: number;
|
|
92
|
+
behind: number;
|
|
93
|
+
} | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
head: string;
|
|
96
|
+
oid: string;
|
|
97
|
+
upstream?: string | undefined;
|
|
98
|
+
aheadBehind?: {
|
|
99
|
+
ahead: number;
|
|
100
|
+
behind: number;
|
|
101
|
+
} | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
export type BranchInfo = z.infer<typeof BranchInfoSchema>;
|
|
104
|
+
export declare const ReflogEntrySchema: z.ZodObject<{
|
|
105
|
+
hash: z.ZodString;
|
|
106
|
+
selector: z.ZodString;
|
|
107
|
+
action: z.ZodString;
|
|
108
|
+
message: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
message: string;
|
|
111
|
+
hash: string;
|
|
112
|
+
selector: string;
|
|
113
|
+
action: string;
|
|
114
|
+
}, {
|
|
115
|
+
message: string;
|
|
116
|
+
hash: string;
|
|
117
|
+
selector: string;
|
|
118
|
+
action: string;
|
|
119
|
+
}>;
|
|
120
|
+
export type ReflogEntry = z.infer<typeof ReflogEntrySchema>;
|
|
121
|
+
export declare const LogEntrySchema: z.ZodObject<{
|
|
122
|
+
hash: z.ZodString;
|
|
123
|
+
refs: z.ZodArray<z.ZodString, "many">;
|
|
124
|
+
message: z.ZodString;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
message: string;
|
|
127
|
+
hash: string;
|
|
128
|
+
refs: string[];
|
|
129
|
+
}, {
|
|
130
|
+
message: string;
|
|
131
|
+
hash: string;
|
|
132
|
+
refs: string[];
|
|
133
|
+
}>;
|
|
134
|
+
export type LogEntry = z.infer<typeof LogEntrySchema>;
|
|
135
|
+
export declare const RebaseStateSchema: z.ZodObject<{
|
|
136
|
+
inProgress: z.ZodBoolean;
|
|
137
|
+
type: z.ZodEnum<["merge", "apply", "none"]>;
|
|
138
|
+
headName: z.ZodOptional<z.ZodString>;
|
|
139
|
+
onto: z.ZodOptional<z.ZodString>;
|
|
140
|
+
currentStep: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
totalSteps: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
type: "merge" | "apply" | "none";
|
|
144
|
+
inProgress: boolean;
|
|
145
|
+
headName?: string | undefined;
|
|
146
|
+
onto?: string | undefined;
|
|
147
|
+
currentStep?: number | undefined;
|
|
148
|
+
totalSteps?: number | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
type: "merge" | "apply" | "none";
|
|
151
|
+
inProgress: boolean;
|
|
152
|
+
headName?: string | undefined;
|
|
153
|
+
onto?: string | undefined;
|
|
154
|
+
currentStep?: number | undefined;
|
|
155
|
+
totalSteps?: number | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
export type RebaseState = z.infer<typeof RebaseStateSchema>;
|
|
158
|
+
export declare const DiffStatSchema: z.ZodObject<{
|
|
159
|
+
path: z.ZodString;
|
|
160
|
+
additions: z.ZodNumber;
|
|
161
|
+
deletions: z.ZodNumber;
|
|
162
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
path: string;
|
|
165
|
+
additions: number;
|
|
166
|
+
deletions: number;
|
|
167
|
+
binary?: boolean | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
path: string;
|
|
170
|
+
additions: number;
|
|
171
|
+
deletions: number;
|
|
172
|
+
binary?: boolean | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
export type DiffStat = z.infer<typeof DiffStatSchema>;
|
|
175
|
+
export declare const SnapshotV1Schema: z.ZodObject<{
|
|
176
|
+
version: z.ZodLiteral<1>;
|
|
177
|
+
timestamp: z.ZodString;
|
|
178
|
+
platform: z.ZodEnum<["win32", "darwin", "linux"]>;
|
|
179
|
+
repoRoot: z.ZodString;
|
|
180
|
+
gitDir: z.ZodString;
|
|
181
|
+
branch: z.ZodObject<{
|
|
182
|
+
head: z.ZodString;
|
|
183
|
+
oid: z.ZodString;
|
|
184
|
+
upstream: z.ZodOptional<z.ZodString>;
|
|
185
|
+
aheadBehind: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
ahead: z.ZodNumber;
|
|
187
|
+
behind: z.ZodNumber;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
ahead: number;
|
|
190
|
+
behind: number;
|
|
191
|
+
}, {
|
|
192
|
+
ahead: number;
|
|
193
|
+
behind: number;
|
|
194
|
+
}>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
head: string;
|
|
197
|
+
oid: string;
|
|
198
|
+
upstream?: string | undefined;
|
|
199
|
+
aheadBehind?: {
|
|
200
|
+
ahead: number;
|
|
201
|
+
behind: number;
|
|
202
|
+
} | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
head: string;
|
|
205
|
+
oid: string;
|
|
206
|
+
upstream?: string | undefined;
|
|
207
|
+
aheadBehind?: {
|
|
208
|
+
ahead: number;
|
|
209
|
+
behind: number;
|
|
210
|
+
} | undefined;
|
|
211
|
+
}>;
|
|
212
|
+
isDetachedHead: z.ZodBoolean;
|
|
213
|
+
rebaseState: z.ZodObject<{
|
|
214
|
+
inProgress: z.ZodBoolean;
|
|
215
|
+
type: z.ZodEnum<["merge", "apply", "none"]>;
|
|
216
|
+
headName: z.ZodOptional<z.ZodString>;
|
|
217
|
+
onto: z.ZodOptional<z.ZodString>;
|
|
218
|
+
currentStep: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
totalSteps: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
type: "merge" | "apply" | "none";
|
|
222
|
+
inProgress: boolean;
|
|
223
|
+
headName?: string | undefined;
|
|
224
|
+
onto?: string | undefined;
|
|
225
|
+
currentStep?: number | undefined;
|
|
226
|
+
totalSteps?: number | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
type: "merge" | "apply" | "none";
|
|
229
|
+
inProgress: boolean;
|
|
230
|
+
headName?: string | undefined;
|
|
231
|
+
onto?: string | undefined;
|
|
232
|
+
currentStep?: number | undefined;
|
|
233
|
+
totalSteps?: number | undefined;
|
|
234
|
+
}>;
|
|
235
|
+
unmergedFiles: z.ZodArray<z.ZodObject<{
|
|
236
|
+
path: z.ZodString;
|
|
237
|
+
stageOurs: z.ZodOptional<z.ZodString>;
|
|
238
|
+
stageTheirs: z.ZodOptional<z.ZodString>;
|
|
239
|
+
stageBase: z.ZodOptional<z.ZodString>;
|
|
240
|
+
conflictBlocks: z.ZodArray<z.ZodObject<{
|
|
241
|
+
startLine: z.ZodNumber;
|
|
242
|
+
endLine: z.ZodNumber;
|
|
243
|
+
oursContent: z.ZodString;
|
|
244
|
+
theirsContent: z.ZodString;
|
|
245
|
+
context: z.ZodString;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
startLine: number;
|
|
248
|
+
endLine: number;
|
|
249
|
+
oursContent: string;
|
|
250
|
+
theirsContent: string;
|
|
251
|
+
context: string;
|
|
252
|
+
}, {
|
|
253
|
+
startLine: number;
|
|
254
|
+
endLine: number;
|
|
255
|
+
oursContent: string;
|
|
256
|
+
theirsContent: string;
|
|
257
|
+
context: string;
|
|
258
|
+
}>, "many">;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
path: string;
|
|
261
|
+
conflictBlocks: {
|
|
262
|
+
startLine: number;
|
|
263
|
+
endLine: number;
|
|
264
|
+
oursContent: string;
|
|
265
|
+
theirsContent: string;
|
|
266
|
+
context: string;
|
|
267
|
+
}[];
|
|
268
|
+
stageOurs?: string | undefined;
|
|
269
|
+
stageTheirs?: string | undefined;
|
|
270
|
+
stageBase?: string | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
path: string;
|
|
273
|
+
conflictBlocks: {
|
|
274
|
+
startLine: number;
|
|
275
|
+
endLine: number;
|
|
276
|
+
oursContent: string;
|
|
277
|
+
theirsContent: string;
|
|
278
|
+
context: string;
|
|
279
|
+
}[];
|
|
280
|
+
stageOurs?: string | undefined;
|
|
281
|
+
stageTheirs?: string | undefined;
|
|
282
|
+
stageBase?: string | undefined;
|
|
283
|
+
}>, "many">;
|
|
284
|
+
stagedFiles: z.ZodArray<z.ZodString, "many">;
|
|
285
|
+
modifiedFiles: z.ZodArray<z.ZodString, "many">;
|
|
286
|
+
untrackedFiles: z.ZodArray<z.ZodString, "many">;
|
|
287
|
+
recentLog: z.ZodArray<z.ZodObject<{
|
|
288
|
+
hash: z.ZodString;
|
|
289
|
+
refs: z.ZodArray<z.ZodString, "many">;
|
|
290
|
+
message: z.ZodString;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
message: string;
|
|
293
|
+
hash: string;
|
|
294
|
+
refs: string[];
|
|
295
|
+
}, {
|
|
296
|
+
message: string;
|
|
297
|
+
hash: string;
|
|
298
|
+
refs: string[];
|
|
299
|
+
}>, "many">;
|
|
300
|
+
recentReflog: z.ZodArray<z.ZodObject<{
|
|
301
|
+
hash: z.ZodString;
|
|
302
|
+
selector: z.ZodString;
|
|
303
|
+
action: z.ZodString;
|
|
304
|
+
message: z.ZodString;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
message: string;
|
|
307
|
+
hash: string;
|
|
308
|
+
selector: string;
|
|
309
|
+
action: string;
|
|
310
|
+
}, {
|
|
311
|
+
message: string;
|
|
312
|
+
hash: string;
|
|
313
|
+
selector: string;
|
|
314
|
+
action: string;
|
|
315
|
+
}>, "many">;
|
|
316
|
+
commitGraph: z.ZodOptional<z.ZodString>;
|
|
317
|
+
diffStats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
+
path: z.ZodString;
|
|
319
|
+
additions: z.ZodNumber;
|
|
320
|
+
deletions: z.ZodNumber;
|
|
321
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
path: string;
|
|
324
|
+
additions: number;
|
|
325
|
+
deletions: number;
|
|
326
|
+
binary?: boolean | undefined;
|
|
327
|
+
}, {
|
|
328
|
+
path: string;
|
|
329
|
+
additions: number;
|
|
330
|
+
deletions: number;
|
|
331
|
+
binary?: boolean | undefined;
|
|
332
|
+
}>, "many">>;
|
|
333
|
+
mergeHead: z.ZodOptional<z.ZodString>;
|
|
334
|
+
mergeMessage: z.ZodOptional<z.ZodString>;
|
|
335
|
+
rawStatus: z.ZodString;
|
|
336
|
+
rawBranches: z.ZodString;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
version: 1;
|
|
339
|
+
timestamp: string;
|
|
340
|
+
platform: "win32" | "darwin" | "linux";
|
|
341
|
+
repoRoot: string;
|
|
342
|
+
gitDir: string;
|
|
343
|
+
branch: {
|
|
344
|
+
head: string;
|
|
345
|
+
oid: string;
|
|
346
|
+
upstream?: string | undefined;
|
|
347
|
+
aheadBehind?: {
|
|
348
|
+
ahead: number;
|
|
349
|
+
behind: number;
|
|
350
|
+
} | undefined;
|
|
351
|
+
};
|
|
352
|
+
isDetachedHead: boolean;
|
|
353
|
+
rebaseState: {
|
|
354
|
+
type: "merge" | "apply" | "none";
|
|
355
|
+
inProgress: boolean;
|
|
356
|
+
headName?: string | undefined;
|
|
357
|
+
onto?: string | undefined;
|
|
358
|
+
currentStep?: number | undefined;
|
|
359
|
+
totalSteps?: number | undefined;
|
|
360
|
+
};
|
|
361
|
+
unmergedFiles: {
|
|
362
|
+
path: string;
|
|
363
|
+
conflictBlocks: {
|
|
364
|
+
startLine: number;
|
|
365
|
+
endLine: number;
|
|
366
|
+
oursContent: string;
|
|
367
|
+
theirsContent: string;
|
|
368
|
+
context: string;
|
|
369
|
+
}[];
|
|
370
|
+
stageOurs?: string | undefined;
|
|
371
|
+
stageTheirs?: string | undefined;
|
|
372
|
+
stageBase?: string | undefined;
|
|
373
|
+
}[];
|
|
374
|
+
stagedFiles: string[];
|
|
375
|
+
modifiedFiles: string[];
|
|
376
|
+
untrackedFiles: string[];
|
|
377
|
+
recentLog: {
|
|
378
|
+
message: string;
|
|
379
|
+
hash: string;
|
|
380
|
+
refs: string[];
|
|
381
|
+
}[];
|
|
382
|
+
recentReflog: {
|
|
383
|
+
message: string;
|
|
384
|
+
hash: string;
|
|
385
|
+
selector: string;
|
|
386
|
+
action: string;
|
|
387
|
+
}[];
|
|
388
|
+
rawStatus: string;
|
|
389
|
+
rawBranches: string;
|
|
390
|
+
commitGraph?: string | undefined;
|
|
391
|
+
diffStats?: {
|
|
392
|
+
path: string;
|
|
393
|
+
additions: number;
|
|
394
|
+
deletions: number;
|
|
395
|
+
binary?: boolean | undefined;
|
|
396
|
+
}[] | undefined;
|
|
397
|
+
mergeHead?: string | undefined;
|
|
398
|
+
mergeMessage?: string | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
version: 1;
|
|
401
|
+
timestamp: string;
|
|
402
|
+
platform: "win32" | "darwin" | "linux";
|
|
403
|
+
repoRoot: string;
|
|
404
|
+
gitDir: string;
|
|
405
|
+
branch: {
|
|
406
|
+
head: string;
|
|
407
|
+
oid: string;
|
|
408
|
+
upstream?: string | undefined;
|
|
409
|
+
aheadBehind?: {
|
|
410
|
+
ahead: number;
|
|
411
|
+
behind: number;
|
|
412
|
+
} | undefined;
|
|
413
|
+
};
|
|
414
|
+
isDetachedHead: boolean;
|
|
415
|
+
rebaseState: {
|
|
416
|
+
type: "merge" | "apply" | "none";
|
|
417
|
+
inProgress: boolean;
|
|
418
|
+
headName?: string | undefined;
|
|
419
|
+
onto?: string | undefined;
|
|
420
|
+
currentStep?: number | undefined;
|
|
421
|
+
totalSteps?: number | undefined;
|
|
422
|
+
};
|
|
423
|
+
unmergedFiles: {
|
|
424
|
+
path: string;
|
|
425
|
+
conflictBlocks: {
|
|
426
|
+
startLine: number;
|
|
427
|
+
endLine: number;
|
|
428
|
+
oursContent: string;
|
|
429
|
+
theirsContent: string;
|
|
430
|
+
context: string;
|
|
431
|
+
}[];
|
|
432
|
+
stageOurs?: string | undefined;
|
|
433
|
+
stageTheirs?: string | undefined;
|
|
434
|
+
stageBase?: string | undefined;
|
|
435
|
+
}[];
|
|
436
|
+
stagedFiles: string[];
|
|
437
|
+
modifiedFiles: string[];
|
|
438
|
+
untrackedFiles: string[];
|
|
439
|
+
recentLog: {
|
|
440
|
+
message: string;
|
|
441
|
+
hash: string;
|
|
442
|
+
refs: string[];
|
|
443
|
+
}[];
|
|
444
|
+
recentReflog: {
|
|
445
|
+
message: string;
|
|
446
|
+
hash: string;
|
|
447
|
+
selector: string;
|
|
448
|
+
action: string;
|
|
449
|
+
}[];
|
|
450
|
+
rawStatus: string;
|
|
451
|
+
rawBranches: string;
|
|
452
|
+
commitGraph?: string | undefined;
|
|
453
|
+
diffStats?: {
|
|
454
|
+
path: string;
|
|
455
|
+
additions: number;
|
|
456
|
+
deletions: number;
|
|
457
|
+
binary?: boolean | undefined;
|
|
458
|
+
}[] | undefined;
|
|
459
|
+
mergeHead?: string | undefined;
|
|
460
|
+
mergeMessage?: string | undefined;
|
|
461
|
+
}>;
|
|
462
|
+
export type SnapshotV1 = z.infer<typeof SnapshotV1Schema>;
|
|
463
|
+
//# sourceMappingURL=snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|