openclaw-overlay-plugin 0.7.39 → 0.7.41

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
@@ -1 +1,2 @@
1
+ export declare function activate(api: any): Promise<void>;
1
2
  export default function register(api: any): void;
package/dist/index.js CHANGED
@@ -404,6 +404,9 @@ function stopBackgroundService() {
404
404
  wokenRequests.clear();
405
405
  stopAutoImport();
406
406
  }
407
+ export async function activate(api) {
408
+ return register(api);
409
+ }
407
410
  export default function register(api) {
408
411
  // Capture config at registration time
409
412
  // Check all possible IDs for backward compatibility and various installation methods
@@ -1444,7 +1447,8 @@ function buildEnvironment(config) {
1444
1447
  }
1445
1448
  function parseCliOutput(stdout) {
1446
1449
  try {
1447
- return JSON.parse(stdout.trim());
1450
+ const str = typeof stdout === 'string' ? stdout : String(stdout || '');
1451
+ return JSON.parse(str.trim());
1448
1452
  }
1449
1453
  catch (error) {
1450
1454
  throw new Error(`Failed to parse CLI output: ${error.message}`);
@@ -192,7 +192,7 @@ export class BSVAgentWallet {
192
192
  // 6. SQLite storage via knex
193
193
  const filePath = path.join(config.storageDir, `${DEFAULT_DB_NAME}.sqlite`);
194
194
  const knex = knexLib({
195
- client: 'sqlite3',
195
+ client: 'better-sqlite3',
196
196
  connection: { filename: filePath },
197
197
  useNullAsDefault: true,
198
198
  });
package/index.ts CHANGED
@@ -447,6 +447,10 @@ function stopBackgroundService() {
447
447
  stopAutoImport();
448
448
  }
449
449
 
450
+ export async function activate(api: any) {
451
+ return register(api);
452
+ }
453
+
450
454
  export default function register(api: any) {
451
455
  // Capture config at registration time
452
456
  // Check all possible IDs for backward compatibility and various installation methods
@@ -1628,7 +1632,8 @@ function buildEnvironment(config: any) {
1628
1632
 
1629
1633
  function parseCliOutput(stdout: any) {
1630
1634
  try {
1631
- return JSON.parse(stdout.trim());
1635
+ const str = typeof stdout === 'string' ? stdout : String(stdout || '');
1636
+ return JSON.parse(str.trim());
1632
1637
  } catch (error: any) {
1633
1638
  throw new Error(`Failed to parse CLI output: ${error.message}`);
1634
1639
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-overlay-plugin",
3
- "version": "0.7.39",
3
+ "version": "0.7.41",
4
4
  "description": "Openclaw BSV Overlay — agent discovery, service marketplace, and micropayments on the BSV blockchain",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -68,10 +68,14 @@
68
68
  },
69
69
  "openclaw": {
70
70
  "extensions": [
71
- "."
71
+ "./index.ts"
72
72
  ],
73
73
  "hooks": [
74
- "."
75
- ]
74
+ "./"
75
+ ],
76
+ "compat": {
77
+ "pluginApi": "1",
78
+ "minGatewayVersion": "2026.3.1"
79
+ }
76
80
  }
77
81
  }
@@ -253,7 +253,7 @@ export class BSVAgentWallet {
253
253
  // 6. SQLite storage via knex
254
254
  const filePath = path.join(config.storageDir, `${DEFAULT_DB_NAME}.sqlite`);
255
255
  const knex = knexLib({
256
- client: 'sqlite3',
256
+ client: 'better-sqlite3',
257
257
  connection: { filename: filePath },
258
258
  useNullAsDefault: true,
259
259
  });