@unblocklabs/unblock-memory 0.13.0 → 0.14.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/defaults.json +162 -0
- package/dist/src/cluster-review.js +6 -5
- package/dist/src/config.js +33 -30
- package/dist/src/decision-client.d.ts +8 -2
- package/dist/src/decision-client.js +22 -9
- package/dist/src/decision-ranking.js +2 -1
- package/dist/src/decision-review.js +8 -7
- package/dist/src/defaults.d.ts +8 -0
- package/dist/src/defaults.js +128 -0
- package/dist/src/emotion-baselines.js +3 -2
- package/dist/src/evidence-review.js +7 -4
- package/dist/src/extraction-chunk.js +2 -1
- package/dist/src/extraction-config.js +4 -2
- package/dist/src/extraction-model.d.ts +23 -17
- package/dist/src/extraction-model.js +164 -61
- package/dist/src/extraction-runtime.js +5 -4
- package/dist/src/extraction-source.js +2 -1
- package/dist/src/extraction-store.d.ts +1 -0
- package/dist/src/extraction-store.js +4 -2
- package/dist/src/extraction-worker.d.ts +2 -3
- package/dist/src/extraction-worker.js +12 -10
- package/dist/src/inside-out-runtime.js +2 -1
- package/dist/src/inside-out-sources.js +2 -1
- package/dist/src/inside-out-store.js +3 -2
- package/dist/src/inside-out.js +5 -2
- package/dist/src/manager.js +5 -4
- package/dist/src/memory-database.js +3 -2
- package/dist/src/memory-passage.d.ts +2 -2
- package/dist/src/memory-passage.js +3 -2
- package/dist/src/memory-whisperer.js +16 -8
- package/dist/src/my-turn.js +5 -4
- package/dist/src/people-background.d.ts +1 -1
- package/dist/src/people-background.js +2 -1
- package/dist/src/people-dossier-review.js +4 -3
- package/dist/src/people-learning-cron.js +2 -1
- package/dist/src/people-learning-inventory.js +2 -1
- package/dist/src/people-primer-tool.js +5 -4
- package/dist/src/people-primer.js +5 -4
- package/dist/src/people-store.js +2 -1
- package/dist/src/people-tools.js +2 -1
- package/dist/src/plugin.js +3 -2
- package/dist/src/quality-audit.js +3 -2
- package/dist/src/quality-triage.js +4 -3
- package/dist/src/query-generator.js +5 -2
- package/dist/src/response-audit.js +3 -2
- package/dist/src/response-config.js +3 -1
- package/dist/src/response-episodes.js +3 -2
- package/dist/src/response-identity.js +2 -1
- package/dist/src/response-memory.js +2 -1
- package/dist/src/response-outcome.js +9 -8
- package/dist/src/response-reviews.js +3 -2
- package/dist/src/response-runtime.js +2 -1
- package/dist/src/response-store.js +26 -25
- package/dist/src/review-tools.js +4 -3
- package/dist/src/runtime.js +2 -1
- package/dist/src/safety-config.js +3 -2
- package/dist/src/safety-whisperer.js +3 -3
- package/dist/src/session-sync.js +2 -1
- package/dist/src/skill-whisperer.d.ts +1 -1
- package/dist/src/skill-whisperer.js +4 -3
- package/dist/src/slack-directory.js +3 -2
- package/dist/src/training-gate.d.ts +2 -2
- package/dist/src/training-gate.js +3 -2
- package/dist/src/training-input.js +4 -3
- package/dist/src/training-judge.js +2 -1
- package/dist/src/training-models.d.ts +1 -1
- package/dist/src/training-models.js +9 -7
- package/dist/src/training-queries.d.ts +1 -1
- package/dist/src/training-queries.js +4 -3
- package/dist/src/training-retrieval.d.ts +3 -3
- package/dist/src/training-retrieval.js +4 -3
- package/dist/src/training-store.js +3 -2
- package/dist/src/training.js +2 -1
- package/dist/src/whisperer-context.d.ts +1 -2
- package/dist/src/whisperer-context.js +2 -2
- package/docs/configuration.md +7 -1
- package/docs/extraction.md +25 -36
- package/docs/retrieval.md +3 -10
- package/openclaw.plugin.json +42 -55
- package/package.json +5 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { DEFAULTS } from "./defaults.js";
|
|
2
|
+
export const MAX_SKILL_QUERY_CHARS = DEFAULTS.skillWhisperer.contextMaxChars;
|
|
2
3
|
// Leaves room for the longest decision question under a 32k state-plus-question limit.
|
|
3
|
-
export const MAX_STATE_TOKENS = 24_000;
|
|
4
4
|
/** Only visible user/assistant text; never system, tool, image, or thinking blocks. */
|
|
5
5
|
export function messageText(message) {
|
|
6
6
|
if (!message || typeof message !== "object" || !("role" in message) || !("content" in message) ||
|
package/docs/configuration.md
CHANGED
|
@@ -38,6 +38,12 @@ not disable people tools/storage or erase dossiers.
|
|
|
38
38
|
|
|
39
39
|
## Shared decision model credentials
|
|
40
40
|
|
|
41
|
+
Operational defaults are bundled in `defaults.json`. To override them, set
|
|
42
|
+
`UNBLOCK_MEMORY_DEFAULTS_FILE` to an absolute path to a JSON file before starting
|
|
43
|
+
the Gateway (or running a standalone command). Supply only the keys you want
|
|
44
|
+
to change; unknown keys and invalid values fail startup. Explicit plugin config
|
|
45
|
+
takes precedence for settings exposed there.
|
|
46
|
+
|
|
41
47
|
All plugin decision-model features use `plugins.entries.unblock-memory.config.decisionModel`.
|
|
42
48
|
Older provider config keys are rejected. When upgrading, remove the old block and
|
|
43
49
|
configure a credential for the endpoint you intend to use; do not copy the old key into the default route.
|
|
@@ -240,7 +246,7 @@ contract; these tables explain their effects.
|
|
|
240
246
|
| `skillWhisperer.cooldownTurns` | `10` | Nonnegative user-turn count; no fallback to weaker cooling-down alternatives |
|
|
241
247
|
| `memoryWhisperer.enabled` | `false` | Requires explicit approved non-skill corpora, decision model key and host hooks |
|
|
242
248
|
| `memoryWhisperer.corpora` | `[]` | Explicit known corpus names; required nonempty when enabled; no `all` or skills |
|
|
243
|
-
| `memoryWhisperer.api.endpoint` |
|
|
249
|
+
| `memoryWhisperer.api.endpoint` | Empty | Optional query-model API URL. Unset or empty uses deterministic local queries. |
|
|
244
250
|
| `memoryWhisperer.api.apiKeyFile` | unset | Absolute path to a file containing the API bearer token. Missing credentials, timeouts, or API failures fall back to deterministic local queries before decision model judging. |
|
|
245
251
|
| `memoryWhisperer.mlx` | unset | Deprecated: old absolute `{pythonPath, modelPath}` values are accepted but ignored for upgrade compatibility. Remove after configuring `api`. |
|
|
246
252
|
| `memoryWhisperer.minUsefulness` | `0.5` | 0–1, minimum Noul yes-probability per candidate; explicit overrides are preserved |
|
package/docs/extraction.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Session memory extraction
|
|
2
2
|
|
|
3
|
-
Opt-in lasting-fact extraction: **
|
|
4
|
-
|
|
3
|
+
Opt-in lasting-fact extraction: **d1.2 selects transcript spans → code maps them to exact quotes →
|
|
4
|
+
d1.2 checks support, retention, and corrections → SQLite stores accepted facts → optional QMD search.**
|
|
5
5
|
It is independent of Inside Out: emotion scores do not select or strengthen memories.
|
|
6
6
|
It never writes `MEMORY.md`, daily Markdown, or people dossiers.
|
|
7
7
|
|
|
@@ -34,28 +34,15 @@ and be a subset of the configured sessions corpus. This is channel agnostic.
|
|
|
34
34
|
Configure [decision model credentials](configuration.md#shared-decision-model-credentials).
|
|
35
35
|
Manual runs use the same Gateway-owned worker as scheduled runs; the Gateway must
|
|
36
36
|
be running and the CLI caller needs `operator.admin`. Reports can be read offline.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
host policy **alongside `config`** in the plugin entry:
|
|
37
|
+
Extraction requires host visible-transcript delta reads and a decision-model key.
|
|
38
|
+
It does not use host LLM completion or require a plugin `llm` grant. Missing
|
|
39
|
+
decision-model credentials prevent source scans and model calls.
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"allowedModels": ["openai/gpt-5.6-luna"],
|
|
48
|
-
"allowedCompletionModels": ["openai/gpt-5.6-luna"]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Luna uses the host's configured agent runtime and credentials, with zero tools and
|
|
54
|
-
no alternate-model/provider fallback. Missing decision-model credentials prevent source
|
|
55
|
-
scans and model calls. Enabling approves sending selected conversation text to
|
|
56
|
-
Luna and the configured decision endpoint (defaults to
|
|
57
|
-
`https://codex.unblocklabs.ai/v1/decisions` → OpenRouter `liquid/d1.2-ultra`);
|
|
58
|
-
tool calls/results and hidden thinking are removed first.
|
|
41
|
+
Enabling extraction sends selected visible conversation text to the configured
|
|
42
|
+
decision provider. The default is `liquid/d1.2-ultra` via
|
|
43
|
+
`https://codex.unblocklabs.ai/v1/decisions`. A custom endpoint must support both
|
|
44
|
+
`/decisions` and its sibling `/extractions`. Tool calls, tool results, and hidden
|
|
45
|
+
thinking are removed first.
|
|
59
46
|
|
|
60
47
|
## Run, backfill, inspect
|
|
61
48
|
|
|
@@ -79,11 +66,16 @@ preferences, enduring project purposes, and adopted standing rules. Omit guesses
|
|
|
79
66
|
hypotheticals, one-off tasks, temporary status, release/incident details, generic
|
|
80
67
|
technical knowledge, and credentials. The original transcripts remain searchable.
|
|
81
68
|
|
|
82
|
-
A blue guess followed by a human correction to red retains
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
A blue guess followed by a human correction to red retains the resolved preference.
|
|
70
|
+
Proposals store speaker-attributed verbatim quotes. If a reply needs the preceding
|
|
71
|
+
question to make sense, the proposal can quote both turns. At least one quote must
|
|
72
|
+
come from a new message. List items below 0.50 confidence are skipped when the
|
|
73
|
+
provider supplies per-item confidence.
|
|
74
|
+
|
|
75
|
+
If prior facts exist, a choice judgment looks for an explicit correction or update.
|
|
76
|
+
A second decision checks support and retention, and rechecks any proposed replacement
|
|
77
|
+
against the original evidence. All applicable thresholds must pass, and support must
|
|
78
|
+
select `supported`, even if its threshold is lowered.
|
|
87
79
|
|
|
88
80
|
The three thresholds accept 0–1 and default to 0.90. Lowering retention changes
|
|
89
81
|
certainty about category membership, not the categories themselves. Agents can
|
|
@@ -113,14 +105,11 @@ The Gateway owns the scheduler; no cron/launchd job is added. Interval 0 means
|
|
|
113
105
|
manual-only; the maximum is 1,440 minutes (daily). Defaults are disabled, unpublished,
|
|
114
106
|
no approved chat types, hourly, six overlap messages, and five chunks per run.
|
|
115
107
|
|
|
116
|
-
Chunks target 24k input tokens and cap at 28k
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
message-ID citations. A session above 100 retained facts or 40k characters of prior
|
|
122
|
-
facts pauses rather than silently dropping comparison context. The output limit
|
|
123
|
-
is advisory on some host runtimes; malformed/truncated JSON is retried, never saved.
|
|
108
|
+
Chunks target 24k input tokens and cap at 28k using an `o200k_base` estimate.
|
|
109
|
+
Quotes are limited to 512 characters, and overlap is capped at 8k tokens by default.
|
|
110
|
+
Oversized messages split with resumable offsets and original message-ID citations.
|
|
111
|
+
A session above 100 retained facts or 40k characters of prior facts pauses rather
|
|
112
|
+
than silently dropping comparison context. Model errors leave the chunk uncommitted.
|
|
124
113
|
|
|
125
114
|
This is a conservative v1, not a calibrated guarantee of memory recall or truth.
|
|
126
115
|
Start with a single-session shadow run and inspect the retained facts before publishing.
|
package/docs/retrieval.md
CHANGED
|
@@ -409,8 +409,7 @@ are triggered by this feature beyond the memory manager's normal initialization.
|
|
|
409
409
|
|
|
410
410
|
### API query generation (Memory Whisperer remains off by default)
|
|
411
411
|
|
|
412
|
-
|
|
413
|
-
and explicitly enable Memory Whisperer only when ready:
|
|
412
|
+
Memory Whisperer uses deterministic queries by default. To use a resident V2 query-model API, explicitly configure its endpoint and credential file:
|
|
414
413
|
|
|
415
414
|
```json
|
|
416
415
|
{
|
|
@@ -419,20 +418,14 @@ and explicitly enable Memory Whisperer only when ready:
|
|
|
419
418
|
"corpora": ["memory", "knowledge", "sessions"],
|
|
420
419
|
"timeoutMs": 8000,
|
|
421
420
|
"api": {
|
|
422
|
-
"endpoint": "http://
|
|
421
|
+
"endpoint": "http://127.0.0.1:18087",
|
|
423
422
|
"apiKeyFile": "/absolute/path/to/memory-query-api/api-token"
|
|
424
423
|
}
|
|
425
424
|
}
|
|
426
425
|
}
|
|
427
426
|
```
|
|
428
427
|
|
|
429
|
-
The
|
|
430
|
-
the same API/model themselves and override the endpoint with `http://127.0.0.1:18087`.
|
|
431
|
-
The plugin does not launch Python, download weights, or manage the server. The host
|
|
432
|
-
service must retain and warm the model and restart it after failure. The Studio
|
|
433
|
-
service starts at Roman's login, uses bearer authentication and a client-IP allowlist;
|
|
434
|
-
each new fleet client must be provisioned there before enabling hints. Plain HTTP is
|
|
435
|
-
for the trusted LAN/loopback only; use TLS or a private tunnel across untrusted networks.
|
|
428
|
+
The plugin does not launch or manage the server. Use plain HTTP only on trusted networks; use TLS or a private tunnel otherwise.
|
|
436
429
|
Visible conversation text is sent to this endpoint, never tool outputs/thinking.
|
|
437
430
|
Approve only corpora suitable for every audience of the agent.
|
|
438
431
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "unblock-memory",
|
|
3
3
|
"name": "Unblock Memory",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"description": "Indexes, retrieves, and analyzes configured workspace memory with existing QMD vectors.",
|
|
6
6
|
"kind": "memory",
|
|
7
7
|
"activation": { "onStartup": true },
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"help": "Model alias sent to the decision endpoint. Defaults to liquid/d1.2-ultra."
|
|
81
81
|
},
|
|
82
82
|
"decisionModel.apiKey": { "label": "Decision API Key", "sensitive": true },
|
|
83
|
-
"decisionModel.timeoutMs": { "label": "Decision Request Timeout", "help": "Per-request timeout, not the whole operation. People primer/dossier review use peoplePrimer.timeoutMs instead; Memory Whisperer has its own total deadline, Skill Whisperer
|
|
83
|
+
"decisionModel.timeoutMs": { "label": "Decision Request Timeout", "help": "Per-request timeout, not the whole operation. People primer/dossier review use peoplePrimer.timeoutMs instead; Memory Whisperer has its own total deadline, Skill Whisperer and My Turn have their own total deadlines." },
|
|
84
84
|
"decisionModel.apiKeyFile": {
|
|
85
85
|
"label": "Decision API Key File",
|
|
86
86
|
"help": "Absolute path to a plaintext API key or a dotenv file (CODEX_LB_API_KEY, or DECISION_MODEL_API_KEY for custom endpoints). Use a key for the configured endpoint."
|
|
@@ -136,10 +136,10 @@
|
|
|
136
136
|
"type": "object", "additionalProperties": false,
|
|
137
137
|
"properties": {
|
|
138
138
|
"enabled": { "type": "boolean", "default": false },
|
|
139
|
-
"intervalMinutes": { "type": "integer", "minimum": 0, "maximum": 10080
|
|
140
|
-
"maxInteractions": { "type": "integer", "minimum": 1, "maximum": 10000
|
|
141
|
-
"maxContextTokens": { "type": "integer", "minimum": 256, "maximum": 30000
|
|
142
|
-
"baselineMinInteractions": { "type": "integer", "minimum": 1, "maximum": 10000
|
|
139
|
+
"intervalMinutes": { "type": "integer", "minimum": 0, "maximum": 10080 },
|
|
140
|
+
"maxInteractions": { "type": "integer", "minimum": 1, "maximum": 10000 },
|
|
141
|
+
"maxContextTokens": { "type": "integer", "minimum": 256, "maximum": 30000 },
|
|
142
|
+
"baselineMinInteractions": { "type": "integer", "minimum": 1, "maximum": 10000 }
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
"extraction": {
|
|
@@ -147,13 +147,13 @@
|
|
|
147
147
|
"properties": {
|
|
148
148
|
"enabled": { "type": "boolean", "default": false },
|
|
149
149
|
"publish": { "type": "boolean", "default": false },
|
|
150
|
-
"intervalMinutes": { "type": "integer", "minimum": 0, "maximum": 1440
|
|
150
|
+
"intervalMinutes": { "type": "integer", "minimum": 0, "maximum": 1440 },
|
|
151
151
|
"chatTypes": { "type": "array", "items": { "enum": ["direct", "channel", "group"] }, "default": [] },
|
|
152
|
-
"historyMessages": { "type": "integer", "minimum": 0, "maximum": 20
|
|
153
|
-
"maxBatches": { "type": "integer", "minimum": 1, "maximum": 50
|
|
154
|
-
"minSupport": { "type": "number", "minimum": 0, "maximum": 1
|
|
155
|
-
"minRetention": { "type": "number", "minimum": 0, "maximum": 1
|
|
156
|
-
"minReplacement": { "type": "number", "minimum": 0, "maximum": 1
|
|
152
|
+
"historyMessages": { "type": "integer", "minimum": 0, "maximum": 20 },
|
|
153
|
+
"maxBatches": { "type": "integer", "minimum": 1, "maximum": 50 },
|
|
154
|
+
"minSupport": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
155
|
+
"minRetention": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
156
|
+
"minReplacement": { "type": "number", "minimum": 0, "maximum": 1 }
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"responseAudit": {
|
|
@@ -163,10 +163,10 @@
|
|
|
163
163
|
"sentimentEnabled": { "type": "boolean", "default": true },
|
|
164
164
|
"senderIds": { "type": "array", "maxItems": 50, "items": { "type": "string", "pattern": "\\S" }, "default": [] },
|
|
165
165
|
"chatTypes": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string", "enum": ["direct", "group", "channel"] }, "default": ["direct"] },
|
|
166
|
-
"historyMessages": { "type": "integer", "minimum": 0, "maximum": 20
|
|
167
|
-
"lookbackDays": { "type": "integer", "minimum": 1, "maximum": 90
|
|
168
|
-
"maxEpisodes": { "type": "integer", "minimum": 1, "maximum": 100
|
|
169
|
-
"intervalMinutes": { "type": "integer", "minimum": 0, "maximum": 1440
|
|
166
|
+
"historyMessages": { "type": "integer", "minimum": 0, "maximum": 20 },
|
|
167
|
+
"lookbackDays": { "type": "integer", "minimum": 1, "maximum": 90 },
|
|
168
|
+
"maxEpisodes": { "type": "integer", "minimum": 1, "maximum": 100 },
|
|
169
|
+
"intervalMinutes": { "type": "integer", "minimum": 0, "maximum": 1440 },
|
|
170
170
|
"memoryCorpora": { "type": "array", "maxItems": 50, "items": { "type": "string", "pattern": "\\S" }, "default": [] }
|
|
171
171
|
}
|
|
172
172
|
},
|
|
@@ -176,9 +176,9 @@
|
|
|
176
176
|
"properties": {
|
|
177
177
|
"enabled": { "type": "boolean", "default": false },
|
|
178
178
|
"corpora": { "type": "array", "items": { "type": "string", "pattern": "\\S" }, "default": [] },
|
|
179
|
-
"minNoise": { "type": "number", "minimum": 0, "maximum": 1
|
|
179
|
+
"minNoise": { "type": "number", "minimum": 0, "maximum": 1 }
|
|
180
180
|
},
|
|
181
|
-
"default": { "enabled": false, "corpora": []
|
|
181
|
+
"default": { "enabled": false, "corpora": [] }
|
|
182
182
|
},
|
|
183
183
|
"peoplePrimer": {
|
|
184
184
|
"type": "object", "additionalProperties": false,
|
|
@@ -292,17 +292,16 @@
|
|
|
292
292
|
"additionalProperties": false,
|
|
293
293
|
"properties": {
|
|
294
294
|
"enabled": { "type": "boolean", "default": false },
|
|
295
|
-
"maxChars": { "type": "integer", "minimum": 1, "maximum": 4000
|
|
295
|
+
"maxChars": { "type": "integer", "minimum": 1, "maximum": 4000 }
|
|
296
296
|
},
|
|
297
|
-
"default": { "enabled": false
|
|
297
|
+
"default": { "enabled": false }
|
|
298
298
|
},
|
|
299
299
|
"todos": {
|
|
300
300
|
"type": "object",
|
|
301
301
|
"additionalProperties": false,
|
|
302
302
|
"properties": {
|
|
303
|
-
"maxOpen": { "type": "integer", "minimum": 1, "maximum": 10000
|
|
304
|
-
}
|
|
305
|
-
"default": { "maxOpen": 1000 }
|
|
303
|
+
"maxOpen": { "type": "integer", "minimum": 1, "maximum": 10000 }
|
|
304
|
+
}
|
|
306
305
|
},
|
|
307
306
|
"learning": {
|
|
308
307
|
"type": "object", "additionalProperties": false,
|
|
@@ -333,8 +332,7 @@
|
|
|
333
332
|
},
|
|
334
333
|
"default": {
|
|
335
334
|
"enabled": false,
|
|
336
|
-
"whisperer": { "enabled": false
|
|
337
|
-
"todos": { "maxOpen": 1000 }
|
|
335
|
+
"whisperer": { "enabled": false }
|
|
338
336
|
}
|
|
339
337
|
},
|
|
340
338
|
"decisionModel": {
|
|
@@ -346,13 +344,12 @@
|
|
|
346
344
|
"endpoint": {
|
|
347
345
|
"type": "string",
|
|
348
346
|
"format": "uri",
|
|
349
|
-
"pattern": "^[Hh][Tt][Tt][Pp](?:[Ss]://(?:\\[[0-9A-Fa-f:.]+\\]|[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?\\.?)|://(?:[Ll][Oo][Cc][Aa][Ll][Hh][Oo][Ss][Tt]|127\\.0\\.0\\.1|\\[::1\\]))(?::\\d+)?(?:/[^\\s?#]*)?$"
|
|
350
|
-
"default": "https://codex.unblocklabs.ai/v1/decisions"
|
|
347
|
+
"pattern": "^[Hh][Tt][Tt][Pp](?:[Ss]://(?:\\[[0-9A-Fa-f:.]+\\]|[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?\\.?)|://(?:[Ll][Oo][Cc][Aa][Ll][Hh][Oo][Ss][Tt]|127\\.0\\.0\\.1|\\[::1\\]))(?::\\d+)?(?:/[^\\s?#]*)?$"
|
|
351
348
|
},
|
|
352
349
|
"model": { "type": "string", "pattern": "\\S" },
|
|
353
350
|
"apiKey": { "type": "string", "pattern": "\\S" },
|
|
354
351
|
"apiKeyFile": { "type": "string", "pattern": "\\S" },
|
|
355
|
-
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 10000
|
|
352
|
+
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 10000 }
|
|
356
353
|
}
|
|
357
354
|
},
|
|
358
355
|
"memoryWhisperer": {
|
|
@@ -361,12 +358,11 @@
|
|
|
361
358
|
"properties": {
|
|
362
359
|
"api": {
|
|
363
360
|
"type": "object", "additionalProperties": false,
|
|
364
|
-
"description": "
|
|
361
|
+
"description": "Optional authenticated query-model API. An empty or omitted endpoint uses deterministic local queries unless overridden by operational defaults.",
|
|
365
362
|
"properties": {
|
|
366
|
-
"endpoint": { "type": "string", "pattern": "^https?://"
|
|
363
|
+
"endpoint": { "type": "string", "pattern": "^(?:$|https?://)" },
|
|
367
364
|
"apiKeyFile": { "type": "string", "pattern": "^/", "description": "Absolute path to the API bearer token file. When unset or unreadable, Memory Whisperer falls back to deterministic local queries." }
|
|
368
|
-
}
|
|
369
|
-
"default": { "endpoint": "http://192.168.1.191:18087" }
|
|
365
|
+
}
|
|
370
366
|
},
|
|
371
367
|
"mlx": {
|
|
372
368
|
"type": "object", "additionalProperties": false,
|
|
@@ -377,25 +373,23 @@
|
|
|
377
373
|
"modelPath": { "type": "string", "pattern": "^/" }
|
|
378
374
|
}
|
|
379
375
|
},
|
|
380
|
-
"complementaryHints": { "type": "boolean", "default": false, "description": "Optionally remove confidently redundant hints with
|
|
376
|
+
"complementaryHints": { "type": "boolean", "default": false, "description": "Optionally remove confidently redundant hints with one decision-model request per directional pair. Uncertainty retains hints." },
|
|
381
377
|
"enabled": { "type": "boolean", "default": false },
|
|
382
378
|
"corpora": { "type": "array", "items": { "type": "string", "pattern": "\\S" }, "default": [] },
|
|
383
|
-
"minUsefulness": { "type": "number", "minimum": 0, "maximum": 1
|
|
384
|
-
"maxHints": { "type": "integer", "minimum": 1, "maximum": 3
|
|
385
|
-
"cooldownTurns": { "type": "integer", "minimum": 0, "maximum": 1000
|
|
386
|
-
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 10000
|
|
379
|
+
"minUsefulness": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
380
|
+
"maxHints": { "type": "integer", "minimum": 1, "maximum": 3 },
|
|
381
|
+
"cooldownTurns": { "type": "integer", "minimum": 0, "maximum": 1000 },
|
|
382
|
+
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 10000 }
|
|
387
383
|
},
|
|
388
384
|
"default": {
|
|
389
|
-
"enabled": false, "corpora": []
|
|
390
|
-
"maxHints": 3, "cooldownTurns": 10, "timeoutMs": 3000,
|
|
391
|
-
"api": { "endpoint": "http://192.168.1.191:18087" }
|
|
385
|
+
"enabled": false, "corpora": []
|
|
392
386
|
}
|
|
393
387
|
},
|
|
394
388
|
"myTurn": {
|
|
395
389
|
"type": "object", "additionalProperties": false,
|
|
396
390
|
"properties": {
|
|
397
391
|
"enabled": { "type": "boolean", "default": false },
|
|
398
|
-
"historyMessages": { "type": "integer", "minimum": 1, "maximum": 50
|
|
392
|
+
"historyMessages": { "type": "integer", "minimum": 1, "maximum": 50 },
|
|
399
393
|
"channels": {
|
|
400
394
|
"type": "object",
|
|
401
395
|
"propertyNames": { "pattern": "^[a-z0-9][a-z0-9_-]*$" },
|
|
@@ -406,21 +400,16 @@
|
|
|
406
400
|
"default": {}
|
|
407
401
|
}
|
|
408
402
|
},
|
|
409
|
-
"default": { "enabled": false, "
|
|
403
|
+
"default": { "enabled": false, "channels": {} }
|
|
410
404
|
},
|
|
411
405
|
"skillWhisperer": {
|
|
412
406
|
"type": "object",
|
|
413
407
|
"additionalProperties": false,
|
|
414
408
|
"properties": {
|
|
415
409
|
"enabled": { "type": "boolean", "description": "Defaults to true when a corpus with kind \"skills\" is configured, otherwise false. An explicit true without one is ignored with a warning." },
|
|
416
|
-
"historyMessages": { "type": "integer", "minimum": 0
|
|
417
|
-
"minScore": { "type": "number", "minimum": 0, "maximum": 1
|
|
418
|
-
"cooldownTurns": { "type": "integer", "minimum": 0
|
|
419
|
-
},
|
|
420
|
-
"default": {
|
|
421
|
-
"historyMessages": 5,
|
|
422
|
-
"minScore": 0.5,
|
|
423
|
-
"cooldownTurns": 10
|
|
410
|
+
"historyMessages": { "type": "integer", "minimum": 0 },
|
|
411
|
+
"minScore": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
412
|
+
"cooldownTurns": { "type": "integer", "minimum": 0 }
|
|
424
413
|
}
|
|
425
414
|
},
|
|
426
415
|
"safetyWhisperer": {
|
|
@@ -429,8 +418,8 @@
|
|
|
429
418
|
"description": "Optional prompt-level guardrail for sensitive request scenarios. Fails open when the check cannot run.",
|
|
430
419
|
"properties": {
|
|
431
420
|
"enabled": { "type": "boolean", "default": false },
|
|
432
|
-
"historyMessages": { "type": "integer", "minimum": 0, "maximum": 20
|
|
433
|
-
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 10000
|
|
421
|
+
"historyMessages": { "type": "integer", "minimum": 0, "maximum": 20 },
|
|
422
|
+
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 10000 },
|
|
434
423
|
"excludedChannels": {
|
|
435
424
|
"type": "array",
|
|
436
425
|
"maxItems": 500,
|
|
@@ -459,7 +448,7 @@
|
|
|
459
448
|
"enabled": { "type": "boolean", "default": true },
|
|
460
449
|
"instructions": { "type": "string", "pattern": "\\S", "maxLength": 2000, "description": "What requests this scenario covers, including exclusions." },
|
|
461
450
|
"flaggedPrompt": { "type": "string", "pattern": "\\S", "maxLength": 2000, "description": "Appended next to the human message when an unapproved requestor's message matches." },
|
|
462
|
-
"minProbability": { "type": "number", "minimum": 0, "maximum": 1, "
|
|
451
|
+
"minProbability": { "type": "number", "minimum": 0, "maximum": 1, "description": "Minimum decision-model yes-probability that the current request is covered." },
|
|
463
452
|
"agentIds": {
|
|
464
453
|
"type": "array",
|
|
465
454
|
"minItems": 1,
|
|
@@ -503,8 +492,6 @@
|
|
|
503
492
|
},
|
|
504
493
|
"default": {
|
|
505
494
|
"enabled": false,
|
|
506
|
-
"historyMessages": 6,
|
|
507
|
-
"timeoutMs": 3000,
|
|
508
495
|
"excludedChannels": [],
|
|
509
496
|
"scenarios": []
|
|
510
497
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblocklabs/unblock-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Workspace-native memory for OpenClaw, powered by QMD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
+
"!dist/defaults.json",
|
|
24
|
+
"defaults.json",
|
|
23
25
|
"src/mlx-query-worker.py",
|
|
24
26
|
"src/query_contract.py",
|
|
25
27
|
"src/query-tokenizer",
|
|
@@ -51,8 +53,8 @@
|
|
|
51
53
|
},
|
|
52
54
|
"dependencies": {
|
|
53
55
|
"@huggingface/tokenizers": "0.2.0",
|
|
54
|
-
"@unblocklabs/decisions": "^0.1.
|
|
55
|
-
"@unblocklabs/qmd": "3.1.
|
|
56
|
+
"@unblocklabs/decisions": "^0.1.3",
|
|
57
|
+
"@unblocklabs/qmd": "3.1.1",
|
|
56
58
|
"chokidar": "5.0.0",
|
|
57
59
|
"js-tiktoken": "1.0.21",
|
|
58
60
|
"picomatch": "^4.0.5",
|