squeezr-ai 1.16.17 → 1.16.19

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 +16 -16
  2. package/package.json +1 -1
package/bin/squeezr.js CHANGED
@@ -175,22 +175,22 @@ function installShellWrapper() {
175
175
  const psProfileDir = path.dirname(psProfilePath)
176
176
  if (!fs.existsSync(psProfileDir)) fs.mkdirSync(psProfileDir, { recursive: true })
177
177
  const psMarker = '# squeezr wrapper'
178
- const psFunction = `${psMarker}
179
- function squeezr {
180
- $bin = (Get-Command squeezr.cmd -ErrorAction SilentlyContinue).Source
181
- if (-not $bin) { $bin = (Get-Command squeezr -ErrorAction SilentlyContinue).Source }
182
- & node $bin @args
183
- if ($args[0] -match '^(start|setup|update)$') {
184
- @('ANTHROPIC_BASE_URL','GEMINI_API_BASE_URL','HTTPS_PROXY','NODE_EXTRA_CA_CERTS') | ForEach-Object {
185
- $v = [Environment]::GetEnvironmentVariable($_, 'User')
186
- if ($v) { [Environment]::SetEnvironmentVariable($_, $v, 'Process') }
187
- }
188
- }
189
- if ($args[0] -eq 'stop') {
190
- [Environment]::SetEnvironmentVariable('HTTPS_PROXY', $null, 'Process')
191
- }
192
- }
193
- # end squeezr wrapper`
178
+ const psFunction = [
179
+ psMarker,
180
+ 'function squeezr {',
181
+ ' & squeezr.cmd @args',
182
+ " if ($args[0] -match '^(start|setup|update)$') {",
183
+ " @('ANTHROPIC_BASE_URL','GEMINI_API_BASE_URL','HTTPS_PROXY','NODE_EXTRA_CA_CERTS') | ForEach-Object {",
184
+ " $v = [Environment]::GetEnvironmentVariable($_, 'User')",
185
+ " if ($v) { [Environment]::SetEnvironmentVariable($_, $v, 'Process') }",
186
+ ' }',
187
+ ' }',
188
+ " if ($args[0] -eq 'stop') {",
189
+ " [Environment]::SetEnvironmentVariable('HTTPS_PROXY', $null, 'Process')",
190
+ ' }',
191
+ '}',
192
+ '# end squeezr wrapper',
193
+ ].join('\n')
194
194
  const existing = fs.existsSync(psProfilePath) ? fs.readFileSync(psProfilePath, 'utf-8') : ''
195
195
  if (!existing.includes(psMarker)) {
196
196
  fs.appendFileSync(psProfilePath, `\n${psFunction}\n`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squeezr-ai",
3
- "version": "1.16.17",
3
+ "version": "1.16.19",
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",