memorylake-openclaw 1.1.0 → 1.1.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/CHANGELOG.md +55 -0
- package/lib/types.ts +1 -0
- package/lib/utils/builders.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v1.1.0 — 2026-04-21
|
|
4
|
+
|
|
5
|
+
Major release introducing **model-driven memory recall**, **cross-platform archive upload**, and a full modular refactor of the plugin.
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
#### Memory & retrieval
|
|
10
|
+
- **Model-driven recall** (#27): replaced server-side prefetch/inject with instructions that prompt the model to call `retrieve_context` itself — eliminates query-rewrite + search latency on every turn.
|
|
11
|
+
- **Renamed** `memory_search` → `retrieve_context`; the tool now searches **both memories and documents in a single call**, running provider searches in parallel via `Promise.allSettled`.
|
|
12
|
+
- **Memory conflicts** are surfaced in `retrieve_context` results (previously only in auto-recall path).
|
|
13
|
+
- **Per-turn `[MEMORYLAKE REMINDER]`** prepended to each user turn to keep retrieval enforcement alive in long conversations where the system prompt is far away.
|
|
14
|
+
|
|
15
|
+
#### Upload & documents
|
|
16
|
+
- New **`openclaw memorylake upload`** CLI command (`--agent`, `--project-id`).
|
|
17
|
+
- **Auto-detect files / archives / directories** — a single path can be a plain file, an archive, or a directory tree.
|
|
18
|
+
- **Cross-platform archive extraction via npm packages** (no external tools required):
|
|
19
|
+
- zip, tar, tar.gz, tgz — `adm-zip` + `tar`
|
|
20
|
+
- 7z, bz2, tar.bz2 — `7zip-min` (bundled 7za binaries)
|
|
21
|
+
- rar — `node-unrar-js` (WASM)
|
|
22
|
+
- xz, tar.xz, txz — `xz-decompress` (streaming, OOM-safe)
|
|
23
|
+
- New **`document_download`** tool: streams file to `{workspaceDir}/.memorylake/downloads/`, extracts filename from `Content-Disposition` (supports RFC 5987 / Unicode).
|
|
24
|
+
- Sliding-window concurrency pool: 10 uploads in flight, next file starts as soon as one finishes.
|
|
25
|
+
|
|
26
|
+
#### Config & install
|
|
27
|
+
- **Hot-reload global config** (#35): each tool/hook call re-reads `~/.openclaw/openclaw.json`, so `apiKey` / `projectId` / `host` / `topK` changes take effect without gateway restart.
|
|
28
|
+
- **Installer auto-sets `tools.profile = "full"`** (#34), prompting before overwriting a non-`full` value.
|
|
29
|
+
- **Installer `--host` / `-MLHost` / `MEMORYLAKE_HOST`** (#36) for overriding the MemoryLake host URL.
|
|
30
|
+
- Plugin version now included in memory metadata.
|
|
31
|
+
|
|
32
|
+
### Refactor
|
|
33
|
+
- Monolithic `index.ts` (~2190 lines) split into focused modules under `lib/`:
|
|
34
|
+
- `types.ts`, `config.ts`, `provider.ts`, `plugin-context.ts`, `core-bridge.ts`
|
|
35
|
+
- `tools/` (memory-tools, document-tools, search-tools)
|
|
36
|
+
- `hooks/` (auto-recall, auto-capture, auto-upload)
|
|
37
|
+
- `cli/`, `prompt/`, `helpers/`, `utils/`
|
|
38
|
+
- `index.ts` is now ~60 lines — plugin skeleton only.
|
|
39
|
+
|
|
40
|
+
### Removed
|
|
41
|
+
- `document_search` tool — redundant with `retrieve_context`.
|
|
42
|
+
- `memory_get` tool — rarely needed.
|
|
43
|
+
|
|
44
|
+
### Fixes
|
|
45
|
+
- Strip `[MEMORYLAKE REMINDER]` prefix before auto-capturing user messages so reminders don't leak into stored memories.
|
|
46
|
+
- `execSync` → `execFileSync` to prevent command injection via malicious filenames in archive extraction.
|
|
47
|
+
- Filter junk files (`.DS_Store`, `__MACOSX`, `Thumbs.db`, dotfiles) when collecting from archives/directories.
|
|
48
|
+
- Await `uploadMany` in archive handler so temp dir isn't deleted before uploads finish.
|
|
49
|
+
- Make mandatory `retrieve_context` language conditional on `autoRecall` being enabled.
|
|
50
|
+
- 500-file guard on directory collection to avoid accidental `node_modules` uploads.
|
|
51
|
+
- Plugin manifest: added `name`, `description`, `configSchema`; added `compat` / `build` fields for ClawHub publishing.
|
|
52
|
+
|
|
53
|
+
### Manifest
|
|
54
|
+
- `package.json`: `1.0.1` → `1.1.0`.
|
|
55
|
+
- Tag: [`v1.1.0`](https://github.com/memorylake-ai/memorylake-openclaw/releases/tag/v1.1.0).
|
package/lib/types.ts
CHANGED
package/lib/utils/builders.ts
CHANGED
|
@@ -21,7 +21,9 @@ export function buildDocumentContext(
|
|
|
21
21
|
|
|
22
22
|
if (result.type === "table") {
|
|
23
23
|
const title = result.title || "Untitled Table";
|
|
24
|
-
|
|
24
|
+
const sheetLabel = result.semantic_sheet_name || result.sheet_name;
|
|
25
|
+
const sheetPart = sheetLabel ? `, sheet: ${sheetLabel}` : "";
|
|
26
|
+
parts.push(`### Table: ${title} (from ${source}${sheetPart}, doc_id: ${docId})`);
|
|
25
27
|
if (result.footnote) parts.push(`Note: ${result.footnote}`);
|
|
26
28
|
|
|
27
29
|
for (const innerTable of highlight?.inner_tables ?? []) {
|