@unblocklabs/unblock-memory 0.11.0 → 0.11.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/README.md +1 -0
- package/dist/src/plugin.d.ts +4 -4
- package/dist/src/plugin.js +4 -1
- package/dist/src/response-stages.d.ts +4 -4
- package/docs/configuration.md +6 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@ keyword or vector similarity.
|
|
|
9
9
|
## Quick start
|
|
10
10
|
|
|
11
11
|
**Requirements:** Node.js 22+ and OpenClaw 2026.8.1-beta.3 or later.
|
|
12
|
+
Use the Node version required by your OpenClaw release.
|
|
12
13
|
A [TypeSafe](https://docs.typesafe.ai) API key enables usefulness ranking; without
|
|
13
14
|
it, explicit search returns labeled local search leads.
|
|
14
15
|
|
package/dist/src/plugin.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ export declare function resolveFlushPlan(params?: {
|
|
|
3
3
|
cfg?: OpenClawConfig;
|
|
4
4
|
nowMs?: number;
|
|
5
5
|
}): {
|
|
6
|
-
softThresholdTokens: number;
|
|
7
|
-
forceFlushTranscriptBytes: number;
|
|
8
|
-
reserveTokensFloor: number;
|
|
9
|
-
model: string | undefined;
|
|
10
6
|
prompt: string;
|
|
11
7
|
systemPrompt: string;
|
|
12
8
|
relativePath: string;
|
|
9
|
+
model?: string | undefined;
|
|
10
|
+
softThresholdTokens: number;
|
|
11
|
+
forceFlushTranscriptBytes: number;
|
|
12
|
+
reserveTokensFloor: number;
|
|
13
13
|
} | null;
|
|
14
14
|
export declare function registerUnblockMemory(api: OpenClawPluginApi): void;
|
package/dist/src/plugin.js
CHANGED
|
@@ -446,6 +446,9 @@ export function resolveFlushPlan(params = {}) {
|
|
|
446
446
|
const configured = params.cfg?.agents?.defaults?.compaction?.memoryFlush;
|
|
447
447
|
if (configured?.enabled === false)
|
|
448
448
|
return null;
|
|
449
|
+
// 2026.11.5+ owns model selection; preserve explicit overrides on older hosts.
|
|
450
|
+
const legacyModel = configured && "model" in configured && typeof configured.model === "string"
|
|
451
|
+
? configured.model.trim() : "";
|
|
449
452
|
const nowMs = params.nowMs ?? Date.now();
|
|
450
453
|
const date = formatDateInTimezone(nowMs, resolveTimezone(params.cfg?.agents?.defaults?.userTimezone?.trim()));
|
|
451
454
|
const target = `memory/${date}.md`;
|
|
@@ -453,7 +456,7 @@ export function resolveFlushPlan(params = {}) {
|
|
|
453
456
|
softThresholdTokens: nonNegativeInteger(configured?.softThresholdTokens, 4000),
|
|
454
457
|
forceFlushTranscriptBytes: parseByteSize(configured?.forceFlushTranscriptBytes) ?? 2 * 1024 * 1024,
|
|
455
458
|
reserveTokensFloor: 20_000,
|
|
456
|
-
model:
|
|
459
|
+
...(legacyModel ? { model: legacyModel } : {}),
|
|
457
460
|
prompt: `Pre-compaction memory flush. Store durable memories only in ${target}. If it exists, append; never overwrite it or bootstrap files. Do not create timestamped variants. If nothing is durable, reply NO_REPLY.`,
|
|
458
461
|
systemPrompt: `Capture durable memories in ${target}; append only and do not overwrite bootstrap files. Usually NO_REPLY is correct.`,
|
|
459
462
|
relativePath: target,
|
|
@@ -121,19 +121,19 @@ export declare function assessResponseStages(store: ResponseAuditStore, cohort:
|
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
123
|
feedback: {
|
|
124
|
-
|
|
124
|
+
target: {
|
|
125
125
|
type: "choice";
|
|
126
126
|
confidence: number;
|
|
127
|
-
choice: "
|
|
127
|
+
choice: "delivery" | "mixed" | "unclear" | "current_answer" | "earlier_behavior" | "proactive_action" | "external" | "new_work";
|
|
128
128
|
probabilities: {
|
|
129
129
|
[x: string]: number;
|
|
130
130
|
[x: number]: number;
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
feedbackType: {
|
|
134
134
|
type: "choice";
|
|
135
135
|
confidence: number;
|
|
136
|
-
choice: "
|
|
136
|
+
choice: "mixed" | "unrelated" | "unclear" | "acceptance" | "correction" | "continuation";
|
|
137
137
|
probabilities: {
|
|
138
138
|
[x: string]: number;
|
|
139
139
|
[x: number]: number;
|
package/docs/configuration.md
CHANGED
|
@@ -332,10 +332,15 @@ storage, `NO_REPLY` is appropriate. The date uses
|
|
|
332
332
|
`agents.defaults.userTimezone`, otherwise the system timezone.
|
|
333
333
|
|
|
334
334
|
Supported host settings: `enabled`, `softThresholdTokens` (default 4,000),
|
|
335
|
-
`forceFlushTranscriptBytes` (default 2 MiB)
|
|
335
|
+
`forceFlushTranscriptBytes` (default 2 MiB). The plugin
|
|
336
336
|
plan has a fixed 20,000-token reserve floor and supplies its own prompts; custom
|
|
337
337
|
host `memoryFlush.prompt` / `systemPrompt` are not used by this resolver.
|
|
338
338
|
|
|
339
|
+
OpenClaw 2026.11.5 and later use the session model and its normal fallbacks
|
|
340
|
+
for flushes. If you previously set `memoryFlush.model` to keep flushes local,
|
|
341
|
+
check that the session model and fallbacks are local before upgrading. On older
|
|
342
|
+
hosts, the plugin still honors a configured flush model.
|
|
343
|
+
|
|
339
344
|
Disable this plan with this **host config fragment**:
|
|
340
345
|
|
|
341
346
|
```json
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "unblock-memory",
|
|
3
3
|
"name": "Unblock Memory",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"description": "Indexes, retrieves, and analyzes configured workspace memory with existing QMD vectors.",
|
|
6
6
|
"kind": "memory",
|
|
7
7
|
"activation": { "onStartup": true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblocklabs/unblock-memory",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Workspace-native memory for OpenClaw, powered by QMD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"typebox": "1.3.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@openclaw/ai": "2026.
|
|
58
|
+
"@openclaw/ai": "2026.11.5",
|
|
59
59
|
"@openclaw/plugin-inspector": "^0.3.10",
|
|
60
60
|
"@types/node": "^24.6.0",
|
|
61
61
|
"@types/picomatch": "^4.0.2",
|
|
62
62
|
"knip": "^6.32.2",
|
|
63
|
-
"openclaw": "2026.
|
|
63
|
+
"openclaw": "2026.11.5",
|
|
64
64
|
"tsx": "^4.20.6",
|
|
65
65
|
"typescript": "^5.9.3"
|
|
66
66
|
},
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"minGatewayVersion": "2026.8.1-beta.3"
|
|
85
85
|
},
|
|
86
86
|
"build": {
|
|
87
|
-
"openclawVersion": "2026.
|
|
88
|
-
"pluginSdkVersion": "2026.
|
|
87
|
+
"openclawVersion": "2026.11.5",
|
|
88
|
+
"pluginSdkVersion": "2026.11.5"
|
|
89
89
|
},
|
|
90
90
|
"install": {
|
|
91
91
|
"npmSpec": "@unblocklabs/unblock-memory",
|