@memnexus-ai/typescript-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.d.cts CHANGED
@@ -10573,6 +10573,13 @@ declare class MemoriesService extends BaseService {
10573
10573
  * Retrieve the current HEAD version of a named memory by its user-assigned name.
10574
10574
  Supports the same detail levels as GET /api/memories/{id}.
10575
10575
 
10576
+ 404 semantics: a 404 does NOT always mean the name was never created. It
10577
+ is also returned when the name's current head was superseded, contradicted,
10578
+ or duplicated and left with no successor version carrying the name (an
10579
+ integrity condition — an orphaned head). Only current (or legacy
10580
+ unstamped) heads are served; a superseded head is never returned as stale
10581
+ content. Callers must not assume 404 == never-existed.
10582
+
10576
10583
  * @param name - Memory name (kebab-case, 2-64 chars)
10577
10584
  * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
10578
10585
  */
@@ -10618,9 +10625,12 @@ declare class MemoriesService extends BaseService {
10618
10625
  * Atomically append a block to a named memory
10619
10626
  * Atomically appends a text block to a named memory, eliminating the
10620
10627
  read-modify-write clobber that concurrent full-content updates cause on
10621
- shared named memories. The server reads the current head, concatenates
10622
- `existing + separator + block`, and writes a new version under the
10623
- NameLock with an internal compare-and-swap + bounded retry — so
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
10624
10634
  simultaneous appends all survive and the client needs no retry logic.
10625
10635
  Content is decrypted, assembled, size-checked, and re-encrypted
10626
10636
  server-side; plaintext is never returned to other callers.
package/dist/index.d.ts CHANGED
@@ -10573,6 +10573,13 @@ declare class MemoriesService extends BaseService {
10573
10573
  * Retrieve the current HEAD version of a named memory by its user-assigned name.
10574
10574
  Supports the same detail levels as GET /api/memories/{id}.
10575
10575
 
10576
+ 404 semantics: a 404 does NOT always mean the name was never created. It
10577
+ is also returned when the name's current head was superseded, contradicted,
10578
+ or duplicated and left with no successor version carrying the name (an
10579
+ integrity condition — an orphaned head). Only current (or legacy
10580
+ unstamped) heads are served; a superseded head is never returned as stale
10581
+ content. Callers must not assume 404 == never-existed.
10582
+
10576
10583
  * @param name - Memory name (kebab-case, 2-64 chars)
10577
10584
  * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
10578
10585
  */
@@ -10618,9 +10625,12 @@ declare class MemoriesService extends BaseService {
10618
10625
  * Atomically append a block to a named memory
10619
10626
  * Atomically appends a text block to a named memory, eliminating the
10620
10627
  read-modify-write clobber that concurrent full-content updates cause on
10621
- shared named memories. The server reads the current head, concatenates
10622
- `existing + separator + block`, and writes a new version under the
10623
- NameLock with an internal compare-and-swap + bounded retry — so
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
10624
10634
  simultaneous appends all survive and the client needs no retry logic.
10625
10635
  Content is decrypted, assembled, size-checked, and re-encrypted
10626
10636
  server-side; plaintext is never returned to other callers.
package/dist/index.js CHANGED
@@ -3266,6 +3266,13 @@ var MemoriesService = class extends BaseService {
3266
3266
  * Retrieve the current HEAD version of a named memory by its user-assigned name.
3267
3267
  Supports the same detail levels as GET /api/memories/{id}.
3268
3268
 
3269
+ 404 semantics: a 404 does NOT always mean the name was never created. It
3270
+ is also returned when the name's current head was superseded, contradicted,
3271
+ or duplicated and left with no successor version carrying the name (an
3272
+ integrity condition — an orphaned head). Only current (or legacy
3273
+ unstamped) heads are served; a superseded head is never returned as stale
3274
+ content. Callers must not assume 404 == never-existed.
3275
+
3269
3276
  * @param name - Memory name (kebab-case, 2-64 chars)
3270
3277
  * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
3271
3278
  */
@@ -3349,9 +3356,12 @@ var MemoriesService = class extends BaseService {
3349
3356
  * Atomically append a block to a named memory
3350
3357
  * Atomically appends a text block to a named memory, eliminating the
3351
3358
  read-modify-write clobber that concurrent full-content updates cause on
3352
- shared named memories. The server reads the current head, concatenates
3353
- `existing + separator + block`, and writes a new version under the
3354
- NameLock with an internal compare-and-swap + bounded retry — so
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
3355
3365
  simultaneous appends all survive and the client needs no retry logic.
3356
3366
  Content is decrypted, assembled, size-checked, and re-encrypted
3357
3367
  server-side; plaintext is never returned to other callers.