@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 CHANGED
@@ -1902,14 +1902,11 @@ tryListen(0);
1902
1902
  `
1903
1903
 
1904
1904
  function startUiServer(cfg: PluginConfig, api: OpenClawApi): string | null {
1905
- // Check if already running
1906
- const existing = getDashboardUrl()
1907
- if (existing) {
1908
- api.logger?.info?.(`[clawnetwork] dashboard already running: ${existing}`)
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
 
@@ -2,7 +2,7 @@
2
2
  "id": "clawnetwork",
3
3
  "name": "ClawNetwork Node",
4
4
  "description": "Run a ClawNetwork blockchain node inside OpenClaw. Every agent is a node.",
5
- "version": "0.1.13",
5
+ "version": "0.1.14",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawlabz/clawnetwork",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Run a ClawNetwork blockchain node inside OpenClaw. Every agent is a blockchain node.",
5
5
  "type": "module",
6
6
  "license": "MIT",