plugmem 0.10.0 → 0.11.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 +2 -1
- package/index.d.ts +10 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -233,6 +233,7 @@ only moves arguments and results across the boundary.
|
|
|
233
233
|
| `rememberMany(args[])` | store a batch: one embedding round-trip, one journal sync |
|
|
234
234
|
| `revise(id, args)` | close a fact and record its successor |
|
|
235
235
|
| `forget(id)` | tombstone a fact; resolves with whether it was live |
|
|
236
|
+
| `forgetMany(ids[])` | tombstone a batch: one journal sync, one post-write pass |
|
|
236
237
|
| `removeTag(tag)` | remove a tag from every current fact while preserving facts/history |
|
|
237
238
|
| `link(args)` | upsert a typed edge, optionally with `provenance` |
|
|
238
239
|
| `unlink(args)` | close the current edge; resolves with whether one was open |
|
|
@@ -521,7 +522,7 @@ callback in the process. Anything that can do that runs on a libuv worker and
|
|
|
521
522
|
returns a promise instead.
|
|
522
523
|
|
|
523
524
|
Promises: `Plugmem.open`, `remember`, `rememberGuarded`, `rememberMany`, `revise`, `recall`,
|
|
524
|
-
`forget`, `removeTag`, `listTags`, `link`, `unlink`, `export`, `exportPage`, `verify`, `maintain`,
|
|
525
|
+
`forget`, `forgetMany`, `removeTag`, `listTags`, `link`, `unlink`, `export`, `exportPage`, `verify`, `maintain`,
|
|
525
526
|
`checkpoint`, every database verb on `WorkspaceMemory`, and every registry
|
|
526
527
|
verb on `Workspace`.
|
|
527
528
|
|
package/index.d.ts
CHANGED
|
@@ -731,6 +731,15 @@ export declare class Plugmem {
|
|
|
731
731
|
* @throws synchronously in read-only mode.
|
|
732
732
|
*/
|
|
733
733
|
forget(id: number): Promise<boolean>
|
|
734
|
+
/**
|
|
735
|
+
* Tombstones many facts at once. Equivalent to [`forget`](Plugmem::forget)
|
|
736
|
+
* on each id in order, but under **one** journal sync and **one**
|
|
737
|
+
* post-write policy pass instead of N — the same batching
|
|
738
|
+
* [`rememberMany`](Plugmem::remember_many) does for writes. Resolves with
|
|
739
|
+
* one boolean per id, in the same order, `true` when that id was live.
|
|
740
|
+
* @throws synchronously in read-only mode.
|
|
741
|
+
*/
|
|
742
|
+
forgetMany(ids: Array<number>): Promise<boolean[]>
|
|
734
743
|
/**
|
|
735
744
|
* Upserts a typed edge `src -rel-> dst`. **Async** for the same reason as
|
|
736
745
|
* [`forget`](Plugmem::forget). @throws synchronously in read-only mode.
|
|
@@ -936,6 +945,7 @@ export declare class WorkspaceMemory {
|
|
|
936
945
|
revise(id: number, args: RememberArgs): Promise<RememberOutcome>
|
|
937
946
|
recall(args?: RecallArgs | undefined | null): Promise<RecallResult>
|
|
938
947
|
forget(id: number): Promise<boolean>
|
|
948
|
+
forgetMany(ids: Array<number>): Promise<boolean[]>
|
|
939
949
|
link(args: LinkArgs): Promise<void>
|
|
940
950
|
unlink(args: LinkArgs): Promise<boolean>
|
|
941
951
|
get(id: number): Promise<FactSnapshot | null>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugmem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Native Node.js addon for plugmem: an embedded bitemporal memory and retrieval engine for local-first applications and agents (remember / recall / revise / forget over one local database).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"typecheck": "tsc -p tsconfig.json"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"plugmem-linux-x64-gnu": "0.
|
|
47
|
-
"plugmem-linux-arm64-gnu": "0.
|
|
48
|
-
"plugmem-darwin-x64": "0.
|
|
49
|
-
"plugmem-darwin-arm64": "0.
|
|
50
|
-
"plugmem-win32-x64-msvc": "0.
|
|
51
|
-
"plugmem-win32-arm64-msvc": "0.
|
|
46
|
+
"plugmem-linux-x64-gnu": "0.11.0",
|
|
47
|
+
"plugmem-linux-arm64-gnu": "0.11.0",
|
|
48
|
+
"plugmem-darwin-x64": "0.11.0",
|
|
49
|
+
"plugmem-darwin-arm64": "0.11.0",
|
|
50
|
+
"plugmem-win32-x64-msvc": "0.11.0",
|
|
51
|
+
"plugmem-win32-arm64-msvc": "0.11.0"
|
|
52
52
|
}
|
|
53
53
|
}
|