shrinker-ai 0.9.0 → 0.10.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.
|
@@ -160,11 +160,15 @@ export function filterGitLog(input, options) {
|
|
|
160
160
|
flags.some((flag) => !isSafeCompactFlag(flag)) ||
|
|
161
161
|
lines.some((line) => line.startsWith("diff --git ")) ||
|
|
162
162
|
hasStructuredLogDetails(lines)) {
|
|
163
|
+
const limited = limitLines(lines, options.maxLines);
|
|
163
164
|
return {
|
|
164
|
-
output:
|
|
165
|
+
output: limited.lines.join("\n"),
|
|
165
166
|
kind: "git-log",
|
|
166
|
-
omitted:
|
|
167
|
-
|
|
167
|
+
omitted: limited.omitted > 0,
|
|
168
|
+
...(limited.omitted > 0 ? { recovery: "always" } : {}),
|
|
169
|
+
notes: limited.omitted > 0
|
|
170
|
+
? ["explicit Git output format preserved", `omitted ${limited.omitted} output lines`]
|
|
171
|
+
: ["explicit Git output format preserved"],
|
|
168
172
|
};
|
|
169
173
|
}
|
|
170
174
|
if (lines.length > 0 && lines.every((line) => !line.trim() || ONELINE_PATTERN.test(line))) {
|