@oh-my-pi/snapcompact 17.1.4 → 17.1.6
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 +6 -0
- package/package.json +5 -5
- package/src/snapcompact.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [17.1.5] - 2026-07-27
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed snapcompact resume guides reporting only the HQ grid width for mixed-width foveated archives ([#6712](https://github.com/can1357/oh-my-pi/issues/6712)).
|
|
10
|
+
|
|
5
11
|
## [17.1.0] - 2026-07-24
|
|
6
12
|
|
|
7
13
|
### Added
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/snapcompact",
|
|
4
|
-
"version": "17.1.
|
|
4
|
+
"version": "17.1.6",
|
|
5
5
|
"description": "Bitmap-frame context compression for vision-capable LLMs",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"fmt": "biome format --write ."
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oh-my-pi/pi-ai": "17.1.
|
|
35
|
-
"@oh-my-pi/pi-natives": "17.1.
|
|
36
|
-
"@oh-my-pi/pi-utils": "17.1.
|
|
37
|
-
"@oh-my-pi/pi-wire": "17.1.
|
|
34
|
+
"@oh-my-pi/pi-ai": "17.1.6",
|
|
35
|
+
"@oh-my-pi/pi-natives": "17.1.6",
|
|
36
|
+
"@oh-my-pi/pi-utils": "17.1.6",
|
|
37
|
+
"@oh-my-pi/pi-wire": "17.1.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/bun": "^1.3.14"
|
package/src/snapcompact.ts
CHANGED
|
@@ -1963,6 +1963,11 @@ export async function compact<TMessage = Message>(
|
|
|
1963
1963
|
|
|
1964
1964
|
const frames = await Promise.all(newFrames);
|
|
1965
1965
|
const totalChars = frames.reduce((sum, frame) => sum + frame.chars, 0) + textChars;
|
|
1966
|
+
const frameCols: number[] = [];
|
|
1967
|
+
for (const frame of frames) {
|
|
1968
|
+
if (!frameCols.includes(frame.cols)) frameCols.push(frame.cols);
|
|
1969
|
+
}
|
|
1970
|
+
const summaryCols = frameCols.length > 0 ? frameCols.join(" or ") : geo.cols;
|
|
1966
1971
|
|
|
1967
1972
|
const { readFiles, modifiedFiles } = computeFileLists(fileOps);
|
|
1968
1973
|
const files = formatFileList(readFiles, modifiedFiles, fileOps.read);
|
|
@@ -1975,7 +1980,7 @@ export async function compact<TMessage = Message>(
|
|
|
1975
1980
|
frameCount: frames.length,
|
|
1976
1981
|
multipleFrames: frames.length > 1,
|
|
1977
1982
|
docColumns: high.columns === 2,
|
|
1978
|
-
cols:
|
|
1983
|
+
cols: summaryCols,
|
|
1979
1984
|
rows: geo.rows,
|
|
1980
1985
|
sentenceInk: high.variant === "sent",
|
|
1981
1986
|
stopwordDimmed: high.stopwordDim === true,
|