@remnic/plugin-openclaw 9.65.8 → 9.66.0
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 +12 -13
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -123,6 +123,7 @@ import {
|
|
|
123
123
|
TAG_LIMITS
|
|
124
124
|
} from "@remnic/core/write-envelope";
|
|
125
125
|
import { stripAttributesSuffix } from "@remnic/core/storage";
|
|
126
|
+
import { isSupportPassportPrivateMemory } from "@remnic/core/support-passport";
|
|
126
127
|
import { displayErrorDetail } from "@remnic/core/runtime/better-sqlite";
|
|
127
128
|
import { isSafeRouteNamespace } from "@remnic/core/routing/engine";
|
|
128
129
|
function buildPromotionOrigin(srcNamespace, memoryId) {
|
|
@@ -154,7 +155,7 @@ async function executeMemoryPromote(orchestrator, params) {
|
|
|
154
155
|
const dstNs = toNamespace ?? orchestrator.config.sharedNamespace;
|
|
155
156
|
const src = await orchestrator.getStorage(srcNs);
|
|
156
157
|
const mem = await src.getMemoryById(memoryId);
|
|
157
|
-
if (!mem) {
|
|
158
|
+
if (!mem || isSupportPassportPrivateMemory(mem)) {
|
|
158
159
|
return `Memory not found in ${srcNs}: ${memoryId}`;
|
|
159
160
|
}
|
|
160
161
|
const dst = await orchestrator.getStorage(dstNs);
|
|
@@ -226,7 +227,7 @@ import {
|
|
|
226
227
|
import { runMemoryGovernance } from "@remnic/core/maintenance/memory-governance";
|
|
227
228
|
|
|
228
229
|
// ../../src/memory-action-target.ts
|
|
229
|
-
import { isSupportPassportPrivateMemory } from "@remnic/core";
|
|
230
|
+
import { isSupportPassportPrivateMemory as isSupportPassportPrivateMemory2 } from "@remnic/core";
|
|
230
231
|
function clampUnitInterval(value, fallback) {
|
|
231
232
|
if (typeof value !== "number" || !Number.isFinite(value)) return fallback;
|
|
232
233
|
if (value < 0) return 0;
|
|
@@ -263,7 +264,7 @@ async function readReferencedMemoryForPolicyEligibility(storage, memoryId) {
|
|
|
263
264
|
return (await storage.readArchivedMemories?.())?.find((memory) => memory.frontmatter.id === memoryId);
|
|
264
265
|
}
|
|
265
266
|
function blocksSupportPassportMutation(action, memory) {
|
|
266
|
-
return (action === "update_note" || action === "discard" || action === "link_graph") && Boolean(memory &&
|
|
267
|
+
return (action === "update_note" || action === "discard" || action === "link_graph") && Boolean(memory && isSupportPassportPrivateMemory2(memory));
|
|
267
268
|
}
|
|
268
269
|
|
|
269
270
|
// ../../src/tools.ts
|
|
@@ -8939,7 +8940,7 @@ function buildTurnFingerprint(input) {
|
|
|
8939
8940
|
import { planRecallMode } from "@remnic/core/intent";
|
|
8940
8941
|
import {
|
|
8941
8942
|
expandTildePath as expandTildePath4,
|
|
8942
|
-
isSupportPassportPrivateMemory as
|
|
8943
|
+
isSupportPassportPrivateMemory as isSupportPassportPrivateMemory3,
|
|
8943
8944
|
renderMemoryContextPrompt as renderSharedMemoryContextPrompt,
|
|
8944
8945
|
resolveAgentAccessAuthToken,
|
|
8945
8946
|
resolvePrincipal,
|
|
@@ -11222,16 +11223,14 @@ Keep the reflection grounded in the evidence below.
|
|
|
11222
11223
|
namespaces: namespace ? [namespace] : void 0,
|
|
11223
11224
|
mode: resolvedMode
|
|
11224
11225
|
}),
|
|
11225
|
-
filterPrivate:
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
);
|
|
11230
|
-
return minScore === void 0 ? visible : visible.filter((result) => result.score >= minScore);
|
|
11231
|
-
},
|
|
11226
|
+
filterPrivate: (results) => orchestrator.filterPrivateSearchResults(
|
|
11227
|
+
results,
|
|
11228
|
+
namespace ? [namespace] : []
|
|
11229
|
+
),
|
|
11232
11230
|
isExcluded: (resultPath) => isMemoryArtifactPath(resultPath)
|
|
11233
11231
|
});
|
|
11234
|
-
|
|
11232
|
+
const scoredResults = minScore === void 0 ? visibleResults : visibleResults.filter((result) => result.score >= minScore);
|
|
11233
|
+
return scoredResults.map((result, index) => {
|
|
11235
11234
|
const candidate = result;
|
|
11236
11235
|
const rawPath = typeof candidate.path === "string" ? candidate.path : typeof candidate.id === "string" ? candidate.id : `memory-${index + 1}`;
|
|
11237
11236
|
const absolutePath = readScope.absolutize(rawPath);
|
|
@@ -12202,7 +12201,7 @@ Keep the reflection grounded in the evidence below.
|
|
|
12202
12201
|
const resolved = await readMemoryByLookup(lookup, agentSessionKey);
|
|
12203
12202
|
if (!resolved) return null;
|
|
12204
12203
|
const { memory, displayPath } = resolved;
|
|
12205
|
-
if (isMemoryArtifactPath(displayPath) || isMemoryArtifactPath(memory.path) ||
|
|
12204
|
+
if (isMemoryArtifactPath(displayPath) || isMemoryArtifactPath(memory.path) || isSupportPassportPrivateMemory3(memory)) {
|
|
12206
12205
|
return null;
|
|
12207
12206
|
}
|
|
12208
12207
|
const allLines = memory.content.split(/\r?\n/);
|