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.
- package/bin/squeezr.js +16 -16
- 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 =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
$v
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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