openclaw-overlay-plugin 0.8.11 → 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 || {}) };
@@ -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
@@ -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 || {}) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-overlay-plugin",
3
- "version": "0.8.11",
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"
@@ -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",
@@ -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
  });