@unblocklabs/unblock-memory 0.10.3 → 0.10.4

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.
@@ -208,7 +208,7 @@ function resolveCorpora(value) {
208
208
  !chatTypes.every((chatType) => CHAT_TYPES.includes(chatType))) {
209
209
  throw new Error(`unblock-memory corpus sessions chatTypes must contain channel, group, or direct`);
210
210
  }
211
- const syncIntervalMinutes = corpus.syncIntervalMinutes ?? 60;
211
+ const syncIntervalMinutes = corpus.syncIntervalMinutes ?? 5;
212
212
  if (typeof syncIntervalMinutes !== "number" || !Number.isInteger(syncIntervalMinutes) ||
213
213
  syncIntervalMinutes < 0 || syncIntervalMinutes > 1440) {
214
214
  throw new Error("unblock-memory corpus sessions syncIntervalMinutes must be an integer between 0 and 1440");
@@ -22,7 +22,6 @@ type InsideOutEvent = {
22
22
  __openclaw?: {
23
23
  senderId?: string;
24
24
  senderIsOwner?: boolean;
25
- upstreamUserText?: string;
26
25
  senderIdentity?: {
27
26
  id?: string;
28
27
  senderKind?: string;
@@ -96,7 +96,13 @@ function* interactions(source, budget, cached, after) {
96
96
  history = [];
97
97
  thread = String(nextThread);
98
98
  }
99
- text = conversationUserText(meta?.upstreamUserText ?? text, meta?.senderId)?.text ?? text;
99
+ // Replay metadata can contain the decorated model prompt, not the human reply.
100
+ const visible = conversationUserText(text, meta?.senderId);
101
+ if (!visible) {
102
+ history = [];
103
+ continue;
104
+ }
105
+ text = visible.text;
100
106
  }
101
107
  if (!text)
102
108
  continue;
@@ -107,7 +107,7 @@ Use the README's host wrapper and [host controls](#host-controls) separately.
107
107
  {
108
108
  "corpora": [
109
109
  { "name": "memory", "kind": "files", "paths": ["MEMORY.md", "USER.md", "memory/**/*.md"] },
110
- { "name": "sessions", "kind": "sessions", "chatTypes": ["channel", "group", "direct"], "syncIntervalMinutes": 60 }
110
+ { "name": "sessions", "kind": "sessions", "chatTypes": ["channel", "group", "direct"], "syncIntervalMinutes": 5 }
111
111
  ]
112
112
  }
113
113
  ```
@@ -208,7 +208,7 @@ contract; these tables explain their effects.
208
208
  | `corpora[].paths` | Required for files/skills | Nonempty exact-file/directory/glob list; workspace-relative, absolute or `~/`; directory means recursive Markdown; does not grant host write trust |
209
209
  | `corpora[sessions].chatTypes` | `['channel','group']` | Nonempty subset of channel/group/direct; DMs require `direct` |
210
210
  | `corpora[sessions].maxExpandedTokens` | `500` | 1–10,000; internal host vector retrieval expands a full turn/message when it fits. Public search and Whisperer share the fixed 1,200-character complete-passage renderer with training. |
211
- | `corpora[sessions].syncIntervalMinutes` | `60` | 0–1,440; zero manual-only; first scheduled sync after one interval; requires running Gateway |
211
+ | `corpora[sessions].syncIntervalMinutes` | `5` | 0–1,440; zero manual-only; first scheduled sync after one interval; requires running Gateway |
212
212
  | `keepEmbeddingModelWarm` | `true` | Retain embedding model/context after first use; false allows five-minute idle disposal |
213
213
  | `analysis.executable` | Unset | Optional absolute local worker path; enables ability to recluster, not automatic scheduling |
214
214
 
@@ -573,8 +573,12 @@ expressed emotion, not intensity; several emotions can be present, and they need
573
573
  not sum to one. High sadness need not mean the agent caused it.
574
574
 
575
575
  Each request contains chronological visible `history` and a separate `target`
576
- human reply. Six Noul questions judge only `target.text`, using history to interpret
577
- tone and speaker attribution. Short yes/no criteria define each emotion; subtle
576
+ human reply. Both use visible message content, never storage-only
577
+ `__openclaw.upstreamUserText` replay prompts. Recognized transport envelopes are
578
+ unwrapped; ambiguous envelopes are excluded and break the history chain.
579
+ Existing grades remain cached; this does not automatically regrade historical
580
+ successes or retry oversized failures. Six Noul questions judge only `target.text`,
581
+ using history to interpret tone and speaker attribution. Short yes/no criteria define each emotion; subtle
578
582
  emotion counts without requiring explicit emotion words. Raw tool-result messages
579
583
  and tool-call blocks never enter either field; visible assistant text explaining a
580
584
  tool's findings remains conversation text. The rubric is `emotion-presence-v2`.
package/docs/retrieval.md CHANGED
@@ -218,12 +218,12 @@ metadata. The projected file modification time matches the session
218
218
  start time for meaningful chronological cluster reads. Session results include
219
219
  provider, chat type, conversation identity, and start time as an ISO 8601 timestamp. They
220
220
  participate in the same search and clustering index as file memory. The plugin
221
- automatically checks each configured agent's sessions every 60 minutes while
221
+ automatically checks each configured agent's sessions every 5 minutes while
222
222
  the Gateway runs. Set `syncIntervalMinutes` on the `sessions` corpus to an integer
223
223
  from `1` to `1440`, or `0` for manual-only syncing. For example:
224
224
 
225
225
  ```json
226
- { "name": "sessions", "kind": "sessions", "syncIntervalMinutes": 60 }
226
+ { "name": "sessions", "kind": "sessions", "syncIntervalMinutes": 5 }
227
227
  ```
228
228
 
229
229
  The first refresh runs after one interval, not during startup. Restart the
@@ -241,7 +241,7 @@ are remembered. Index changes, missing projections, changed projection settings,
241
241
  QMD upgrades and incomplete runs invalidate the skip checkpoint; `force: true`
242
242
  bypasses both gates. `memory_sync_status` reports `lastCheckedAt`, `lastIndexedAt`
243
243
  and `skipReason` (`no_changes` or `no_indexable_changes`) separately. Existing
244
- explicit intervals remain unchanged on upgrade; set them to `60` for hourly checks.
244
+ explicit intervals remain unchanged on upgrade; set them to `5` for five-minute checks.
245
245
 
246
246
  Indexes live at `~/.openclaw/agents/<agentId>/unblock-memory/index.sqlite` (or the
247
247
  equivalent configured OpenClaw state directory). Durable agent-supplied event
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "unblock-memory",
3
3
  "name": "Unblock Memory",
4
- "version": "0.10.3",
4
+ "version": "0.10.4",
5
5
  "description": "Indexes, retrieves, and analyzes configured workspace memory with existing QMD vectors.",
6
6
  "kind": "memory",
7
7
  "activation": { "onStartup": true },
@@ -220,7 +220,7 @@
220
220
  "type": "integer",
221
221
  "minimum": 0,
222
222
  "maximum": 1440,
223
- "default": 60,
223
+ "default": 5,
224
224
  "description": "Check for session changes every N minutes while the Gateway runs; unchanged sessions skip indexing. 0 disables automatic sync. First check is after one interval."
225
225
  },
226
226
  "chatTypes": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unblocklabs/unblock-memory",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Workspace-native memory for OpenClaw, powered by QMD",
5
5
  "type": "module",
6
6
  "license": "MIT",