@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.
@@ -3302,7 +3302,6 @@ interface EntityOperationsContext {
3302
3302
  * (server / SQLite, where the migration backfill is authoritative).
3303
3303
  */
3304
3304
  allowUnscopedRows?: boolean;
3305
- canWrite?: () => Promise<boolean>;
3306
3305
  }
3307
3306
 
3308
3307
  /**
@@ -5252,10 +5251,6 @@ type ExtractOutcome = "extracted" | "no-facts" | "empty-after-retry" | "dropped-
5252
5251
  */
5253
5252
  declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: RetainContext, options: {
5254
5253
  extract: ExtractFactsOptions;
5255
- /** Route extracted facts through this store instead of the local vault. */
5256
- memoryStore?: MemoryStore | null;
5257
- /** Cancel remote writes for this extraction batch. */
5258
- signal?: AbortSignal;
5259
5254
  minConfidence?: number;
5260
5255
  /** Override scope/folder for all retained facts. */
5261
5256
  scope?: string;
@@ -6545,12 +6540,7 @@ type MemoryRecallOptions = Omit<RecallOptions, "types" | "includeChunks" | "conv
6545
6540
  * and never receives these credentials, callbacks or redactor instances.
6546
6541
  * @public
6547
6542
  */
6548
- type MemoryRetainOptions = Omit<RetainOptions, "folderId"> & {
6549
- /** Reject writes when the originating extraction is no longer eligible. */
6550
- canWrite?: () => Promise<boolean>;
6551
- /** Abort pending remote requests when the originating extraction is cancelled. */
6552
- signal?: AbortSignal;
6553
- };
6543
+ type MemoryRetainOptions = Omit<RetainOptions, "folderId">;
6554
6544
  /**
6555
6545
  * A topic and how many memories link to it.
6556
6546
  * @public
@@ -6679,11 +6669,7 @@ interface MemoryStore {
6679
6669
  /** Replace the memory's topics with a user-chosen set and stop auto-tagging it. */
6680
6670
  setTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredVaultMemory | null>;
6681
6671
  /** Add topics alongside the existing ones (auto-tagging stays on). */
6682
- addTopics(memoryId: string, topics: readonly EntityInput[], options?: {
6683
- unlessUserManaged?: boolean;
6684
- canWrite?: () => Promise<boolean>;
6685
- signal?: AbortSignal;
6686
- }): Promise<StoredEntity[]>;
6672
+ addTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredEntity[]>;
6687
6673
  setVisibility(id: string, visibility: VaultMemoryVisibility, options?: {
6688
6674
  twinOptIn?: boolean;
6689
6675
  }): Promise<StoredVaultMemory | null>;
@@ -7380,8 +7366,8 @@ interface BaseUseChatStorageOptions {
7380
7366
  hooks?: RunHooks | RunHooks[];
7381
7367
  /** WatermelonDB database instance for storing conversations and messages */
7382
7368
  database: Database;
7383
- /** Route memory operations through this store; `null` disables memory access while `undefined` uses the local vault. Folders are unsupported. With `piiRedaction` on, build the store with `embeddingOptions.maskInput` or its memory calls throw. */
7384
- memoryStore?: MemoryStore | null;
7369
+ /** 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. */
7370
+ memoryStore?: MemoryStore;
7385
7371
  /** ID of an existing conversation to load and continue */
7386
7372
  conversationId?: string;
7387
7373
  /** Automatically create a new conversation if none is set (default: true) */
@@ -8886,10 +8872,6 @@ interface SyncKeyValueStore {
8886
8872
  declare function createPlatformCursorStore(storage: SyncKeyValueStore, keyPrefix?: string): ExtractionCursorStore;
8887
8873
  interface CreateAutoExtractorOptions {
8888
8874
  retainCtx: RetainContext;
8889
- /** Route retained facts and topics through this store; null disables memory writes. */
8890
- memoryStore?: MemoryStore | null;
8891
- /** Cancel remote writes for an extraction batch. */
8892
- signal?: AbortSignal;
8893
8875
  extract: ExtractFactsOptions;
8894
8876
  /** Confidence floor for retained facts. Default 0.7. */
8895
8877
  minConfidence?: number;
@@ -9497,8 +9479,6 @@ interface LocalMemoryStoreOptions {
9497
9479
  walletAddress?: string;
9498
9480
  signMessage?: SignMessageFn;
9499
9481
  embeddedWalletSigner?: EmbeddedWalletSignerFn;
9500
- /** Rechecked inside each serialized memory write. */
9501
- canWrite?: () => Promise<boolean>;
9502
9482
  /**
9503
9483
  * Scope every read/write to this user — for a shared, multi-tenant database
9504
9484
  * whose rows all carry their `user_id`. Rows with no `user_id` are invisible
@@ -3302,7 +3302,6 @@ interface EntityOperationsContext {
3302
3302
  * (server / SQLite, where the migration backfill is authoritative).
3303
3303
  */
3304
3304
  allowUnscopedRows?: boolean;
3305
- canWrite?: () => Promise<boolean>;
3306
3305
  }
3307
3306
 
3308
3307
  /**
@@ -5252,10 +5251,6 @@ type ExtractOutcome = "extracted" | "no-facts" | "empty-after-retry" | "dropped-
5252
5251
  */
5253
5252
  declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: RetainContext, options: {
5254
5253
  extract: ExtractFactsOptions;
5255
- /** Route extracted facts through this store instead of the local vault. */
5256
- memoryStore?: MemoryStore | null;
5257
- /** Cancel remote writes for this extraction batch. */
5258
- signal?: AbortSignal;
5259
5254
  minConfidence?: number;
5260
5255
  /** Override scope/folder for all retained facts. */
5261
5256
  scope?: string;
@@ -6545,12 +6540,7 @@ type MemoryRecallOptions = Omit<RecallOptions, "types" | "includeChunks" | "conv
6545
6540
  * and never receives these credentials, callbacks or redactor instances.
6546
6541
  * @public
6547
6542
  */
6548
- type MemoryRetainOptions = Omit<RetainOptions, "folderId"> & {
6549
- /** Reject writes when the originating extraction is no longer eligible. */
6550
- canWrite?: () => Promise<boolean>;
6551
- /** Abort pending remote requests when the originating extraction is cancelled. */
6552
- signal?: AbortSignal;
6553
- };
6543
+ type MemoryRetainOptions = Omit<RetainOptions, "folderId">;
6554
6544
  /**
6555
6545
  * A topic and how many memories link to it.
6556
6546
  * @public
@@ -6679,11 +6669,7 @@ interface MemoryStore {
6679
6669
  /** Replace the memory's topics with a user-chosen set and stop auto-tagging it. */
6680
6670
  setTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredVaultMemory | null>;
6681
6671
  /** Add topics alongside the existing ones (auto-tagging stays on). */
6682
- addTopics(memoryId: string, topics: readonly EntityInput[], options?: {
6683
- unlessUserManaged?: boolean;
6684
- canWrite?: () => Promise<boolean>;
6685
- signal?: AbortSignal;
6686
- }): Promise<StoredEntity[]>;
6672
+ addTopics(memoryId: string, topics: readonly EntityInput[]): Promise<StoredEntity[]>;
6687
6673
  setVisibility(id: string, visibility: VaultMemoryVisibility, options?: {
6688
6674
  twinOptIn?: boolean;
6689
6675
  }): Promise<StoredVaultMemory | null>;
@@ -7380,8 +7366,8 @@ interface BaseUseChatStorageOptions {
7380
7366
  hooks?: RunHooks | RunHooks[];
7381
7367
  /** WatermelonDB database instance for storing conversations and messages */
7382
7368
  database: Database;
7383
- /** Route memory operations through this store; `null` disables memory access while `undefined` uses the local vault. Folders are unsupported. With `piiRedaction` on, build the store with `embeddingOptions.maskInput` or its memory calls throw. */
7384
- memoryStore?: MemoryStore | null;
7369
+ /** 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. */
7370
+ memoryStore?: MemoryStore;
7385
7371
  /** ID of an existing conversation to load and continue */
7386
7372
  conversationId?: string;
7387
7373
  /** Automatically create a new conversation if none is set (default: true) */
@@ -8886,10 +8872,6 @@ interface SyncKeyValueStore {
8886
8872
  declare function createPlatformCursorStore(storage: SyncKeyValueStore, keyPrefix?: string): ExtractionCursorStore;
8887
8873
  interface CreateAutoExtractorOptions {
8888
8874
  retainCtx: RetainContext;
8889
- /** Route retained facts and topics through this store; null disables memory writes. */
8890
- memoryStore?: MemoryStore | null;
8891
- /** Cancel remote writes for an extraction batch. */
8892
- signal?: AbortSignal;
8893
8875
  extract: ExtractFactsOptions;
8894
8876
  /** Confidence floor for retained facts. Default 0.7. */
8895
8877
  minConfidence?: number;
@@ -9497,8 +9479,6 @@ interface LocalMemoryStoreOptions {
9497
9479
  walletAddress?: string;
9498
9480
  signMessage?: SignMessageFn;
9499
9481
  embeddedWalletSigner?: EmbeddedWalletSignerFn;
9500
- /** Rechecked inside each serialized memory write. */
9501
- canWrite?: () => Promise<boolean>;
9502
9482
  /**
9503
9483
  * Scope every read/write to this user — for a shared, multi-tenant database
9504
9484
  * whose rows all carry their `user_id`. Rows with no `user_id` are invisible