big-gulp-reads 1.0.0 → 1.0.2
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/CHANGELOG.md +9 -1
- package/extensions/big-read.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [1.0.
|
|
3
|
+
## [1.0.2] - 2026-11-14
|
|
4
|
+
|
|
5
|
+
- Rerelease of 1.0.1: npm holds 1.0.0 and 1.0.1 in its first-release pending queue behind the 0.0.0-stage placeholder, where they can be neither approved (no stage-id exists) nor published over, so this version carries the same content forward under a fresh number.
|
|
6
|
+
|
|
7
|
+
## [1.0.1] - 2026-11-14
|
|
8
|
+
|
|
9
|
+
- Fixed the oversized-first-line notice to report the line's actual size instead of repeating the limit.
|
|
10
|
+
|
|
11
|
+
## [1.0.0] - 2026-11-14
|
|
4
12
|
|
|
5
13
|
- Initial release: read tool override with configurable KB/line limits (default 200KB / 5000 lines) and /big-gulp-reads command.
|
package/extensions/big-read.ts
CHANGED
|
@@ -128,7 +128,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
128
128
|
|
|
129
129
|
let outputText: string;
|
|
130
130
|
if (truncation.firstLineExceedsLimit) {
|
|
131
|
-
|
|
131
|
+
// truncateHead does not report the oversized line's byte count, so measure it here.
|
|
132
|
+
const firstLineBytes = Buffer.byteLength(selected[0] ?? "", "utf-8");
|
|
133
|
+
outputText = `[Line ${startLineDisplay} is ${formatSize(firstLineBytes)}, exceeds ${formatSize(maxBytes)} limit. Use bash: sed -n '${startLineDisplay}p' ${params.path} | head -c ${maxBytes}]`;
|
|
132
134
|
} else if (truncation.truncated) {
|
|
133
135
|
const endLineDisplay = startLineDisplay + truncation.outputLines - 1;
|
|
134
136
|
const nextOffset = endLineDisplay + 1;
|