openclaw-overlay-plugin 0.8.11 → 0.8.13
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 +6 -0
- package/dist/src/core/wallet.js +1 -1
- package/index.ts +7 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -4
- package/src/core/wallet.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { cmdConnect } from './src/scripts/messaging/connect.js';
|
|
|
14
14
|
import { setNoExit } from './src/scripts/output.js';
|
|
15
15
|
import debug from 'debug';
|
|
16
16
|
const log = debug('openclaw:plugin:overlay');
|
|
17
|
+
let isInitialized = false;
|
|
17
18
|
// Track background service state
|
|
18
19
|
let serviceRunning = false;
|
|
19
20
|
let abortController = null;
|
|
@@ -215,6 +216,11 @@ function stopBackgroundService() {
|
|
|
215
216
|
}
|
|
216
217
|
}
|
|
217
218
|
export function register(api) {
|
|
219
|
+
const version = "0.8.12";
|
|
220
|
+
if (isInitialized)
|
|
221
|
+
return;
|
|
222
|
+
isInitialized = true;
|
|
223
|
+
api.logger?.info?.(`[openclaw-overlay] Initializing Plugin v${version}`);
|
|
218
224
|
const entries = api.getConfig?.()?.plugins?.entries || {};
|
|
219
225
|
const entry = entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
|
|
220
226
|
const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
|
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: 'sqlite3',
|
|
226
|
+
client: 'better-sqlite3',
|
|
227
227
|
connection: { filename: filePath },
|
|
228
228
|
useNullAsDefault: true,
|
|
229
229
|
});
|
package/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ import debug from 'debug';
|
|
|
17
17
|
|
|
18
18
|
const log = debug('openclaw:plugin:overlay');
|
|
19
19
|
|
|
20
|
+
let isInitialized = false;
|
|
21
|
+
|
|
20
22
|
// Track background service state
|
|
21
23
|
let serviceRunning = false;
|
|
22
24
|
let abortController: AbortController | null = null;
|
|
@@ -224,6 +226,11 @@ function stopBackgroundService() {
|
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
export function register(api: any) {
|
|
229
|
+
const version = "0.8.12";
|
|
230
|
+
if (isInitialized) return;
|
|
231
|
+
isInitialized = true;
|
|
232
|
+
|
|
233
|
+
api.logger?.info?.(`[openclaw-overlay] Initializing Plugin v${version}`);
|
|
227
234
|
const entries = api.getConfig?.()?.plugins?.entries || {};
|
|
228
235
|
const entry = entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
|
|
229
236
|
const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
|
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.13",
|
|
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('sqlite3')}catch{console.log('Note: sqlite3 requires build tools. If install failed, ensure python3 and a C++ compiler are available.')}\""
|
|
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.')}\""
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@bsv/sdk": "^2.0.13",
|
|
32
32
|
"@bsv/wallet-toolbox": "^2.1.18",
|
|
33
|
+
"better-sqlite3": "11.3.0",
|
|
33
34
|
"debug": "^4.4.0",
|
|
34
35
|
"dotenv": "^17.3.1",
|
|
35
|
-
"knex": "^3.1.0"
|
|
36
|
-
"sqlite3": "^5.1.7"
|
|
36
|
+
"knex": "^3.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/debug": "^4.1.12",
|
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: 'sqlite3',
|
|
289
|
+
client: 'better-sqlite3',
|
|
290
290
|
connection: { filename: filePath },
|
|
291
291
|
useNullAsDefault: true,
|
|
292
292
|
});
|