@xdarkicex/openclaw-memory-libravdb 1.4.71 → 1.4.72
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 +5 -4
- package/dist/sidecar.js +6 -5
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39904,17 +39904,18 @@ function defaultEndpoint(platform = process.platform, homeDir = os3.homedir(), p
|
|
|
39904
39904
|
if (platform === "win32") {
|
|
39905
39905
|
return "tcp:127.0.0.1:37421";
|
|
39906
39906
|
}
|
|
39907
|
+
const joinSocketPath = path4.posix.join;
|
|
39907
39908
|
const sockName = "libravdb.sock";
|
|
39908
39909
|
const candidateDirs = [
|
|
39909
39910
|
// User-local (npm plugin convention)
|
|
39910
|
-
homeDir?.trim() ?
|
|
39911
|
+
homeDir?.trim() ? joinSocketPath(homeDir, ".libravdbd", "run") : null,
|
|
39911
39912
|
// Homebrew (Apple Silicon) — matches the Homebrew formula LaunchAgent
|
|
39912
39913
|
"/opt/homebrew/var/libravdbd/run",
|
|
39913
39914
|
// Homebrew (Intel Mac) / manual Linux installs
|
|
39914
39915
|
"/usr/local/var/libravdbd/run"
|
|
39915
39916
|
].filter((d) => d !== null);
|
|
39916
39917
|
for (const dir of candidateDirs) {
|
|
39917
|
-
const sockPath =
|
|
39918
|
+
const sockPath = joinSocketPath(dir, sockName);
|
|
39918
39919
|
try {
|
|
39919
39920
|
if (pathExists(sockPath)) {
|
|
39920
39921
|
return `unix:${sockPath}`;
|
|
@@ -39922,8 +39923,8 @@ function defaultEndpoint(platform = process.platform, homeDir = os3.homedir(), p
|
|
|
39922
39923
|
} catch {
|
|
39923
39924
|
}
|
|
39924
39925
|
}
|
|
39925
|
-
const baseDir = homeDir?.trim() ?
|
|
39926
|
-
return `unix:${
|
|
39926
|
+
const baseDir = homeDir?.trim() ? joinSocketPath(homeDir, ".libravdbd", "run") : joinSocketPath(".", ".libravdbd", "run");
|
|
39927
|
+
return `unix:${joinSocketPath(baseDir, sockName)}`;
|
|
39927
39928
|
}
|
|
39928
39929
|
function createDefaultRuntime() {
|
|
39929
39930
|
return {
|
package/dist/sidecar.js
CHANGED
|
@@ -369,17 +369,18 @@ export function defaultEndpoint(platform = process.platform, homeDir = os.homedi
|
|
|
369
369
|
if (platform === "win32") {
|
|
370
370
|
return "tcp:127.0.0.1:37421";
|
|
371
371
|
}
|
|
372
|
+
const joinSocketPath = path.posix.join;
|
|
372
373
|
const sockName = "libravdb.sock";
|
|
373
374
|
const candidateDirs = [
|
|
374
375
|
// User-local (npm plugin convention)
|
|
375
|
-
homeDir?.trim() ?
|
|
376
|
+
homeDir?.trim() ? joinSocketPath(homeDir, ".libravdbd", "run") : null,
|
|
376
377
|
// Homebrew (Apple Silicon) — matches the Homebrew formula LaunchAgent
|
|
377
378
|
"/opt/homebrew/var/libravdbd/run",
|
|
378
379
|
// Homebrew (Intel Mac) / manual Linux installs
|
|
379
380
|
"/usr/local/var/libravdbd/run",
|
|
380
381
|
].filter((d) => d !== null);
|
|
381
382
|
for (const dir of candidateDirs) {
|
|
382
|
-
const sockPath =
|
|
383
|
+
const sockPath = joinSocketPath(dir, sockName);
|
|
383
384
|
try {
|
|
384
385
|
if (pathExists(sockPath)) {
|
|
385
386
|
return `unix:${sockPath}`;
|
|
@@ -391,9 +392,9 @@ export function defaultEndpoint(platform = process.platform, homeDir = os.homedi
|
|
|
391
392
|
}
|
|
392
393
|
// Fallback to the original user-local path so error messages stay familiar.
|
|
393
394
|
const baseDir = homeDir?.trim()
|
|
394
|
-
?
|
|
395
|
-
:
|
|
396
|
-
return `unix:${
|
|
395
|
+
? joinSocketPath(homeDir, ".libravdbd", "run")
|
|
396
|
+
: joinSocketPath(".", ".libravdbd", "run");
|
|
397
|
+
return `unix:${joinSocketPath(baseDir, sockName)}`;
|
|
397
398
|
}
|
|
398
399
|
export function buildSidecarEnv(cfg) {
|
|
399
400
|
const env = {};
|
package/openclaw.plugin.json
CHANGED