@memnexus-ai/typescript-sdk 1.59.18 → 1.59.19
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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -10625,9 +10625,12 @@ declare class MemoriesService extends BaseService {
|
|
|
10625
10625
|
* Atomically append a block to a named memory
|
|
10626
10626
|
* Atomically appends a text block to a named memory, eliminating the
|
|
10627
10627
|
read-modify-write clobber that concurrent full-content updates cause on
|
|
10628
|
-
shared named memories.
|
|
10629
|
-
|
|
10630
|
-
|
|
10628
|
+
shared named memories. Each append runs inside a single transaction that
|
|
10629
|
+
holds the per-name NameLock end to end: it acquires the lock, reads the
|
|
10630
|
+
current head UNDER the lock, concatenates `existing + separator + block`,
|
|
10631
|
+
and writes the new version — all before releasing the lock. Concurrent
|
|
10632
|
+
appends therefore QUEUE on the lock and serialize (the same mechanism the
|
|
10633
|
+
full-content PUT path uses); there is no compare-and-swap retry loop, so
|
|
10631
10634
|
simultaneous appends all survive and the client needs no retry logic.
|
|
10632
10635
|
Content is decrypted, assembled, size-checked, and re-encrypted
|
|
10633
10636
|
server-side; plaintext is never returned to other callers.
|
package/dist/index.d.ts
CHANGED
|
@@ -10625,9 +10625,12 @@ declare class MemoriesService extends BaseService {
|
|
|
10625
10625
|
* Atomically append a block to a named memory
|
|
10626
10626
|
* Atomically appends a text block to a named memory, eliminating the
|
|
10627
10627
|
read-modify-write clobber that concurrent full-content updates cause on
|
|
10628
|
-
shared named memories.
|
|
10629
|
-
|
|
10630
|
-
|
|
10628
|
+
shared named memories. Each append runs inside a single transaction that
|
|
10629
|
+
holds the per-name NameLock end to end: it acquires the lock, reads the
|
|
10630
|
+
current head UNDER the lock, concatenates `existing + separator + block`,
|
|
10631
|
+
and writes the new version — all before releasing the lock. Concurrent
|
|
10632
|
+
appends therefore QUEUE on the lock and serialize (the same mechanism the
|
|
10633
|
+
full-content PUT path uses); there is no compare-and-swap retry loop, so
|
|
10631
10634
|
simultaneous appends all survive and the client needs no retry logic.
|
|
10632
10635
|
Content is decrypted, assembled, size-checked, and re-encrypted
|
|
10633
10636
|
server-side; plaintext is never returned to other callers.
|
package/dist/index.js
CHANGED
|
@@ -3356,9 +3356,12 @@ var MemoriesService = class extends BaseService {
|
|
|
3356
3356
|
* Atomically append a block to a named memory
|
|
3357
3357
|
* Atomically appends a text block to a named memory, eliminating the
|
|
3358
3358
|
read-modify-write clobber that concurrent full-content updates cause on
|
|
3359
|
-
shared named memories.
|
|
3360
|
-
|
|
3361
|
-
|
|
3359
|
+
shared named memories. Each append runs inside a single transaction that
|
|
3360
|
+
holds the per-name NameLock end to end: it acquires the lock, reads the
|
|
3361
|
+
current head UNDER the lock, concatenates `existing + separator + block`,
|
|
3362
|
+
and writes the new version — all before releasing the lock. Concurrent
|
|
3363
|
+
appends therefore QUEUE on the lock and serialize (the same mechanism the
|
|
3364
|
+
full-content PUT path uses); there is no compare-and-swap retry loop, so
|
|
3362
3365
|
simultaneous appends all survive and the client needs no retry logic.
|
|
3363
3366
|
Content is decrypted, assembled, size-checked, and re-encrypted
|
|
3364
3367
|
server-side; plaintext is never returned to other callers.
|