@heguoliang/evergate 0.1.28 → 0.2.0
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/README.md +1 -1
- package/bin/evergate.js +10 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ The platform binary is installed automatically through optional dependencies:
|
|
|
13
13
|
- `@heguoliang/evergate-linux-amd64`
|
|
14
14
|
- `@heguoliang/evergate-darwin-arm64`
|
|
15
15
|
|
|
16
|
-
After startup, open `http://localhost:8787/` for the admin console.
|
|
16
|
+
After startup, open `http://localhost:8787/` for the admin console. Config and data use platform user directories by default; run `evergate -config <path>` for a portable config. On Windows the npm command detaches the GUI process and returns the terminal immediately; use the `evergate-windows-amd64-console.exe` Release asset for terminal diagnostics.
|
|
17
17
|
|
|
18
18
|
Documentation: https://github.com/guol9180/evergate
|
|
19
19
|
|
package/bin/evergate.js
CHANGED
|
@@ -31,11 +31,20 @@ try {
|
|
|
31
31
|
process.exit(1)
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const windowsGUI = process.platform === 'win32'
|
|
35
|
+
const child = spawn(binary, process.argv.slice(2), {
|
|
36
|
+
stdio: windowsGUI ? 'ignore' : 'inherit',
|
|
37
|
+
detached: windowsGUI,
|
|
38
|
+
windowsHide: windowsGUI,
|
|
39
|
+
})
|
|
35
40
|
child.on('error', (err) => {
|
|
36
41
|
console.error(`evergate: failed to start ${binary}: ${err.message}`)
|
|
37
42
|
process.exit(1)
|
|
38
43
|
})
|
|
44
|
+
if (windowsGUI) {
|
|
45
|
+
child.unref()
|
|
46
|
+
process.exit(0)
|
|
47
|
+
}
|
|
39
48
|
child.on('exit', (code, signal) => {
|
|
40
49
|
if (signal) {
|
|
41
50
|
process.kill(process.pid, signal)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heguoliang/evergate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Self-hosted OpenAI-compatible LLM gateway with key-pool failover and zero-buffer SSE streaming",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-gateway",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"node": ">=18"
|
|
33
33
|
},
|
|
34
34
|
"optionalDependencies": {
|
|
35
|
-
"@heguoliang/evergate-win32-x64": "0.
|
|
36
|
-
"@heguoliang/evergate-linux-amd64": "0.
|
|
37
|
-
"@heguoliang/evergate-darwin-arm64": "0.
|
|
35
|
+
"@heguoliang/evergate-win32-x64": "0.2.0",
|
|
36
|
+
"@heguoliang/evergate-linux-amd64": "0.2.0",
|
|
37
|
+
"@heguoliang/evergate-darwin-arm64": "0.2.0"
|
|
38
38
|
}
|
|
39
39
|
}
|