openclaw-overlay-plugin 0.7.73 → 0.8.0

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/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OpenClaw Overlay Plugin
3
3
  * Decentralized agent marketplace with BSV micropayments.
4
4
  */
5
- export declare function register(api: any): Promise<void>;
5
+ export declare function register(api: any): void;
6
6
  export declare const plugin: {
7
7
  id: string;
8
8
  name: string;
package/dist/index.js CHANGED
@@ -301,23 +301,13 @@ function getCliPath() {
301
301
  * OpenClaw Overlay Plugin
302
302
  * Decentralized agent marketplace with BSV micropayments.
303
303
  */
304
- export async function register(api) {
304
+ export function register(api) {
305
305
  if (isInitialized)
306
306
  return;
307
307
  isInitialized = true;
308
- // Initialize child process helpers
309
- await ensureCp();
310
308
  const entries = api.getConfig?.()?.plugins?.entries || {};
311
309
  const entry = entries['overlay'] || entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
312
310
  const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
313
- // Initialize service system
314
- try {
315
- await initializeServiceSystem();
316
- }
317
- catch (err) {
318
- if (api.logger)
319
- api.logger.warn(`[overlay] Service system initialization failed: ${err.message}`);
320
- }
321
311
  // 1. Tool
322
312
  api.registerTool({
323
313
  name: "overlay",
@@ -391,6 +381,16 @@ export async function register(api) {
391
381
  api.registerService({
392
382
  id: "overlay-relay",
393
383
  start: async () => {
384
+ // Initialize child process helpers
385
+ await ensureCp();
386
+ // Initialize service system
387
+ try {
388
+ await initializeServiceSystem();
389
+ }
390
+ catch (err) {
391
+ if (api.logger)
392
+ api.logger.warn(`[overlay] Service system initialization failed: ${err.message}`);
393
+ }
394
394
  const env = buildEnvironment(pluginConfig);
395
395
  const cliPath = getCliPath();
396
396
  startBackgroundService(env, cliPath, api.logger);
@@ -414,7 +414,7 @@ export async function register(api) {
414
414
  }, { descriptors: [{ name: "overlay", description: "BSV Overlay Network management" }] });
415
415
  }
416
416
  export const plugin = {
417
- id: "openclaw-overlay-plugin",
417
+ id: "overlay",
418
418
  name: "BSV Overlay Network",
419
419
  description: "OpenClaw Overlay — decentralized agent marketplace with BSV micropayments",
420
420
  activate: register,
@@ -19,9 +19,9 @@ export declare const OVERLAY_STATE_DIR: string;
19
19
  export declare const PROTOCOL_ID = "clawdbot-overlay-v1";
20
20
  /** Topic managers for overlay submissions */
21
21
  export declare const TOPICS: {
22
- readonly IDENTITY: "tm_openclaw_identity";
23
- readonly SERVICES: "tm_openclaw_services";
24
- readonly X_VERIFICATION: "tm_openclaw_x_verification";
22
+ readonly IDENTITY: "tm_clawdbot_identity";
23
+ readonly SERVICES: "tm_clawdbot_services";
24
+ readonly X_VERIFICATION: "tm_clawdbot_x_verification";
25
25
  readonly SHIP: "tm_ship";
26
26
  readonly SLAP: "tm_slap";
27
27
  };
@@ -29,9 +29,9 @@ export declare const TOPICS: {
29
29
  export declare const DEFAULT_SLAP_TRACKERS: Record<'mainnet' | 'testnet', string[]>;
30
30
  /** Lookup services for overlay queries */
31
31
  export declare const LOOKUP_SERVICES: {
32
- readonly AGENTS: "ls_openclaw_agents";
33
- readonly SERVICES: "ls_openclaw_services";
34
- readonly X_VERIFICATIONS: "ls_openclaw_x_verifications";
32
+ readonly AGENTS: "ls_clawdbot_agents";
33
+ readonly SERVICES: "ls_clawdbot_services";
34
+ readonly X_VERIFICATIONS: "ls_clawdbot_x_verifications";
35
35
  };
36
36
  /** Paths derived from config */
37
37
  export declare const PATHS: {
@@ -39,9 +39,9 @@ export const OVERLAY_STATE_DIR = path.join(os.homedir(), '.openclaw', 'openclaw-
39
39
  export const PROTOCOL_ID = 'clawdbot-overlay-v1';
40
40
  /** Topic managers for overlay submissions */
41
41
  export const TOPICS = {
42
- IDENTITY: 'tm_openclaw_identity',
43
- SERVICES: 'tm_openclaw_services',
44
- X_VERIFICATION: 'tm_openclaw_x_verification',
42
+ IDENTITY: 'tm_clawdbot_identity',
43
+ SERVICES: 'tm_clawdbot_services',
44
+ X_VERIFICATION: 'tm_clawdbot_x_verification',
45
45
  SHIP: 'tm_ship',
46
46
  SLAP: 'tm_slap',
47
47
  };
@@ -52,9 +52,9 @@ export const DEFAULT_SLAP_TRACKERS = {
52
52
  };
53
53
  /** Lookup services for overlay queries */
54
54
  export const LOOKUP_SERVICES = {
55
- AGENTS: 'ls_openclaw_agents',
56
- SERVICES: 'ls_openclaw_services',
57
- X_VERIFICATIONS: 'ls_openclaw_x_verifications',
55
+ AGENTS: 'ls_clawdbot_agents',
56
+ SERVICES: 'ls_clawdbot_services',
57
+ X_VERIFICATIONS: 'ls_clawdbot_x_verifications',
58
58
  };
59
59
  /** Paths derived from config */
60
60
  export const PATHS = {
package/index.ts CHANGED
@@ -313,24 +313,14 @@ function getCliPath() {
313
313
  * OpenClaw Overlay Plugin
314
314
  * Decentralized agent marketplace with BSV micropayments.
315
315
  */
316
- export async function register(api: any) {
316
+ export function register(api: any) {
317
317
  if (isInitialized) return;
318
318
  isInitialized = true;
319
319
 
320
- // Initialize child process helpers
321
- await ensureCp();
322
-
323
320
  const entries = api.getConfig?.()?.plugins?.entries || {};
324
321
  const entry = entries['overlay'] || entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
325
322
  const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
326
323
 
327
- // Initialize service system
328
- try {
329
- await initializeServiceSystem();
330
- } catch (err: any) {
331
- if (api.logger) api.logger.warn(`[overlay] Service system initialization failed: ${err.message}`);
332
- }
333
-
334
324
  // 1. Tool
335
325
  api.registerTool({
336
326
  name: "overlay",
@@ -407,6 +397,16 @@ export async function register(api: any) {
407
397
  api.registerService({
408
398
  id: "overlay-relay",
409
399
  start: async () => {
400
+ // Initialize child process helpers
401
+ await ensureCp();
402
+
403
+ // Initialize service system
404
+ try {
405
+ await initializeServiceSystem();
406
+ } catch (err: any) {
407
+ if (api.logger) api.logger.warn(`[overlay] Service system initialization failed: ${err.message}`);
408
+ }
409
+
410
410
  const env = buildEnvironment(pluginConfig);
411
411
  const cliPath = getCliPath();
412
412
  startBackgroundService(env, cliPath, api.logger);
@@ -432,7 +432,7 @@ export async function register(api: any) {
432
432
  }
433
433
 
434
434
  export const plugin = {
435
- id: "openclaw-overlay-plugin",
435
+ id: "overlay",
436
436
  name: "BSV Overlay Network",
437
437
  description: "OpenClaw Overlay — decentralized agent marketplace with BSV micropayments",
438
438
  activate: register,
@@ -1,8 +1,8 @@
1
1
  {
2
- "id": "openclaw-overlay-plugin",
2
+ "id": "overlay",
3
3
  "name": "BSV Overlay Network",
4
4
  "description": "OpenClaw Overlay — decentralized agent marketplace with BSV micropayments",
5
- "version": "0.7.73",
5
+ "version": "0.2.0",
6
6
  "skills": [
7
7
  "./SKILL.md"
8
8
  ],
@@ -18,6 +18,13 @@
18
18
  "description": "Uses the default shared agent identity key"
19
19
  }
20
20
  ],
21
+ "commands": [
22
+ {
23
+ "name": "overlay",
24
+ "description": "BSV Overlay Network management",
25
+ "isAutoreply": true
26
+ }
27
+ ],
21
28
  "contracts": {
22
29
  "tools": [
23
30
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-overlay-plugin",
3
- "version": "0.7.73",
3
+ "version": "0.8.0",
4
4
  "description": "Openclaw BSV Overlay — agent discovery, service marketplace, and micropayments on the BSV blockchain",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -50,9 +50,9 @@ export const PROTOCOL_ID = 'clawdbot-overlay-v1';
50
50
 
51
51
  /** Topic managers for overlay submissions */
52
52
  export const TOPICS = {
53
- IDENTITY: 'tm_openclaw_identity',
54
- SERVICES: 'tm_openclaw_services',
55
- X_VERIFICATION: 'tm_openclaw_x_verification',
53
+ IDENTITY: 'tm_clawdbot_identity',
54
+ SERVICES: 'tm_clawdbot_services',
55
+ X_VERIFICATION: 'tm_clawdbot_x_verification',
56
56
  SHIP: 'tm_ship',
57
57
  SLAP: 'tm_slap',
58
58
  } as const;
@@ -65,9 +65,9 @@ export const DEFAULT_SLAP_TRACKERS: Record<'mainnet' | 'testnet', string[]> = {
65
65
 
66
66
  /** Lookup services for overlay queries */
67
67
  export const LOOKUP_SERVICES = {
68
- AGENTS: 'ls_openclaw_agents',
69
- SERVICES: 'ls_openclaw_services',
70
- X_VERIFICATIONS: 'ls_openclaw_x_verifications',
68
+ AGENTS: 'ls_clawdbot_agents',
69
+ SERVICES: 'ls_clawdbot_services',
70
+ X_VERIFICATIONS: 'ls_clawdbot_x_verifications',
71
71
  } as const;
72
72
 
73
73
  /** Paths derived from config */