@remnic/plugin-openclaw 9.69.27 → 9.69.29
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 +3 -16
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5430,7 +5430,7 @@ import fs3 from "fs";
|
|
|
5430
5430
|
import path6 from "path";
|
|
5431
5431
|
import { isIPv4, isIPv6 } from "net";
|
|
5432
5432
|
import { Worker } from "worker_threads";
|
|
5433
|
-
import {
|
|
5433
|
+
import { configPathCandidates, readCompatEnv } from "@remnic/core";
|
|
5434
5434
|
|
|
5435
5435
|
// src/bridge-health-worker.ts
|
|
5436
5436
|
function runHealthWorker(request, data) {
|
|
@@ -6209,19 +6209,6 @@ function readEnv(name) {
|
|
|
6209
6209
|
function resolveHomeDir2() {
|
|
6210
6210
|
return readEnv("HOME") ?? readEnv("USERPROFILE") ?? "~";
|
|
6211
6211
|
}
|
|
6212
|
-
function readCompatEnv(primary, legacy) {
|
|
6213
|
-
return readEnv(primary) ?? readEnv(legacy);
|
|
6214
|
-
}
|
|
6215
|
-
function configPathCandidates() {
|
|
6216
|
-
const envPath = readCompatEnv("REMNIC_CONFIG_PATH", "ENGRAM_CONFIG_PATH");
|
|
6217
|
-
return [
|
|
6218
|
-
...envPath ? [path6.resolve(expandTildePath3(envPath))] : [],
|
|
6219
|
-
path6.join(process.cwd(), "remnic.config.json"),
|
|
6220
|
-
path6.join(process.cwd(), "engram.config.json"),
|
|
6221
|
-
path6.join(resolveHomeDir2(), ".config", "remnic", "config.json"),
|
|
6222
|
-
path6.join(resolveHomeDir2(), ".config", "engram", "config.json")
|
|
6223
|
-
];
|
|
6224
|
-
}
|
|
6225
6212
|
function fileExists2(filePath) {
|
|
6226
6213
|
try {
|
|
6227
6214
|
return fs3.statSync(filePath).isFile();
|
|
@@ -8959,7 +8946,7 @@ function buildTurnFingerprint(input) {
|
|
|
8959
8946
|
// ../../src/index.ts
|
|
8960
8947
|
import { planRecallMode } from "@remnic/core/intent";
|
|
8961
8948
|
import {
|
|
8962
|
-
expandTildePath as
|
|
8949
|
+
expandTildePath as expandTildePath3,
|
|
8963
8950
|
isSupportPassportPrivateMemory as isSupportPassportPrivateMemory3,
|
|
8964
8951
|
renderMemoryContextPrompt as renderSharedMemoryContextPrompt,
|
|
8965
8952
|
resolveAgentAccessAuthToken,
|
|
@@ -9360,7 +9347,7 @@ function buildServiceKeys(serviceId) {
|
|
|
9360
9347
|
function resolveOpenClawConfigFilePath() {
|
|
9361
9348
|
const explicitConfigPath = readEnvVar("OPENCLAW_CONFIG_PATH") || readEnvVar("OPENCLAW_ENGRAM_CONFIG_PATH");
|
|
9362
9349
|
if (explicitConfigPath && explicitConfigPath.length > 0) {
|
|
9363
|
-
return
|
|
9350
|
+
return expandTildePath3(explicitConfigPath);
|
|
9364
9351
|
}
|
|
9365
9352
|
return path11.join(resolveHomeDir3(), ".openclaw", "openclaw.json");
|
|
9366
9353
|
}
|