openclaw-overlay-plugin 0.8.10 → 0.8.12

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.js CHANGED
@@ -215,6 +215,8 @@ function stopBackgroundService() {
215
215
  }
216
216
  }
217
217
  export function register(api) {
218
+ const version = "0.8.12";
219
+ api.logger?.info?.(`[openclaw-overlay] Initializing Plugin v${version}`);
218
220
  const entries = api.getConfig?.()?.plugins?.entries || {};
219
221
  const entry = entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
220
222
  const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
@@ -253,7 +255,9 @@ export function register(api) {
253
255
  acceptsArgs: true,
254
256
  handler: async (ctx) => {
255
257
  try {
256
- const action = ctx.args?.[0] || 'status';
258
+ api.logger?.info?.(`[openclaw-overlay] Command received with args: ${JSON.stringify(ctx.args)} (type: ${typeof ctx.args})`);
259
+ const args = Array.isArray(ctx.args) ? ctx.args : (typeof ctx.args === 'string' ? ctx.args.split(' ').filter(Boolean) : []);
260
+ const action = args[0] || 'status';
257
261
  const result = await executeOverlayAction({ action }, pluginConfig, api);
258
262
  return { text: `**Overlay ${action.toUpperCase()}**\n\n${typeof result === 'string' ? result : JSON.stringify(result, null, 2)}` };
259
263
  }
@@ -1,21 +1,10 @@
1
1
  /**
2
2
  * Compatibility Test for Node 24 and OpenClaw SDK
3
3
  */
4
- import sqlite3 from 'sqlite3';
5
4
  import { plugin } from '../index.js';
6
5
  async function testCompatibility() {
7
6
  console.log('--- Overlay Compatibility Test ---');
8
- // 1. Verify SQLite3 Native Bindings
9
- try {
10
- const db = new sqlite3.Database(':memory:');
11
- console.log('✓ SQLite3 native bindings loaded successfully.');
12
- db.close();
13
- }
14
- catch (err) {
15
- console.error('✗ SQLite3 failed to load bindings:', err.message);
16
- process.exit(1);
17
- }
18
- // 2. Verify Plugin Registration (SDK Descriptors)
7
+ // 1. Verify Plugin Registration (SDK Descriptors)
19
8
  let registeredCli = false;
20
9
  let hasDescriptors = false;
21
10
  const mockApi = {
package/index.ts CHANGED
@@ -224,6 +224,8 @@ function stopBackgroundService() {
224
224
  }
225
225
 
226
226
  export function register(api: any) {
227
+ const version = "0.8.12";
228
+ api.logger?.info?.(`[openclaw-overlay] Initializing Plugin v${version}`);
227
229
  const entries = api.getConfig?.()?.plugins?.entries || {};
228
230
  const entry = entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
229
231
  const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
@@ -263,7 +265,9 @@ export function register(api: any) {
263
265
  acceptsArgs: true,
264
266
  handler: async (ctx: any) => {
265
267
  try {
266
- const action = ctx.args?.[0] || 'status';
268
+ api.logger?.info?.(`[openclaw-overlay] Command received with args: ${JSON.stringify(ctx.args)} (type: ${typeof ctx.args})`);
269
+ const args = Array.isArray(ctx.args) ? ctx.args : (typeof ctx.args === 'string' ? ctx.args.split(' ').filter(Boolean) : []);
270
+ const action = args[0] || 'status';
267
271
  const result = await executeOverlayAction({ action }, pluginConfig, api);
268
272
  return { text: `**Overlay ${action.toUpperCase()}**\n\n${typeof result === 'string' ? result : JSON.stringify(result, null, 2)}` };
269
273
  } catch (error: any) {
@@ -2,7 +2,7 @@
2
2
  "id": "openclaw-overlay-plugin",
3
3
  "name": "BSV Overlay Network",
4
4
  "description": "OpenClaw Overlay — decentralized agent marketplace with BSV micropayments",
5
- "version": "0.8.10",
5
+ "version": "0.8.11",
6
6
  "skills": [
7
7
  "./SKILL.md"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-overlay-plugin",
3
- "version": "0.8.10",
3
+ "version": "0.8.12",
4
4
  "description": "Openclaw BSV Overlay — agent discovery, service marketplace, and micropayments on the BSV blockchain",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@bsv/sdk": "^2.0.13",
32
32
  "@bsv/wallet-toolbox": "^2.1.18",
33
- "better-sqlite3": "^11.0.0",
33
+ "better-sqlite3": "11.3.0",
34
34
  "debug": "^4.4.0",
35
35
  "dotenv": "^17.3.1",
36
36
  "knex": "^3.1.0"
@@ -2,23 +2,12 @@
2
2
  * Compatibility Test for Node 24 and OpenClaw SDK
3
3
  */
4
4
 
5
- import sqlite3 from 'sqlite3';
6
5
  import { plugin } from '../index.js';
7
6
 
8
7
  async function testCompatibility() {
9
8
  console.log('--- Overlay Compatibility Test ---');
10
9
 
11
- // 1. Verify SQLite3 Native Bindings
12
- try {
13
- const db = new sqlite3.Database(':memory:');
14
- console.log('✓ SQLite3 native bindings loaded successfully.');
15
- db.close();
16
- } catch (err: any) {
17
- console.error('✗ SQLite3 failed to load bindings:', err.message);
18
- process.exit(1);
19
- }
20
-
21
- // 2. Verify Plugin Registration (SDK Descriptors)
10
+ // 1. Verify Plugin Registration (SDK Descriptors)
22
11
  let registeredCli = false;
23
12
  let hasDescriptors = false;
24
13