openclaw-overlay-plugin 0.8.10 → 0.8.11

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
@@ -253,7 +253,9 @@ export function register(api) {
253
253
  acceptsArgs: true,
254
254
  handler: async (ctx) => {
255
255
  try {
256
- const action = ctx.args?.[0] || 'status';
256
+ api.logger?.info?.(`[openclaw-overlay] Command received with args: ${JSON.stringify(ctx.args)} (type: ${typeof ctx.args})`);
257
+ const args = Array.isArray(ctx.args) ? ctx.args : (typeof ctx.args === 'string' ? ctx.args.split(' ').filter(Boolean) : []);
258
+ const action = args[0] || 'status';
257
259
  const result = await executeOverlayAction({ action }, pluginConfig, api);
258
260
  return { text: `**Overlay ${action.toUpperCase()}**\n\n${typeof result === 'string' ? result : JSON.stringify(result, null, 2)}` };
259
261
  }
@@ -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 = {
@@ -223,7 +223,7 @@ export class BSVAgentWallet {
223
223
  // 6. SQLite storage via knex
224
224
  const filePath = path.join(config.storageDir, `${DEFAULT_DB_NAME}.sqlite`);
225
225
  const knex = knexLib({
226
- client: 'better-sqlite3',
226
+ client: 'sqlite3',
227
227
  connection: { filename: filePath },
228
228
  useNullAsDefault: true,
229
229
  });
package/index.ts CHANGED
@@ -263,7 +263,9 @@ export function register(api: any) {
263
263
  acceptsArgs: true,
264
264
  handler: async (ctx: any) => {
265
265
  try {
266
- const action = ctx.args?.[0] || 'status';
266
+ api.logger?.info?.(`[openclaw-overlay] Command received with args: ${JSON.stringify(ctx.args)} (type: ${typeof ctx.args})`);
267
+ const args = Array.isArray(ctx.args) ? ctx.args : (typeof ctx.args === 'string' ? ctx.args.split(' ').filter(Boolean) : []);
268
+ const action = args[0] || 'status';
267
269
  const result = await executeOverlayAction({ action }, pluginConfig, api);
268
270
  return { text: `**Overlay ${action.toUpperCase()}**\n\n${typeof result === 'string' ? result : JSON.stringify(result, null, 2)}` };
269
271
  } 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.11",
4
4
  "description": "Openclaw BSV Overlay — agent discovery, service marketplace, and micropayments on the BSV blockchain",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,15 +25,15 @@
25
25
  "test": "npx tsx src/test/cli.test.ts && npx tsx src/test/taskflow.test.ts && npx tsx src/test/key-derivation.test.ts",
26
26
  "postversion": "node ../sync_versions.js",
27
27
  "lint": "eslint src/**/*.ts",
28
- "postinstall": "node -e \"try{require('better-sqlite3')}catch{console.log('Note: better-sqlite3 requires build tools. If install failed, ensure python3 and a C++ compiler are available.')}\""
28
+ "postinstall": "node -e \"try{require('sqlite3')}catch{console.log('Note: sqlite3 requires build tools. If install failed, ensure python3 and a C++ compiler are available.')}\""
29
29
  },
30
30
  "dependencies": {
31
31
  "@bsv/sdk": "^2.0.13",
32
32
  "@bsv/wallet-toolbox": "^2.1.18",
33
- "better-sqlite3": "^11.0.0",
34
33
  "debug": "^4.4.0",
35
34
  "dotenv": "^17.3.1",
36
- "knex": "^3.1.0"
35
+ "knex": "^3.1.0",
36
+ "sqlite3": "^5.1.7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/debug": "^4.1.12",
@@ -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
 
@@ -286,7 +286,7 @@ export class BSVAgentWallet {
286
286
  // 6. SQLite storage via knex
287
287
  const filePath = path.join(config.storageDir, `${DEFAULT_DB_NAME}.sqlite`);
288
288
  const knex = knexLib({
289
- client: 'better-sqlite3',
289
+ client: 'sqlite3',
290
290
  connection: { filename: filePath },
291
291
  useNullAsDefault: true,
292
292
  });