@agentlayer.tech/wallet 0.1.73 → 0.1.75

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agent-wallet",
3
3
  "displayName": "Agent Wallet",
4
- "version": "0.1.73",
4
+ "version": "0.1.75",
5
5
  "description": "Claude Code bridge for the existing AgentLayer wallet runtime. Connects to Solana, Bitcoin, and EVM wallets without creating a new one.",
6
6
  "author": {
7
7
  "name": "AgentLayer"
@@ -7,8 +7,7 @@
7
7
  ],
8
8
  "env": {
9
9
  "FASTMCP_SHOW_SERVER_BANNER": "false",
10
- "FASTMCP_LOG_LEVEL": "ERROR",
11
- "OPENCLAW_HOME": "/tmp/openclaw-cli-install-keystore-precedence-smoke"
10
+ "FASTMCP_LOG_LEVEL": "ERROR"
12
11
  }
13
12
  }
14
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-wallet",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "description": "Codex plugin bridge for the AgentLayer wallet runtime.",
5
5
  "author": {
6
6
  "name": "AgentLayer"
@@ -1,5 +1,5 @@
1
1
  name: agent-wallet
2
- version: 0.1.73
2
+ version: 0.1.75
3
3
  description: Thin Hermes Agent bridge to the existing AgentLayer/OpenClaw wallet backend
4
4
  provides_tools:
5
5
  - agent_wallet_tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlayer.tech/wallet",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "description": "NPM installer for the OpenClaw Agent Wallet local runtime.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -19,6 +19,7 @@
19
19
  "build:openclaw-plugins": "node scripts/manage_openclaw_plugin_packages.mjs build",
20
20
  "check:openclaw-plugins": "node scripts/manage_openclaw_plugin_packages.mjs check",
21
21
  "check:release-version": "node scripts/check_release_version.mjs",
22
+ "test:release-promotion": "node --test scripts/validate_npm_promotion.test.mjs",
22
23
  "version:sync": "node scripts/sync_version.mjs",
23
24
  "release:local": "node scripts/release_local.mjs",
24
25
  "test:npm-installer": "python3 agent-wallet/tests/smoke_npm_installer.py",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdk-btc-wallet",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Separate BTC-only wallet service built on Tether WDK.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdk-evm-wallet",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Separate EVM wallet service built on Tether WDK.",
@@ -14,7 +14,8 @@
14
14
  "test:morpho-runtime": "node --test --test-concurrency=1 tests/smoke_morpho_runtime.mjs",
15
15
  "test:lido-runtime": "node --test --test-concurrency=1 tests/smoke_lido_runtime.mjs",
16
16
  "test:uniswap-runtime": "node --test --test-concurrency=1 tests/smoke_uniswap_runtime.mjs",
17
- "test:unit": "node --test tests/unit_uniswap_helpers.mjs"
17
+ "test:unit": "node --test tests/unit_uniswap_helpers.mjs",
18
+ "test:identity": "node --test tests/unit_instance_identity.mjs"
18
19
  },
19
20
  "dependencies": {
20
21
  "@morpho-org/morpho-sdk": "^3.2.0",
@@ -150,6 +150,27 @@ function ensureLocalAuthToken(tokenPath, configuredToken = "") {
150
150
  return generated;
151
151
  }
152
152
 
153
+ function ensureInstanceId(instanceIdPath, configuredInstanceId = "") {
154
+ const direct = String(configuredInstanceId ?? "").trim();
155
+ if (direct) {
156
+ return direct;
157
+ }
158
+ fs.mkdirSync(path.dirname(instanceIdPath), { recursive: true, mode: 0o700 });
159
+ try {
160
+ const existing = fs.readFileSync(instanceIdPath, "utf8").trim();
161
+ if (existing) {
162
+ fs.chmodSync(instanceIdPath, 0o600);
163
+ return existing;
164
+ }
165
+ } catch {
166
+ // Generate a stable install identity below.
167
+ }
168
+ const generated = crypto.randomUUID();
169
+ fs.writeFileSync(instanceIdPath, generated + "\n", { encoding: "utf8", mode: 0o600 });
170
+ fs.chmodSync(instanceIdPath, 0o600);
171
+ return generated;
172
+ }
173
+
153
174
  function normalizeNetworkKey(value) {
154
175
  const normalized = String(value ?? "").trim().toLowerCase();
155
176
  const aliases = {
@@ -201,6 +222,8 @@ export function loadConfig(env = process.env) {
201
222
  const authTokenPath =
202
223
  String(env.WDK_EVM_LOCAL_TOKEN_PATH ?? "").trim() ||
203
224
  path.join(openClawHome, "wdk-evm-wallet", "local-auth-token");
225
+ const instanceIdPath =
226
+ String(env.WDK_EVM_INSTANCE_ID_PATH ?? "").trim() || path.join(dataDir, "instance-id");
204
227
  const providerMode = parseProviderMode(env.WDK_EVM_RPC_PROVIDER_MODE, "gateway");
205
228
  const providerGatewayUrl =
206
229
  String(env.PROVIDER_GATEWAY_URL ?? "").trim() || DEFAULT_PROVIDER_GATEWAY_URL;
@@ -294,6 +317,7 @@ export function loadConfig(env = process.env) {
294
317
  network,
295
318
  openClawHome,
296
319
  dataDir,
320
+ instanceId: ensureInstanceId(instanceIdPath, env.WDK_EVM_INSTANCE_ID),
297
321
  authRequired: true,
298
322
  authTokenPath,
299
323
  authToken: ensureLocalAuthToken(authTokenPath, env.WDK_EVM_LOCAL_TOKEN),
@@ -300,6 +300,8 @@ async function handleRequest(request, response) {
300
300
  chainId: runtimeConfig.chainId,
301
301
  host: config.host,
302
302
  dataDir: config.dataDir,
303
+ instanceId: config.instanceId,
304
+ pid: process.pid,
303
305
  authRequired: config.authRequired,
304
306
  unlockTimeoutSeconds: config.unlockTimeoutSeconds,
305
307
  availableNetworks: Object.keys(config.networkProfiles),