@memnexus-ai/sdk 1.59.17 → 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 +13 -3
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +13 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1427,6 +1427,13 @@ var Memories = class {
|
|
|
1427
1427
|
* Retrieve the current HEAD version of a named memory by its user-assigned name.
|
|
1428
1428
|
* Supports the same detail levels as GET /api/memories/{id}.
|
|
1429
1429
|
*
|
|
1430
|
+
* 404 semantics: a 404 does NOT always mean the name was never created. It
|
|
1431
|
+
* is also returned when the name's current head was superseded, contradicted,
|
|
1432
|
+
* or duplicated and left with no successor version carrying the name (an
|
|
1433
|
+
* integrity condition — an orphaned head). Only current (or legacy
|
|
1434
|
+
* unstamped) heads are served; a superseded head is never returned as stale
|
|
1435
|
+
* content. Callers must not assume 404 == never-existed.
|
|
1436
|
+
*
|
|
1430
1437
|
* @param name — Memory name (kebab-case, 2-64 chars)
|
|
1431
1438
|
* @param options — Optional parameters
|
|
1432
1439
|
*/
|
|
@@ -1470,9 +1477,12 @@ var Memories = class {
|
|
|
1470
1477
|
*
|
|
1471
1478
|
* Atomically appends a text block to a named memory, eliminating the
|
|
1472
1479
|
* read-modify-write clobber that concurrent full-content updates cause on
|
|
1473
|
-
* shared named memories.
|
|
1474
|
-
*
|
|
1475
|
-
*
|
|
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
|
|
1476
1486
|
* simultaneous appends all survive and the client needs no retry logic.
|
|
1477
1487
|
* Content is decrypted, assembled, size-checked, and re-encrypted
|
|
1478
1488
|
* server-side; plaintext is never returned to other callers.
|
package/dist/index.d.cts
CHANGED
|
@@ -2849,6 +2849,13 @@ declare class Memories {
|
|
|
2849
2849
|
* Retrieve the current HEAD version of a named memory by its user-assigned name.
|
|
2850
2850
|
* Supports the same detail levels as GET /api/memories/{id}.
|
|
2851
2851
|
*
|
|
2852
|
+
* 404 semantics: a 404 does NOT always mean the name was never created. It
|
|
2853
|
+
* is also returned when the name's current head was superseded, contradicted,
|
|
2854
|
+
* or duplicated and left with no successor version carrying the name (an
|
|
2855
|
+
* integrity condition — an orphaned head). Only current (or legacy
|
|
2856
|
+
* unstamped) heads are served; a superseded head is never returned as stale
|
|
2857
|
+
* content. Callers must not assume 404 == never-existed.
|
|
2858
|
+
*
|
|
2852
2859
|
* @param name — Memory name (kebab-case, 2-64 chars)
|
|
2853
2860
|
* @param options — Optional parameters
|
|
2854
2861
|
*/
|
|
@@ -2896,9 +2903,12 @@ declare class Memories {
|
|
|
2896
2903
|
*
|
|
2897
2904
|
* Atomically appends a text block to a named memory, eliminating the
|
|
2898
2905
|
* read-modify-write clobber that concurrent full-content updates cause on
|
|
2899
|
-
* shared named memories.
|
|
2900
|
-
*
|
|
2901
|
-
*
|
|
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
|
|
2902
2912
|
* simultaneous appends all survive and the client needs no retry logic.
|
|
2903
2913
|
* Content is decrypted, assembled, size-checked, and re-encrypted
|
|
2904
2914
|
* server-side; plaintext is never returned to other callers.
|
package/dist/index.d.ts
CHANGED
|
@@ -2849,6 +2849,13 @@ declare class Memories {
|
|
|
2849
2849
|
* Retrieve the current HEAD version of a named memory by its user-assigned name.
|
|
2850
2850
|
* Supports the same detail levels as GET /api/memories/{id}.
|
|
2851
2851
|
*
|
|
2852
|
+
* 404 semantics: a 404 does NOT always mean the name was never created. It
|
|
2853
|
+
* is also returned when the name's current head was superseded, contradicted,
|
|
2854
|
+
* or duplicated and left with no successor version carrying the name (an
|
|
2855
|
+
* integrity condition — an orphaned head). Only current (or legacy
|
|
2856
|
+
* unstamped) heads are served; a superseded head is never returned as stale
|
|
2857
|
+
* content. Callers must not assume 404 == never-existed.
|
|
2858
|
+
*
|
|
2852
2859
|
* @param name — Memory name (kebab-case, 2-64 chars)
|
|
2853
2860
|
* @param options — Optional parameters
|
|
2854
2861
|
*/
|
|
@@ -2896,9 +2903,12 @@ declare class Memories {
|
|
|
2896
2903
|
*
|
|
2897
2904
|
* Atomically appends a text block to a named memory, eliminating the
|
|
2898
2905
|
* read-modify-write clobber that concurrent full-content updates cause on
|
|
2899
|
-
* shared named memories.
|
|
2900
|
-
*
|
|
2901
|
-
*
|
|
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
|
|
2902
2912
|
* simultaneous appends all survive and the client needs no retry logic.
|
|
2903
2913
|
* Content is decrypted, assembled, size-checked, and re-encrypted
|
|
2904
2914
|
* server-side; plaintext is never returned to other callers.
|
package/dist/index.js
CHANGED
|
@@ -1400,6 +1400,13 @@ var Memories = class {
|
|
|
1400
1400
|
* Retrieve the current HEAD version of a named memory by its user-assigned name.
|
|
1401
1401
|
* Supports the same detail levels as GET /api/memories/{id}.
|
|
1402
1402
|
*
|
|
1403
|
+
* 404 semantics: a 404 does NOT always mean the name was never created. It
|
|
1404
|
+
* is also returned when the name's current head was superseded, contradicted,
|
|
1405
|
+
* or duplicated and left with no successor version carrying the name (an
|
|
1406
|
+
* integrity condition — an orphaned head). Only current (or legacy
|
|
1407
|
+
* unstamped) heads are served; a superseded head is never returned as stale
|
|
1408
|
+
* content. Callers must not assume 404 == never-existed.
|
|
1409
|
+
*
|
|
1403
1410
|
* @param name — Memory name (kebab-case, 2-64 chars)
|
|
1404
1411
|
* @param options — Optional parameters
|
|
1405
1412
|
*/
|
|
@@ -1443,9 +1450,12 @@ var Memories = class {
|
|
|
1443
1450
|
*
|
|
1444
1451
|
* Atomically appends a text block to a named memory, eliminating the
|
|
1445
1452
|
* read-modify-write clobber that concurrent full-content updates cause on
|
|
1446
|
-
* shared named memories.
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
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
|
|
1449
1459
|
* simultaneous appends all survive and the client needs no retry logic.
|
|
1450
1460
|
* Content is decrypted, assembled, size-checked, and re-encrypted
|
|
1451
1461
|
* server-side; plaintext is never returned to other callers.
|