squeezr-ai 1.14.11 → 1.14.12
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/config.js +4 -2
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { readFileSync, existsSync } from 'fs';
|
|
2
|
-
import { join } from 'path';
|
|
2
|
+
import { join, dirname } from 'path';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
3
4
|
import { parse } from 'smol-toml';
|
|
5
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
4
6
|
function loadTomlFile(path) {
|
|
5
7
|
if (!existsSync(path))
|
|
6
8
|
return {};
|
|
@@ -24,7 +26,7 @@ function deepMerge(base, override) {
|
|
|
24
26
|
return result;
|
|
25
27
|
}
|
|
26
28
|
function loadToml() {
|
|
27
|
-
const globalPath = join(
|
|
29
|
+
const globalPath = join(__dirname, '..', 'squeezr.toml');
|
|
28
30
|
const localPath = join(process.cwd(), '.squeezr.toml');
|
|
29
31
|
const globalCfg = loadTomlFile(globalPath);
|
|
30
32
|
const localCfg = loadTomlFile(localPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squeezr-ai",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.12",
|
|
4
4
|
"description": "AI proxy that compresses Claude Code, Codex, Aider, Gemini CLI and Ollama context windows to save thousands of tokens per session",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"vitest": "^3.1.1"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
58
|
+
"node": ">=18"
|
|
59
59
|
}
|
|
60
60
|
}
|