pmem-ai 0.8.0-a → 0.8.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/README.md CHANGED
@@ -29,7 +29,7 @@ The design is intentionally local and Git-friendly. Markdown cards remain the so
29
29
  - You want agents to update memory deliberately instead of auto-writing noisy logs.
30
30
  - You prefer local files over hosted memory services.
31
31
 
32
- It is not a vector database, MCP server, Graph UI, or remote multi-user service. v0.8 adds the Hybrid Recall Engine: deterministic multi-channel retrieval across exact IDs, aliases, tags, source file paths, always-on FTS5/BM25, and graph expansion — with recency scoring, stale/dirty penalties, and explainable output.
32
+ It is not a vector database, MCP server, Graph UI, or remote multi-user service. v0.6 focuses on making the CLI agent-native with relationship discovery and polished workflows.
33
33
 
34
34
  ## Install
35
35
 
@@ -215,25 +215,21 @@ Do not edit SQLite directly. Edit Markdown cards or use pmem workflow commands,
215
215
 
216
216
  ### Recall And Ask
217
217
 
218
- Use `recall` for the current project state. v0.8 adds recall modes: `--mode brief` returns L0 + read-if-needed paths only, `--mode normal` (default) is the full agent context, and `--mode deep` preserves more detail when budget allows.
218
+ Use `recall` for the current project state. v0.8 (upcoming on `main` branch, not yet released to npm) adds budget modes: `brief` returns L0 + read-if-needed paths, `normal` is the default agent context, and `deep` preserves more detail when budget allows.
219
219
 
220
220
  ```bash
221
221
  pmem recall --budget 2000
222
222
  pmem recall --mode brief --budget 500
223
- pmem recall --mode deep --budget 6000
224
223
  ```
225
224
 
226
- Use `ask` for targeted retrieval. v0.8 uses the Hybrid Recall Engine: a 5-stage deterministic pipeline intent parse multi-channel candidate generation → graph expansion → score fusion → L0-L3 budget packing. Channels include exact card ID, ID substring, exact title, title phrase, title token, aliases, tags, source file path, always-on FTS5/BM25, and graph hop expansion. Scores are multiplicative: `base × type_weight × recency × staleness_penalty × status`. Add `--explain` to see the `reasons[]` and `factors{}` for each matched card.
225
+ Use `ask` for targeted retrieval. v0.8 (upcoming on `main` branch, not yet released to npm) uses the Hybrid Recall Engine: exact IDs, aliases, tags, source file paths, always-on FTS5/BM25, graph expansion, recency, and stale/dirty penalties are fused into a deterministic score. Add `--explain` to see why each card was recalled.
227
226
 
228
227
  ```bash
229
228
  pmem ask "sqlite runtime" --format compact
230
229
  pmem ask "src/core/query/recall.ts" --explain --limit 5
231
230
  pmem ask "release checklist" --format json
232
- pmem ask "module.core" --explain # explain why this card was matched
233
231
  ```
234
232
 
235
- `--limit N` caps the result set (must be a positive integer; exit 2 on invalid value). `--explain` adds per-card `reasons` and `factors` fields to JSON output and a `Reasons:` section to compact output.
236
-
237
233
  ### Relations
238
234
 
239
235
  Use `relations` to inspect a card's edge graph and find pruning candidates:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmem-ai",
3
- "version": "0.8.0-a",
3
+ "version": "0.8.0",
4
4
  "description": "Project Memory for AI Agents: a local CLI runtime for project context, recall, and memory updates",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -114,7 +114,7 @@ pmem related module.core --depth 2
114
114
  pmem trace decision.sqlite_runtime
115
115
  ```
116
116
 
117
- v0.8 adds recall modes to `pmem recall` and replaces `pmem ask` with the Hybrid Recall Engine: a 5-stage deterministic pipeline (intent parse multi-channel candidate generation graph expansion → score fusion → L0-L3 budget packing) that fuses exact IDs, aliases, tags, source file paths, FTS5/BM25, graph expansion, recency, and stale/dirty penalties into a ranked result. Use `--explain` to see per-card `reasons[]` and `factors{}`. The recall output is structured into:
117
+ In v0.8 (upcoming on `main` branch, not yet released to npm), `pmem recall` remains trace-aware and adds recall modes, while `pmem ask` uses deterministic hybrid retrieval (exact IDs, aliases, tags, source files, FTS5/BM25, graph expansion, recency, and stale/dirty penalties). The recall output is structured into:
118
118
  - **PROJECT & STAGE**: The current metadata of the repository.
119
119
  - **CURRENT CONTEXT**: Recent summaries of what the project is doing.
120
120
  - **RECENT CHANGES**: Thick trace logs of what files and symbols changed.
@@ -317,7 +317,7 @@ pmem mcp
317
317
  | Tool | Description |
318
318
  |------|-------------|
319
319
  | `pmem_recall` | Restore project memory context (stage, focus, next, active cards, updates) |
320
- | `pmem_ask` | Search memory with Hybrid Recall Engine (exact ID/alias/tag/source-fileFTS5/BM25 → graph expansionscore fusion) |
320
+ | `pmem_ask` | Search memory with 6-step retrieval (ID alias → tag → graph FTS5 LIKE) |
321
321
  | `pmem_related` | Query graph neighbors of a card (edges grouped by type with direction/confidence) |
322
322
  | `pmem_status` | Detect changed files and affected memory cards (git or mtime) |
323
323