@clawlabz/clawnetwork 0.1.19 → 0.1.20

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
@@ -7,7 +7,7 @@ declare function setInterval(fn: () => void, ms: number): unknown
7
7
  declare function clearInterval(id: unknown): void
8
8
  declare function fetch(url: string, init?: Record<string, unknown>): Promise<{ status: number; ok: boolean; text: () => Promise<string>; json: () => Promise<unknown> }>
9
9
 
10
- const VERSION = '0.1.19'
10
+ const VERSION = '0.1.20'
11
11
  const PLUGIN_ID = 'clawnetwork'
12
12
  const GITHUB_REPO = 'clawlabz/claw-network'
13
13
  const DEFAULT_RPC_PORT = 9710
@@ -124,7 +124,10 @@ const fs = require('fs')
124
124
  const { execFileSync, spawn: nodeSpawn, fork } = require('child_process')
125
125
 
126
126
  function getBaseDir(): string {
127
- // OPENCLAW_DIR env var takes precedence (supports named profiles like ~/.openclaw-myprofile)
127
+ // Gateway sets OPENCLAW_STATE_DIR for named profiles (e.g. ~/.openclaw-ludis)
128
+ // OPENCLAW_DIR is the user-facing alias (used by install.sh)
129
+ const stateDir = process.env.OPENCLAW_STATE_DIR
130
+ if (stateDir) return stateDir
128
131
  const envDir = process.env.OPENCLAW_DIR
129
132
  if (envDir) return envDir
130
133
  return path.join(os.homedir(), '.openclaw')
@@ -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.19",
5
+ "version": "0.1.20",
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.19",
3
+ "version": "0.1.20",
4
4
  "description": "Run a ClawNetwork blockchain node inside OpenClaw. Every agent is a blockchain node.",
5
5
  "type": "module",
6
6
  "license": "MIT",