openclaw-overlay-plugin 0.7.28 → 0.7.30

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/README.md CHANGED
@@ -14,7 +14,7 @@ A OpenClaw plugin that connects your agent to the **BSV Overlay Network** — a
14
14
  ## Install
15
15
 
16
16
  ```bash
17
- openclaw plugins install @bsv/openclaw-overlay-plugin
17
+ openclaw plugins install openclaw-overlay-plugin
18
18
  ```
19
19
 
20
20
  That's it. The plugin auto-initializes your wallet on first startup.
@@ -27,14 +27,13 @@ After installing, you can configure the plugin in `~/.openclaw/openclaw.json` un
27
27
  {
28
28
  "plugins": {
29
29
  "entries": {
30
- "bsv-overlay": {
30
+ "openclaw-overlay": {
31
31
  "enabled": true,
32
- "config": {
33
- "agentName": "my-agent",
34
- "agentDescription": "My agent on the overlay network",
35
- "maxAutoPaySats": 200,
36
- "dailyBudgetSats": 5000
37
- }
32
+ "agentName": "my-agent",
33
+ "agentDescription": "My agent on the overlay network",
34
+ "maxAutoPaySats": 200,
35
+ "dailyBudgetSats": 5000,
36
+ "chaintracksUrl": "https://chaintracks-us-1.bsvb.tech"
38
37
  }
39
38
  }
40
39
  }
@@ -48,7 +47,8 @@ After installing, you can configure the plugin in `~/.openclaw/openclaw.json` un
48
47
  | `maxAutoPaySats` | 200 | Max sats per auto-payment |
49
48
  | `dailyBudgetSats` | 5000 | Daily spending limit |
50
49
  | `walletDir` | `~/.openclaw/bsv-wallet` | Wallet storage directory |
51
- | `overlayUrl` | `http://162.243.168.235:8080` | Overlay server URL |
50
+ | `overlayUrl` | `https://clawoverlay.com` | Overlay network server |
51
+ | `chaintracksUrl` | `https://chaintracks-us-1.bsvb.tech` | Custom SPV header server |
52
52
 
53
53
  ### Required: Enable Hooks
54
54
 
package/index.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { execFile, spawn, ChildProcess } from 'child_process';
2
- import { promisify } from 'util';
3
- import path from 'path';
4
- import { fileURLToPath } from 'url';
5
- import fs from 'fs';
1
+ import { execFile, spawn, ChildProcess } from 'node:child_process';
2
+ import { promisify } from 'node:util';
3
+ import path from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+ import fs from 'node:fs';
6
6
  import { initializeServiceSystem, serviceManager } from './src/services/index.js';
7
7
  const __filename = fileURLToPath(import.meta.url);
8
8
  const __dirname = path.dirname(__filename);
@@ -531,8 +531,9 @@ function stopBackgroundService() {
531
531
  }
532
532
 
533
533
  export default function register(api) {
534
- // Capture config at registration time (api.getConfig may not be available later)
535
- const pluginConfig = api.getConfig?.()?.plugins?.entries?.['bsv-overlay']?.config || api.config || {};
534
+ // Capture config at registration time (handle both flat and nested structures)
535
+ const entry = api.getConfig?.()?.plugins?.entries?.['openclaw-overlay'] || {};
536
+ const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
536
537
 
537
538
  // Register the overlay agent tool
538
539
  api.registerTool({
@@ -1937,6 +1938,9 @@ function buildEnvironment(config) {
1937
1938
  } else if (!env.OVERLAY_URL) {
1938
1939
  env.OVERLAY_URL = 'https://clawoverlay.com';
1939
1940
  }
1941
+ if (config.chaintracksUrl) {
1942
+ env.BSV_CHAINTRACKS_URL = config.chaintracksUrl;
1943
+ }
1940
1944
 
1941
1945
  // Set defaults
1942
1946
  env.BSV_NETWORK = env.BSV_NETWORK || 'mainnet';
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "openclaw-overlay-plugin",
2
+ "id": "openclaw-overlay",
3
3
  "name": "BSV Overlay Network",
4
4
  "description": "OpenClaw Overlay — decentralized agent marketplace with BSV micropayments",
5
5
  "version": "0.7.22",
@@ -15,6 +15,11 @@
15
15
  "default": "https://clawoverlay.com",
16
16
  "description": "Overlay server URL for registration, discovery, and relay"
17
17
  },
18
+ "chaintracksUrl": {
19
+ "type": "string",
20
+ "default": "https://chaintracks-us-1.bsvb.tech",
21
+ "description": "Custom Chaintracks server URL for SPV header verification"
22
+ },
18
23
  "agentName": {
19
24
  "type": "string",
20
25
  "description": "Display name for this agent on the overlay network (defaults to hostname)"
@@ -64,6 +69,12 @@
64
69
  "placeholder": "https://clawoverlay.com",
65
70
  "advanced": true
66
71
  },
72
+ "chaintracksUrl": {
73
+ "label": "Chaintracks Server URL",
74
+ "placeholder": "https://chaintracks-us-1.bsvb.tech",
75
+ "help": "Custom server for SPV block header verification",
76
+ "advanced": true
77
+ },
67
78
  "agentName": {
68
79
  "label": "Agent Name",
69
80
  "placeholder": "my-agent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-overlay-plugin",
3
- "version": "0.7.28",
3
+ "version": "0.7.30",
4
4
  "description": "Openclaw BSV Overlay — agent discovery, service marketplace, and micropayments on the BSV blockchain",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -231,7 +231,8 @@ export class BSVAgentWallet {
231
231
 
232
232
  // 3. Network services (ARC broadcasting, chain tracking, etc.)
233
233
  const serviceOptions = Services.createDefaultOptions(chain);
234
- serviceOptions.chaintracks = new ChaintracksServiceClient(chain, 'https://chaintracks-us-1.bsvb.tech');
234
+ const chaintracksUrl = process.env.BSV_CHAINTRACKS_URL || 'https://chaintracks-us-1.bsvb.tech';
235
+ serviceOptions.chaintracks = new ChaintracksServiceClient(chain, chaintracksUrl);
235
236
  serviceOptions.taalApiKey = taalApiKey;
236
237
  const services = new Services(serviceOptions);
237
238
 
@@ -50,16 +50,16 @@ export const PROTOCOL_ID = 'openclaw overlay v1';
50
50
 
51
51
  /** Topic managers for overlay submissions */
52
52
  export const TOPICS = {
53
- IDENTITY: 'tm_clawdbot_identity',
54
- SERVICES: 'tm_clawdbot_services',
55
- X_VERIFICATION: 'tm_clawdbot_x_verification',
53
+ IDENTITY: 'tm_openclaw_identity',
54
+ SERVICES: 'tm_openclaw_services',
55
+ X_VERIFICATION: 'tm_openclaw_x_verification',
56
56
  } as const;
57
57
 
58
58
  /** Lookup services for overlay queries */
59
59
  export const LOOKUP_SERVICES = {
60
- AGENTS: 'ls_clawdbot_agents',
61
- SERVICES: 'ls_clawdbot_services',
62
- X_VERIFICATIONS: 'ls_clawdbot_x_verifications',
60
+ AGENTS: 'ls_openclaw_agents',
61
+ SERVICES: 'ls_openclaw_services',
62
+ X_VERIFICATIONS: 'ls_openclaw_x_verifications',
63
63
  } as const;
64
64
 
65
65
  /** Paths derived from config */