@xdarkicex/openclaw-memory-libravdb 1.4.27 → 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/sidecar.js +16 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
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