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 +3 -1
- package/dist/src/compatibility.test.js +1 -12
- package/dist/src/core/wallet.js +1 -1
- package/index.ts +3 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -4
- package/src/compatibility.test.ts +1 -12
- package/src/core/wallet.ts +1 -1
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
|
-
|
|
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
|
|
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/dist/src/core/wallet.js
CHANGED
|
@@ -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: '
|
|
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
|
-
|
|
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) {
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-overlay-plugin",
|
|
3
|
-
"version": "0.8.
|
|
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('
|
|
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
|
|
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
|
|
package/src/core/wallet.ts
CHANGED
|
@@ -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: '
|
|
289
|
+
client: 'sqlite3',
|
|
290
290
|
connection: { filename: filePath },
|
|
291
291
|
useNullAsDefault: true,
|
|
292
292
|
});
|