@xdarkicex/openclaw-memory-libravdb 1.4.34 → 1.4.35

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
@@ -39627,17 +39627,31 @@ function register(api) {
39627
39627
  );
39628
39628
  const markdownIngestion = createMarkdownIngestionHandle(cfg, runtime.getRpc, api.logger ?? console);
39629
39629
  const dreamPromotion = createDreamPromotionHandle(cfg, runtime.getRpc, api.logger ?? console);
39630
- runtime.onShutdown(async () => {
39631
- await markdownIngestion.stop();
39632
- });
39633
- runtime.onShutdown(async () => {
39634
- await dreamPromotion.stop();
39635
- });
39636
- void markdownIngestion.start().catch((error) => {
39637
- api.logger?.warn?.(`LibraVDB markdown ingestion failed to start: ${error instanceof Error ? error.message : String(error)}`);
39630
+ api.registerService?.({
39631
+ id: "libravdb-markdown-ingestion",
39632
+ async start() {
39633
+ try {
39634
+ await markdownIngestion.start();
39635
+ } catch (error) {
39636
+ api.logger?.warn?.(`LibraVDB markdown ingestion failed to start: ${error instanceof Error ? error.message : String(error)}`);
39637
+ }
39638
+ },
39639
+ async stop() {
39640
+ await markdownIngestion.stop();
39641
+ }
39638
39642
  });
39639
- void dreamPromotion.start().catch((error) => {
39640
- api.logger?.warn?.(`LibraVDB dream promotion failed to start: ${error instanceof Error ? error.message : String(error)}`);
39643
+ api.registerService?.({
39644
+ id: "libravdb-dream-promotion",
39645
+ async start() {
39646
+ try {
39647
+ await dreamPromotion.start();
39648
+ } catch (error) {
39649
+ api.logger?.warn?.(`LibraVDB dream promotion failed to start: ${error instanceof Error ? error.message : String(error)}`);
39650
+ }
39651
+ },
39652
+ async stop() {
39653
+ await dreamPromotion.stop();
39654
+ }
39641
39655
  });
39642
39656
  api.on("before_reset", createBeforeResetHook(runtime, api.logger ?? console));
39643
39657
  api.on("session_end", createSessionEndHook(runtime, api.logger ?? console));
@@ -2,11 +2,15 @@
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.34",
5
+ "version": "1.4.35",
6
6
  "kind": [
7
7
  "memory",
8
8
  "context-engine"
9
9
  ],
10
+ "contracts": {
11
+ "memory": true,
12
+ "contextEngine": true
13
+ },
10
14
  "activation": {
11
15
  "onCommands": [
12
16
  "memory"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdarkicex/openclaw-memory-libravdb",
3
- "version": "1.4.34",
3
+ "version": "1.4.35",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",