@unblocklabs/unblock-memory 0.10.1 → 0.10.3
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 +10 -7
- package/dist/src/abortable.d.ts +2 -0
- package/dist/src/abortable.js +4 -0
- package/dist/src/agent-paths.d.ts +5 -0
- package/dist/src/agent-paths.js +10 -0
- package/dist/src/analysis.js +13 -18
- package/dist/src/cluster-review.js +9 -7
- package/dist/src/config.js +2 -2
- package/dist/src/curation.js +3 -10
- package/dist/src/diagnostics.d.ts +6 -1
- package/dist/src/diagnostics.js +1 -1
- package/dist/src/emotion-baselines.d.ts +0 -2
- package/dist/src/emotion-baselines.js +18 -39
- package/dist/src/evidence-review.js +2 -1
- package/dist/src/extraction-chunk.js +3 -4
- package/dist/src/extraction-index.d.ts +2 -0
- package/dist/src/extraction-index.js +4 -2
- package/dist/src/extraction-runtime.js +3 -3
- package/dist/src/extraction-store.js +7 -19
- package/dist/src/extraction-worker.js +3 -2
- package/dist/src/guards.d.ts +6 -0
- package/dist/src/guards.js +12 -0
- package/dist/src/inside-out-runtime.js +4 -3
- package/dist/src/inside-out-store.js +4 -10
- package/dist/src/inside-out.js +5 -3
- package/dist/src/json-hash.d.ts +2 -0
- package/dist/src/json-hash.js +6 -0
- package/dist/src/manager.d.ts +6 -1
- package/dist/src/manager.js +62 -91
- package/dist/src/memory-database.d.ts +3 -0
- package/dist/src/memory-database.js +18 -1
- package/dist/src/memory-search.d.ts +8 -2
- package/dist/src/memory-search.js +18 -2
- package/dist/src/people-hooks.js +3 -6
- package/dist/src/people-primer-tool.js +0 -2
- package/dist/src/people-primer.js +3 -6
- package/dist/src/people-store.d.ts +2 -1
- package/dist/src/people-store.js +29 -82
- package/dist/src/people-tools.js +4 -5
- package/dist/src/plugin.js +36 -27
- package/dist/src/quality-audit.js +2 -2
- package/dist/src/query-generator.js +1 -1
- package/dist/src/response-audit.js +7 -8
- package/dist/src/response-episodes.js +5 -8
- package/dist/src/response-judge.js +2 -3
- package/dist/src/response-reviews.js +8 -18
- package/dist/src/response-runtime.js +4 -3
- package/dist/src/response-stages.js +4 -4
- package/dist/src/response-store.js +15 -44
- package/dist/src/response-text.d.ts +1 -0
- package/dist/src/response-text.js +6 -4
- package/dist/src/retrieval-telemetry.d.ts +7 -2
- package/dist/src/retrieval-telemetry.js +3 -2
- package/dist/src/runtime.js +9 -8
- package/dist/src/safety-whisperer.js +4 -12
- package/dist/src/session-projector.js +7 -14
- package/dist/src/session-sync.d.ts +1 -0
- package/dist/src/session-sync.js +13 -17
- package/dist/src/skill-whisperer.js +3 -9
- package/dist/src/slack-directory.js +1 -5
- package/dist/src/sources.js +17 -37
- package/dist/src/tool-context.d.ts +2 -0
- package/dist/src/tool-context.js +5 -1
- package/dist/src/training-input.d.ts +0 -1
- package/dist/src/training-input.js +3 -6
- package/dist/src/training-queries.d.ts +1 -1
- package/dist/src/training-queries.js +9 -8
- package/dist/src/training-retrieval.js +2 -2
- package/dist/src/training-runtime.js +3 -3
- package/dist/src/training-store.js +14 -25
- package/dist/src/typesafe-client.d.ts +8 -0
- package/dist/src/typesafe-client.js +7 -1
- package/dist/src/typesafe-review.d.ts +1 -1
- package/dist/src/typesafe-review.js +1 -3
- package/dist/src/typesafe.js +4 -7
- package/docs/configuration.md +1 -1
- package/docs/retrieval.md +34 -7
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -2
package/docs/retrieval.md
CHANGED
|
@@ -21,8 +21,16 @@ Example tool input (the `memory` corpus exists by default):
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Results use compact JSON and carry `path`, `startLine`, `endLine`, `snippet`,
|
|
24
|
-
`corpus`, and a
|
|
25
|
-
|
|
24
|
+
`corpus`, and a `score`. With `rankingMode: "typesafe_usefulness"`, this is a
|
|
25
|
+
usefulness probability rounded to hundredths; ranking and threshold filtering
|
|
26
|
+
still use full precision. With `rankingMode: "retrieval"`, the original QMD
|
|
27
|
+
per-lane reciprocal-rank score is preserved without rounding, then sorted highest
|
|
28
|
+
first (discovery order breaks ties); this is not a probability or fused RRF score.
|
|
29
|
+
Discovery is a lexical-first union, so sorting prevents vector-only top matches
|
|
30
|
+
from being buried below the lexical lane before `maxResults` truncation. A hit
|
|
31
|
+
found in both lanes retains its first-discovered score; lane scores are not summed.
|
|
32
|
+
`scoreMeaning` and `minUsefulnessApplied` identify the score contract explicitly.
|
|
33
|
+
The constant `source` and top-level `provider`
|
|
26
34
|
fields are omitted; `path` plus line numbers replace the redundant `citation`.
|
|
27
35
|
Session hits also carry session metadata and, when available,
|
|
28
36
|
`messageTimestamp`: the original timestamp text (including timezone) of the message
|
|
@@ -66,17 +74,36 @@ Search snippets are leads. Inspect attribution, qualifications, dates and adjace
|
|
|
66
74
|
context before relying on a factual claim. An old plan is not proof it happened,
|
|
67
75
|
and memory does not grant permission to act. No results may mean the wrong corpus,
|
|
68
76
|
a high threshold, an unsynced session or an unavailable index—not absence of the fact.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
When enabled and configured, TypeSafe receives the semantic query, candidate
|
|
78
|
+
excerpts, dates, corpus and source paths. If disabled, missing/unreadable credentials,
|
|
79
|
+
or **all** eligible usefulness requests fail (including billing HTTP 402, timeouts,
|
|
80
|
+
network or invalid responses), explicit search returns local retrieval-ranked leads.
|
|
81
|
+
The response includes `rankingMode: "retrieval"`, `scoreMeaning: "retrieval_rank"`,
|
|
82
|
+
`minUsefulnessApplied: false`, `fallbackReason` (`key_unavailable` or
|
|
83
|
+
`all_judgments_failed`), and a degraded warning. The requested `minUsefulness` is
|
|
84
|
+
not applied to unjudged scores. Corpus/session restrictions, complete passage
|
|
85
|
+
limits, deduplication, original source links, cancellation and `maxResults` remain
|
|
86
|
+
in force. Read sources with `memory_get` before drawing conclusions.
|
|
87
|
+
|
|
88
|
+
Partial judging failure returns **only** successfully judged results with a
|
|
89
|
+
warning; retrieval scores are never mixed with usefulness probabilities. Valid
|
|
90
|
+
judgments below `minUsefulness` still return no results, not fallback evidence.
|
|
91
|
+
An empty eligible set is an ordinary empty search when judging is available.
|
|
92
|
+
Automatic Memory Whisperer/People review policies remain strict: this fallback
|
|
93
|
+
is opt-in only for explicit `memory_search`, not automatic context injection.
|
|
73
94
|
Oversized queries are rejected before credentials, retrieval or provider calls.
|
|
74
95
|
Search initialization errors include an `error` alongside empty `results`;
|
|
75
96
|
other failures may surface as tool errors. Investigate them instead of reporting
|
|
76
97
|
“nothing is remembered.”
|
|
77
98
|
`memory_diagnostics` exposes content-free manual-search measurements under
|
|
78
99
|
`whisperers.telemetry.operations.memorySearch`: end-to-end latency, retrieval and
|
|
79
|
-
judging time, candidate/result counts and outcomes (including partial
|
|
100
|
+
judging time, candidate/result counts and outcomes (including `partial` and
|
|
101
|
+
`degraded`). `requestsSucceeded`/`requestsFailed` count individual usefulness
|
|
102
|
+
requests; `fallbackKeyUnavailable` and `fallbackAllJudgmentsFailed` count fallback
|
|
103
|
+
calls by cause. These are numeric, content-free measurements; disabled and missing
|
|
104
|
+
or unreadable keys intentionally share one reason without recording file paths.
|
|
105
|
+
Capture baseline and follow-up snapshots for weekly evaluation; counters reset on
|
|
106
|
+
process recreation and recent percentiles retain only 256 calls.
|
|
80
107
|
These counters are separate from automatic `memoryWhisperer` and internal `vector`
|
|
81
108
|
retrieval; no query or evidence text is recorded.
|
|
82
109
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "unblock-memory",
|
|
3
3
|
"name": "Unblock Memory",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.3",
|
|
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.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Workspace-native memory for OpenClaw, powered by QMD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@huggingface/tokenizers": "0.2.0",
|
|
51
|
-
"@unblocklabs/qmd": "3.0.
|
|
51
|
+
"@unblocklabs/qmd": "3.0.2",
|
|
52
52
|
"chokidar": "5.0.0",
|
|
53
53
|
"js-tiktoken": "1.0.21",
|
|
54
54
|
"picomatch": "^4.0.5",
|
|
@@ -96,5 +96,9 @@
|
|
|
96
96
|
"publishToClawHub": false,
|
|
97
97
|
"publishToNpm": true
|
|
98
98
|
}
|
|
99
|
+
},
|
|
100
|
+
"overrides": {
|
|
101
|
+
"@modelcontextprotocol/sdk": "1.32.0",
|
|
102
|
+
"hono": "4.13.11"
|
|
99
103
|
}
|
|
100
104
|
}
|