superbrain-server 1.0.22 → 1.0.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/package.json +1 -1
  2. package/payload/start.py +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superbrain-server",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "1-Line Auto-Installer and Server Execution wrapper for SuperBrain",
5
5
  "main": "index.js",
6
6
  "bin": {
package/payload/start.py CHANGED
@@ -1336,8 +1336,10 @@ def launch_backend():
1336
1336
  """)
1337
1337
 
1338
1338
  os.chdir(BASE_DIR)
1339
- os.execv(str(VENV_PYTHON), [str(VENV_PYTHON), "-m", "uvicorn", "api:app",
1340
- "--host", "0.0.0.0", "--port", str(PORT), "--reload"])
1339
+ try:
1340
+ subprocess.run([str(VENV_PYTHON), "-m", "uvicorn", "api:app", "--host", "0.0.0.0", "--port", str(PORT), "--reload"], check=True)
1341
+ except KeyboardInterrupt:
1342
+ pass
1341
1343
 
1342
1344
  # ══════════════════════════════════════════════════════════════════════════════
1343
1345
  # Main