@anuma/sdk 2.4.0 → 2.4.2
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/client/index.cjs +8 -0
- package/dist/client/index.d.mts +44 -1
- package/dist/client/index.d.ts +44 -1
- package/dist/client/index.mjs +7 -0
- package/dist/expo/{chunk-SF5AYTXH.mjs → chunk-UOUJUZM4.mjs} +229 -35
- package/dist/expo/index.cjs +256 -38
- package/dist/expo/index.d.mts +146 -1
- package/dist/expo/index.d.ts +146 -1
- package/dist/expo/index.mjs +25 -3
- package/dist/expo/{recall-PCKDVF3U.mjs → recall-HI7VO3VM.mjs} +1 -1
- package/dist/react/{chunk-JUDJVX66.mjs → chunk-IYDQBFS2.mjs} +229 -35
- package/dist/react/index.cjs +252 -37
- package/dist/react/index.d.mts +153 -1
- package/dist/react/index.d.ts +153 -1
- package/dist/react/index.mjs +21 -2
- package/dist/react/{recall-DSJSBDR4.mjs → recall-G3CS444F.mjs} +1 -1
- package/dist/server/{chunk-3AWYZRTS.mjs → chunk-3MLG7SUH.mjs} +229 -35
- package/dist/server/index.cjs +245 -36
- package/dist/server/index.d.mts +153 -1
- package/dist/server/index.d.ts +153 -1
- package/dist/server/index.mjs +14 -1
- package/dist/server/{recall-EWMI64SA.mjs → recall-MJHGXMHZ.mjs} +1 -1
- package/package.json +2 -2
package/dist/react/index.d.mts
CHANGED
|
@@ -5453,6 +5453,37 @@ declare function searchMessagesOp(ctx: StorageOperationsContext, queryVector: nu
|
|
|
5453
5453
|
minSimilarity?: number;
|
|
5454
5454
|
conversationId?: string;
|
|
5455
5455
|
}): Promise<StoredMessageWithSimilarity[]>;
|
|
5456
|
+
/**
|
|
5457
|
+
* Decrypted, model-native chunk vectors for one message, cached across recall
|
|
5458
|
+
* calls so the chunk lane doesn't re-decrypt + re-JSON.parse every message's
|
|
5459
|
+
* embeddings on every query. Keyed by message id; `version` is the message's
|
|
5460
|
+
* `updated_at` at cache time, so a re-embed (which bumps `updated_at`) misses
|
|
5461
|
+
* and repopulates. Vectors are stored Float32 — model-native precision, half
|
|
5462
|
+
* the RAM of float64 `number[]` — mirroring the vault embedding cache (#705).
|
|
5463
|
+
* Content text is deliberately NOT cached (see searchChunksOp): it isn't
|
|
5464
|
+
* needed for scoring, and keeping decrypted content out of the cache preserves
|
|
5465
|
+
* the SDK's data-at-rest posture.
|
|
5466
|
+
*/
|
|
5467
|
+
interface CachedChunkVectors {
|
|
5468
|
+
/** Message `updated_at` (ms) at cache time — the invalidation token. */
|
|
5469
|
+
version: number;
|
|
5470
|
+
/**
|
|
5471
|
+
* Per-chunk embedding vectors, index-aligned with the message's decrypted
|
|
5472
|
+
* `chunks` array (empty-vector chunks kept as zero-length placeholders so
|
|
5473
|
+
* indices stay aligned). Empty when the message has only a whole-message
|
|
5474
|
+
* `fallback` vector.
|
|
5475
|
+
*/
|
|
5476
|
+
chunks: Float32Array[];
|
|
5477
|
+
/** Whole-message vector when the message was embedded without chunking. */
|
|
5478
|
+
fallback?: Float32Array;
|
|
5479
|
+
}
|
|
5480
|
+
/**
|
|
5481
|
+
* Cache consumed by {@link searchChunksOp}, keyed by message id. A plain `Map`
|
|
5482
|
+
* (satisfied by the LRU from `createChunkVectorCache`) — mirrors
|
|
5483
|
+
* `VaultEmbeddingCache` so consumers get the same `clear()`/`delete()`
|
|
5484
|
+
* ergonomics on an encryption-key reset.
|
|
5485
|
+
*/
|
|
5486
|
+
type ChunkVectorCache = Map<string, CachedChunkVectors>;
|
|
5456
5487
|
/**
|
|
5457
5488
|
* Search through message chunks for fine-grained semantic search.
|
|
5458
5489
|
* Returns the matching chunk text along with the parent message.
|
|
@@ -5470,6 +5501,13 @@ declare function searchChunksOp(ctx: StorageOperationsContext, queryVector: numb
|
|
|
5470
5501
|
* messages are re-embedded out-of-band by `chunkAndEmbedAllMessages`.
|
|
5471
5502
|
*/
|
|
5472
5503
|
embeddingModel?: string;
|
|
5504
|
+
/**
|
|
5505
|
+
* Optional decrypted-vector cache. When provided, the per-query decrypt +
|
|
5506
|
+
* JSON.parse of every message's chunk vectors is skipped on warm entries
|
|
5507
|
+
* (validated by `updated_at`), which is the dominant cost of the chunk
|
|
5508
|
+
* lane. Omit for the legacy always-decrypt behavior.
|
|
5509
|
+
*/
|
|
5510
|
+
chunkCache?: ChunkVectorCache;
|
|
5473
5511
|
}): Promise<ChunkSearchResult[]>;
|
|
5474
5512
|
|
|
5475
5513
|
declare const chatStorageSchema: Readonly<{
|
|
@@ -6207,6 +6245,14 @@ interface RecallOptions {
|
|
|
6207
6245
|
* resolves windows in 2026 and never overlaps stored event_time.
|
|
6208
6246
|
*/
|
|
6209
6247
|
now?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* Best-effort observability hook. Called once per `recall()` with per-lane
|
|
6250
|
+
* timings, lane counts, and soft-degradation signals — the raw material for
|
|
6251
|
+
* tuning latency/quality and for wiring recall telemetry to PostHog. Invoked
|
|
6252
|
+
* synchronously just before `recall()` returns; a throwing callback is
|
|
6253
|
+
* swallowed (diagnostics must never break retrieval). Off unless provided.
|
|
6254
|
+
*/
|
|
6255
|
+
onDiagnostics?: (diagnostics: RecallDiagnostics) => void;
|
|
6210
6256
|
/** Number of candidates fed to the cross-encoder rerank stage. Default: 30. */
|
|
6211
6257
|
rerankTopN?: number;
|
|
6212
6258
|
/** Multiplicative cross-encoder blend weight. Default: 0.1. */
|
|
@@ -6237,6 +6283,12 @@ interface RecallContext {
|
|
|
6237
6283
|
embeddingOptions: EmbeddingOptions;
|
|
6238
6284
|
/** Vault embedding LRU cache. */
|
|
6239
6285
|
vaultCache?: VaultEmbeddingCache;
|
|
6286
|
+
/**
|
|
6287
|
+
* Optional chunk-vector LRU cache. When provided, the chunk lane skips the
|
|
6288
|
+
* per-query decrypt + JSON.parse of every message's chunk vectors on warm
|
|
6289
|
+
* entries. Build via `createChunkVectorCache`. Omit for legacy behavior.
|
|
6290
|
+
*/
|
|
6291
|
+
chunkCache?: ChunkVectorCache;
|
|
6240
6292
|
/**
|
|
6241
6293
|
* Optional — when provided, recall extracts entities from the query
|
|
6242
6294
|
* and adds a graph lane to the RRF fusion (memories sharing entities
|
|
@@ -6256,6 +6308,48 @@ interface RecallResult {
|
|
|
6256
6308
|
/** Diagnostic: total memories in the vault when fact lane was queried. */
|
|
6257
6309
|
vaultSize?: number;
|
|
6258
6310
|
}
|
|
6311
|
+
/** Soft-degradation signals surfaced via {@link RecallDiagnostics.degraded}. */
|
|
6312
|
+
type RecallDegradation =
|
|
6313
|
+
/** Rerank was requested (budget mid/high) but the cross-encoder didn't run
|
|
6314
|
+
* this call — unavailable (e.g. React Native) or a transient failure. */
|
|
6315
|
+
"rerank-unavailable"
|
|
6316
|
+
/** `budget: 'high'` requested but no `decomposeOptions`, so query
|
|
6317
|
+
* decomposition was skipped and the budget downgraded to mid. */
|
|
6318
|
+
| "decompose-unavailable";
|
|
6319
|
+
/**
|
|
6320
|
+
* Per-call recall observability payload (see {@link RecallOptions.onDiagnostics}).
|
|
6321
|
+
* All timings are wall-clock milliseconds. Lane counts are post-dedupe,
|
|
6322
|
+
* pre-fusion. Intended to be forwarded to a metrics sink (e.g. PostHog).
|
|
6323
|
+
*/
|
|
6324
|
+
interface RecallDiagnostics {
|
|
6325
|
+
/** Budget actually executed (may have downgraded from the requested one). */
|
|
6326
|
+
usedBudget: Budget;
|
|
6327
|
+
/** Whether the cross-encoder actually reranked the fact lane this call. */
|
|
6328
|
+
reranked: boolean;
|
|
6329
|
+
/** Total candidates considered before truncation. */
|
|
6330
|
+
candidateCount: number;
|
|
6331
|
+
/** Total vault size when the fact lane ran (absent if it didn't). */
|
|
6332
|
+
vaultSize?: number;
|
|
6333
|
+
/** Facts the fact lane returned (post-dedupe, pre-fusion). */
|
|
6334
|
+
factCount: number;
|
|
6335
|
+
/** Chunks the chunk lane returned (post-dedupe, pre-fusion). */
|
|
6336
|
+
chunkCount: number;
|
|
6337
|
+
/** Wall-clock phase timings (ms). */
|
|
6338
|
+
timings: {
|
|
6339
|
+
/** Whole `recall()` call. */
|
|
6340
|
+
total: number;
|
|
6341
|
+
/** Parallel query-embed + graph/temporal side-lane build. */
|
|
6342
|
+
prep: number;
|
|
6343
|
+
/** Vault fact-lane search (`searchVaultMemoriesWithSize`). */
|
|
6344
|
+
factLane: number;
|
|
6345
|
+
/** Chunk-lane search (`searchChunksOp`). */
|
|
6346
|
+
chunkLane: number;
|
|
6347
|
+
/** Cross-lane RRF fusion + provenance dedup after both lanes. */
|
|
6348
|
+
fuse: number;
|
|
6349
|
+
};
|
|
6350
|
+
/** Soft-degradation signals that fired this call (empty when clean). */
|
|
6351
|
+
degraded: RecallDegradation[];
|
|
6352
|
+
}
|
|
6259
6353
|
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed";
|
|
6260
6354
|
type RetainSource = "manual" | "auto-extracted" | "capsule";
|
|
6261
6355
|
/** Why the consolidator fell back to "create" instead of a real decision. */
|
|
@@ -6824,6 +6918,24 @@ interface AutoExtractor {
|
|
|
6824
6918
|
*/
|
|
6825
6919
|
declare function createAutoExtractor(options: CreateAutoExtractorOptions): AutoExtractor;
|
|
6826
6920
|
|
|
6921
|
+
/**
|
|
6922
|
+
* Default entry cap for the chunk-vector cache. Entries are keyed by message
|
|
6923
|
+
* id, so this bounds how many messages' decrypted chunk vectors stay resident.
|
|
6924
|
+
* Matches the vault cache default (#705).
|
|
6925
|
+
*/
|
|
6926
|
+
declare const DEFAULT_CHUNK_CACHE_SIZE = 5000;
|
|
6927
|
+
/**
|
|
6928
|
+
* Create a {@link ChunkVectorCache} backed by an LRU. Pass the returned cache
|
|
6929
|
+
* into `recall()` (via `RecallContext.chunkCache`) so the chunk lane skips the
|
|
6930
|
+
* per-query decrypt + JSON.parse of every message's chunk vectors on warm
|
|
6931
|
+
* entries. Stale entries self-invalidate on `updated_at` mismatch, so no
|
|
6932
|
+
* explicit invalidation is required beyond clearing it on an encryption-key
|
|
6933
|
+
* reset (wallet switch), mirroring the vault embedding cache.
|
|
6934
|
+
*
|
|
6935
|
+
* @public
|
|
6936
|
+
*/
|
|
6937
|
+
declare function createChunkVectorCache(maxSize?: number): ChunkVectorCache;
|
|
6938
|
+
|
|
6827
6939
|
/**
|
|
6828
6940
|
* Unified Recall API — single retrieval surface above vault + engine.
|
|
6829
6941
|
*
|
|
@@ -6976,6 +7088,46 @@ interface ReflectResult {
|
|
|
6976
7088
|
*/
|
|
6977
7089
|
declare function reflect(query: string, ctx: RecallContext, options: ReflectOptions): Promise<ReflectResult>;
|
|
6978
7090
|
|
|
7091
|
+
/**
|
|
7092
|
+
* Cross-encoder reranker — local inference via @huggingface/transformers.
|
|
7093
|
+
*
|
|
7094
|
+
* Mirrors Hindsight's default reranker (`cross-encoder/ms-marco-MiniLM-L-6-v2`)
|
|
7095
|
+
* for parity with their reference pipeline. Runs fully on-device — no API
|
|
7096
|
+
* key, no network call, works offline. Model file ~25MB; lazy-loaded and
|
|
7097
|
+
* cached for the lifetime of the process.
|
|
7098
|
+
*
|
|
7099
|
+
* Implementation note: transformers.js v3 doesn't expose a "text-ranking"
|
|
7100
|
+
* pipeline, so we drive the cross-encoder directly via the tokenizer +
|
|
7101
|
+
* sequence-classification model. The model outputs a single relevance
|
|
7102
|
+
* logit per (query, doc) pair; we sigmoid it into [0, 1].
|
|
7103
|
+
*/
|
|
7104
|
+
/**
|
|
7105
|
+
* Thrown when the cross-encoder cannot run because its optional peer
|
|
7106
|
+
* dependency (`@huggingface/transformers`) isn't installed — the expected
|
|
7107
|
+
* state on React Native, where the package isn't part of the bundle. Callers
|
|
7108
|
+
* treat this as "reranker unavailable, degrade to the fused ranking" rather
|
|
7109
|
+
* than a transient error worth warning about on every recall.
|
|
7110
|
+
*
|
|
7111
|
+
* @public
|
|
7112
|
+
*/
|
|
7113
|
+
declare class RerankerUnavailableError extends Error {
|
|
7114
|
+
/** The underlying import failure, kept for debugging. */
|
|
7115
|
+
readonly reason: unknown;
|
|
7116
|
+
constructor(reason: unknown);
|
|
7117
|
+
}
|
|
7118
|
+
/**
|
|
7119
|
+
* Whether the cross-encoder reranker can run in this environment.
|
|
7120
|
+
*
|
|
7121
|
+
* - `true` — the model loaded successfully at least once.
|
|
7122
|
+
* - `false` — the optional `@huggingface/transformers` dependency is missing
|
|
7123
|
+
* (e.g. React Native); reranking is permanently degraded to the fused
|
|
7124
|
+
* ranking and no further load attempts are made.
|
|
7125
|
+
* - `undefined` — no rerank has been attempted yet, so availability is unknown.
|
|
7126
|
+
*
|
|
7127
|
+
* @public
|
|
7128
|
+
*/
|
|
7129
|
+
declare function isRerankerAvailable(): boolean | undefined;
|
|
7130
|
+
|
|
6979
7131
|
/**
|
|
6980
7132
|
* Standalone topic (entity) extraction for EXISTING memories.
|
|
6981
7133
|
*
|
|
@@ -12375,4 +12527,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
12375
12527
|
*/
|
|
12376
12528
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
12377
12529
|
|
|
12378
|
-
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GroupProps, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type Logger, LoggerProvider, type LoggerProviderProps, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, type OCRFile, type OperationExecutor, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScreenProps, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, THEME_ATTRS, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, backfillMemoryEntityUserIdsOp, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createCryptoPricePreProcessor, createGitHubTools, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
|
12530
|
+
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GroupProps, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type Logger, LoggerProvider, type LoggerProviderProps, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, type OCRFile, type OperationExecutor, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScreenProps, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, THEME_ATTRS, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, backfillMemoryEntityUserIdsOp, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createGitHubTools, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -5453,6 +5453,37 @@ declare function searchMessagesOp(ctx: StorageOperationsContext, queryVector: nu
|
|
|
5453
5453
|
minSimilarity?: number;
|
|
5454
5454
|
conversationId?: string;
|
|
5455
5455
|
}): Promise<StoredMessageWithSimilarity[]>;
|
|
5456
|
+
/**
|
|
5457
|
+
* Decrypted, model-native chunk vectors for one message, cached across recall
|
|
5458
|
+
* calls so the chunk lane doesn't re-decrypt + re-JSON.parse every message's
|
|
5459
|
+
* embeddings on every query. Keyed by message id; `version` is the message's
|
|
5460
|
+
* `updated_at` at cache time, so a re-embed (which bumps `updated_at`) misses
|
|
5461
|
+
* and repopulates. Vectors are stored Float32 — model-native precision, half
|
|
5462
|
+
* the RAM of float64 `number[]` — mirroring the vault embedding cache (#705).
|
|
5463
|
+
* Content text is deliberately NOT cached (see searchChunksOp): it isn't
|
|
5464
|
+
* needed for scoring, and keeping decrypted content out of the cache preserves
|
|
5465
|
+
* the SDK's data-at-rest posture.
|
|
5466
|
+
*/
|
|
5467
|
+
interface CachedChunkVectors {
|
|
5468
|
+
/** Message `updated_at` (ms) at cache time — the invalidation token. */
|
|
5469
|
+
version: number;
|
|
5470
|
+
/**
|
|
5471
|
+
* Per-chunk embedding vectors, index-aligned with the message's decrypted
|
|
5472
|
+
* `chunks` array (empty-vector chunks kept as zero-length placeholders so
|
|
5473
|
+
* indices stay aligned). Empty when the message has only a whole-message
|
|
5474
|
+
* `fallback` vector.
|
|
5475
|
+
*/
|
|
5476
|
+
chunks: Float32Array[];
|
|
5477
|
+
/** Whole-message vector when the message was embedded without chunking. */
|
|
5478
|
+
fallback?: Float32Array;
|
|
5479
|
+
}
|
|
5480
|
+
/**
|
|
5481
|
+
* Cache consumed by {@link searchChunksOp}, keyed by message id. A plain `Map`
|
|
5482
|
+
* (satisfied by the LRU from `createChunkVectorCache`) — mirrors
|
|
5483
|
+
* `VaultEmbeddingCache` so consumers get the same `clear()`/`delete()`
|
|
5484
|
+
* ergonomics on an encryption-key reset.
|
|
5485
|
+
*/
|
|
5486
|
+
type ChunkVectorCache = Map<string, CachedChunkVectors>;
|
|
5456
5487
|
/**
|
|
5457
5488
|
* Search through message chunks for fine-grained semantic search.
|
|
5458
5489
|
* Returns the matching chunk text along with the parent message.
|
|
@@ -5470,6 +5501,13 @@ declare function searchChunksOp(ctx: StorageOperationsContext, queryVector: numb
|
|
|
5470
5501
|
* messages are re-embedded out-of-band by `chunkAndEmbedAllMessages`.
|
|
5471
5502
|
*/
|
|
5472
5503
|
embeddingModel?: string;
|
|
5504
|
+
/**
|
|
5505
|
+
* Optional decrypted-vector cache. When provided, the per-query decrypt +
|
|
5506
|
+
* JSON.parse of every message's chunk vectors is skipped on warm entries
|
|
5507
|
+
* (validated by `updated_at`), which is the dominant cost of the chunk
|
|
5508
|
+
* lane. Omit for the legacy always-decrypt behavior.
|
|
5509
|
+
*/
|
|
5510
|
+
chunkCache?: ChunkVectorCache;
|
|
5473
5511
|
}): Promise<ChunkSearchResult[]>;
|
|
5474
5512
|
|
|
5475
5513
|
declare const chatStorageSchema: Readonly<{
|
|
@@ -6207,6 +6245,14 @@ interface RecallOptions {
|
|
|
6207
6245
|
* resolves windows in 2026 and never overlaps stored event_time.
|
|
6208
6246
|
*/
|
|
6209
6247
|
now?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* Best-effort observability hook. Called once per `recall()` with per-lane
|
|
6250
|
+
* timings, lane counts, and soft-degradation signals — the raw material for
|
|
6251
|
+
* tuning latency/quality and for wiring recall telemetry to PostHog. Invoked
|
|
6252
|
+
* synchronously just before `recall()` returns; a throwing callback is
|
|
6253
|
+
* swallowed (diagnostics must never break retrieval). Off unless provided.
|
|
6254
|
+
*/
|
|
6255
|
+
onDiagnostics?: (diagnostics: RecallDiagnostics) => void;
|
|
6210
6256
|
/** Number of candidates fed to the cross-encoder rerank stage. Default: 30. */
|
|
6211
6257
|
rerankTopN?: number;
|
|
6212
6258
|
/** Multiplicative cross-encoder blend weight. Default: 0.1. */
|
|
@@ -6237,6 +6283,12 @@ interface RecallContext {
|
|
|
6237
6283
|
embeddingOptions: EmbeddingOptions;
|
|
6238
6284
|
/** Vault embedding LRU cache. */
|
|
6239
6285
|
vaultCache?: VaultEmbeddingCache;
|
|
6286
|
+
/**
|
|
6287
|
+
* Optional chunk-vector LRU cache. When provided, the chunk lane skips the
|
|
6288
|
+
* per-query decrypt + JSON.parse of every message's chunk vectors on warm
|
|
6289
|
+
* entries. Build via `createChunkVectorCache`. Omit for legacy behavior.
|
|
6290
|
+
*/
|
|
6291
|
+
chunkCache?: ChunkVectorCache;
|
|
6240
6292
|
/**
|
|
6241
6293
|
* Optional — when provided, recall extracts entities from the query
|
|
6242
6294
|
* and adds a graph lane to the RRF fusion (memories sharing entities
|
|
@@ -6256,6 +6308,48 @@ interface RecallResult {
|
|
|
6256
6308
|
/** Diagnostic: total memories in the vault when fact lane was queried. */
|
|
6257
6309
|
vaultSize?: number;
|
|
6258
6310
|
}
|
|
6311
|
+
/** Soft-degradation signals surfaced via {@link RecallDiagnostics.degraded}. */
|
|
6312
|
+
type RecallDegradation =
|
|
6313
|
+
/** Rerank was requested (budget mid/high) but the cross-encoder didn't run
|
|
6314
|
+
* this call — unavailable (e.g. React Native) or a transient failure. */
|
|
6315
|
+
"rerank-unavailable"
|
|
6316
|
+
/** `budget: 'high'` requested but no `decomposeOptions`, so query
|
|
6317
|
+
* decomposition was skipped and the budget downgraded to mid. */
|
|
6318
|
+
| "decompose-unavailable";
|
|
6319
|
+
/**
|
|
6320
|
+
* Per-call recall observability payload (see {@link RecallOptions.onDiagnostics}).
|
|
6321
|
+
* All timings are wall-clock milliseconds. Lane counts are post-dedupe,
|
|
6322
|
+
* pre-fusion. Intended to be forwarded to a metrics sink (e.g. PostHog).
|
|
6323
|
+
*/
|
|
6324
|
+
interface RecallDiagnostics {
|
|
6325
|
+
/** Budget actually executed (may have downgraded from the requested one). */
|
|
6326
|
+
usedBudget: Budget;
|
|
6327
|
+
/** Whether the cross-encoder actually reranked the fact lane this call. */
|
|
6328
|
+
reranked: boolean;
|
|
6329
|
+
/** Total candidates considered before truncation. */
|
|
6330
|
+
candidateCount: number;
|
|
6331
|
+
/** Total vault size when the fact lane ran (absent if it didn't). */
|
|
6332
|
+
vaultSize?: number;
|
|
6333
|
+
/** Facts the fact lane returned (post-dedupe, pre-fusion). */
|
|
6334
|
+
factCount: number;
|
|
6335
|
+
/** Chunks the chunk lane returned (post-dedupe, pre-fusion). */
|
|
6336
|
+
chunkCount: number;
|
|
6337
|
+
/** Wall-clock phase timings (ms). */
|
|
6338
|
+
timings: {
|
|
6339
|
+
/** Whole `recall()` call. */
|
|
6340
|
+
total: number;
|
|
6341
|
+
/** Parallel query-embed + graph/temporal side-lane build. */
|
|
6342
|
+
prep: number;
|
|
6343
|
+
/** Vault fact-lane search (`searchVaultMemoriesWithSize`). */
|
|
6344
|
+
factLane: number;
|
|
6345
|
+
/** Chunk-lane search (`searchChunksOp`). */
|
|
6346
|
+
chunkLane: number;
|
|
6347
|
+
/** Cross-lane RRF fusion + provenance dedup after both lanes. */
|
|
6348
|
+
fuse: number;
|
|
6349
|
+
};
|
|
6350
|
+
/** Soft-degradation signals that fired this call (empty when clean). */
|
|
6351
|
+
degraded: RecallDegradation[];
|
|
6352
|
+
}
|
|
6259
6353
|
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed";
|
|
6260
6354
|
type RetainSource = "manual" | "auto-extracted" | "capsule";
|
|
6261
6355
|
/** Why the consolidator fell back to "create" instead of a real decision. */
|
|
@@ -6824,6 +6918,24 @@ interface AutoExtractor {
|
|
|
6824
6918
|
*/
|
|
6825
6919
|
declare function createAutoExtractor(options: CreateAutoExtractorOptions): AutoExtractor;
|
|
6826
6920
|
|
|
6921
|
+
/**
|
|
6922
|
+
* Default entry cap for the chunk-vector cache. Entries are keyed by message
|
|
6923
|
+
* id, so this bounds how many messages' decrypted chunk vectors stay resident.
|
|
6924
|
+
* Matches the vault cache default (#705).
|
|
6925
|
+
*/
|
|
6926
|
+
declare const DEFAULT_CHUNK_CACHE_SIZE = 5000;
|
|
6927
|
+
/**
|
|
6928
|
+
* Create a {@link ChunkVectorCache} backed by an LRU. Pass the returned cache
|
|
6929
|
+
* into `recall()` (via `RecallContext.chunkCache`) so the chunk lane skips the
|
|
6930
|
+
* per-query decrypt + JSON.parse of every message's chunk vectors on warm
|
|
6931
|
+
* entries. Stale entries self-invalidate on `updated_at` mismatch, so no
|
|
6932
|
+
* explicit invalidation is required beyond clearing it on an encryption-key
|
|
6933
|
+
* reset (wallet switch), mirroring the vault embedding cache.
|
|
6934
|
+
*
|
|
6935
|
+
* @public
|
|
6936
|
+
*/
|
|
6937
|
+
declare function createChunkVectorCache(maxSize?: number): ChunkVectorCache;
|
|
6938
|
+
|
|
6827
6939
|
/**
|
|
6828
6940
|
* Unified Recall API — single retrieval surface above vault + engine.
|
|
6829
6941
|
*
|
|
@@ -6976,6 +7088,46 @@ interface ReflectResult {
|
|
|
6976
7088
|
*/
|
|
6977
7089
|
declare function reflect(query: string, ctx: RecallContext, options: ReflectOptions): Promise<ReflectResult>;
|
|
6978
7090
|
|
|
7091
|
+
/**
|
|
7092
|
+
* Cross-encoder reranker — local inference via @huggingface/transformers.
|
|
7093
|
+
*
|
|
7094
|
+
* Mirrors Hindsight's default reranker (`cross-encoder/ms-marco-MiniLM-L-6-v2`)
|
|
7095
|
+
* for parity with their reference pipeline. Runs fully on-device — no API
|
|
7096
|
+
* key, no network call, works offline. Model file ~25MB; lazy-loaded and
|
|
7097
|
+
* cached for the lifetime of the process.
|
|
7098
|
+
*
|
|
7099
|
+
* Implementation note: transformers.js v3 doesn't expose a "text-ranking"
|
|
7100
|
+
* pipeline, so we drive the cross-encoder directly via the tokenizer +
|
|
7101
|
+
* sequence-classification model. The model outputs a single relevance
|
|
7102
|
+
* logit per (query, doc) pair; we sigmoid it into [0, 1].
|
|
7103
|
+
*/
|
|
7104
|
+
/**
|
|
7105
|
+
* Thrown when the cross-encoder cannot run because its optional peer
|
|
7106
|
+
* dependency (`@huggingface/transformers`) isn't installed — the expected
|
|
7107
|
+
* state on React Native, where the package isn't part of the bundle. Callers
|
|
7108
|
+
* treat this as "reranker unavailable, degrade to the fused ranking" rather
|
|
7109
|
+
* than a transient error worth warning about on every recall.
|
|
7110
|
+
*
|
|
7111
|
+
* @public
|
|
7112
|
+
*/
|
|
7113
|
+
declare class RerankerUnavailableError extends Error {
|
|
7114
|
+
/** The underlying import failure, kept for debugging. */
|
|
7115
|
+
readonly reason: unknown;
|
|
7116
|
+
constructor(reason: unknown);
|
|
7117
|
+
}
|
|
7118
|
+
/**
|
|
7119
|
+
* Whether the cross-encoder reranker can run in this environment.
|
|
7120
|
+
*
|
|
7121
|
+
* - `true` — the model loaded successfully at least once.
|
|
7122
|
+
* - `false` — the optional `@huggingface/transformers` dependency is missing
|
|
7123
|
+
* (e.g. React Native); reranking is permanently degraded to the fused
|
|
7124
|
+
* ranking and no further load attempts are made.
|
|
7125
|
+
* - `undefined` — no rerank has been attempted yet, so availability is unknown.
|
|
7126
|
+
*
|
|
7127
|
+
* @public
|
|
7128
|
+
*/
|
|
7129
|
+
declare function isRerankerAvailable(): boolean | undefined;
|
|
7130
|
+
|
|
6979
7131
|
/**
|
|
6980
7132
|
* Standalone topic (entity) extraction for EXISTING memories.
|
|
6981
7133
|
*
|
|
@@ -12375,4 +12527,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
12375
12527
|
*/
|
|
12376
12528
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
12377
12529
|
|
|
12378
|
-
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GroupProps, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type Logger, LoggerProvider, type LoggerProviderProps, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, type OCRFile, type OperationExecutor, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScreenProps, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, THEME_ATTRS, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, backfillMemoryEntityUserIdsOp, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createCryptoPricePreProcessor, createGitHubTools, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
|
12530
|
+
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GroupProps, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type Logger, LoggerProvider, type LoggerProviderProps, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, type OCRFile, type OperationExecutor, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScreenProps, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, THEME_ATTRS, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, backfillMemoryEntityUserIdsOp, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createGitHubTools, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
package/dist/react/index.mjs
CHANGED
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
DEFAULT_MIN_CONTENT_LENGTH,
|
|
7
7
|
DEFAULT_VAULT_CACHE_SIZE,
|
|
8
8
|
ENTITY_KINDS,
|
|
9
|
+
LRUCache,
|
|
10
|
+
RerankerUnavailableError,
|
|
9
11
|
backfillMemoryEntityUserIdsOp,
|
|
10
12
|
chunkAndEmbedAllMessages,
|
|
11
13
|
chunkAndEmbedMessage,
|
|
@@ -84,6 +86,7 @@ import {
|
|
|
84
86
|
hasEncryptionKey,
|
|
85
87
|
hasKeyPair,
|
|
86
88
|
isEncrypted,
|
|
89
|
+
isRerankerAvailable,
|
|
87
90
|
linkMemoryEntitiesOp,
|
|
88
91
|
makeSyntheticStoredConversation,
|
|
89
92
|
makeSyntheticStoredMessage,
|
|
@@ -125,7 +128,7 @@ import {
|
|
|
125
128
|
updateVaultMemoryOp,
|
|
126
129
|
useEncryption,
|
|
127
130
|
vaultMemoryToStored
|
|
128
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-IYDQBFS2.mjs";
|
|
129
132
|
import {
|
|
130
133
|
PiiRedactor,
|
|
131
134
|
createStreamingDeAnonymizer,
|
|
@@ -7420,6 +7423,12 @@ function createAutoExtractor(options) {
|
|
|
7420
7423
|
};
|
|
7421
7424
|
}
|
|
7422
7425
|
|
|
7426
|
+
// src/lib/memory/chunkVectorCache.ts
|
|
7427
|
+
var DEFAULT_CHUNK_CACHE_SIZE = 5e3;
|
|
7428
|
+
function createChunkVectorCache(maxSize = DEFAULT_CHUNK_CACHE_SIZE) {
|
|
7429
|
+
return new LRUCache(maxSize);
|
|
7430
|
+
}
|
|
7431
|
+
|
|
7423
7432
|
// src/lib/memory/recallTool.ts
|
|
7424
7433
|
var RECALL_TOOL_NAME = "recall_memory";
|
|
7425
7434
|
var RECALL_MAX_LIMIT = 50;
|
|
@@ -10776,6 +10785,7 @@ function useChatStorage(options) {
|
|
|
10776
10785
|
[vaultCtx]
|
|
10777
10786
|
);
|
|
10778
10787
|
const vaultEmbeddingCacheRef = useRef4(createVaultEmbeddingCache());
|
|
10788
|
+
const chunkVectorCacheRef = useRef4(createChunkVectorCache());
|
|
10779
10789
|
const clientToolEmbeddingsCacheRef = useRef4(/* @__PURE__ */ new Map());
|
|
10780
10790
|
useEffect3(() => {
|
|
10781
10791
|
if (!getToken) return;
|
|
@@ -10791,7 +10801,10 @@ function useChatStorage(options) {
|
|
|
10791
10801
|
})();
|
|
10792
10802
|
}, [vaultCtx, getToken, vaultEmbeddingOptions]);
|
|
10793
10803
|
useEffect3(() => {
|
|
10794
|
-
return onClearAllEncryptionState(() =>
|
|
10804
|
+
return onClearAllEncryptionState(() => {
|
|
10805
|
+
vaultEmbeddingCacheRef.current.clear();
|
|
10806
|
+
chunkVectorCacheRef.current.clear();
|
|
10807
|
+
});
|
|
10795
10808
|
}, []);
|
|
10796
10809
|
const createMemoryVaultSearchTool2 = useCallback4(
|
|
10797
10810
|
(searchOptions) => {
|
|
@@ -10819,6 +10832,7 @@ function useChatStorage(options) {
|
|
|
10819
10832
|
storageCtx,
|
|
10820
10833
|
embeddingOptions: vaultEmbeddingOptions,
|
|
10821
10834
|
vaultCache: vaultEmbeddingCacheRef.current,
|
|
10835
|
+
chunkCache: chunkVectorCacheRef.current,
|
|
10822
10836
|
// Graph lane fires when entityCtx is present and the query
|
|
10823
10837
|
// contains extractable entities. Empty memory_entity (e.g.
|
|
10824
10838
|
// before any auto-extraction linked entities) is a graceful
|
|
@@ -10866,6 +10880,7 @@ function useChatStorage(options) {
|
|
|
10866
10880
|
// would embed the raw query (often containing the user's PII).
|
|
10867
10881
|
embeddingOptions: vaultEmbeddingOptions,
|
|
10868
10882
|
vaultCache: vaultEmbeddingCacheRef.current,
|
|
10883
|
+
chunkCache: chunkVectorCacheRef.current,
|
|
10869
10884
|
// Graph lane fires only when entityCtx is present and the query
|
|
10870
10885
|
// has extractable entities; empty memory_entity is a graceful
|
|
10871
10886
|
// no-op (falls through to fact + chunk lanes). Mirrors createRecallTool.
|
|
@@ -22515,6 +22530,7 @@ export {
|
|
|
22515
22530
|
ConversationMemory as ConversationMemoryModel,
|
|
22516
22531
|
DEFAULT_BACKUP_FOLDER,
|
|
22517
22532
|
DEFAULT_CACHE_EXPIRATION_MS,
|
|
22533
|
+
DEFAULT_CHUNK_CACHE_SIZE,
|
|
22518
22534
|
DEFAULT_CHUNK_OVERLAP,
|
|
22519
22535
|
DEFAULT_CHUNK_SIZE,
|
|
22520
22536
|
DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER,
|
|
@@ -22546,6 +22562,7 @@ export {
|
|
|
22546
22562
|
R2_DEFAULT_TTL_MS,
|
|
22547
22563
|
RECALL_MAX_LIMIT,
|
|
22548
22564
|
RECALL_TOOL_NAME,
|
|
22565
|
+
RerankerUnavailableError,
|
|
22549
22566
|
SDK_SCHEMA_VERSION,
|
|
22550
22567
|
SERVER_TOOL_DEPENDENCY_SETS,
|
|
22551
22568
|
SLIDER_CONFIG,
|
|
@@ -22604,6 +22621,7 @@ export {
|
|
|
22604
22621
|
conversationMemoryToStored,
|
|
22605
22622
|
cosineInt8,
|
|
22606
22623
|
createAutoExtractor,
|
|
22624
|
+
createChunkVectorCache,
|
|
22607
22625
|
createCryptoPricePreProcessor,
|
|
22608
22626
|
createGitHubTools,
|
|
22609
22627
|
createMediaBatchOp,
|
|
@@ -22759,6 +22777,7 @@ export {
|
|
|
22759
22777
|
isNotionCallback,
|
|
22760
22778
|
isOPFSSupported,
|
|
22761
22779
|
isR2UrlExpired,
|
|
22780
|
+
isRerankerAvailable,
|
|
22762
22781
|
isSupportedFile,
|
|
22763
22782
|
isSupportedMediaType,
|
|
22764
22783
|
linkMemoryEntitiesOp,
|