@statewalker/vcs-commands 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +591 -0
  3. package/dist/commands/add-command.d.ts +170 -0
  4. package/dist/commands/add-command.d.ts.map +1 -0
  5. package/dist/commands/blame-command.d.ts +267 -0
  6. package/dist/commands/blame-command.d.ts.map +1 -0
  7. package/dist/commands/branch-command.d.ts +211 -0
  8. package/dist/commands/branch-command.d.ts.map +1 -0
  9. package/dist/commands/checkout-command.d.ts +261 -0
  10. package/dist/commands/checkout-command.d.ts.map +1 -0
  11. package/dist/commands/cherry-pick-command.d.ts +128 -0
  12. package/dist/commands/cherry-pick-command.d.ts.map +1 -0
  13. package/dist/commands/clean-command.d.ts +91 -0
  14. package/dist/commands/clean-command.d.ts.map +1 -0
  15. package/dist/commands/clone-command.d.ts +233 -0
  16. package/dist/commands/clone-command.d.ts.map +1 -0
  17. package/dist/commands/commit-command.d.ts +199 -0
  18. package/dist/commands/commit-command.d.ts.map +1 -0
  19. package/dist/commands/describe-command.d.ts +175 -0
  20. package/dist/commands/describe-command.d.ts.map +1 -0
  21. package/dist/commands/diff-command.d.ts +96 -0
  22. package/dist/commands/diff-command.d.ts.map +1 -0
  23. package/dist/commands/fetch-command.d.ts +266 -0
  24. package/dist/commands/fetch-command.d.ts.map +1 -0
  25. package/dist/commands/gc-command.d.ts +83 -0
  26. package/dist/commands/gc-command.d.ts.map +1 -0
  27. package/dist/commands/index.d.ts +32 -0
  28. package/dist/commands/index.d.ts.map +1 -0
  29. package/dist/commands/index.js +2 -0
  30. package/dist/commands/init-command.d.ts +175 -0
  31. package/dist/commands/init-command.d.ts.map +1 -0
  32. package/dist/commands/log-command.d.ts +246 -0
  33. package/dist/commands/log-command.d.ts.map +1 -0
  34. package/dist/commands/ls-remote-command.d.ts +122 -0
  35. package/dist/commands/ls-remote-command.d.ts.map +1 -0
  36. package/dist/commands/merge-command.d.ts +169 -0
  37. package/dist/commands/merge-command.d.ts.map +1 -0
  38. package/dist/commands/pack-refs-command.d.ts +57 -0
  39. package/dist/commands/pack-refs-command.d.ts.map +1 -0
  40. package/dist/commands/pull-command.d.ts +111 -0
  41. package/dist/commands/pull-command.d.ts.map +1 -0
  42. package/dist/commands/push-command.d.ts +220 -0
  43. package/dist/commands/push-command.d.ts.map +1 -0
  44. package/dist/commands/rebase-command.d.ts +186 -0
  45. package/dist/commands/rebase-command.d.ts.map +1 -0
  46. package/dist/commands/reflog-command.d.ts +45 -0
  47. package/dist/commands/reflog-command.d.ts.map +1 -0
  48. package/dist/commands/remote-command.d.ts +205 -0
  49. package/dist/commands/remote-command.d.ts.map +1 -0
  50. package/dist/commands/reset-command.d.ts +114 -0
  51. package/dist/commands/reset-command.d.ts.map +1 -0
  52. package/dist/commands/revert-command.d.ts +129 -0
  53. package/dist/commands/revert-command.d.ts.map +1 -0
  54. package/dist/commands/rm-command.d.ts +72 -0
  55. package/dist/commands/rm-command.d.ts.map +1 -0
  56. package/dist/commands/stash-apply-command.d.ts +132 -0
  57. package/dist/commands/stash-apply-command.d.ts.map +1 -0
  58. package/dist/commands/stash-create-command.d.ts +137 -0
  59. package/dist/commands/stash-create-command.d.ts.map +1 -0
  60. package/dist/commands/stash-drop-command.d.ts +63 -0
  61. package/dist/commands/stash-drop-command.d.ts.map +1 -0
  62. package/dist/commands/stash-list-command.d.ts +42 -0
  63. package/dist/commands/stash-list-command.d.ts.map +1 -0
  64. package/dist/commands/status-command.d.ts +55 -0
  65. package/dist/commands/status-command.d.ts.map +1 -0
  66. package/dist/commands/tag-command.d.ts +155 -0
  67. package/dist/commands/tag-command.d.ts.map +1 -0
  68. package/dist/commands/tree-restore.d.ts +51 -0
  69. package/dist/commands/tree-restore.d.ts.map +1 -0
  70. package/dist/commands-COO4tJhv.js +10274 -0
  71. package/dist/core-commands/add.command.d.ts +71 -0
  72. package/dist/core-commands/add.command.d.ts.map +1 -0
  73. package/dist/core-commands/add.command.impl.d.ts +53 -0
  74. package/dist/core-commands/add.command.impl.d.ts.map +1 -0
  75. package/dist/core-commands/checkout.command.d.ts +103 -0
  76. package/dist/core-commands/checkout.command.d.ts.map +1 -0
  77. package/dist/core-commands/checkout.command.impl.d.ts +114 -0
  78. package/dist/core-commands/checkout.command.impl.d.ts.map +1 -0
  79. package/dist/core-commands/index.d.ts +6 -0
  80. package/dist/core-commands/index.d.ts.map +1 -0
  81. package/dist/errors/add-errors.d.ts +16 -0
  82. package/dist/errors/add-errors.d.ts.map +1 -0
  83. package/dist/errors/checkout-errors.d.ts +24 -0
  84. package/dist/errors/checkout-errors.d.ts.map +1 -0
  85. package/dist/errors/command-errors.d.ts +38 -0
  86. package/dist/errors/command-errors.d.ts.map +1 -0
  87. package/dist/errors/commit-errors.d.ts +27 -0
  88. package/dist/errors/commit-errors.d.ts.map +1 -0
  89. package/dist/errors/git-api-error.d.ts +9 -0
  90. package/dist/errors/git-api-error.d.ts.map +1 -0
  91. package/dist/errors/index.d.ts +13 -0
  92. package/dist/errors/index.d.ts.map +1 -0
  93. package/dist/errors/index.js +509 -0
  94. package/dist/errors/merge-errors.d.ts +63 -0
  95. package/dist/errors/merge-errors.d.ts.map +1 -0
  96. package/dist/errors/rebase-errors.d.ts +21 -0
  97. package/dist/errors/rebase-errors.d.ts.map +1 -0
  98. package/dist/errors/ref-errors.d.ts +63 -0
  99. package/dist/errors/ref-errors.d.ts.map +1 -0
  100. package/dist/errors/remote-errors.d.ts +16 -0
  101. package/dist/errors/remote-errors.d.ts.map +1 -0
  102. package/dist/errors/stash-errors.d.ts +24 -0
  103. package/dist/errors/stash-errors.d.ts.map +1 -0
  104. package/dist/errors/tag-errors.d.ts +11 -0
  105. package/dist/errors/tag-errors.d.ts.map +1 -0
  106. package/dist/errors/transport-errors.d.ts +42 -0
  107. package/dist/errors/transport-errors.d.ts.map +1 -0
  108. package/dist/git-command.d.ts +139 -0
  109. package/dist/git-command.d.ts.map +1 -0
  110. package/dist/git.d.ts +637 -0
  111. package/dist/git.d.ts.map +1 -0
  112. package/dist/index.d.ts +8 -0
  113. package/dist/index.d.ts.map +1 -0
  114. package/dist/index.js +5 -0
  115. package/dist/pack-import/index.d.ts +8 -0
  116. package/dist/pack-import/index.d.ts.map +1 -0
  117. package/dist/pack-import/pack-import.d.ts +11 -0
  118. package/dist/pack-import/pack-import.d.ts.map +1 -0
  119. package/dist/remote-config/index.d.ts +7 -0
  120. package/dist/remote-config/index.d.ts.map +1 -0
  121. package/dist/remote-config/remote-config-store.d.ts +93 -0
  122. package/dist/remote-config/remote-config-store.d.ts.map +1 -0
  123. package/dist/rename/index.d.ts +5 -0
  124. package/dist/rename/index.d.ts.map +1 -0
  125. package/dist/rename/similarity-index.d.ts +64 -0
  126. package/dist/rename/similarity-index.d.ts.map +1 -0
  127. package/dist/results/cherry-pick-result.d.ts +33 -0
  128. package/dist/results/cherry-pick-result.d.ts.map +1 -0
  129. package/dist/results/clone-result.d.ts +24 -0
  130. package/dist/results/clone-result.d.ts.map +1 -0
  131. package/dist/results/diff-entry.d.ts +77 -0
  132. package/dist/results/diff-entry.d.ts.map +1 -0
  133. package/dist/results/diff-formatter.d.ts +149 -0
  134. package/dist/results/diff-formatter.d.ts.map +1 -0
  135. package/dist/results/fetch-result.d.ts +78 -0
  136. package/dist/results/fetch-result.d.ts.map +1 -0
  137. package/dist/results/index.d.ts +14 -0
  138. package/dist/results/index.d.ts.map +1 -0
  139. package/dist/results/index.js +247 -0
  140. package/dist/results/init-result.d.ts +23 -0
  141. package/dist/results/init-result.d.ts.map +1 -0
  142. package/dist/results/merge-result.d.ts +117 -0
  143. package/dist/results/merge-result.d.ts.map +1 -0
  144. package/dist/results/pull-result.d.ts +24 -0
  145. package/dist/results/pull-result.d.ts.map +1 -0
  146. package/dist/results/push-result.d.ts +71 -0
  147. package/dist/results/push-result.d.ts.map +1 -0
  148. package/dist/results/rebase-result.d.ts +108 -0
  149. package/dist/results/rebase-result.d.ts.map +1 -0
  150. package/dist/results/revert-result.d.ts +33 -0
  151. package/dist/results/revert-result.d.ts.map +1 -0
  152. package/dist/results/stash-result.d.ts +48 -0
  153. package/dist/results/stash-result.d.ts.map +1 -0
  154. package/dist/results/status-result.d.ts +48 -0
  155. package/dist/results/status-result.d.ts.map +1 -0
  156. package/dist/status-result-BwAyxq6R.js +409 -0
  157. package/dist/transport-command.d.ts +83 -0
  158. package/dist/transport-command.d.ts.map +1 -0
  159. package/dist/tree-merge/index.d.ts +8 -0
  160. package/dist/tree-merge/index.d.ts.map +1 -0
  161. package/dist/tree-merge/tree-merge.d.ts +41 -0
  162. package/dist/tree-merge/tree-merge.d.ts.map +1 -0
  163. package/dist/types.d.ts +64 -0
  164. package/dist/types.d.ts.map +1 -0
  165. package/package.json +62 -0
@@ -0,0 +1,247 @@
1
+ import { C as isMergeSuccessful, S as MergeStrategy, _ as getSuccessfulUpdates, a as RebaseStatus, b as FastForwardMode, c as getFailedUpdates, d as createAddEntry, f as createCopyEntry, g as RefUpdateStatus, h as createRenameEntry, i as RebaseAction, l as isPushSuccessful, m as createModifyEntry, n as StashApplyStatus, o as isRebaseSuccessful, p as createDeleteEntry, r as RevertStatus, s as PushStatus, t as StatusImpl, u as ChangeType, v as hasUpdates, w as CherryPickStatus, x as MergeStatus, y as ContentMergeStrategy } from "../status-result-BwAyxq6R.js";
2
+ import { DEFAULT_ALGORITHM, RawText, RawTextComparator, getAlgorithm } from "@statewalker/vcs-utils";
3
+ //#region src/results/diff-formatter.ts
4
+ /**
5
+ * Format DiffEntry objects into unified diff format.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const formatter = new DiffFormatter(store.blobs);
10
+ *
11
+ * // Get diff entries from DiffCommand
12
+ * const entries = await git.diff().setOldTree(commitA).setNewTree(commitB).call();
13
+ *
14
+ * // Format as unified diff
15
+ * for (const entry of entries) {
16
+ * const diff = await formatter.format(entry);
17
+ * console.log(formatter.toString(diff));
18
+ * }
19
+ * ```
20
+ */
21
+ var DiffFormatter = class {
22
+ blobs;
23
+ contextLines;
24
+ includeHeaders;
25
+ abbreviateIds;
26
+ abbreviationLength;
27
+ diffAlgorithm;
28
+ constructor(blobs, options = {}) {
29
+ this.blobs = blobs;
30
+ this.contextLines = options.contextLines ?? 3;
31
+ this.includeHeaders = options.includeHeaders ?? true;
32
+ this.abbreviateIds = options.abbreviateIds ?? true;
33
+ this.abbreviationLength = options.abbreviationLength ?? 7;
34
+ this.diffAlgorithm = getAlgorithm(options.algorithm ?? DEFAULT_ALGORITHM);
35
+ }
36
+ /**
37
+ * Format a DiffEntry into a content diff.
38
+ *
39
+ * @param entry The diff entry to format
40
+ * @returns Content diff with hunks
41
+ */
42
+ async format(entry) {
43
+ const oldContent = entry.oldId ? await this.loadContent(entry.oldId) : null;
44
+ const newContent = entry.newId ? await this.loadContent(entry.newId) : null;
45
+ const isBinary = oldContent !== null && RawText.isBinary(oldContent) || newContent !== null && RawText.isBinary(newContent);
46
+ const result = {
47
+ entry,
48
+ isBinary,
49
+ header: this.buildHeader(entry),
50
+ hunks: []
51
+ };
52
+ if (this.includeHeaders) {
53
+ result.indexLine = this.buildIndexLine(entry);
54
+ result.oldFileHeader = this.buildOldFileHeader(entry);
55
+ result.newFileHeader = this.buildNewFileHeader(entry);
56
+ }
57
+ if (oldContent) result.oldContent = oldContent;
58
+ if (newContent) result.newContent = newContent;
59
+ if (isBinary) return result;
60
+ const oldText = oldContent ? new RawText(oldContent) : RawText.EMPTY_TEXT;
61
+ const newText = newContent ? new RawText(newContent) : RawText.EMPTY_TEXT;
62
+ const edits = this.diffAlgorithm(RawTextComparator.DEFAULT, oldText, newText);
63
+ if (edits.length > 0) result.hunks = this.formatEdits(oldText, newText, edits);
64
+ return result;
65
+ }
66
+ /**
67
+ * Convert a FileContentDiff to string format.
68
+ *
69
+ * @param diff The content diff to stringify
70
+ * @returns Unified diff string
71
+ */
72
+ toString(diff) {
73
+ const lines = [];
74
+ if (this.includeHeaders) {
75
+ lines.push(diff.header);
76
+ if (diff.indexLine) lines.push(diff.indexLine);
77
+ }
78
+ if (diff.isBinary) {
79
+ lines.push(`Binary files ${diff.entry.oldPath ?? "/dev/null"} and ${diff.entry.newPath ?? "/dev/null"} differ`);
80
+ return lines.join("\n");
81
+ }
82
+ if (this.includeHeaders && diff.hunks.length > 0) {
83
+ if (diff.oldFileHeader) lines.push(diff.oldFileHeader);
84
+ if (diff.newFileHeader) lines.push(diff.newFileHeader);
85
+ }
86
+ for (const hunk of diff.hunks) {
87
+ lines.push(this.formatHunkHeader(hunk));
88
+ lines.push(...hunk.lines);
89
+ }
90
+ return lines.join("\n");
91
+ }
92
+ /**
93
+ * Format all diff entries to a single string.
94
+ *
95
+ * @param entries Array of diff entries
96
+ * @returns Complete unified diff output
97
+ */
98
+ async formatAll(entries) {
99
+ const parts = [];
100
+ for (const entry of entries) {
101
+ const diff = await this.format(entry);
102
+ parts.push(this.toString(diff));
103
+ }
104
+ return parts.join("\n");
105
+ }
106
+ /**
107
+ * Load blob content from storage.
108
+ */
109
+ async loadContent(objectId) {
110
+ const content = await this.blobs.load(objectId);
111
+ if (!content) throw new Error(`Blob not found: ${objectId}`);
112
+ const chunks = [];
113
+ for await (const chunk of content) chunks.push(chunk);
114
+ const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
115
+ const result = new Uint8Array(totalLength);
116
+ let offset = 0;
117
+ for (const chunk of chunks) {
118
+ result.set(chunk, offset);
119
+ offset += chunk.length;
120
+ }
121
+ return result;
122
+ }
123
+ /**
124
+ * Build the diff header line.
125
+ */
126
+ buildHeader(entry) {
127
+ return `diff --git a/${entry.oldPath ?? entry.newPath} b/${entry.newPath ?? entry.oldPath}`;
128
+ }
129
+ /**
130
+ * Build the index line.
131
+ */
132
+ buildIndexLine(entry) {
133
+ const oldId = this.abbreviateId(entry.oldId ?? "0000000");
134
+ const newId = this.abbreviateId(entry.newId ?? "0000000");
135
+ const mode = entry.newMode ?? entry.oldMode;
136
+ return `index ${oldId}..${newId}${mode ? ` ${mode.toString(8)}` : ""}`;
137
+ }
138
+ /**
139
+ * Build the old file header line.
140
+ */
141
+ buildOldFileHeader(entry) {
142
+ if (entry.changeType === "ADD") return "--- /dev/null";
143
+ return `--- a/${entry.oldPath}`;
144
+ }
145
+ /**
146
+ * Build the new file header line.
147
+ */
148
+ buildNewFileHeader(entry) {
149
+ if (entry.changeType === "DELETE") return "+++ /dev/null";
150
+ return `+++ b/${entry.newPath}`;
151
+ }
152
+ /**
153
+ * Abbreviate an object ID.
154
+ */
155
+ abbreviateId(id) {
156
+ if (!this.abbreviateIds) return id;
157
+ return id.slice(0, this.abbreviationLength);
158
+ }
159
+ /**
160
+ * Format the hunk header.
161
+ */
162
+ formatHunkHeader(hunk) {
163
+ return `@@ -${hunk.oldStart},${hunk.oldCount} +${hunk.newStart},${hunk.newCount} @@`;
164
+ }
165
+ /**
166
+ * Format edits into hunks.
167
+ */
168
+ formatEdits(oldText, newText, edits) {
169
+ const hunks = [];
170
+ const combinedEdits = this.combineEdits(edits, oldText.size(), newText.size());
171
+ for (const combinedEdit of combinedEdits) {
172
+ const hunk = this.createHunk(oldText, newText, combinedEdit.edits, combinedEdit.contextStart);
173
+ if (hunk.lines.length > 0) hunks.push(hunk);
174
+ }
175
+ return hunks;
176
+ }
177
+ /**
178
+ * Combine edits that are within context range of each other.
179
+ */
180
+ combineEdits(edits, _oldSize, _newSize) {
181
+ if (edits.length === 0) return [];
182
+ const result = [];
183
+ let currentEdits = [edits[0]];
184
+ let contextStart = Math.max(0, edits[0].beginA - this.contextLines);
185
+ for (let i = 1; i < edits.length; i++) {
186
+ const prevEdit = currentEdits[currentEdits.length - 1];
187
+ const nextEdit = edits[i];
188
+ if (nextEdit.beginA - prevEdit.endA <= this.contextLines * 2) currentEdits.push(nextEdit);
189
+ else {
190
+ result.push({
191
+ edits: currentEdits,
192
+ contextStart
193
+ });
194
+ currentEdits = [nextEdit];
195
+ contextStart = Math.max(0, nextEdit.beginA - this.contextLines);
196
+ }
197
+ }
198
+ result.push({
199
+ edits: currentEdits,
200
+ contextStart
201
+ });
202
+ return result;
203
+ }
204
+ /**
205
+ * Create a hunk from a group of edits.
206
+ */
207
+ createHunk(oldText, newText, edits, contextStart) {
208
+ const lines = [];
209
+ const firstEdit = edits[0];
210
+ const lastEdit = edits[edits.length - 1];
211
+ const oldStart = contextStart;
212
+ const oldEnd = Math.min(oldText.size(), lastEdit.endA + this.contextLines);
213
+ const newStart = contextStart + (firstEdit.beginB - firstEdit.beginA);
214
+ const newEnd = Math.min(newText.size(), lastEdit.endB + this.contextLines);
215
+ let oldPos = oldStart;
216
+ for (const edit of edits) {
217
+ while (oldPos < edit.beginA) {
218
+ lines.push(` ${oldText.getString(oldPos)}`);
219
+ oldPos++;
220
+ }
221
+ for (let i = edit.beginA; i < edit.endA; i++) lines.push(`-${oldText.getString(i)}`);
222
+ oldPos = edit.endA;
223
+ for (let i = edit.beginB; i < edit.endB; i++) lines.push(`+${newText.getString(i)}`);
224
+ }
225
+ while (oldPos < oldEnd) {
226
+ lines.push(` ${oldText.getString(oldPos)}`);
227
+ oldPos++;
228
+ }
229
+ return {
230
+ oldStart: oldStart + 1,
231
+ oldCount: oldEnd - oldStart,
232
+ newStart: newStart + 1,
233
+ newCount: newEnd - newStart,
234
+ lines
235
+ };
236
+ }
237
+ };
238
+ //#endregion
239
+ //#region src/results/pull-result.ts
240
+ /**
241
+ * Check if pull result was successful.
242
+ */
243
+ function isPullSuccessful(result) {
244
+ return result.successful;
245
+ }
246
+ //#endregion
247
+ export { ChangeType, CherryPickStatus, ContentMergeStrategy, DiffFormatter, FastForwardMode, MergeStatus, MergeStrategy, PushStatus, RebaseAction, RebaseStatus, RefUpdateStatus, RevertStatus, StashApplyStatus, StatusImpl, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful };
@@ -0,0 +1,23 @@
1
+ import type { History } from "@statewalker/vcs-core";
2
+ import type { WorkingCopy } from "@statewalker/vcs-working-tree";
3
+ import type { Git } from "../git.js";
4
+ /**
5
+ * Result of repository initialization.
6
+ *
7
+ * Based on JGit's InitCommand result (returns Git instance).
8
+ */
9
+ export interface InitResult {
10
+ /** Git facade for command execution */
11
+ git: Git;
12
+ /** WorkingCopy for direct repository access */
13
+ workingCopy: WorkingCopy;
14
+ /** The underlying History (repository) */
15
+ repository: History;
16
+ /** Initial branch name */
17
+ initialBranch: string;
18
+ /** Whether this is a bare repository */
19
+ bare: boolean;
20
+ /** Path to the .git directory */
21
+ gitDir: string;
22
+ }
23
+ //# sourceMappingURL=init-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init-result.d.ts","sourceRoot":"","sources":["../../src/results/init-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,uCAAuC;IACvC,GAAG,EAAE,GAAG,CAAC;IAET,+CAA+C;IAC/C,WAAW,EAAE,WAAW,CAAC;IAEzB,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IAEpB,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;IAEtB,wCAAwC;IACxC,IAAI,EAAE,OAAO,CAAC;IAEd,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,117 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ import type { MergeFailureReason } from "../errors/merge-errors.js";
3
+ /**
4
+ * Status of a merge operation.
5
+ *
6
+ * Based on JGit's MergeResult.MergeStatus.
7
+ */
8
+ export declare enum MergeStatus {
9
+ /** Merge is a fast-forward (only HEAD moved) */
10
+ FAST_FORWARD = "fast-forward",
11
+ /** Fast-forward merge with squash (HEAD not moved, changes staged) */
12
+ FAST_FORWARD_SQUASHED = "fast-forward-squashed",
13
+ /** Merge was a no-op - already up to date */
14
+ ALREADY_UP_TO_DATE = "already-up-to-date",
15
+ /** Merge completed successfully (merge commit created) */
16
+ MERGED = "merged",
17
+ /** Merge completed but not committed (--no-commit) */
18
+ MERGED_NOT_COMMITTED = "merged-not-committed",
19
+ /** Merge was squashed (not committed, HEAD not updated) */
20
+ MERGED_SQUASHED = "merged-squashed",
21
+ /** Merge has conflicts that need to be resolved */
22
+ CONFLICTING = "conflicting",
23
+ /** Merge failed (preconditions not met) */
24
+ FAILED = "failed",
25
+ /** Merge aborted (e.g., FF_ONLY when not possible) */
26
+ ABORTED = "aborted"
27
+ }
28
+ /**
29
+ * Fast-forward merge mode.
30
+ *
31
+ * Based on JGit's MergeCommand.FastForwardMode.
32
+ */
33
+ export declare enum FastForwardMode {
34
+ /** Allow fast-forward when possible (default) */
35
+ FF = "ff",
36
+ /** Never fast-forward, always create merge commit */
37
+ NO_FF = "no-ff",
38
+ /** Only allow fast-forward, abort if not possible */
39
+ FF_ONLY = "ff-only"
40
+ }
41
+ /**
42
+ * Content merge strategy.
43
+ *
44
+ * Determines how to handle file-level conflicts.
45
+ * Based on JGit's ContentMergeStrategy.
46
+ */
47
+ export declare enum ContentMergeStrategy {
48
+ /** Take our version for conflicts */
49
+ OURS = "ours",
50
+ /** Take their version for conflicts */
51
+ THEIRS = "theirs",
52
+ /** Perform union merge (both sides) */
53
+ UNION = "union"
54
+ }
55
+ /**
56
+ * Merge strategy.
57
+ *
58
+ * Based on JGit's MergeStrategy.
59
+ */
60
+ export declare enum MergeStrategy {
61
+ /**
62
+ * Recursive three-way merge (default).
63
+ *
64
+ * Standard merge algorithm that finds common ancestor and
65
+ * performs three-way merge on each file.
66
+ */
67
+ RECURSIVE = "recursive",
68
+ /**
69
+ * Always take our side.
70
+ *
71
+ * Creates a merge commit but keeps our tree unchanged.
72
+ * The other branch's changes are completely ignored.
73
+ * Use case: record that merge happened without accepting changes.
74
+ */
75
+ OURS = "ours",
76
+ /**
77
+ * Always take their side.
78
+ *
79
+ * Creates a merge commit but replaces our tree with theirs.
80
+ * Our changes are completely discarded.
81
+ * Use case: replace our branch with theirs while preserving history.
82
+ */
83
+ THEIRS = "theirs",
84
+ /**
85
+ * Simple resolve strategy.
86
+ *
87
+ * Similar to recursive but doesn't handle criss-cross merges.
88
+ * Uses a single merge base.
89
+ */
90
+ RESOLVE = "resolve"
91
+ }
92
+ /**
93
+ * Result of a merge operation.
94
+ *
95
+ * Based on JGit's MergeResult.
96
+ */
97
+ export interface MergeResult {
98
+ /** Status of the merge operation */
99
+ readonly status: MergeStatus;
100
+ /** New HEAD commit after merge (if successful) */
101
+ readonly newHead?: ObjectId;
102
+ /** Merge base commit (common ancestor) */
103
+ readonly mergeBase?: ObjectId;
104
+ /** Commits that were merged */
105
+ readonly mergedCommits: ObjectId[];
106
+ /** Paths with conflicts (for CONFLICTING status) */
107
+ readonly conflicts?: string[];
108
+ /** Paths that failed (for FAILED status) */
109
+ readonly failingPaths?: Map<string, MergeFailureReason>;
110
+ /** Informational message */
111
+ readonly message?: string;
112
+ }
113
+ /**
114
+ * Check if merge status represents a successful merge.
115
+ */
116
+ export declare function isMergeSuccessful(status: MergeStatus): boolean;
117
+ //# sourceMappingURL=merge-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-result.d.ts","sourceRoot":"","sources":["../../src/results/merge-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;GAIG;AACH,oBAAY,WAAW;IACrB,gDAAgD;IAChD,YAAY,iBAAiB;IAC7B,sEAAsE;IACtE,qBAAqB,0BAA0B;IAC/C,6CAA6C;IAC7C,kBAAkB,uBAAuB;IACzC,0DAA0D;IAC1D,MAAM,WAAW;IACjB,sDAAsD;IACtD,oBAAoB,yBAAyB;IAC7C,2DAA2D;IAC3D,eAAe,oBAAoB;IACnC,mDAAmD;IACnD,WAAW,gBAAgB;IAC3B,2CAA2C;IAC3C,MAAM,WAAW;IACjB,sDAAsD;IACtD,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACzB,iDAAiD;IACjD,EAAE,OAAO;IACT,qDAAqD;IACrD,KAAK,UAAU;IACf,qDAAqD;IACrD,OAAO,YAAY;CACpB;AAED;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,qCAAqC;IACrC,IAAI,SAAS;IACb,uCAAuC;IACvC,MAAM,WAAW;IACjB,uCAAuC;IACvC,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACvB;;;;;OAKG;IACH,SAAS,cAAc;IAEvB;;;;;;OAMG;IACH,IAAI,SAAS;IAEb;;;;;;OAMG;IACH,MAAM,WAAW;IAEjB;;;;;OAKG;IACH,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,oCAAoC;IACpC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,kDAAkD;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,aAAa,EAAE,QAAQ,EAAE,CAAC;IACnC,oDAAoD;IACpD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,4CAA4C;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACxD,4BAA4B;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAS9D"}
@@ -0,0 +1,24 @@
1
+ import type { FetchResult } from "./fetch-result.js";
2
+ import type { MergeResult } from "./merge-result.js";
3
+ /**
4
+ * Result of a pull operation.
5
+ *
6
+ * Based on JGit's PullResult.
7
+ */
8
+ export interface PullResult {
9
+ /** Result of the fetch phase */
10
+ fetchResult: FetchResult;
11
+ /** Result of the merge phase (if applicable) */
12
+ mergeResult?: MergeResult;
13
+ /** Whether rebase was used instead of merge */
14
+ rebaseUsed: boolean;
15
+ /** Whether pull was successful */
16
+ successful: boolean;
17
+ /** Fetch-from remote */
18
+ fetchedFrom: string;
19
+ }
20
+ /**
21
+ * Check if pull result was successful.
22
+ */
23
+ export declare function isPullSuccessful(result: PullResult): boolean;
24
+ //# sourceMappingURL=pull-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-result.d.ts","sourceRoot":"","sources":["../../src/results/pull-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,gDAAgD;IAChD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,+CAA+C;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAE5D"}
@@ -0,0 +1,71 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ /**
3
+ * Status of a ref update during push.
4
+ *
5
+ * Based on JGit's RemoteRefUpdate.Status.
6
+ */
7
+ export declare enum PushStatus {
8
+ /** Update was performed successfully */
9
+ OK = "ok",
10
+ /** Update was rejected (not fast-forward) */
11
+ REJECTED_NONFASTFORWARD = "rejected-nonfastforward",
12
+ /** Update was rejected (other reason) */
13
+ REJECTED_OTHER = "rejected-other",
14
+ /** Update failed (remote error) */
15
+ FAILED = "failed",
16
+ /** Update not attempted (nothing to push) */
17
+ NOT_ATTEMPTED = "not-attempted",
18
+ /** Update already up to date */
19
+ UP_TO_DATE = "up-to-date",
20
+ /** Waiting for other updates to complete (atomic push) */
21
+ AWAITING_REPORT = "awaiting-report"
22
+ }
23
+ /**
24
+ * Result of updating a single ref during push.
25
+ *
26
+ * Based on JGit's RemoteRefUpdate.
27
+ */
28
+ export interface RemoteRefUpdate {
29
+ /** Local ref name that was pushed */
30
+ srcRef?: string;
31
+ /** Remote ref name that was updated */
32
+ remoteName: string;
33
+ /** Expected old object ID (for compare-and-swap) */
34
+ expectedOldObjectId?: ObjectId;
35
+ /** New object ID that was pushed */
36
+ newObjectId: ObjectId;
37
+ /** Status of the update */
38
+ status: PushStatus;
39
+ /** Message from server (if any) */
40
+ message?: string;
41
+ /** Whether this was a forced update */
42
+ forceUpdate: boolean;
43
+ /** Whether this was a delete operation */
44
+ delete: boolean;
45
+ }
46
+ /**
47
+ * Result of a push operation.
48
+ *
49
+ * Based on JGit's PushResult.
50
+ */
51
+ export interface PushResult {
52
+ /** URI of the remote that was pushed to */
53
+ uri: string;
54
+ /** Results for each ref update */
55
+ remoteUpdates: RemoteRefUpdate[];
56
+ /** Total bytes sent */
57
+ bytesSent: number;
58
+ /** Number of objects sent */
59
+ objectCount: number;
60
+ /** Server messages */
61
+ messages: string[];
62
+ }
63
+ /**
64
+ * Check if all updates in push result were successful.
65
+ */
66
+ export declare function isPushSuccessful(result: PushResult): boolean;
67
+ /**
68
+ * Get failed updates from push result.
69
+ */
70
+ export declare function getFailedUpdates(result: PushResult): RemoteRefUpdate[];
71
+ //# sourceMappingURL=push-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push-result.d.ts","sourceRoot":"","sources":["../../src/results/push-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;GAIG;AACH,oBAAY,UAAU;IACpB,wCAAwC;IACxC,EAAE,OAAO;IACT,6CAA6C;IAC7C,uBAAuB,4BAA4B;IACnD,yCAAyC;IACzC,cAAc,mBAAmB;IACjC,mCAAmC;IACnC,MAAM,WAAW;IACjB,6CAA6C;IAC7C,aAAa,kBAAkB;IAC/B,gCAAgC;IAChC,UAAU,eAAe;IACzB,0DAA0D;IAC1D,eAAe,oBAAoB;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,mBAAmB,CAAC,EAAE,QAAQ,CAAC;IAC/B,oCAAoC;IACpC,WAAW,EAAE,QAAQ,CAAC;IACtB,2BAA2B;IAC3B,MAAM,EAAE,UAAU,CAAC;IACnB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAI5D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,eAAe,EAAE,CAOtE"}
@@ -0,0 +1,108 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ /**
3
+ * Status of a rebase operation.
4
+ *
5
+ * Based on JGit's RebaseResult.Status.
6
+ */
7
+ export declare enum RebaseStatus {
8
+ /**
9
+ * Rebase was successful.
10
+ */
11
+ OK = "ok",
12
+ /**
13
+ * Fast-forward was performed (no actual rebase needed).
14
+ */
15
+ FAST_FORWARD = "fast-forward",
16
+ /**
17
+ * Already up-to-date (no rebase needed).
18
+ */
19
+ UP_TO_DATE = "up-to-date",
20
+ /**
21
+ * Rebase stopped due to conflict.
22
+ */
23
+ STOPPED = "stopped",
24
+ /**
25
+ * Rebase was aborted.
26
+ */
27
+ ABORTED = "aborted",
28
+ /**
29
+ * Rebase was aborted due to failure (not conflict).
30
+ */
31
+ FAILED = "failed",
32
+ /**
33
+ * Uncommitted changes prevented rebase from starting.
34
+ */
35
+ UNCOMMITTED_CHANGES = "uncommitted-changes",
36
+ /**
37
+ * Interactive rebase is prepared but not started.
38
+ */
39
+ INTERACTIVE_PREPARED = "interactive-prepared",
40
+ /**
41
+ * Continue was called but there was nothing to commit.
42
+ */
43
+ NOTHING_TO_COMMIT = "nothing-to-commit",
44
+ /**
45
+ * Stash apply failed after successful rebase.
46
+ */
47
+ STASH_APPLY_CONFLICTS = "stash-apply-conflicts",
48
+ /**
49
+ * Rebase stopped at edit step.
50
+ */
51
+ EDIT = "edit"
52
+ }
53
+ /**
54
+ * Rebase todo line action.
55
+ *
56
+ * Based on JGit's RebaseTodoLine.Action.
57
+ */
58
+ export declare enum RebaseAction {
59
+ /** Pick the commit (apply it) */
60
+ PICK = "pick",
61
+ /** Reword: pick but edit commit message */
62
+ REWORD = "reword",
63
+ /** Edit: stop for amending */
64
+ EDIT = "edit",
65
+ /** Squash into previous commit (combine messages) */
66
+ SQUASH = "squash",
67
+ /** Fixup: squash but discard this commit's message */
68
+ FIXUP = "fixup",
69
+ /** Comment line (ignored) */
70
+ COMMENT = "comment"
71
+ }
72
+ /**
73
+ * A single line in the rebase todo list.
74
+ *
75
+ * Based on JGit's RebaseTodoLine.
76
+ */
77
+ export interface RebaseTodoLine {
78
+ /** The action to perform */
79
+ action: RebaseAction;
80
+ /** The commit ID (abbreviated) */
81
+ commit: string;
82
+ /** Short message of the commit */
83
+ shortMessage: string;
84
+ }
85
+ /**
86
+ * Result of a rebase operation.
87
+ *
88
+ * Based on JGit's RebaseResult.
89
+ */
90
+ export interface RebaseResult {
91
+ /** Status of the rebase */
92
+ readonly status: RebaseStatus;
93
+ /** New HEAD after successful rebase */
94
+ readonly newHead?: ObjectId;
95
+ /** Commit that caused the stop (for conflicts/edit) */
96
+ readonly currentCommit?: ObjectId;
97
+ /** List of conflicting paths */
98
+ readonly conflicts?: string[];
99
+ /** List of failing paths (not conflicts) */
100
+ readonly failingPaths?: Map<string, string>;
101
+ /** Uncommitted changes that prevented rebase */
102
+ readonly uncommittedChanges?: string[];
103
+ }
104
+ /**
105
+ * Check if rebase status indicates success.
106
+ */
107
+ export declare function isRebaseSuccessful(status: RebaseStatus): boolean;
108
+ //# sourceMappingURL=rebase-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rebase-result.d.ts","sourceRoot":"","sources":["../../src/results/rebase-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;GAIG;AACH,oBAAY,YAAY;IACtB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,UAAU,eAAe;IAEzB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;OAEG;IACH,iBAAiB,sBAAsB;IAEvC;;OAEG;IACH,qBAAqB,0BAA0B;IAE/C;;OAEG;IACH,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,oBAAY,YAAY;IACtB,iCAAiC;IACjC,IAAI,SAAS;IAEb,2CAA2C;IAC3C,MAAM,WAAW;IAEjB,8BAA8B;IAC9B,IAAI,SAAS;IAEb,qDAAqD;IACrD,MAAM,WAAW;IAEjB,sDAAsD;IACtD,KAAK,UAAU;IAEf,6BAA6B;IAC7B,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAC;IAErB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IAEf,kCAAkC;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAE9B,uCAAuC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAE5B,uDAAuD;IACvD,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;IAElC,gCAAgC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B,4CAA4C;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE5C,gDAAgD;IAChD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAMhE"}
@@ -0,0 +1,33 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ import type { MergeFailureReason } from "../errors/merge-errors.js";
3
+ /**
4
+ * Status of a revert operation.
5
+ *
6
+ * Based on JGit's RevertCommand result patterns.
7
+ */
8
+ export declare enum RevertStatus {
9
+ /** Revert completed successfully */
10
+ OK = "ok",
11
+ /** Revert resulted in conflicts */
12
+ CONFLICTING = "conflicting",
13
+ /** Revert failed due to dirty working tree or other issues */
14
+ FAILED = "failed"
15
+ }
16
+ /**
17
+ * Result of a revert operation.
18
+ *
19
+ * Contains the status, new HEAD, and details about reverted commits or conflicts.
20
+ */
21
+ export interface RevertResult {
22
+ /** Status of the revert operation */
23
+ readonly status: RevertStatus;
24
+ /** New HEAD commit after revert (undefined if failed/conflicting) */
25
+ readonly newHead?: ObjectId;
26
+ /** Commits that were successfully reverted */
27
+ readonly revertedRefs: ObjectId[];
28
+ /** Conflicting paths (if status is CONFLICTING) */
29
+ readonly conflicts?: string[];
30
+ /** Paths that failed (if status is FAILED) */
31
+ readonly failingPaths?: Map<string, MergeFailureReason>;
32
+ }
33
+ //# sourceMappingURL=revert-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revert-result.d.ts","sourceRoot":"","sources":["../../src/results/revert-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;GAIG;AACH,oBAAY,YAAY;IACtB,oCAAoC;IACpC,EAAE,OAAO;IACT,mCAAmC;IACnC,WAAW,gBAAgB;IAC3B,8DAA8D;IAC9D,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,qEAAqE;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC;IAClC,mDAAmD;IACnD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;CACzD"}