pmem-ai 0.6.2 → 0.6.3

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.
@@ -77,6 +77,37 @@ pmem related module.core --depth 2
77
77
  pmem trace decision.sqlite_runtime
78
78
  ```
79
79
 
80
+ ### Relationship Discovery (v0.6.3+)
81
+
82
+ ```bash
83
+ # Auto-discover project relationships across 6 languages
84
+ pmem discover --dry-run --format json # preview without writing
85
+ pmem discover --format json # discover and write inferred edges
86
+
87
+ # Filter by language
88
+ pmem discover --lang nodejs,python
89
+
90
+ # Use custom pattern file
91
+ pmem discover --pattern-file .pmem/discover-patterns.json
92
+
93
+ # Review and manage inferred edges
94
+ pmem related <id> --format json --source inferred
95
+ pmem update --confirm --accept-edges 1,2,3
96
+ pmem update --confirm --reject-edges 4,5
97
+ ```
98
+
99
+ The discover command scans:
100
+ - **Source file imports** (6 languages: Node.js, Python, Rust, Go, C/C++, Java) - confidence 0.7
101
+ - **Package manager dependencies** (package.json, Cargo.toml, go.mod, etc.) - confidence 0.7-0.85
102
+
103
+ **False-positive guard**: language builtins (Node.js `fs`/`path`/`crypto`, Python `os`/`sys`/`json`, Go `fmt`/`net`, Java `java.*`/`javax.*`/`jakarta.*`/Spring, C/C++ standard headers) and `@types/*` are silently dropped before any output. They never become edges or ambiguous entries.
104
+
105
+ **Ambiguous output is signal-first**: each `ambiguous` entry has a `severity` of either:
106
+ - `actionable` — local project file that has no card. Run `pmem new module "Title"` to create one, or `pmem update --confirm --reject-edges <id>` if no card is needed.
107
+ - `informational` — external package / framework / builtin with no card. No action needed.
108
+
109
+ The compact output lists actionable items first, then collapses informational ones to a count. Parse `summary.actionable` from JSON to drive your review loop.
110
+
80
111
  ### Change Detection & Memory Update
81
112
 
82
113
  ```bash
@@ -193,4 +224,5 @@ pmem verify
193
224
  * **First-time project setup** — [references/first-init.md](references/first-init.md)
194
225
  * **Session workflow in detail** — [references/session-workflow.md](references/session-workflow.md)
195
226
  * **Creating memory cards** — [references/memory-cards.md](references/memory-cards.md)
227
+ * **Discovering project relationships** — run `pmem discover --dry-run --format json` to see inferred edges, then use `pmem update --confirm --accept-edges` to promote them
196
228
  * **Troubleshooting** — [references/troubleshooting.md](references/troubleshooting.md)