@anuma/sdk 7.0.4-next.20261015012621 → 7.0.5
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 +68 -224
- package/dist/expo/index.d.mts +4 -24
- package/dist/expo/index.d.ts +4 -24
- package/dist/expo/index.mjs +68 -224
- package/dist/memory/context.d.mts +0 -1
- package/dist/memory/context.d.ts +0 -1
- package/dist/react/index.cjs +68 -229
- package/dist/react/index.d.mts +4 -24
- package/dist/react/index.d.ts +4 -24
- package/dist/react/index.mjs +68 -229
- package/dist/server/index.cjs +28 -144
- package/dist/server/index.d.mts +2 -22
- package/dist/server/index.d.ts +2 -22
- package/dist/server/index.mjs +28 -144
- package/package.json +1 -1
package/dist/react/index.d.mts
CHANGED
|
@@ -3484,7 +3484,6 @@ interface EntityOperationsContext {
|
|
|
3484
3484
|
* (server / SQLite, where the migration backfill is authoritative).
|
|
3485
3485
|
*/
|
|
3486
3486
|
allowUnscopedRows?: boolean;
|
|
3487
|
-
canWrite?: () => Promise<boolean>;
|
|
3488
3487
|
}
|
|
3489
3488
|
/**
|
|
3490
3489
|
* Link a memory to one or more entities. Accepts bare names (back-compat)
|
|
@@ -5765,10 +5764,6 @@ type ExtractOutcome = "extracted" | "no-facts" | "empty-after-retry" | "dropped-
|
|
|
5765
5764
|
*/
|
|
5766
5765
|
declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: RetainContext, options: {
|
|
5767
5766
|
extract: ExtractFactsOptions;
|
|
5768
|
-
/** Route extracted facts through this store instead of the local vault. */
|
|
5769
|
-
memoryStore?: MemoryStore | null;
|
|
5770
|
-
/** Cancel remote writes for this extraction batch. */
|
|
5771
|
-
signal?: AbortSignal;
|
|
5772
5767
|
minConfidence?: number;
|
|
5773
5768
|
/** Override scope/folder for all retained facts. */
|
|
5774
5769
|
scope?: string;
|
|
@@ -7147,12 +7142,7 @@ type MemoryRecallOptions = Omit<RecallOptions, "types" | "includeChunks" | "conv
|
|
|
7147
7142
|
* and never receives these credentials, callbacks or redactor instances.
|
|
7148
7143
|
* @public
|
|
7149
7144
|
*/
|
|
7150
|
-
type MemoryRetainOptions = Omit<RetainOptions, "folderId"
|
|
7151
|
-
/** Reject writes when the originating extraction is no longer eligible. */
|
|
7152
|
-
canWrite?: () => Promise<boolean>;
|
|
7153
|
-
/** Abort pending remote requests when the originating extraction is cancelled. */
|
|
7154
|
-
signal?: AbortSignal;
|
|
7155
|
-
};
|
|
7145
|
+
type MemoryRetainOptions = Omit<RetainOptions, "folderId">;
|
|
7156
7146
|
/**
|
|
7157
7147
|
* A topic and how many memories link to it.
|
|
7158
7148
|
* @public
|
|
@@ -7281,11 +7271,7 @@ interface MemoryStore {
|
|
|
7281
7271
|
/** Replace the memory's topics with a user-chosen set and stop auto-tagging it. */
|
|
7282
7272
|
setTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredVaultMemory | null>;
|
|
7283
7273
|
/** Add topics alongside the existing ones (auto-tagging stays on). */
|
|
7284
|
-
addTopics(memoryId: string, topics: readonly EntityInput[]
|
|
7285
|
-
unlessUserManaged?: boolean;
|
|
7286
|
-
canWrite?: () => Promise<boolean>;
|
|
7287
|
-
signal?: AbortSignal;
|
|
7288
|
-
}): Promise<StoredEntity[]>;
|
|
7274
|
+
addTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredEntity[]>;
|
|
7289
7275
|
setVisibility(id: string, visibility: VaultMemoryVisibility, options?: {
|
|
7290
7276
|
twinOptIn?: boolean;
|
|
7291
7277
|
}): Promise<StoredVaultMemory | null>;
|
|
@@ -8400,8 +8386,8 @@ interface BaseUseChatStorageOptions {
|
|
|
8400
8386
|
hooks?: RunHooks | RunHooks[];
|
|
8401
8387
|
/** WatermelonDB database instance for storing conversations and messages */
|
|
8402
8388
|
database: Database;
|
|
8403
|
-
/** Route memory
|
|
8404
|
-
memoryStore?: MemoryStore
|
|
8389
|
+
/** Route memory reads, writes, recall and the memory tools through this store instead of the database's vault; folders are unsupported. With `piiRedaction` on, build the store with `embeddingOptions.maskInput` (e.g. `(text) => redactor.maskText(text)` with any `PiiRedactor`) or its memory calls throw. */
|
|
8390
|
+
memoryStore?: MemoryStore;
|
|
8405
8391
|
/** ID of an existing conversation to load and continue */
|
|
8406
8392
|
conversationId?: string;
|
|
8407
8393
|
/** Automatically create a new conversation if none is set (default: true) */
|
|
@@ -10616,10 +10602,6 @@ interface SyncKeyValueStore {
|
|
|
10616
10602
|
declare function createPlatformCursorStore(storage: SyncKeyValueStore, keyPrefix?: string): ExtractionCursorStore;
|
|
10617
10603
|
interface CreateAutoExtractorOptions {
|
|
10618
10604
|
retainCtx: RetainContext;
|
|
10619
|
-
/** Route retained facts and topics through this store; null disables memory writes. */
|
|
10620
|
-
memoryStore?: MemoryStore | null;
|
|
10621
|
-
/** Cancel remote writes for an extraction batch. */
|
|
10622
|
-
signal?: AbortSignal;
|
|
10623
10605
|
extract: ExtractFactsOptions;
|
|
10624
10606
|
/** Confidence floor for retained facts. Default 0.7. */
|
|
10625
10607
|
minConfidence?: number;
|
|
@@ -11227,8 +11209,6 @@ interface LocalMemoryStoreOptions {
|
|
|
11227
11209
|
walletAddress?: string;
|
|
11228
11210
|
signMessage?: SignMessageFn;
|
|
11229
11211
|
embeddedWalletSigner?: EmbeddedWalletSignerFn;
|
|
11230
|
-
/** Rechecked inside each serialized memory write. */
|
|
11231
|
-
canWrite?: () => Promise<boolean>;
|
|
11232
11212
|
/**
|
|
11233
11213
|
* Scope every read/write to this user — for a shared, multi-tenant database
|
|
11234
11214
|
* whose rows all carry their `user_id`. Rows with no `user_id` are invisible
|
package/dist/react/index.d.ts
CHANGED
|
@@ -3484,7 +3484,6 @@ interface EntityOperationsContext {
|
|
|
3484
3484
|
* (server / SQLite, where the migration backfill is authoritative).
|
|
3485
3485
|
*/
|
|
3486
3486
|
allowUnscopedRows?: boolean;
|
|
3487
|
-
canWrite?: () => Promise<boolean>;
|
|
3488
3487
|
}
|
|
3489
3488
|
/**
|
|
3490
3489
|
* Link a memory to one or more entities. Accepts bare names (back-compat)
|
|
@@ -5765,10 +5764,6 @@ type ExtractOutcome = "extracted" | "no-facts" | "empty-after-retry" | "dropped-
|
|
|
5765
5764
|
*/
|
|
5766
5765
|
declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: RetainContext, options: {
|
|
5767
5766
|
extract: ExtractFactsOptions;
|
|
5768
|
-
/** Route extracted facts through this store instead of the local vault. */
|
|
5769
|
-
memoryStore?: MemoryStore | null;
|
|
5770
|
-
/** Cancel remote writes for this extraction batch. */
|
|
5771
|
-
signal?: AbortSignal;
|
|
5772
5767
|
minConfidence?: number;
|
|
5773
5768
|
/** Override scope/folder for all retained facts. */
|
|
5774
5769
|
scope?: string;
|
|
@@ -7147,12 +7142,7 @@ type MemoryRecallOptions = Omit<RecallOptions, "types" | "includeChunks" | "conv
|
|
|
7147
7142
|
* and never receives these credentials, callbacks or redactor instances.
|
|
7148
7143
|
* @public
|
|
7149
7144
|
*/
|
|
7150
|
-
type MemoryRetainOptions = Omit<RetainOptions, "folderId"
|
|
7151
|
-
/** Reject writes when the originating extraction is no longer eligible. */
|
|
7152
|
-
canWrite?: () => Promise<boolean>;
|
|
7153
|
-
/** Abort pending remote requests when the originating extraction is cancelled. */
|
|
7154
|
-
signal?: AbortSignal;
|
|
7155
|
-
};
|
|
7145
|
+
type MemoryRetainOptions = Omit<RetainOptions, "folderId">;
|
|
7156
7146
|
/**
|
|
7157
7147
|
* A topic and how many memories link to it.
|
|
7158
7148
|
* @public
|
|
@@ -7281,11 +7271,7 @@ interface MemoryStore {
|
|
|
7281
7271
|
/** Replace the memory's topics with a user-chosen set and stop auto-tagging it. */
|
|
7282
7272
|
setTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredVaultMemory | null>;
|
|
7283
7273
|
/** Add topics alongside the existing ones (auto-tagging stays on). */
|
|
7284
|
-
addTopics(memoryId: string, topics: readonly EntityInput[]
|
|
7285
|
-
unlessUserManaged?: boolean;
|
|
7286
|
-
canWrite?: () => Promise<boolean>;
|
|
7287
|
-
signal?: AbortSignal;
|
|
7288
|
-
}): Promise<StoredEntity[]>;
|
|
7274
|
+
addTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredEntity[]>;
|
|
7289
7275
|
setVisibility(id: string, visibility: VaultMemoryVisibility, options?: {
|
|
7290
7276
|
twinOptIn?: boolean;
|
|
7291
7277
|
}): Promise<StoredVaultMemory | null>;
|
|
@@ -8400,8 +8386,8 @@ interface BaseUseChatStorageOptions {
|
|
|
8400
8386
|
hooks?: RunHooks | RunHooks[];
|
|
8401
8387
|
/** WatermelonDB database instance for storing conversations and messages */
|
|
8402
8388
|
database: Database;
|
|
8403
|
-
/** Route memory
|
|
8404
|
-
memoryStore?: MemoryStore
|
|
8389
|
+
/** Route memory reads, writes, recall and the memory tools through this store instead of the database's vault; folders are unsupported. With `piiRedaction` on, build the store with `embeddingOptions.maskInput` (e.g. `(text) => redactor.maskText(text)` with any `PiiRedactor`) or its memory calls throw. */
|
|
8390
|
+
memoryStore?: MemoryStore;
|
|
8405
8391
|
/** ID of an existing conversation to load and continue */
|
|
8406
8392
|
conversationId?: string;
|
|
8407
8393
|
/** Automatically create a new conversation if none is set (default: true) */
|
|
@@ -10616,10 +10602,6 @@ interface SyncKeyValueStore {
|
|
|
10616
10602
|
declare function createPlatformCursorStore(storage: SyncKeyValueStore, keyPrefix?: string): ExtractionCursorStore;
|
|
10617
10603
|
interface CreateAutoExtractorOptions {
|
|
10618
10604
|
retainCtx: RetainContext;
|
|
10619
|
-
/** Route retained facts and topics through this store; null disables memory writes. */
|
|
10620
|
-
memoryStore?: MemoryStore | null;
|
|
10621
|
-
/** Cancel remote writes for an extraction batch. */
|
|
10622
|
-
signal?: AbortSignal;
|
|
10623
10605
|
extract: ExtractFactsOptions;
|
|
10624
10606
|
/** Confidence floor for retained facts. Default 0.7. */
|
|
10625
10607
|
minConfidence?: number;
|
|
@@ -11227,8 +11209,6 @@ interface LocalMemoryStoreOptions {
|
|
|
11227
11209
|
walletAddress?: string;
|
|
11228
11210
|
signMessage?: SignMessageFn;
|
|
11229
11211
|
embeddedWalletSigner?: EmbeddedWalletSignerFn;
|
|
11230
|
-
/** Rechecked inside each serialized memory write. */
|
|
11231
|
-
canWrite?: () => Promise<boolean>;
|
|
11232
11212
|
/**
|
|
11233
11213
|
* Scope every read/write to this user — for a shared, multi-tenant database
|
|
11234
11214
|
* whose rows all carry their `user_id`. Rows with no `user_id` are invisible
|