@xdarkicex/openclaw-memory-libravdb 1.4.26 → 1.4.28

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/cli.js CHANGED
@@ -67,12 +67,7 @@ export function registerMemoryCli(api, runtime, cfg, logger = console) {
67
67
  });
68
68
  const flush = ensureCommand(root, "flush")
69
69
  .description("Wipe a durable memory namespace after confirmation");
70
- if (flush.requiredOption) {
71
- flush.requiredOption("--user-id <userId>", "User id whose durable memory should be deleted");
72
- }
73
- else {
74
- flush.option("--user-id <userId>", "User id whose durable memory should be deleted");
75
- }
70
+ flush.option("--user-id <userId>", "User id whose durable memory should be deleted");
76
71
  flush.option("--session-key <sessionKey>", "Session key whose derived durable namespace should be deleted");
77
72
  flush
78
73
  .option("--yes", "Skip the confirmation prompt")
package/dist/sidecar.js CHANGED
@@ -508,7 +508,22 @@ function describeEndpoint(endpoint) {
508
508
  return `unix:${endpoint}`;
509
509
  }
510
510
  function isConfiguredEndpoint(value) {
511
- return value?.startsWith("tcp:") === true || value?.startsWith("unix:") === true;
511
+ if (!value)
512
+ return false;
513
+ if (value.startsWith("unix:")) {
514
+ return value.slice("unix:".length).trim().length > 0;
515
+ }
516
+ if (!value.startsWith("tcp:")) {
517
+ return false;
518
+ }
519
+ const address = value.slice("tcp:".length);
520
+ const separator = address.lastIndexOf(":");
521
+ if (separator <= 0 || separator === address.length - 1) {
522
+ return false;
523
+ }
524
+ const host = address.slice(0, separator).trim();
525
+ const port = Number(address.slice(separator + 1));
526
+ return host.length > 0 && Number.isInteger(port) && port > 0 && port <= 65535;
512
527
  }
513
528
  export { PlaceholderSocket };
514
529
  function sleep(delayMs) {
@@ -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.26",
5
+ "version": "1.4.28",
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.4.26",
3
+ "version": "1.4.28",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",