dotmem 0.2.4 → 0.2.5

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 CHANGED
@@ -1,10 +1,30 @@
1
- # Changelog
1
+ # Changelog
2
2
 
3
3
  All notable changes to Dotmem are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.5] - 2026-11-19
9
+
10
+ ### Added
11
+ - **File-backed archive** - `.arch.mem` ZIP text archive with CLI and MCP (`put`, `get`, `list`, `search`, `auto`, `move`, `convert`, `forget`, `delete-claim`); UUID names and text-only security.
12
+ - **Local BM25 search** - Deterministic ranking over claims and archives with fuzzy matching and `--area`/`--tag`/`--since` filters.
13
+ - **Acquisition resilience** - Auto-archive lowest-value claims and retry on `DOTMEM_STORE_TOO_LARGE`.
14
+ - **Store repair** - `delete-claim` physically removes a claim and repairs broken revision references.
15
+ - **Archive security** - UTF-8 validation, null-byte rejection, SHA-256 checksum, 32 MiB decompression limit, text-only flags, `SECURITY.txt`.
16
+ - **Joy profile capabilities** - Designer, software architect, security CISO, LLM/AI, and 3D graphics (3ds Max, WebGL, Blender, Maya, Three.js).
17
+ - **Context brief date** - Brief format now includes `[YYYY-MM-DD]`.
18
+ - **MCP instructions** - Archive vs note guidance and cross-language query translation.
19
+
20
+ ### Changed
21
+ - **Store ceiling** - Raised from 4 MiB to 7 MiB.
22
+ - **Documentation** - Updated `docs/MEMORY.md`, `docs/README.md`, `docs/llms.txt`, `core/cli/usage.ts`, and ADR 030.
23
+
24
+ ### Fixed
25
+ - **Broken revision references** - Repaired stores via `delete-claim`.
26
+ - **CopyStatic warnings** - Removed missing `.d.ts` entries from static copy.
27
+
8
28
  ## [0.2.3] - 2026-11-17
9
29
 
10
30
  ### Added
@@ -12,7 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
32
  - **Iron rules** - Added `iron-rule-em-dash-to-hyphen` (use hyphen instead of em dash) and `iron-rule-no-jsx` (never use JSX) as human-stated project rules.
13
33
 
14
34
  ### Changed
15
- - **Em dash to hyphen** - Replaced em dash (`—`) with hyphen (`-`) across all project source, docs, and visual editor files.
35
+ - **Em dash to hyphen** - Replaced em dash (`—`) with hyphen (`-`) across all project source, docs, and visual editor files.
16
36
  - **Visual editor** - Converted remaining `.jsx` sources to `.js` using `React.createElement` (no JSX).
17
37
 
18
38
  ### Fixed
@@ -28,7 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
48
 
29
49
  ### Added
30
50
  - **Progressive Summary Store** - Four detail levels (current: 1.0, recent: 0.7, distant: 0.3, archived: 0.1) with session count and age-based decay triggers, summary text truncation preserving earliest and most recent content, fact filtering by confidence, decision compaction, question count compaction, and summary rotation chain.
31
- - **Automatic Conversational Capture** - 7-stage pipeline: detect → classify → extract → dedup → decide → provenance → store. Classification via keyword matching + heuristics (deterministic, no embeddings). Deduplication via Jaccard similarity (threshold 0.75). Explicit instruction detection. Fact vs inference distinction.
51
+ - **Automatic Conversational Capture** - 7-stage pipeline: detect → classify → extract → dedup → decide → provenance → store. Classification via keyword matching + heuristics (deterministic, no embeddings). Deduplication via Jaccard similarity (threshold 0.75). Explicit instruction detection. Fact vs inference distinction.
32
52
  - **MCP Automatic Joy Profile Activation** - ADR-023: `buildProfileGuidance()` reads canonical `JO_PROFILE`; `buildMcpInstructions()` composes profile identity block + Scintilla signal.
33
53
  - **Project identity `resolveProjectIdentity`** - Public API export for resolving stable project identity from DOTMEM_PROJECT_ID env, package.json name, or directory basename.
34
54
 
@@ -87,4 +107,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
87
107
  - **MCP Server** - Stdio server `dotmem-mcp` with read-only default, write opt-in via `DOTMEM_MCP_WRITE=1`.
88
108
  - **Deterministic Retrieval** - Lexical and structured matching without embeddings.
89
109
  - **Agent Memory** - Logical namespace partitioning via `dotmem/agent`.
90
- - **Governance & Security** - RBAC, audit, consent, AES-GCM, PBKDF2 helpers.
110
+ - **Governance & Security** - RBAC, audit, consent, AES-GCM, PBKDF2 helpers.
package/MEMORY.md CHANGED
@@ -604,6 +604,8 @@ The following CLI commands exist but are **not** exposed as MCP tools. This tabl
604
604
  | `session [show\|doing]` | Current task state of the session | `npx dotmem session doing "task"` | read/write |
605
605
  | `loop <subcommand>` | Manage open loops (add\|list\|close\|show) | `npx dotmem loop add lp-1 "task"` | write |
606
606
  | `vault <subcommand>` | Local handle→value vault (put\|resolve\|list\|forget) | `npx dotmem vault put val --handle h1` | write |
607
+ | `archive <subcommand>` | File-backed text archive `.arch.mem` (put\|get\|list\|search\|auto\|move\|convert\|forget\|delete-claim) | `npx dotmem archive put title --file big.txt` | write |
608
+ | `search "<query>"` | Local BM25 search over claims and archives | `npx dotmem search "autodesk" --tag identity` | read |
607
609
  | `verify` | Freshness probes on claims | `npx dotmem verify` | read |
608
610
  | `guard <event> [--payload]` | Policy evaluation before a tool action | `npx dotmem guard tool.git-commit` | read |
609
611
  | `rule` / `rules` | Print the iron rules | `npx dotmem rules` | read |
package/README.md CHANGED
@@ -368,6 +368,10 @@ These are package validation limits, not performance or scalability guarantees.
368
368
 
369
369
  ---
370
370
 
371
+ ## Archive and search
372
+
373
+ Dotmem now includes a file-backed text archive (`.arch.mem`, UUID-named ZIP) for large documents, with local BM25 search over claims and archives. Archives are text-only, checksum-protected, and do not consume `.mem` capacity. Use `npx dotmem archive ...` and `npx dotmem search ...`.
374
+
371
375
  ## Security and limitations
372
376
 
373
377
  Dotmem is designed to preserve user control and make its boundaries explicit.