@clawlabz/clawnetwork 0.1.13 → 0.1.14
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/index.ts +4 -7
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1902,14 +1902,11 @@ tryListen(0);
|
|
|
1902
1902
|
`
|
|
1903
1903
|
|
|
1904
1904
|
function startUiServer(cfg: PluginConfig, api: OpenClawApi): string | null {
|
|
1905
|
-
//
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
return existing
|
|
1910
|
-
}
|
|
1905
|
+
// Always kill old UI server and restart with fresh code.
|
|
1906
|
+
// The UI server is a detached process that survives gateway restarts,
|
|
1907
|
+
// so we must replace it to pick up plugin updates.
|
|
1908
|
+
stopUiServer()
|
|
1911
1909
|
|
|
1912
|
-
// Write the standalone UI server script to a temp file and fork it
|
|
1913
1910
|
const scriptPath = path.join(WORKSPACE_DIR, 'ui-server.js')
|
|
1914
1911
|
ensureDir(WORKSPACE_DIR)
|
|
1915
1912
|
|
package/openclaw.plugin.json
CHANGED