@xdarkicex/openclaw-memory-libravdb 1.4.41 → 1.4.43

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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
2
2
  export declare const MEMORY_ID = "libravdb-memory";
3
+ export declare function shouldShutdownRuntimeForLifecycleCleanup(reason: string): boolean;
3
4
  export declare function register(api: OpenClawPluginApi): void;
4
5
  declare const _default: {
5
6
  id: string;
package/dist/index.js CHANGED
@@ -39622,6 +39622,10 @@ function enrichStartupError(error, healthMessage) {
39622
39622
  // src/index.ts
39623
39623
  var MEMORY_ID = "libravdb-memory";
39624
39624
  var LIGHTWEIGHT_MODES = /* @__PURE__ */ new Set(["cli-metadata", "setup-only"]);
39625
+ var RUNTIME_CLEANUP_SHUTDOWN_REASONS = /* @__PURE__ */ new Set(["delete", "restart"]);
39626
+ function shouldShutdownRuntimeForLifecycleCleanup(reason) {
39627
+ return RUNTIME_CLEANUP_SHUTDOWN_REASONS.has(reason);
39628
+ }
39625
39629
  function register(api) {
39626
39630
  const registrationMode = api.registrationMode;
39627
39631
  const logger = api.logger ?? console;
@@ -39712,11 +39716,15 @@ function register(api) {
39712
39716
  });
39713
39717
  api.registerRuntimeLifecycle?.({
39714
39718
  id: "libravdb-shutdown",
39715
- description: "Shut down the vector service runtime on plugin disable",
39719
+ description: "Shut down the vector service runtime on terminal plugin cleanup",
39716
39720
  async cleanup(ctx) {
39717
- if (ctx.reason === "disable") {
39718
- logger.info?.("LibraVDB disable \u2014 shutting down runtime");
39721
+ if (shouldShutdownRuntimeForLifecycleCleanup(ctx.reason)) {
39722
+ logger.info?.(`LibraVDB ${ctx.reason} \u2014 shutting down runtime`);
39719
39723
  await runtime.shutdown();
39724
+ } else if (ctx.reason === "disable") {
39725
+ logger.info?.(
39726
+ "LibraVDB disable cleanup observed; preserving runtime for active context engine"
39727
+ );
39720
39728
  }
39721
39729
  }
39722
39730
  });
@@ -39745,5 +39753,6 @@ var index_default = definePluginEntry({
39745
39753
  export {
39746
39754
  MEMORY_ID,
39747
39755
  index_default as default,
39748
- register
39756
+ register,
39757
+ shouldShutdownRuntimeForLifecycleCleanup
39749
39758
  };
package/dist/sidecar.js CHANGED
@@ -373,9 +373,7 @@ export function buildSidecarEnv(cfg) {
373
373
  if (cfg.embeddingRuntimePath) {
374
374
  env.LIBRAVDB_ONNX_RUNTIME = cfg.embeddingRuntimePath;
375
375
  }
376
- if (cfg.onnxDevice) {
377
- env.LIBRAVDB_ONNX_DEVICE = cfg.onnxDevice;
378
- }
376
+ env.LIBRAVDB_ONNX_DEVICE = cfg.onnxDevice ?? "cpu";
379
377
  if (cfg.embeddingBackend) {
380
378
  env.LIBRAVDB_EMBEDDING_BACKEND = cfg.embeddingBackend;
381
379
  }
@@ -24,7 +24,7 @@ pnpm check
24
24
 
25
25
  ```bash
26
26
  tsc --noEmit
27
- tsc -p tsconfig.tests.json && node --test .ts-build/test/unit/*.test.js
27
+ pnpm run test:ts
28
28
  ```
29
29
 
30
30
  ## Local Daemon Build
@@ -2,7 +2,7 @@
2
2
  "id": "libravdb-memory",
3
3
  "name": "LibraVDB Memory",
4
4
  "description": "Persistent vector memory with three-tier hybrid scoring",
5
- "version": "1.4.41",
5
+ "version": "1.4.43",
6
6
  "kind": [
7
7
  "memory",
8
8
  "context-engine"
@@ -77,6 +77,7 @@
77
77
  "directml",
78
78
  "openvino"
79
79
  ],
80
+ "default": "cpu",
80
81
  "description": "Optional ONNX execution provider override passed to libravdbd. Use cpu to bypass CoreML/MPS on Intel Macs."
81
82
  },
82
83
  "embeddingBackend": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdarkicex/openclaw-memory-libravdb",
3
- "version": "1.4.41",
3
+ "version": "1.4.43",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -49,8 +49,9 @@
49
49
  "scripts": {
50
50
  "build": "tsc -p tsconfig.build.json && node scripts/bundle-entrypoint.mjs && mkdir -p dist/proto && cp -rf api/proto/. dist/proto/",
51
51
  "check": "tsc --noEmit && pnpm run test:ts",
52
- "test:ts": "tsc -p tsconfig.tests.json && node --test .ts-build/test/unit/*.test.js",
53
- "test:integration": "tsc -p tsconfig.tests.json && node --test .ts-build/test/integration/checklist-validation.test.js .ts-build/test/integration/dream-promotion.test.js .ts-build/test/integration/host-flow.test.js .ts-build/test/integration/markdown-ingest.test.js .ts-build/test/integration/sidecar-lifecycle.test.js",
52
+ "test:inspect": "pnpm run plugin:ci",
53
+ "test:ts": "pnpm run test:inspect && tsc -p tsconfig.tests.json && node --test .ts-build/test/unit/*.test.js",
54
+ "test:integration": "pnpm run test:inspect && tsc -p tsconfig.tests.json && node --test .ts-build/test/integration/checklist-validation.test.js .ts-build/test/integration/dream-promotion.test.js .ts-build/test/integration/host-flow.test.js .ts-build/test/integration/markdown-ingest.test.js .ts-build/test/integration/sidecar-lifecycle.test.js",
54
55
  "benchmark:session_search_mid": "tsc -p tsconfig.tests.json && OPENCLAW_PROFILE_ASSEMBLE=1 node --test --test-name-pattern=\"real sidecar mid-sized session search benchmark\" .ts-build/test/integration/host-flow.test.js",
55
56
  "gate:assemble_optimization": "tsc -p tsconfig.tests.json && OPENCLAW_PROFILE_ASSEMBLE=1 OPENCLAW_ENFORCE_ASSEMBLE_EVIDENCE_GATE=1 node --test --test-name-pattern=\"real sidecar mid-sized session search benchmark\" .ts-build/test/integration/host-flow.test.js",
56
57
  "probe:session_recall": "tsc -p tsconfig.tests.json && OPENCLAW_PROFILE_ASSEMBLE=1 node --test --test-name-pattern=\"real sidecar mid-sized session search benchmark\" .ts-build/test/integration/host-flow.test.js",