@lotargo/memory_plugin 1.6.7 → 1.6.8
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 +148 -129
- package/README.md +585 -586
- package/mcp-server/ingest/normalizer.js +1 -1
- package/package.json +33 -17
- package/mcp-server/benchmarks/fetch_real_corpus.js +0 -351
- package/mcp-server/benchmarks/gpu_profile_benchmark.js +0 -170
- package/mcp-server/benchmarks/policy_dominance_test.js +0 -221
- package/mcp-server/benchmarks/quality_evaluator.js +0 -598
- package/mcp-server/benchmarks/raw_corpus_data.js +0 -613
- package/mcp-server/benchmarks/run_benchmarks.js +0 -366
- package/mcp-server/benchmarks/stress_ingestion.js +0 -195
- package/mcp-server/benchmarks/table_code_retrieval.js +0 -453
- package/mcp-server/benchmarks/test_dual_layer.js +0 -141
package/CHANGELOG.md
CHANGED
|
@@ -3,133 +3,150 @@
|
|
|
3
3
|
All notable changes to `@lotargo/memory_plugin` are documented in this file.
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- Fixed
|
|
53
|
-
- Fixed
|
|
54
|
-
|
|
55
|
-
## [1.6.
|
|
56
|
-
|
|
57
|
-
###
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.6.8] - 2026-08-25
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Refreshed npm package positioning around local-first memory, hybrid RAG, agent personalization, and coding-agent integrations.
|
|
15
|
+
- Expanded package keywords for agent memory, coding agents, personalization, context engineering, local-first workflows, and Google Jules discovery.
|
|
16
|
+
- Updated package repository, homepage, and issue metadata to the canonical `Lotargo/memory_plugin` repository after the GitHub rename.
|
|
17
|
+
- Updated README hero asset URLs to the canonical repository and added a text H1 covering memory, hybrid RAG, and agent personalization.
|
|
18
|
+
- Updated the spreadsheet parser import to the ESM-compatible SheetJS namespace form.
|
|
19
|
+
|
|
20
|
+
### Security
|
|
21
|
+
|
|
22
|
+
- Replaced the stale public-npm `xlsx@0.18.5` dependency with SheetJS CE `0.20.3` from the official SheetJS CDN, moving spreadsheet ingestion outside the affected ranges for the known prototype-pollution and ReDoS advisories.
|
|
23
|
+
- Updated dependency-security documentation to distinguish the fixed direct SheetJS exposure from the remaining transitive `sharp` / libvips warning in `@huggingface/transformers`; the project disables the Transformers image-decoding path with `env.sharp = false`.
|
|
24
|
+
|
|
25
|
+
## [1.6.7] - 2026-08-24
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- OpenCode's native auto-injection now explicitly suppresses redundant startup `recall` calls while preserving manual recall for inspection, filtering, history, and explicit scopes.
|
|
30
|
+
- Added an OpenCode system-prompt overlay policy that treats user-approved personality, behavior, tone, style, preference, and working-convention memories as active personalization instructions rather than passive facts.
|
|
31
|
+
- Updated shared prompts and the bundled memory skill to distinguish auto-injected clients from integrations that must initialize with `recall(scope: "all")`.
|
|
32
|
+
- OpenCode now separates active `<PERSONAL_AGENT_OVERLAY>` entries from descriptive `<MEMORY_FACTS>` and injects the actual active directives into `experimental.chat.system.transform`.
|
|
33
|
+
- `dev:link` now synchronizes managed prompts and bundled skills for non-OpenCode clients in addition to linking the OpenCode source and system CLI.
|
|
34
|
+
- Claude Code, Gemini CLI, and Codex setup/uninstall now use each client's native MCP lifecycle command first, verify the resulting registration, and fall back to ownership-checked JSON/TOML editing only when the client CLI is missing, fails, or leaves the expected entry unchanged.
|
|
35
|
+
- Gemini CLI is now a separate integration using `~/.gemini/settings.json`, `~/.gemini/GEMINI.md`, and `~/.gemini/skills`; Antigravity keeps its distinct `~/.gemini/config` and optional workspace `.agents` layout.
|
|
36
|
+
- Normal OpenCode uninstall now preserves the host package cache. Cache cleanup is explicit through `--purge-cache` and removes only exact package-owned directories, including versioned cache entries.
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- Added `npm run dev:link` / `memory-cli dev-link` for local development. It globally links the repository CLI and points OpenCode at the working tree through a `file://` plugin entry, eliminating npm publication and reinstall cycles during testing.
|
|
41
|
+
- Added explicit Notebook `kind: "fact" | "directive"` semantics across MCP and OpenCode `remember` / `update_fact` tools, with `[DIRECTIVE]` recall badges and compatibility for legacy persona/preference tags.
|
|
42
|
+
- Added managed persona prompt synchronization for Codex, Claude Code, and Antigravity through `memory-cli sync-persona` / `npm run persona:sync`, including automatic refresh after global directive mutations and cloud pulls.
|
|
43
|
+
- Added idempotent `memory-cli migrate-persona [--dry-run]` / `npm run persona:migrate` to permanently classify legacy global personalization entries as `kind:directive` and regenerate managed client prompts.
|
|
44
|
+
- Added `memory_plugin uninstall` / `memory-cli uninstall` and the `memory_plugin setup --uninstall` alias with per-client targeting, `--dry-run`, data-preserving defaults, guarded `--purge`, and explicit `--purge-cache` support.
|
|
45
|
+
- Added a shared cross-platform client path and CLI execution layer with Windows npm-shim support plus `XDG_CONFIG_HOME`, `XDG_CACHE_HOME`, `OPENCODE_CONFIG_DIR`, and `MEMORY_DIR` handling.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- Fixed `remember_note` omitting the ingestion `blobHash` from its public result, which broke cross-device raw-blob portability consumers and was previously masked by Windows temp-cleanup errors.
|
|
50
|
+
- Fixed concurrent `triggerBackgroundSync()` callers returning before the active queue drain completed; callers now join one active promise that includes requested follow-up passes.
|
|
51
|
+
- Fixed uninstall ownership checks so foreign `memory-agent` registrations, unrelated OpenCode plugins/cache packages, modified skills, and user-authored content outside managed prompt/persona markers are never removed.
|
|
52
|
+
- Fixed Codex TOML cleanup to remove only plugin-owned `memory-agent` tables while preserving unrelated formatting and child sections, and made malformed client configuration fail closed instead of being overwritten.
|
|
53
|
+
- Fixed uninstall failure reporting to return a non-zero exit status when any requested cleanup step fails.
|
|
54
|
+
|
|
55
|
+
## [1.6.6] - 2026-08-17
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- Fixed npm package distribution files list to include `mcp-server/rag_scope.js` and all server modules.
|
|
60
|
+
|
|
61
|
+
## [1.6.5] - 2026-08-17
|
|
62
|
+
|
|
63
|
+
### Added
|
|
64
|
+
|
|
65
|
+
- Added explicit `directory` (and `project` alias) parameter support to Notebook/Memory tools (`remember`, `recall`, `get_fact`, `forget`, `update_fact`, `memory_info`, `link_knowledge`) and RAG tools (`ingest_document`, `query_knowledge_base`, `batch_query_knowledge_base`, `manage_knowledge_base`) across both the MCP server and native OpenCode plugin.
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- Fixed cross-directory workspace routing and isolation so operations targeting external project paths work reliably without directory mismatch or leaking npm process `INIT_CWD`.
|
|
70
|
+
- Fixed `batch_query_knowledge_base` query execution and result formatting in the MCP server.
|
|
71
|
+
|
|
72
|
+
## [1.6.4] - 2026-08-13
|
|
73
|
+
|
|
74
|
+
### Added
|
|
75
|
+
|
|
76
|
+
- `memory_info` now reports whether the current Git identity is `Registry: linked`
|
|
77
|
+
or `Registry: unlinked`, enabling agents to register new repositories automatically.
|
|
78
|
+
- RAG documents now have explicit global/project scope associations. The default
|
|
79
|
+
project scope follows the current linked Git identity, while `scope: "all"`
|
|
80
|
+
retrieves only global knowledge plus the current project's knowledge. A source
|
|
81
|
+
shared by several scopes is stored once and associated with each scope.
|
|
82
|
+
- The native OpenCode plugin now exposes `batch_query_knowledge_base`, bringing it
|
|
83
|
+
to all 15 shared tools plus its two OpenCode-only helpers.
|
|
84
|
+
|
|
85
|
+
### Changed
|
|
86
|
+
|
|
87
|
+
- OpenCode auto-injected memory now includes complete fact bodies for both global and
|
|
88
|
+
current-project stores without the previous ten-fact truncation and instructs the
|
|
89
|
+
agent to register an unlinked Git identity. Header-only initialization was removed
|
|
90
|
+
because it loses essential context.
|
|
91
|
+
- The bundled memory skill now defines full-body session recall, strict project
|
|
92
|
+
isolation, agent-resolved conflicts, automatic Git project registration, and
|
|
93
|
+
selective RAG curation for important web findings and current technical
|
|
94
|
+
documentation, including links from project facts to supporting sources.
|
|
95
|
+
- `recall` hides superseded facts by default and exposes history through
|
|
96
|
+
`includeSuperseded: true`. Filtered output keeps physical storage indices stable,
|
|
97
|
+
so a displayed number always targets the same fact in `forget`.
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
|
|
101
|
+
- Re-ingesting an existing path or URL now preserves its document ID, scope
|
|
102
|
+
associations, and fact links while rebuilding chunks, vectors, FTS rows, and
|
|
103
|
+
structural graph edges for changed content.
|
|
104
|
+
- Snapshot export/import and hybrid cloud synchronization now preserve vectors,
|
|
105
|
+
retrieval policies, policy provenance, document scopes, knowledge links, and
|
|
106
|
+
structural graph metadata. The hybrid sync worker also drains tasks queued during
|
|
107
|
+
an active flush instead of leaving them pending.
|
|
108
|
+
- Relinking a Git project now moves its RAG scope associations and fact-to-document
|
|
109
|
+
links together with Notebook facts.
|
|
110
|
+
- Environment-specific setup flags now update only their requested integration.
|
|
111
|
+
Codex setup also synchronizes the skill to both `~/.codex/skills` and the shared
|
|
112
|
+
`~/.agents/skills` location.
|
|
113
|
+
- Shared documents no longer expose fact-link metadata belonging to another project.
|
|
114
|
+
Document deletion now defaults to unlinking only the current project (or global
|
|
115
|
+
outside Git); broader `global` / `all` removal must be requested explicitly.
|
|
116
|
+
- Updating or forgetting a linked Notebook fact now keeps its knowledge-graph
|
|
117
|
+
projection and cloud payload consistent. Line-range graph edges are included in
|
|
118
|
+
per-document cloud sync, and superseding legacy facts without IDs assigns distinct
|
|
119
|
+
IDs to the old and new versions.
|
|
120
|
+
- README tool counts now match the implementations: 15 MCP tools, 17 native
|
|
121
|
+
OpenCode tools, and 17 unique tool names across both surfaces. The OpenCode tool
|
|
122
|
+
list documents all shared and OpenCode-only helpers explicitly.
|
|
123
|
+
|
|
124
|
+
## [1.6.3] - 2026-08-13
|
|
125
|
+
|
|
126
|
+
### Added
|
|
127
|
+
|
|
128
|
+
- `memory_plugin doctor --codex` validates the configured executable and Node.js
|
|
129
|
+
version, performs direct MCP `initialize` / `tools/list`, and calls both
|
|
130
|
+
`memory_info` and `recall(scope="all")`.
|
|
131
|
+
- Codex regression coverage for Windows paths with spaces, legacy config migration,
|
|
132
|
+
duplicate removal, standalone MCP protocol smoke testing, two-repository project
|
|
133
|
+
isolation, global-only recall outside Git, and prompt idempotency.
|
|
134
|
+
|
|
135
|
+
### Fixed
|
|
136
|
+
|
|
137
|
+
- Codex setup no longer launches the memory MCP through `npx` or a Windows `.cmd`
|
|
138
|
+
shim. It writes absolute paths for the active Node executable and packaged
|
|
139
|
+
`mcp-server/boot.js` entry point after validating Node.js >= 22.5.0.
|
|
140
|
+
- Existing plugin-owned `[mcp_servers.memory-agent]` sections, including the legacy
|
|
141
|
+
`opencode-memory-plugin` entry, are migrated in place without modifying unrelated
|
|
142
|
+
TOML sections or creating duplicates.
|
|
143
|
+
- Repeated prompt setup now collapses duplicate plugin-owned blocks while preserving
|
|
144
|
+
user-authored AGENTS.md / CLAUDE.md content.
|
|
145
|
+
- README tool counts match the v1.6.3 implementations: 15 MCP tools, 16 native
|
|
146
|
+
OpenCode tools, and 17 unique tool names across both surfaces. The OpenCode tool
|
|
147
|
+
list and the MCP-only status of `batch_query_knowledge_base` are documented explicitly.
|
|
148
|
+
|
|
149
|
+
## [1.6.2] - 2026-08-12
|
|
133
150
|
|
|
134
151
|
### Added
|
|
135
152
|
|
|
@@ -272,5 +289,7 @@ a critical retrieval regression introduced after `v1.5.3`.
|
|
|
272
289
|
- `BENCHMARKS.md` tables were re-derived from the stored JSON artifacts; the
|
|
273
290
|
bge-m3 section had carried e5-small numbers shifted by a column.
|
|
274
291
|
|
|
275
|
-
[1.6.
|
|
276
|
-
[1.6.
|
|
292
|
+
[1.6.8]: https://github.com/Lotargo/memory_plugin/releases/tag/v1.6.8
|
|
293
|
+
[1.6.7]: https://github.com/Lotargo/memory_plugin/releases/tag/v1.6.7
|
|
294
|
+
[1.6.1]: https://github.com/Lotargo/memory_plugin/releases/tag/v1.6.1
|
|
295
|
+
[1.6.0]: https://github.com/Lotargo/memory_plugin/releases/tag/v1.6.0
|