@remnic/plugin-openclaw 9.66.0 → 9.66.1
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 +4 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6993,8 +6993,8 @@ async function closeQuietly(handle) {
|
|
|
6993
6993
|
// src/memory-flush-plan.ts
|
|
6994
6994
|
var DEFAULT_MAX_TURN_CHARS = 8e3;
|
|
6995
6995
|
var MIN_MAX_TURN_CHARS = 1e3;
|
|
6996
|
-
var FLUSH_PROMPT = "Flush the recent OpenClaw transcript into Remnic memory by appending to the
|
|
6997
|
-
var FLUSH_SYSTEM_PROMPT = "You are Remnic's memory flush planner. Read the transcript and append concise durable memory notes to the file
|
|
6996
|
+
var FLUSH_PROMPT = "Flush the recent OpenClaw transcript into Remnic memory by appending durable notes to the flush-plan file. Preserve durable user preferences, project facts, decisions, corrections, and commitments. Ignore runtime metadata, credentials, and transient command noise.";
|
|
6997
|
+
var FLUSH_SYSTEM_PROMPT = "You are Remnic's memory flush planner. Read the transcript and append concise durable memory notes to the flush-plan file. Do not create dated memory paths or write credentials. Ignore runtime metadata, transient command noise, and content that is not worth remembering.";
|
|
6998
6998
|
function buildMemoryFlushPlan(options) {
|
|
6999
6999
|
const maxTurnChars = typeof options.extractionMaxTurnChars === "number" && Number.isFinite(options.extractionMaxTurnChars) ? Math.max(MIN_MAX_TURN_CHARS, Math.floor(options.extractionMaxTurnChars)) : DEFAULT_MAX_TURN_CHARS;
|
|
7000
7000
|
const flushModel = typeof options.flushModel === "string" && options.flushModel.length > 0 ? options.flushModel : void 0;
|
|
@@ -7005,7 +7005,8 @@ function buildMemoryFlushPlan(options) {
|
|
|
7005
7005
|
...flushModel ? { model: flushModel } : {},
|
|
7006
7006
|
prompt: FLUSH_PROMPT,
|
|
7007
7007
|
systemPrompt: FLUSH_SYSTEM_PROMPT,
|
|
7008
|
-
relativePath: ["state", "plugins", options.serviceId, "flush-plan.md"].join("/")
|
|
7008
|
+
relativePath: ["state", "plugins", options.serviceId, "flush-plan.md"].join("/"),
|
|
7009
|
+
writeRestrictPrefix: ["state", "plugins", options.serviceId, ""].join("/")
|
|
7009
7010
|
};
|
|
7010
7011
|
}
|
|
7011
7012
|
|
|
@@ -7068,7 +7069,6 @@ async function getJson(target, serviceId, pathname, timeoutMs) {
|
|
|
7068
7069
|
|
|
7069
7070
|
// src/delegate-flush-plan-ingest.ts
|
|
7070
7071
|
var MAX_OBSERVE_CHUNK_BYTES = 96 * 1024;
|
|
7071
|
-
var MIN_OBSERVE_CHUNK_BYTES = 4 * 1024;
|
|
7072
7072
|
var LOCK_MAX_WAIT_MS = 5e3;
|
|
7073
7073
|
var LOCK_STALE_MS = 6e4;
|
|
7074
7074
|
var MAX_RECLAIM_PASSES = 4;
|