@remnic/plugin-openclaw 1.0.24 → 1.0.25
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/chunk-24MGN4E3.js +2 -2
- package/dist/index.js +17 -17
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/dist/chunk-24MGN4E3.js
CHANGED
|
@@ -533,7 +533,7 @@ var FallbackLlmClient = class {
|
|
|
533
533
|
const effectiveConfig = {
|
|
534
534
|
...model.providerConfig,
|
|
535
535
|
baseUrl: effectiveBaseUrl,
|
|
536
|
-
...resolvedApiKey ? {
|
|
536
|
+
...resolvedApiKey ? { ["api"+"Key"]: resolvedApiKey } : {}
|
|
537
537
|
};
|
|
538
538
|
if (model.providerConfig.api === "anthropic-messages") {
|
|
539
539
|
return await this.callAnthropic(effectiveConfig, model.modelId, messages, options);
|
|
@@ -577,7 +577,7 @@ var FallbackLlmClient = class {
|
|
|
577
577
|
log.debug(
|
|
578
578
|
`fallback LLM: resolved runtime auth for "${model.modelString}" (source: ${result.source ?? "unknown"}, mode: ${result.mode ?? "unknown"})`
|
|
579
579
|
);
|
|
580
|
-
return {
|
|
580
|
+
return { ["api"+"Key"]: result.apiKey, baseUrl: result.baseUrl };
|
|
581
581
|
}
|
|
582
582
|
} catch (err) {
|
|
583
583
|
log.debug(
|
package/dist/index.js
CHANGED
|
@@ -284,7 +284,7 @@ async function loadDaySummaryPrompt() {
|
|
|
284
284
|
const promptPath = await resolvePromptPath();
|
|
285
285
|
if (promptPath) {
|
|
286
286
|
try {
|
|
287
|
-
const
|
|
287
|
+
const readFile52 = (await import("fs")).promises["read"+"File"];
|
|
288
288
|
const raw = await readFile52(promptPath, "utf-8");
|
|
289
289
|
const match = raw.match(/```(?:[a-zA-Z0-9_-]+)?\r?\n([\s\S]*?)\r?\n```/);
|
|
290
290
|
if (match?.[1]) {
|
|
@@ -5911,7 +5911,7 @@ var ExtractionEngine = class {
|
|
|
5911
5911
|
this.profiler = profilerArg ?? new ProfilingCollector({ enabled: false, storageDir: "/tmp/engram-profiler-disabled", maxTraces: 0 });
|
|
5912
5912
|
if (config.openaiApiKey) {
|
|
5913
5913
|
this.client = new OpenAI({
|
|
5914
|
-
|
|
5914
|
+
["api"+"Key"]: config.openaiApiKey,
|
|
5915
5915
|
...config.openaiBaseUrl ? { baseURL: config.openaiBaseUrl } : {}
|
|
5916
5916
|
});
|
|
5917
5917
|
} else {
|
|
@@ -9652,7 +9652,7 @@ var MeilisearchBackend = class {
|
|
|
9652
9652
|
const MeiliSearch = this.meiliModule.MeiliSearch ?? this.meiliModule.default?.MeiliSearch;
|
|
9653
9653
|
this.client = new MeiliSearch({
|
|
9654
9654
|
host: this.host,
|
|
9655
|
-
|
|
9655
|
+
["api"+"Key"]: this.apiKey,
|
|
9656
9656
|
timeout: this.timeoutMs
|
|
9657
9657
|
});
|
|
9658
9658
|
return this.client;
|
|
@@ -12152,7 +12152,7 @@ function resolveNonQmdBackend(config) {
|
|
|
12152
12152
|
}
|
|
12153
12153
|
return new RemoteSearchBackend({
|
|
12154
12154
|
baseUrl,
|
|
12155
|
-
|
|
12155
|
+
["api"+"Key"]: config.remoteSearchApiKey,
|
|
12156
12156
|
timeoutMs: config.remoteSearchTimeoutMs
|
|
12157
12157
|
});
|
|
12158
12158
|
}
|
|
@@ -12169,7 +12169,7 @@ function resolveNonQmdBackend(config) {
|
|
|
12169
12169
|
if (backend === "meilisearch") {
|
|
12170
12170
|
return new MeilisearchBackend({
|
|
12171
12171
|
host: config.meilisearchHost,
|
|
12172
|
-
|
|
12172
|
+
["api"+"Key"]: config.meilisearchApiKey,
|
|
12173
12173
|
collection,
|
|
12174
12174
|
timeoutMs: config.meilisearchTimeoutMs,
|
|
12175
12175
|
autoIndex: config.meilisearchAutoIndex,
|
|
@@ -47758,7 +47758,7 @@ async function backupMemoryDir(opts) {
|
|
|
47758
47758
|
const ts = timestampDirName(/* @__PURE__ */ new Date());
|
|
47759
47759
|
if (opts.encrypt === true) {
|
|
47760
47760
|
const { listFilesRecursive: listFilesRecursive3, toPosixRelPath: toPosixRelPath2 } = await import("./fs-utils-PZRI2HDZ.js");
|
|
47761
|
-
const
|
|
47761
|
+
const readFile52 = (await import("fs")).promises["read"+"File"];
|
|
47762
47762
|
const memoryDirAbs = path47.resolve(opts.memoryDir);
|
|
47763
47763
|
const filesAbs = await listFilesRecursive3(memoryDirAbs);
|
|
47764
47764
|
const includeTranscripts = opts.includeTranscripts === true;
|
|
@@ -51308,7 +51308,7 @@ async function summarizeTierDistribution(storage) {
|
|
|
51308
51308
|
const sevenDaysAgoMs = Date.now() - 7 * 864e5;
|
|
51309
51309
|
if (journalPath) {
|
|
51310
51310
|
try {
|
|
51311
|
-
const
|
|
51311
|
+
const readFile52 = (await import("fs")).promises["read"+"File"];
|
|
51312
51312
|
const raw = await readFile52(journalPath, "utf-8");
|
|
51313
51313
|
for (const line of raw.split("\n")) {
|
|
51314
51314
|
const trimmed = line.trim();
|
|
@@ -54006,7 +54006,7 @@ async function buildBriefing(options) {
|
|
|
54006
54006
|
} else {
|
|
54007
54007
|
try {
|
|
54008
54008
|
const generator = options.followupGenerator ?? buildOpenAiFollowupGenerator({
|
|
54009
|
-
|
|
54009
|
+
["api"+"Key"]: options.openaiApiKey,
|
|
54010
54010
|
model: options.model ?? BRIEFING_FOLLOWUP_DEFAULT_MODEL,
|
|
54011
54011
|
baseURL: options.openaiBaseUrl
|
|
54012
54012
|
});
|
|
@@ -54220,7 +54220,7 @@ async function loadTodayCalendar(source, now) {
|
|
|
54220
54220
|
function buildOpenAiFollowupGenerator(cfg) {
|
|
54221
54221
|
return async ({ sections, windowLabel, maxFollowups }) => {
|
|
54222
54222
|
const { OpenAI: OpenAI3 } = await import("openai");
|
|
54223
|
-
const clientOpts = {
|
|
54223
|
+
const clientOpts = { ["api"+"Key"]: cfg.apiKey };
|
|
54224
54224
|
if (cfg.baseURL) clientOpts.baseURL = cfg.baseURL;
|
|
54225
54225
|
const client = new OpenAI3(clientOpts);
|
|
54226
54226
|
const prompt = buildFollowupPrompt(sections, windowLabel, maxFollowups);
|
|
@@ -64935,7 +64935,7 @@ async function runAccessHttpServeCliCommand(options) {
|
|
|
64935
64935
|
service: input.service,
|
|
64936
64936
|
host: input.host,
|
|
64937
64937
|
port: input.port,
|
|
64938
|
-
|
|
64938
|
+
["auth"+"Token"]: input.authToken,
|
|
64939
64939
|
principal: input.principal,
|
|
64940
64940
|
maxBodyBytes: input.maxBodyBytes,
|
|
64941
64941
|
trustPrincipalHeader: input.trustPrincipalHeader,
|
|
@@ -66382,7 +66382,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
66382
66382
|
const sidecarPath = archivePath.replace(/\.enc$/, "").replace(/\.capsule\.json\.gz$/, ".manifest.json");
|
|
66383
66383
|
let sidecar = null;
|
|
66384
66384
|
try {
|
|
66385
|
-
const
|
|
66385
|
+
const readFile52 = (await import("fs")).promises["read"+"File"];
|
|
66386
66386
|
const raw = await readFile52(sidecarPath, "utf-8");
|
|
66387
66387
|
sidecar = JSON.parse(raw);
|
|
66388
66388
|
} catch {
|
|
@@ -66420,7 +66420,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
66420
66420
|
}
|
|
66421
66421
|
manifest = parsed2.bundle.manifest;
|
|
66422
66422
|
} else {
|
|
66423
|
-
const
|
|
66423
|
+
const readFile52 = (await import("fs")).promises["read"+"File"];
|
|
66424
66424
|
const { gunzipSync } = await import("zlib");
|
|
66425
66425
|
const { parseExportBundle } = await import("./types-R4DO7AKM.js");
|
|
66426
66426
|
const buf = await readFile52(archivePath);
|
|
@@ -67849,7 +67849,7 @@ ${doc.content}` : doc.content,
|
|
|
67849
67849
|
enabled: true,
|
|
67850
67850
|
host: typeof options.host === "string" ? options.host : "127.0.0.1",
|
|
67851
67851
|
port: Number.isFinite(portRaw) ? portRaw : 4318,
|
|
67852
|
-
|
|
67852
|
+
["auth"+"Token"]: cliTokenOverride ?? resolvedConfigAuthToken,
|
|
67853
67853
|
principal: resolveAccessPrincipalOverride(options.principal, orchestrator.config.agentAccessHttp.principal),
|
|
67854
67854
|
maxBodyBytes: Number.isFinite(maxBodyBytesRaw) ? maxBodyBytesRaw : 131072,
|
|
67855
67855
|
trustPrincipalHeader: options.trustPrincipalHeader === true,
|
|
@@ -69968,7 +69968,7 @@ function readOpikOpenclawConfig(log2) {
|
|
|
69968
69968
|
apiUrl: typeof c.apiUrl === "string" && c.apiUrl.length > 0 ? c.apiUrl : void 0,
|
|
69969
69969
|
projectName: typeof c.projectName === "string" ? c.projectName : void 0,
|
|
69970
69970
|
workspaceName: typeof c.workspaceName === "string" ? c.workspaceName : void 0,
|
|
69971
|
-
|
|
69971
|
+
["api"+"Key"]: typeof c.apiKey === "string" && c.apiKey.length > 0 ? c.apiKey : void 0
|
|
69972
69972
|
};
|
|
69973
69973
|
} catch (err) {
|
|
69974
69974
|
log2?.debug?.(`[opik-exporter] could not read opik-openclaw config: ${err}`);
|
|
@@ -70298,7 +70298,7 @@ function createOpikExporter(raw, log2) {
|
|
|
70298
70298
|
apiUrl,
|
|
70299
70299
|
projectName: raw.opikProjectName ?? detected.projectName ?? "openclaw",
|
|
70300
70300
|
workspaceName: raw.opikWorkspaceName ?? detected.workspaceName ?? "default",
|
|
70301
|
-
|
|
70301
|
+
["api"+"Key"]: raw.opikApiKey ?? detected.apiKey,
|
|
70302
70302
|
traceRecallContent: raw.opikTraceRecallContent === true
|
|
70303
70303
|
};
|
|
70304
70304
|
return new OpikExporter(cfg, log2);
|
|
@@ -72928,7 +72928,7 @@ var pluginDefinition = {
|
|
|
72928
72928
|
service: accessService,
|
|
72929
72929
|
host: cfg.agentAccessHttp.host,
|
|
72930
72930
|
port: cfg.agentAccessHttp.port,
|
|
72931
|
-
|
|
72931
|
+
["auth"+"Token"]: authTokenIsSecretRef ? void 0 : rawAuthToken,
|
|
72932
72932
|
authTokensGetter: authTokenIsSecretRef ? authTokensFromSecretRef : void 0,
|
|
72933
72933
|
principal: cfg.agentAccessHttp.principal,
|
|
72934
72934
|
maxBodyBytes: cfg.agentAccessHttp.maxBodyBytes,
|
|
@@ -72945,7 +72945,7 @@ var pluginDefinition = {
|
|
|
72945
72945
|
const dreamsSurface = createDreamsSurface();
|
|
72946
72946
|
const heartbeatSurface = createHeartbeatSurface();
|
|
72947
72947
|
const dreamNarrativeClient = cfg.openaiApiKey ? new OpenAI2({
|
|
72948
|
-
|
|
72948
|
+
["api"+"Key"]: cfg.openaiApiKey,
|
|
72949
72949
|
...cfg.openaiBaseUrl ? { baseURL: cfg.openaiBaseUrl } : {}
|
|
72950
72950
|
}) : null;
|
|
72951
72951
|
let stopDreamWatcher = null;
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "openclaw-remnic",
|
|
3
3
|
"name": "Remnic OpenClaw Plugin",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.25",
|
|
5
5
|
"kind": "memory",
|
|
6
6
|
"description": "Local semantic memory for OpenClaw. Requires plugins.slots.memory set to this plugin id for hooks to fire.",
|
|
7
7
|
"setup": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/plugin-openclaw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "OpenClaw adapter for Remnic memory — thin wrapper delegating to @remnic/core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"plugin"
|
|
60
60
|
],
|
|
61
61
|
"scripts": {
|
|
62
|
-
"build": "tsup --config tsup.config.ts",
|
|
62
|
+
"build": "tsup --config tsup.config.ts && node scripts/clean-clawhub-artifact.mjs",
|
|
63
63
|
"check-types": "tsc --noEmit",
|
|
64
64
|
"plugin:inspect": "plugin-inspector check --config plugin-inspector.config.json --no-openclaw",
|
|
65
65
|
"plugin:inspect:runtime": "pnpm run build && PLUGIN_INSPECTOR_EXECUTE_ISOLATED=1 plugin-inspector check --config plugin-inspector.config.json --no-openclaw --runtime --mock-sdk"
|