plugmem 0.1.4 → 0.2.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 +9 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -78,15 +78,21 @@ db.close(); // release the file + lock explicitly
|
|
|
78
78
|
## Configuration & embeddings
|
|
79
79
|
|
|
80
80
|
The constructor resolves settings **exactly like the CLI and MCP server**: an
|
|
81
|
-
explicit `config` path wins, else `$PLUGMEM_CONFIG`, else
|
|
82
|
-
|
|
81
|
+
explicit `config` path wins, else `$PLUGMEM_CONFIG`, else the platform config
|
|
82
|
+
directory, else all defaults. The database path is resolved as an explicit
|
|
83
|
+
constructor path, then `$PLUGMEM_DB`, then `[database].path`, then the platform
|
|
84
|
+
data directory. See the [full settings reference](https://github.com/m62624/plugmem/blob/main/crates/plugmem-host/SETTINGS.md)
|
|
85
|
+
for all fields and OS-specific paths.
|
|
83
86
|
|
|
84
87
|
```typescript
|
|
85
|
-
const db = new Plugmem(
|
|
88
|
+
const db = new Plugmem(undefined, { config: "./plugmem.toml" });
|
|
86
89
|
```
|
|
87
90
|
|
|
88
91
|
```toml
|
|
89
92
|
# plugmem.toml
|
|
93
|
+
[database]
|
|
94
|
+
path = "/path/to/memory.plugmem" # optional example
|
|
95
|
+
|
|
90
96
|
[engine]
|
|
91
97
|
dim = 768 # embedding size (0 = vectors off)
|
|
92
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugmem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Native Node.js addon for plugmem: an embedded long-term memory engine for LLM agents (remember / recall / revise / forget over one local file).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test": "node --test __test__/*.test.mjs"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
-
"plugmem-linux-x64-gnu": "0.
|
|
43
|
-
"plugmem-linux-arm64-gnu": "0.
|
|
44
|
-
"plugmem-darwin-x64": "0.
|
|
45
|
-
"plugmem-darwin-arm64": "0.
|
|
46
|
-
"plugmem-win32-x64-msvc": "0.
|
|
47
|
-
"plugmem-win32-arm64-msvc": "0.
|
|
42
|
+
"plugmem-linux-x64-gnu": "0.2.0",
|
|
43
|
+
"plugmem-linux-arm64-gnu": "0.2.0",
|
|
44
|
+
"plugmem-darwin-x64": "0.2.0",
|
|
45
|
+
"plugmem-darwin-arm64": "0.2.0",
|
|
46
|
+
"plugmem-win32-x64-msvc": "0.2.0",
|
|
47
|
+
"plugmem-win32-arm64-msvc": "0.2.0"
|
|
48
48
|
}
|
|
49
49
|
}
|