@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 +5 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
//
|
|
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')
|
package/openclaw.plugin.json
CHANGED