claude-mem-lite 3.45.0 → 3.46.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.
@@ -10,7 +10,7 @@
10
10
  "plugins": [
11
11
  {
12
12
  "name": "claude-mem-lite",
13
- "version": "3.45.0",
13
+ "version": "3.46.0",
14
14
  "source": "./",
15
15
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. Hybrid FTS5 + TF-IDF search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark)."
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "3.45.0",
3
+ "version": "3.46.0",
4
4
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. Hybrid FTS5 + TF-IDF search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark).",
5
5
  "author": {
6
6
  "name": "sdsrss"
package/adopt-content.mjs CHANGED
@@ -148,6 +148,19 @@ PreToolUse hook 在你 Read / Edit / Write 文件前已自动 \`mem_recall\` 该
148
148
  | \`${CLI_INVOKE} get 42,43\` | 按 ID 展开 |
149
149
  | \`${CLI_INVOKE} timeline --anchor 42\` | 时间线上下文 |
150
150
 
151
+ ## CLI 速查(写入 / 记录)
152
+
153
+ 写入类工具多从 \`tools/list\` 隐藏 → 只能走 CLI。下表带**硬上限**(超限直接报错,别撞了才知道);完整 flag 见 \`${CLI_INVOKE} help\`。
154
+
155
+ | 命令 | 签名(含硬约束) |
156
+ |------|------------------|
157
+ | 存观测 | \`${CLI_INVOKE} save "<text>" --type bugfix\\|decision --lesson "<≤500 字符>" [--importance 1-3] [--closes-deferred N]\` — \`<text>\` **必填定位参数**;\`--lesson\` 超 500 直接 fail |
158
+ | 推迟工作 | \`${CLI_INVOKE} defer add "<title ≤200>" [--priority 1\\|2\\|3] [--detail "<约束+为何推迟>"]\` — 标题 >200 挪到 \`--detail\` |
159
+ | 改某条 | \`${CLI_INVOKE} update <id> [--lesson "<≤500>"] [--title T] [--type T] [--importance 1-3] [--narrative T] [--concepts "a b c"]\` |
160
+ | 事件日志 | \`${CLI_INVOKE} activity save --type <bugfix\\|lesson\\|bug\\|discovery\\|refactor\\|feature\\|observation\\|decision> "<title>" [--body T] [--files f1,f2]\` |
161
+
162
+ \`maintain\` / \`optimize\` / \`compress\` 见上方「维护 / 管理类工具」;\`maintain --ops\` 取值 \`cleanup,decay,boost,demote_pinned,dedup,purge_stale,rebuild_vectors,vacuum\`,\`--retain-days\` ∈ [7,365]。
163
+
151
164
  ## 卸载 / 关闭
152
165
 
153
166
  - \`${CLI_INVOKE} unadopt\`:移除 CLAUDE.md 托管块 + \`.claude/plugin_claude_mem_lite.md\`;
package/mem-cli.mjs CHANGED
@@ -2820,11 +2820,14 @@ Commands:
2820
2820
  --files (plural, comma-split) preferred; --file (singular) kept for back-compat.
2821
2821
  Use /lesson or /bug slash commands for faster capture (T8).
2822
2822
 
2823
- adopt Inject claude-mem-lite sentinel line into this project's
2824
- ~/.claude/projects/<encoded>/memory/MEMORY.md so Claude Code
2825
- auto-loads it as user-memory (higher instruction authority).
2826
- --all Adopt every project under ~/.claude/projects/*/memory/
2827
- --force Overwrite a sentinel block that was manually edited
2823
+ adopt Write the claude-mem-lite managed block into this project's
2824
+ CLAUDE.md + a plugin_claude_mem_lite.md detail doc under
2825
+ .claude/ (loaded as project instructions). Runs automatically
2826
+ on each SessionStart; use this to force it now.
2827
+ --all Legacy sweep: strip old memory-dir (MEMORY.md) sentinels from
2828
+ known projects. Does NOT adopt — CLAUDE.md adoption is
2829
+ per-project, on each project's next SessionStart.
2830
+ --force Overwrite a manually-edited managed block
2828
2831
  --dry-run Print intended writes without touching disk
2829
2832
  --status List adopted projects + version
2830
2833
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "3.45.0",
3
+ "version": "3.46.0",
4
4
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. Hybrid FTS5 + TF-IDF search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark).",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",
package/tool-schemas.mjs CHANGED
@@ -187,7 +187,7 @@ export const memSaveSchema = {
187
187
  project: z.string().optional().describe('Project name (default: inferred from CWD)'),
188
188
  importance: coerceInt.pipe(z.number().int().min(1).max(3)).optional().describe('Importance level: 1=routine, 2=notable, 3=critical (default: 2 for explicit saves)'),
189
189
  files: coerceStringArray.optional().describe('File paths associated with this observation'),
190
- lesson_learned: z.string().max(500).optional().describe('Key lesson or takeaway (for bugfix: root cause & fix; for decision: rationale)'),
190
+ lesson_learned: z.string().max(500).optional().describe('Key lesson or takeaway, ≤500 chars (for bugfix: root cause & fix; for decision: rationale)'),
191
191
  closes_deferred: coerceDeferredTokens.optional().describe('Close one or more deferred_work items in the same project. Mixed array: bare integer = ordinal-within-project, "D#<n>" string = raw id. Transactional with the obs insert — a single invalid id rolls back the whole save.'),
192
192
  supersedes: coerceSupersedes.optional().describe('Observation ids (same project) that this save overturns. They are marked superseded — dropped from live search — and linked to the new row (superseded_by). Use ONLY when this genuinely replaces a prior conclusion; do NOT use for merely-related or updated-but-still-valid memories.'),
193
193
  };