@anuma/sdk 8.2.0 → 9.1.0-next.20261022054757

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/README.md CHANGED
@@ -74,6 +74,25 @@ The SDK provides entry points for different platforms:
74
74
  - `@anuma/sdk/expo` — React Native / Expo
75
75
  - `@anuma/sdk/client` — Generated API client and types
76
76
 
77
+ ### Encrypted remote chat storage
78
+
79
+ `createRemoteChatStore` is available from the main, React and Expo entry points. Pass the account's
80
+ canonical `keyId` and `memoryCipher` callbacks, the Nearby base URL and an authenticated `getToken`.
81
+ The store encrypts each complete JSON record, including titles, messages, tool events, attachment
82
+ references and vectors. It preserves routing/order metadata in an authenticated envelope and binds
83
+ every request to the account that opened the store. The server never receives the content key.
84
+
85
+ `get`, `list` and `putMany` always use the server. Creates use `expectedVersion: 0`; edits and
86
+ tombstones use the returned `version`. Conflicts and ambiguous network outcomes are surfaced to
87
+ the caller without automatic write retries. Use `AbortSignal` to cancel work when its account or
88
+ screen changes. Failed decryption rejects the read rather than returning an empty history.
89
+
90
+ Records have kinds `conversation`, `message`, `summary`, `project` and `memory_links`; `data` contains
91
+ complete JSON-compatible fields, with dates serialized explicitly. Create the conversation before
92
+ its children. Follow `nextCursor` for complete lists. Batches accept at most 25 records and 8 MiB of
93
+ ciphertext; each record accepts 2 MiB. Existing `useChatStorage` hooks still use their current local
94
+ persistence until the separate verified app migration lands. See [the migration epic](https://github.com/anuma-ai/nearby/issues/1001).
95
+
77
96
  ### iCloud backups
78
97
 
79
98
  Add a `backupRevision` field with type `String` to the `ConversationBackup`