@heguoliang/evergate 0.1.29 → 0.3.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 CHANGED
@@ -13,7 +13,9 @@ 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. Copy `evergate.yml.example` from the repository, or let the first run generate a config. Data lives in SQLite (`./data/evergate.db` by default).
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.
17
+
18
+ npm is an independent installation channel. Update it with `npm i -g @heguoliang/evergate@latest`; the standard Windows/macOS installer updater does not replace npm-installed files.
17
19
 
18
20
  Documentation: https://github.com/guol9180/evergate
19
21
 
package/bin/evergate.js CHANGED
@@ -17,7 +17,7 @@ const target = PACKAGES[key]
17
17
  if (!target) {
18
18
  console.error(`evergate: unsupported platform ${key}`)
19
19
  console.error('Supported: win32-x64, linux-x64, darwin-arm64')
20
- console.error('Download a standalone binary: https://github.com/guol9180/evergate/releases')
20
+ console.error('Download a desktop installer or Linux archive: https://github.com/guol9180/evergate/releases')
21
21
  process.exit(1)
22
22
  }
23
23
 
@@ -31,11 +31,20 @@ try {
31
31
  process.exit(1)
32
32
  }
33
33
 
34
- const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' })
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.1.29",
3
+ "version": "0.3.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.1.29",
36
- "@heguoliang/evergate-linux-amd64": "0.1.29",
37
- "@heguoliang/evergate-darwin-arm64": "0.1.29"
35
+ "@heguoliang/evergate-win32-x64": "0.3.0",
36
+ "@heguoliang/evergate-linux-amd64": "0.3.0",
37
+ "@heguoliang/evergate-darwin-arm64": "0.3.0"
38
38
  }
39
39
  }