@xdarkicex/openclaw-memory-libravdb 1.9.8 → 1.9.9

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,6 +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
+ export declare function shouldShutdownRuntimeForLifecycleCleanup(reason: string, sessionKey?: string): boolean;
4
4
  export declare function register(api: OpenClawPluginApi): void;
5
5
  declare const _default: {
6
6
  id: string;
package/dist/index.js CHANGED
@@ -48685,8 +48685,8 @@ function levelFilteredLogger(base, logLevel) {
48685
48685
  var MEMORY_ID = "libravdb-memory";
48686
48686
  var LIGHTWEIGHT_MODES = /* @__PURE__ */ new Set(["cli-metadata", "setup-only"]);
48687
48687
  var RUNTIME_CLEANUP_SHUTDOWN_REASONS = /* @__PURE__ */ new Set(["delete"]);
48688
- function shouldShutdownRuntimeForLifecycleCleanup(reason) {
48689
- return RUNTIME_CLEANUP_SHUTDOWN_REASONS.has(reason);
48688
+ function shouldShutdownRuntimeForLifecycleCleanup(reason, sessionKey) {
48689
+ return RUNTIME_CLEANUP_SHUTDOWN_REASONS.has(reason) && sessionKey === void 0;
48690
48690
  }
48691
48691
  function register(api) {
48692
48692
  const registrationMode = api.registrationMode;
@@ -48844,7 +48844,7 @@ function register(api) {
48844
48844
  id: "libravdb-shutdown",
48845
48845
  description: "Shut down the vector service runtime on terminal plugin cleanup",
48846
48846
  async cleanup(ctx) {
48847
- if (shouldShutdownRuntimeForLifecycleCleanup(ctx.reason)) {
48847
+ if (shouldShutdownRuntimeForLifecycleCleanup(ctx.reason, ctx.sessionKey)) {
48848
48848
  logger.info?.(`LibraVDB ${ctx.reason} \u2014 shutting down runtime`);
48849
48849
  await runtime.shutdown();
48850
48850
  } else if (ctx.reason === "disable") {
@@ -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.9.8",
5
+ "version": "1.9.9",
6
6
  "kind": [
7
7
  "memory",
8
8
  "context-engine"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdarkicex/openclaw-memory-libravdb",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",