@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 +1 -6
- package/dist/sidecar.js +16 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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) {
|
package/openclaw.plugin.json
CHANGED