@memnexus-ai/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 CHANGED
@@ -1477,9 +1477,12 @@ var Memories = class {
1477
1477
  *
1478
1478
  * Atomically appends a text block to a named memory, eliminating the
1479
1479
  * read-modify-write clobber that concurrent full-content updates cause on
1480
- * shared named memories. The server reads the current head, concatenates
1481
- * `existing + separator + block`, and writes a new version under the
1482
- * NameLock with an internal compare-and-swap + bounded retry — so
1480
+ * shared named memories. Each append runs inside a single transaction that
1481
+ * holds the per-name NameLock end to end: it acquires the lock, reads the
1482
+ * current head UNDER the lock, concatenates `existing + separator + block`,
1483
+ * and writes the new version — all before releasing the lock. Concurrent
1484
+ * appends therefore QUEUE on the lock and serialize (the same mechanism the
1485
+ * full-content PUT path uses); there is no compare-and-swap retry loop, so
1483
1486
  * simultaneous appends all survive and the client needs no retry logic.
1484
1487
  * Content is decrypted, assembled, size-checked, and re-encrypted
1485
1488
  * server-side; plaintext is never returned to other callers.
package/dist/index.d.cts CHANGED
@@ -2903,9 +2903,12 @@ declare class Memories {
2903
2903
  *
2904
2904
  * Atomically appends a text block to a named memory, eliminating the
2905
2905
  * read-modify-write clobber that concurrent full-content updates cause on
2906
- * shared named memories. The server reads the current head, concatenates
2907
- * `existing + separator + block`, and writes a new version under the
2908
- * NameLock with an internal compare-and-swap + bounded retry — so
2906
+ * shared named memories. Each append runs inside a single transaction that
2907
+ * holds the per-name NameLock end to end: it acquires the lock, reads the
2908
+ * current head UNDER the lock, concatenates `existing + separator + block`,
2909
+ * and writes the new version — all before releasing the lock. Concurrent
2910
+ * appends therefore QUEUE on the lock and serialize (the same mechanism the
2911
+ * full-content PUT path uses); there is no compare-and-swap retry loop, so
2909
2912
  * simultaneous appends all survive and the client needs no retry logic.
2910
2913
  * Content is decrypted, assembled, size-checked, and re-encrypted
2911
2914
  * server-side; plaintext is never returned to other callers.
package/dist/index.d.ts CHANGED
@@ -2903,9 +2903,12 @@ declare class Memories {
2903
2903
  *
2904
2904
  * Atomically appends a text block to a named memory, eliminating the
2905
2905
  * read-modify-write clobber that concurrent full-content updates cause on
2906
- * shared named memories. The server reads the current head, concatenates
2907
- * `existing + separator + block`, and writes a new version under the
2908
- * NameLock with an internal compare-and-swap + bounded retry — so
2906
+ * shared named memories. Each append runs inside a single transaction that
2907
+ * holds the per-name NameLock end to end: it acquires the lock, reads the
2908
+ * current head UNDER the lock, concatenates `existing + separator + block`,
2909
+ * and writes the new version — all before releasing the lock. Concurrent
2910
+ * appends therefore QUEUE on the lock and serialize (the same mechanism the
2911
+ * full-content PUT path uses); there is no compare-and-swap retry loop, so
2909
2912
  * simultaneous appends all survive and the client needs no retry logic.
2910
2913
  * Content is decrypted, assembled, size-checked, and re-encrypted
2911
2914
  * server-side; plaintext is never returned to other callers.
package/dist/index.js CHANGED
@@ -1450,9 +1450,12 @@ var Memories = class {
1450
1450
  *
1451
1451
  * Atomically appends a text block to a named memory, eliminating the
1452
1452
  * read-modify-write clobber that concurrent full-content updates cause on
1453
- * shared named memories. The server reads the current head, concatenates
1454
- * `existing + separator + block`, and writes a new version under the
1455
- * NameLock with an internal compare-and-swap + bounded retry — so
1453
+ * shared named memories. Each append runs inside a single transaction that
1454
+ * holds the per-name NameLock end to end: it acquires the lock, reads the
1455
+ * current head UNDER the lock, concatenates `existing + separator + block`,
1456
+ * and writes the new version — all before releasing the lock. Concurrent
1457
+ * appends therefore QUEUE on the lock and serialize (the same mechanism the
1458
+ * full-content PUT path uses); there is no compare-and-swap retry loop, so
1456
1459
  * simultaneous appends all survive and the client needs no retry logic.
1457
1460
  * Content is decrypted, assembled, size-checked, and re-encrypted
1458
1461
  * server-side; plaintext is never returned to other callers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memnexus-ai/sdk",
3
- "version": "1.59.18",
3
+ "version": "1.59.19",
4
4
  "description": "Official Node.js SDK for the MemNexus API",
5
5
  "license": "Proprietary",
6
6
  "type": "module",