mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-02 02:11:20 +00:00
Phase A — SDK-only, Fixes #1627. Generate Idempotency-Key = SHA256(normalizedContent|sorted tags|minuteBucket) and attach as Idempotency-Key header on addMemory / documentAdd via Supermemory client RequestOptions. Header is optional for the backend (Phase B will honor it). Prevents duplicate memories on network retries, enables safe retries and offline queue. Staff improvements: customIdempotencyKey (user-provided priority), RetryContext (reuses key across minute rollover), NFC+trim normalization, Why SHA-256 rationale, 14 Vitest tests. Co-authored-by: Sravanjangam <163002695+Sravanjangam@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| agent-framework-python | ||
| ai-sdk | ||
| cartesia-sdk-python | ||
| docs-test | ||
| hooks | ||
| lib | ||
| memory-graph | ||
| openai-sdk-python | ||
| pipecat-sdk-python | ||
| tools | ||
| ui | ||
| validation | ||