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.
- package/CHANGELOG.md +34 -0
- package/README.md +12 -3
- package/dist/commands/graph.d.ts +3 -0
- package/dist/commands/graph.d.ts.map +1 -1
- package/dist/commands/graph.js +66 -23
- package/dist/commands/graph.js.map +1 -1
- package/dist/commands/rebuild.js +2 -2
- package/dist/commands/rebuild.js.map +1 -1
- package/dist/commands/update.d.ts +2 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +117 -1
- package/dist/commands/update.js.map +1 -1
- package/dist/core/db.d.ts +8 -0
- package/dist/core/db.d.ts.map +1 -1
- package/dist/core/db.js +47 -0
- package/dist/core/db.js.map +1 -1
- package/dist/core/discover/detect.d.ts +12 -0
- package/dist/core/discover/detect.d.ts.map +1 -0
- package/dist/core/discover/detect.js +68 -0
- package/dist/core/discover/detect.js.map +1 -0
- package/dist/core/discover/index.d.ts +12 -0
- package/dist/core/discover/index.d.ts.map +1 -0
- package/dist/core/discover/index.js +630 -0
- package/dist/core/discover/index.js.map +1 -0
- package/dist/core/discover/patterns.d.ts +29 -0
- package/dist/core/discover/patterns.d.ts.map +1 -0
- package/dist/core/discover/patterns.js +322 -0
- package/dist/core/discover/patterns.js.map +1 -0
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +76 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -2
- package/skills/pmem/SKILL.md +32 -0
package/skills/pmem/SKILL.md
CHANGED
|
@@ -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)
|