squeezr-ai 1.16.21 → 1.16.23

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 (2) hide show
  1. package/bin/squeezr.js +3 -23
  2. package/package.json +1 -1
package/bin/squeezr.js CHANGED
@@ -89,24 +89,6 @@ function getPort() {
89
89
  return process.env.SQUEEZR_PORT || getPortFromToml() || 8080
90
90
  }
91
91
 
92
- /**
93
- * Print a PowerShell/bash one-liner to refresh env vars in the current session.
94
- * Copies it to the clipboard on Windows so the user can just Ctrl+V, Enter.
95
- */
96
- function printEnvRefreshHint(port, mitmPort) {
97
- const bundlePath = path.join(os.homedir(), '.squeezr', 'mitm-ca', 'bundle.crt')
98
- if (process.platform === 'win32') {
99
- const cmd = `$env:ANTHROPIC_BASE_URL="http://localhost:${port}"; $env:GEMINI_API_BASE_URL="http://localhost:${port}"`
100
- try { execSync(`powershell -NoProfile -Command "Set-Clipboard '${cmd.replace(/'/g, "''")}';"`, { stdio: 'pipe' }) } catch {}
101
- console.log(`\n Run this to activate in the current terminal (already copied to clipboard):\n`)
102
- console.log(` ${cmd}\n`)
103
- } else if (isWSL()) {
104
- const cmd = `export ANTHROPIC_BASE_URL=http://localhost:${port} GEMINI_API_BASE_URL=http://localhost:${port} HTTPS_PROXY=http://localhost:${mitmPort} SSL_CERT_FILE=${bundlePath}`
105
- console.log(`\n Run this to activate in the current terminal:\n`)
106
- console.log(` ${cmd}\n`)
107
- }
108
- }
109
-
110
92
  /**
111
93
  * Install/update shell wrapper functions so env vars are auto-refreshed
112
94
  * after squeezr start/setup/update (child processes can't modify parent env).
@@ -297,7 +279,6 @@ async function startDaemon() {
297
279
  console.log(` MITM proxy (Codex): http://localhost:${mitmPort}`)
298
280
  console.log(` Logs: ${logFile}`)
299
281
 
300
- printEnvRefreshHint(port, mitmPort)
301
282
  }
302
283
 
303
284
  function showLogs() {
@@ -821,8 +802,7 @@ Done!
821
802
  squeezr status — check it's running
822
803
  squeezr gain — see token savings
823
804
  `)
824
- printEnvRefreshHint(port, mitmPort)
825
- }
805
+ }
826
806
  }
827
807
 
828
808
  function setupUnix() {
@@ -964,6 +944,7 @@ Done!
964
944
  squeezr status — check it's running
965
945
  squeezr gain — see token savings
966
946
  `)
947
+ installShellWrapper()
967
948
  }
968
949
 
969
950
  // ── WSL2 detection ───────────────────────────────────────────────────────────
@@ -1152,7 +1133,7 @@ Done!
1152
1133
  squeezr status — check it's running
1153
1134
  squeezr gain — see token savings
1154
1135
  `)
1155
- printEnvRefreshHint(setupPort, setupMitmPort)
1136
+ installShellWrapper()
1156
1137
  }
1157
1138
 
1158
1139
  // ── CLI router ────────────────────────────────────────────────────────────────
@@ -1242,7 +1223,6 @@ switch (command) {
1242
1223
 
1243
1224
  // Ensure PowerShell wrapper is installed (so env vars refresh automatically)
1244
1225
  installShellWrapper()
1245
- printEnvRefreshHint(startPort, startMitmPort)
1246
1226
  })()
1247
1227
  break
1248
1228
  case 'stop':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squeezr-ai",
3
- "version": "1.16.21",
3
+ "version": "1.16.23",
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",