@anuma/sdk 10.8.0 → 10.9.0
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/expo/index.cjs +313 -166
- package/dist/expo/index.d.mts +35 -1
- package/dist/expo/index.d.ts +35 -1
- package/dist/expo/index.mjs +298 -158
- package/dist/index.cjs +165 -16
- package/dist/index.d.mts +223 -1
- package/dist/index.d.ts +223 -1
- package/dist/index.mjs +158 -16
- package/dist/react/index.cjs +316 -169
- package/dist/react/index.d.mts +35 -1
- package/dist/react/index.d.ts +35 -1
- package/dist/react/index.mjs +301 -161
- package/dist/server/index.d.mts +12 -0
- package/dist/server/index.d.ts +12 -0
- package/package.json +2 -2
package/dist/server/index.d.mts
CHANGED
|
@@ -7371,6 +7371,14 @@ type MessageFeedback = "like" | "dislike" | null;
|
|
|
7371
7371
|
* would fail open.
|
|
7372
7372
|
*/
|
|
7373
7373
|
type MessageOrigin = "tool_result" | "chunks_discarded" | "message";
|
|
7374
|
+
/** Why an Anuma 1:1 turn exists: a daily intro or a reply to the user. */
|
|
7375
|
+
type AnumaTurnOrigin = "intro" | "reply";
|
|
7376
|
+
/** One Anuma 1:1 turn: 1-3 ordered bubbles sealed inside the message payload. */
|
|
7377
|
+
interface AnumaTurn {
|
|
7378
|
+
turnId: string;
|
|
7379
|
+
bubbles?: string[];
|
|
7380
|
+
origin?: AnumaTurnOrigin;
|
|
7381
|
+
}
|
|
7374
7382
|
/**
|
|
7375
7383
|
* Metadata for files attached to messages.
|
|
7376
7384
|
*
|
|
@@ -7539,6 +7547,8 @@ interface StoredMessage {
|
|
|
7539
7547
|
toolCallEvents?: LlmapiToolCallEvent[];
|
|
7540
7548
|
/** Provenance for synthetic rows; undefined for typed messages and pre-v44 rows */
|
|
7541
7549
|
origin?: MessageOrigin;
|
|
7550
|
+
/** Anuma 1:1 turn fields; only vault chat backends store them. */
|
|
7551
|
+
anuma?: AnumaTurn;
|
|
7542
7552
|
/**
|
|
7543
7553
|
* Set when `content` could not be decrypted on read (#561).
|
|
7544
7554
|
* The `content` field still holds the original ciphertext — never a
|
|
@@ -7714,6 +7724,8 @@ interface CreateMessageOptions {
|
|
|
7714
7724
|
toolCallEvents?: LlmapiToolCallEvent[];
|
|
7715
7725
|
/** Provenance for synthetic rows; set by the producer, never by user input */
|
|
7716
7726
|
origin?: MessageOrigin;
|
|
7727
|
+
/** Anuma 1:1 turn fields; only vault chat backends store them. */
|
|
7728
|
+
anuma?: AnumaTurn;
|
|
7717
7729
|
/**
|
|
7718
7730
|
* Optional pre-generated unique ID for this message.
|
|
7719
7731
|
* When provided, used as the WatermelonDB record ID instead of auto-generating one.
|
package/dist/server/index.d.ts
CHANGED
|
@@ -7371,6 +7371,14 @@ type MessageFeedback = "like" | "dislike" | null;
|
|
|
7371
7371
|
* would fail open.
|
|
7372
7372
|
*/
|
|
7373
7373
|
type MessageOrigin = "tool_result" | "chunks_discarded" | "message";
|
|
7374
|
+
/** Why an Anuma 1:1 turn exists: a daily intro or a reply to the user. */
|
|
7375
|
+
type AnumaTurnOrigin = "intro" | "reply";
|
|
7376
|
+
/** One Anuma 1:1 turn: 1-3 ordered bubbles sealed inside the message payload. */
|
|
7377
|
+
interface AnumaTurn {
|
|
7378
|
+
turnId: string;
|
|
7379
|
+
bubbles?: string[];
|
|
7380
|
+
origin?: AnumaTurnOrigin;
|
|
7381
|
+
}
|
|
7374
7382
|
/**
|
|
7375
7383
|
* Metadata for files attached to messages.
|
|
7376
7384
|
*
|
|
@@ -7539,6 +7547,8 @@ interface StoredMessage {
|
|
|
7539
7547
|
toolCallEvents?: LlmapiToolCallEvent[];
|
|
7540
7548
|
/** Provenance for synthetic rows; undefined for typed messages and pre-v44 rows */
|
|
7541
7549
|
origin?: MessageOrigin;
|
|
7550
|
+
/** Anuma 1:1 turn fields; only vault chat backends store them. */
|
|
7551
|
+
anuma?: AnumaTurn;
|
|
7542
7552
|
/**
|
|
7543
7553
|
* Set when `content` could not be decrypted on read (#561).
|
|
7544
7554
|
* The `content` field still holds the original ciphertext — never a
|
|
@@ -7714,6 +7724,8 @@ interface CreateMessageOptions {
|
|
|
7714
7724
|
toolCallEvents?: LlmapiToolCallEvent[];
|
|
7715
7725
|
/** Provenance for synthetic rows; set by the producer, never by user input */
|
|
7716
7726
|
origin?: MessageOrigin;
|
|
7727
|
+
/** Anuma 1:1 turn fields; only vault chat backends store them. */
|
|
7728
|
+
anuma?: AnumaTurn;
|
|
7717
7729
|
/**
|
|
7718
7730
|
* Optional pre-generated unique ID for this message.
|
|
7719
7731
|
* When provided, used as the WatermelonDB record ID instead of auto-generating one.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anuma/sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"spec": "openapi-ts && node scripts/patch-generated-client.mjs",
|
|
130
130
|
"test": "vitest run",
|
|
131
131
|
"test:browser": "vitest run --config vitest.browser.config.mts",
|
|
132
|
-
"test:vault-conformance": "vitest run src/lib/chatStore/migrateChats.test.ts src/lib/chatStore/vaultBackend.contract.test.ts src/lib/chatStore/vaultBackend.test.ts src/lib/chatStore/vaultParity.test.ts src/react/useChatStorage.vaultParity.test.tsx",
|
|
132
|
+
"test:vault-conformance": "vitest run src/lib/chatStore/anuma.test.ts src/lib/chatStore/migrateChats.test.ts src/lib/chatStore/vaultBackend.contract.test.ts src/lib/chatStore/vaultBackend.test.ts src/lib/chatStore/vaultParity.test.ts src/react/useChatStorage.vaultParity.test.tsx",
|
|
133
133
|
"build": "tsup",
|
|
134
134
|
"prepublishOnly": "pnpm build",
|
|
135
135
|
"docs": "typedoc",
|