@anuma/sdk 10.4.3 → 10.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/index.cjs +74 -8
- package/dist/expo/index.d.mts +20 -2
- package/dist/expo/index.d.ts +20 -2
- package/dist/expo/index.mjs +72 -8
- package/dist/index.cjs +69 -4
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.mjs +67 -4
- package/dist/react/index.cjs +129 -47
- package/dist/react/index.d.mts +20 -2
- package/dist/react/index.d.ts +20 -2
- package/dist/react/index.mjs +127 -47
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -9172,7 +9172,7 @@ interface BaseUseChatStorageResult {
|
|
|
9172
9172
|
}
|
|
9173
9173
|
declare function generateConversationId(): string;
|
|
9174
9174
|
|
|
9175
|
-
type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links";
|
|
9175
|
+
type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links" | "setting";
|
|
9176
9176
|
type ChatJson = null | boolean | number | string | ChatJson[] | {
|
|
9177
9177
|
[key: string]: ChatJson;
|
|
9178
9178
|
};
|
|
@@ -9298,8 +9298,10 @@ interface ChatStore {
|
|
|
9298
9298
|
importRecords(records: readonly ChatImport[], signal?: AbortSignal): Promise<number>;
|
|
9299
9299
|
verify(revisions: readonly ChatRevision[], signal?: AbortSignal): Promise<ChatRef[]>;
|
|
9300
9300
|
activate(signal?: AbortSignal): Promise<boolean>;
|
|
9301
|
+
/** Without `kinds`, vault returns every kind except `setting`. */
|
|
9301
9302
|
changes(cursor?: string, options?: {
|
|
9302
9303
|
limit?: number;
|
|
9304
|
+
kinds?: readonly ChatRecordKind[];
|
|
9303
9305
|
signal?: AbortSignal;
|
|
9304
9306
|
}): Promise<ChatChanges>;
|
|
9305
9307
|
search(embedding: readonly number[], options?: ChatSearchOptions): Promise<ChatSearchHit[]>;
|
|
@@ -9370,6 +9372,22 @@ declare function migrateChatsToRemote(options: ChatMigrationOptions): Promise<Ch
|
|
|
9370
9372
|
/** Connect to owner-scoped server storage using the account's canonical device-held cipher. */
|
|
9371
9373
|
declare function createRemoteChatStore(options: RemoteChatStoreOptions): Promise<ChatStore>;
|
|
9372
9374
|
|
|
9375
|
+
interface Setting {
|
|
9376
|
+
section: string;
|
|
9377
|
+
data: {
|
|
9378
|
+
[key: string]: ChatJson;
|
|
9379
|
+
};
|
|
9380
|
+
version: number;
|
|
9381
|
+
createdAt: number;
|
|
9382
|
+
updatedAt: number;
|
|
9383
|
+
}
|
|
9384
|
+
/** Every stored settings section, keyed by section name. */
|
|
9385
|
+
declare function loadSettings(store: ChatStore, signal?: AbortSignal): Promise<Map<string, Setting>>;
|
|
9386
|
+
/** Replaces one section with `data`; the last save of a section wins across devices. */
|
|
9387
|
+
declare function saveSetting(store: ChatStore, section: string, data: {
|
|
9388
|
+
[key: string]: ChatJson;
|
|
9389
|
+
}, signal?: AbortSignal): Promise<Setting>;
|
|
9390
|
+
|
|
9373
9391
|
/**
|
|
9374
9392
|
* AES-GCM keys derived from one wallet signature over `SIGN_MESSAGE`.
|
|
9375
9393
|
* @public
|
|
@@ -16295,4 +16313,4 @@ type UseWalletBindingResult = {
|
|
|
16295
16313
|
*/
|
|
16296
16314
|
declare function useWalletBinding(options?: UseWalletBindingOptions): UseWalletBindingResult;
|
|
16297
16315
|
|
|
16298
|
-
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_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatBackend, type ChatBackendFactory, type ChatBackendSigner, type ChatCacheStorage, type ChatChanges, type ChatChunkSearchOptions, Conversation as ChatConversation, type ChatImport, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatMigrationOptions, type ChatMigrationProgress, type ChatMigrationResult, type ChatMigrationSkip, type ChatOutboxLocks, type ChatOutboxStorage, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatRole, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStorageAdapter, type ChatStorageObservable, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchResult, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type LocalMessageAttachment, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageAttachmentMigrationOptions, type MessageAttachmentMigrationResult, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PaymentWallet, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectPaymentWalletResult, 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 StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, 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 UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, 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, VAULT_SIZE_HOP_CAP, type VaultAttachmentCache, type VaultAttachmentJournal, type VaultAttachmentOwner, type VaultAttachmentRef, type VaultAttachmentUploadOptions, type VaultAttachments, type VaultAttachmentsOptions, type VaultCandidateKey, type VaultChatActivity, type VaultChatBackend, type VaultChatBackendOptions, type VaultChatEvent, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultAttachments, createVaultChatBackend, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, localChatBackend, maskScopedEmbeddingCache, maxVaultAttachmentBytes, mediaToStored, memoryCipher, migrateChatsToRemote, migrateDisplayResult, migrateMemoriesToRemote, migrateMessageAttachments, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, vaultAttachmentRefs, vaultChatBackend, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
|
|
16316
|
+
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_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatBackend, type ChatBackendFactory, type ChatBackendSigner, type ChatCacheStorage, type ChatChanges, type ChatChunkSearchOptions, Conversation as ChatConversation, type ChatImport, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatMigrationOptions, type ChatMigrationProgress, type ChatMigrationResult, type ChatMigrationSkip, type ChatOutboxLocks, type ChatOutboxStorage, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatRole, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStorageAdapter, type ChatStorageObservable, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchResult, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type LocalMessageAttachment, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageAttachmentMigrationOptions, type MessageAttachmentMigrationResult, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PaymentWallet, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectPaymentWalletResult, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type Setting, 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 StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, 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 UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, 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, VAULT_SIZE_HOP_CAP, type VaultAttachmentCache, type VaultAttachmentJournal, type VaultAttachmentOwner, type VaultAttachmentRef, type VaultAttachmentUploadOptions, type VaultAttachments, type VaultAttachmentsOptions, type VaultCandidateKey, type VaultChatActivity, type VaultChatBackend, type VaultChatBackendOptions, type VaultChatEvent, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultAttachments, createVaultChatBackend, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, loadSettings, localChatBackend, maskScopedEmbeddingCache, maxVaultAttachmentBytes, mediaToStored, memoryCipher, migrateChatsToRemote, migrateDisplayResult, migrateMemoriesToRemote, migrateMessageAttachments, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, saveSetting, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, vaultAttachmentRefs, vaultChatBackend, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
|
package/dist/react/index.mjs
CHANGED
|
@@ -11625,7 +11625,7 @@ var ChatStoreError = class extends Error {
|
|
|
11625
11625
|
};
|
|
11626
11626
|
|
|
11627
11627
|
// src/lib/chatStore/remote.ts
|
|
11628
|
-
var kinds = /* @__PURE__ */ new Set(["conversation", "message", "summary", "project", "memory_links"]);
|
|
11628
|
+
var kinds = /* @__PURE__ */ new Set(["conversation", "message", "summary", "project", "memory_links", "setting"]);
|
|
11629
11629
|
var cipherPattern = /^enc:v\d+:(?:[0-9a-f]{2}){28,}$/i;
|
|
11630
11630
|
var maxPayload = 2 * 1024 * 1024;
|
|
11631
11631
|
var storedDims2 = 1536;
|
|
@@ -11681,9 +11681,12 @@ function validRecord(value) {
|
|
|
11681
11681
|
(key3) => ![...metadata, "data"].includes(key3)
|
|
11682
11682
|
))
|
|
11683
11683
|
return false;
|
|
11684
|
-
const root = value.kind
|
|
11684
|
+
const root = rootKind(value.kind);
|
|
11685
11685
|
return root ? value.conversationId === "" : id(value.conversationId);
|
|
11686
11686
|
}
|
|
11687
|
+
function rootKind(kind) {
|
|
11688
|
+
return kind === "conversation" || kind === "project" || kind === "setting";
|
|
11689
|
+
}
|
|
11687
11690
|
function embeddings(write) {
|
|
11688
11691
|
if (write.embeddings === void 0) return true;
|
|
11689
11692
|
return Array.isArray(write.embeddings) && !write.record.isDeleted && (write.record.kind === "message" || write.record.kind === "summary") && write.embeddings.length <= maxChunksPerRecord && (write.embeddingModel === void 0 || typeof write.embeddingModel === "string" && write.embeddingModel.length <= 256) && Array.from({ length: write.embeddings.length }, (_, i) => i).every(
|
|
@@ -11891,7 +11894,7 @@ async function createRemoteChatStore(options) {
|
|
|
11891
11894
|
async list(query) {
|
|
11892
11895
|
const limit = query.limit ?? 20;
|
|
11893
11896
|
const parent = query.conversationId ?? "";
|
|
11894
|
-
if (!kinds.has(query.kind) || !integer(limit, 1) || query.includeDeleted !== void 0 && typeof query.includeDeleted !== "boolean" || limit > 200 || (query.cursor?.length ?? 0) > 2048 || (query.kind
|
|
11897
|
+
if (!kinds.has(query.kind) || !integer(limit, 1) || query.includeDeleted !== void 0 && typeof query.includeDeleted !== "boolean" || limit > 200 || (query.cursor?.length ?? 0) > 2048 || (rootKind(query.kind) ? parent !== "" : !id(parent)))
|
|
11895
11898
|
invalid();
|
|
11896
11899
|
const params = new URLSearchParams({
|
|
11897
11900
|
account_id: String(accountId),
|
|
@@ -12034,10 +12037,12 @@ async function createRemoteChatStore(options) {
|
|
|
12034
12037
|
},
|
|
12035
12038
|
async changes(cursor, options2) {
|
|
12036
12039
|
const limit = options2?.limit ?? 100;
|
|
12037
|
-
|
|
12040
|
+
const kindsFilter = options2?.kinds;
|
|
12041
|
+
if (!integer(limit, 1) || limit > 200 || cursor !== void 0 && (!text5(cursor) || cursor.length > 2048) || kindsFilter !== void 0 && (!Array.isArray(kindsFilter) || kindsFilter.length === 0 || new Set(kindsFilter).size !== kindsFilter.length || kindsFilter.some((k) => !kinds.has(k))))
|
|
12038
12042
|
invalid();
|
|
12039
12043
|
const params = new URLSearchParams({ account_id: String(accountId), limit: String(limit) });
|
|
12040
12044
|
if (cursor) params.set("cursor", cursor);
|
|
12045
|
+
if (kindsFilter) params.set("kinds", kindsFilter.join(","));
|
|
12041
12046
|
const value = await request(`/changes?${params}`, {}, options2?.signal);
|
|
12042
12047
|
if (!object(value) || !Array.isArray(value.items) || value.items.length > limit || value.next_cursor !== void 0 && !text5(value.next_cursor) || value.changes_cursor !== void 0 && !text5(value.changes_cursor))
|
|
12043
12048
|
invalid();
|
|
@@ -12448,6 +12453,62 @@ async function migrateChatsToRemote(options) {
|
|
|
12448
12453
|
return passes(false);
|
|
12449
12454
|
}
|
|
12450
12455
|
|
|
12456
|
+
// src/lib/chatStore/settings.ts
|
|
12457
|
+
var maxSaveAttempts = 3;
|
|
12458
|
+
function toSetting(snapshot) {
|
|
12459
|
+
if (snapshot.record.isDeleted) return null;
|
|
12460
|
+
return {
|
|
12461
|
+
section: snapshot.record.id,
|
|
12462
|
+
data: snapshot.record.data,
|
|
12463
|
+
version: snapshot.version,
|
|
12464
|
+
createdAt: snapshot.record.createdAt,
|
|
12465
|
+
updatedAt: snapshot.record.updatedAt
|
|
12466
|
+
};
|
|
12467
|
+
}
|
|
12468
|
+
async function loadSettings(store, signal) {
|
|
12469
|
+
const out = /* @__PURE__ */ new Map();
|
|
12470
|
+
let cursor;
|
|
12471
|
+
do {
|
|
12472
|
+
const page = await store.list({ kind: "setting", limit: 100, cursor, signal });
|
|
12473
|
+
for (const item of page.items) {
|
|
12474
|
+
const setting = toSetting(item);
|
|
12475
|
+
if (setting) out.set(setting.section, setting);
|
|
12476
|
+
}
|
|
12477
|
+
cursor = page.nextCursor;
|
|
12478
|
+
} while (cursor);
|
|
12479
|
+
return out;
|
|
12480
|
+
}
|
|
12481
|
+
async function saveSetting(store, section, data, signal) {
|
|
12482
|
+
for (let attempt = 1; ; attempt++) {
|
|
12483
|
+
const current = await store.get("setting", section, signal);
|
|
12484
|
+
const now = Date.now();
|
|
12485
|
+
try {
|
|
12486
|
+
const [saved] = await store.putMany(
|
|
12487
|
+
[
|
|
12488
|
+
{
|
|
12489
|
+
record: {
|
|
12490
|
+
kind: "setting",
|
|
12491
|
+
id: section,
|
|
12492
|
+
conversationId: "",
|
|
12493
|
+
sortKey: 0,
|
|
12494
|
+
createdAt: current?.record.createdAt ?? now,
|
|
12495
|
+
updatedAt: Math.max(now, (current?.record.updatedAt ?? 0) + 1),
|
|
12496
|
+
isDeleted: false,
|
|
12497
|
+
data
|
|
12498
|
+
},
|
|
12499
|
+
expectedVersion: current?.version ?? 0
|
|
12500
|
+
}
|
|
12501
|
+
],
|
|
12502
|
+
signal
|
|
12503
|
+
);
|
|
12504
|
+
return toSetting(saved);
|
|
12505
|
+
} catch (error) {
|
|
12506
|
+
if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts)
|
|
12507
|
+
throw error;
|
|
12508
|
+
}
|
|
12509
|
+
}
|
|
12510
|
+
}
|
|
12511
|
+
|
|
12451
12512
|
// src/lib/chatStore/vaultAttachments.ts
|
|
12452
12513
|
var frameVersion = 1;
|
|
12453
12514
|
var ivBytes = 12;
|
|
@@ -37500,6 +37561,7 @@ function useCredits(options = {}) {
|
|
|
37500
37561
|
const baseUrlRef = useRef5(baseUrl);
|
|
37501
37562
|
const onErrorRef = useRef5(onError);
|
|
37502
37563
|
const abortControllerRef = useRef5(null);
|
|
37564
|
+
const hasFetchedRef = useRef5(false);
|
|
37503
37565
|
useEffect6(() => {
|
|
37504
37566
|
getTokenRef.current = getToken;
|
|
37505
37567
|
baseUrlRef.current = baseUrl;
|
|
@@ -37507,6 +37569,7 @@ function useCredits(options = {}) {
|
|
|
37507
37569
|
});
|
|
37508
37570
|
useEffect6(() => {
|
|
37509
37571
|
return () => {
|
|
37572
|
+
hasFetchedRef.current = false;
|
|
37510
37573
|
if (abortControllerRef.current) {
|
|
37511
37574
|
abortControllerRef.current.abort();
|
|
37512
37575
|
abortControllerRef.current = null;
|
|
@@ -37554,14 +37617,14 @@ function useCredits(options = {}) {
|
|
|
37554
37617
|
headers,
|
|
37555
37618
|
signal
|
|
37556
37619
|
});
|
|
37620
|
+
if (signal.aborted) return;
|
|
37557
37621
|
if (response.error) {
|
|
37558
37622
|
const errorMsg = response.error.error ?? "Failed to fetch credit balance";
|
|
37559
|
-
throw new Error(errorMsg);
|
|
37623
|
+
throw Object.assign(new Error(errorMsg), { cause: response.error });
|
|
37560
37624
|
}
|
|
37561
|
-
if (signal.aborted) return;
|
|
37562
37625
|
setBalance(response.data ?? null);
|
|
37563
37626
|
} catch (err) {
|
|
37564
|
-
if (err instanceof Error && err.name === "AbortError") return;
|
|
37627
|
+
if (signal.aborted || err instanceof Error && err.name === "AbortError") return;
|
|
37565
37628
|
handleError(err);
|
|
37566
37629
|
} finally {
|
|
37567
37630
|
stopLoading();
|
|
@@ -37623,7 +37686,6 @@ function useCredits(options = {}) {
|
|
|
37623
37686
|
},
|
|
37624
37687
|
[getHeaders, handleError, startLoading, stopLoading]
|
|
37625
37688
|
);
|
|
37626
|
-
const hasFetchedRef = useRef5(false);
|
|
37627
37689
|
useEffect6(() => {
|
|
37628
37690
|
if (autoFetch && !hasFetchedRef.current) {
|
|
37629
37691
|
hasFetchedRef.current = true;
|
|
@@ -39553,6 +39615,8 @@ function useSubscription(options = {}) {
|
|
|
39553
39615
|
const baseUrlRef = useRef8(baseUrl);
|
|
39554
39616
|
const onErrorRef = useRef8(onError);
|
|
39555
39617
|
const abortControllerRef = useRef8(null);
|
|
39618
|
+
const hasFetchedRef = useRef8(false);
|
|
39619
|
+
const loadingCountRef = useRef8(0);
|
|
39556
39620
|
useEffect12(() => {
|
|
39557
39621
|
getTokenRef.current = getToken;
|
|
39558
39622
|
baseUrlRef.current = baseUrl;
|
|
@@ -39560,12 +39624,21 @@ function useSubscription(options = {}) {
|
|
|
39560
39624
|
});
|
|
39561
39625
|
useEffect12(() => {
|
|
39562
39626
|
return () => {
|
|
39627
|
+
hasFetchedRef.current = false;
|
|
39563
39628
|
if (abortControllerRef.current) {
|
|
39564
39629
|
abortControllerRef.current.abort();
|
|
39565
39630
|
abortControllerRef.current = null;
|
|
39566
39631
|
}
|
|
39567
39632
|
};
|
|
39568
39633
|
}, []);
|
|
39634
|
+
const startLoading = useCallback18(() => {
|
|
39635
|
+
loadingCountRef.current++;
|
|
39636
|
+
setIsLoading(true);
|
|
39637
|
+
}, []);
|
|
39638
|
+
const stopLoading = useCallback18(() => {
|
|
39639
|
+
loadingCountRef.current = Math.max(0, loadingCountRef.current - 1);
|
|
39640
|
+
setIsLoading(loadingCountRef.current > 0);
|
|
39641
|
+
}, []);
|
|
39569
39642
|
const getHeaders = useCallback18(async () => {
|
|
39570
39643
|
const headers = {};
|
|
39571
39644
|
if (getTokenRef.current) {
|
|
@@ -39589,7 +39662,7 @@ function useSubscription(options = {}) {
|
|
|
39589
39662
|
const abortController = new AbortController();
|
|
39590
39663
|
abortControllerRef.current = abortController;
|
|
39591
39664
|
const signal = abortController.signal;
|
|
39592
|
-
|
|
39665
|
+
startLoading();
|
|
39593
39666
|
setError(null);
|
|
39594
39667
|
try {
|
|
39595
39668
|
const headers = await getHeaders();
|
|
@@ -39599,33 +39672,31 @@ function useSubscription(options = {}) {
|
|
|
39599
39672
|
headers,
|
|
39600
39673
|
signal
|
|
39601
39674
|
});
|
|
39675
|
+
if (signal.aborted) return;
|
|
39602
39676
|
if (response.error) {
|
|
39603
39677
|
const errorMsg = response.error.error ?? "Failed to fetch subscription status";
|
|
39604
|
-
throw new Error(errorMsg);
|
|
39678
|
+
throw Object.assign(new Error(errorMsg), { cause: response.error });
|
|
39605
39679
|
}
|
|
39606
|
-
if (signal.aborted) return;
|
|
39607
39680
|
setStatus(response.data ?? null);
|
|
39608
39681
|
} catch (err) {
|
|
39609
|
-
if (err instanceof Error && err.name === "AbortError") {
|
|
39682
|
+
if (signal.aborted || err instanceof Error && err.name === "AbortError") {
|
|
39610
39683
|
return;
|
|
39611
39684
|
}
|
|
39612
39685
|
handleError(err);
|
|
39613
39686
|
} finally {
|
|
39614
|
-
|
|
39615
|
-
setIsLoading(false);
|
|
39616
|
-
}
|
|
39687
|
+
stopLoading();
|
|
39617
39688
|
if (abortControllerRef.current === abortController) {
|
|
39618
39689
|
abortControllerRef.current = null;
|
|
39619
39690
|
}
|
|
39620
39691
|
}
|
|
39621
|
-
}, [getHeaders, handleError]);
|
|
39692
|
+
}, [getHeaders, handleError, startLoading, stopLoading]);
|
|
39622
39693
|
const refetch = useCallback18(async () => {
|
|
39623
39694
|
setStatus(null);
|
|
39624
39695
|
await fetchStatus();
|
|
39625
39696
|
}, [fetchStatus]);
|
|
39626
39697
|
const createCheckoutSession = useCallback18(
|
|
39627
39698
|
async (opts) => {
|
|
39628
|
-
|
|
39699
|
+
startLoading();
|
|
39629
39700
|
setError(null);
|
|
39630
39701
|
try {
|
|
39631
39702
|
const headers = await getHeaders();
|
|
@@ -39648,14 +39719,14 @@ function useSubscription(options = {}) {
|
|
|
39648
39719
|
handleError(err);
|
|
39649
39720
|
return null;
|
|
39650
39721
|
} finally {
|
|
39651
|
-
|
|
39722
|
+
stopLoading();
|
|
39652
39723
|
}
|
|
39653
39724
|
},
|
|
39654
|
-
[getHeaders, handleError]
|
|
39725
|
+
[getHeaders, handleError, startLoading, stopLoading]
|
|
39655
39726
|
);
|
|
39656
39727
|
const openCustomerPortal = useCallback18(
|
|
39657
39728
|
async (opts) => {
|
|
39658
|
-
|
|
39729
|
+
startLoading();
|
|
39659
39730
|
setError(null);
|
|
39660
39731
|
try {
|
|
39661
39732
|
const headers = await getHeaders();
|
|
@@ -39675,13 +39746,13 @@ function useSubscription(options = {}) {
|
|
|
39675
39746
|
handleError(err);
|
|
39676
39747
|
return null;
|
|
39677
39748
|
} finally {
|
|
39678
|
-
|
|
39749
|
+
stopLoading();
|
|
39679
39750
|
}
|
|
39680
39751
|
},
|
|
39681
|
-
[getHeaders, handleError]
|
|
39752
|
+
[getHeaders, handleError, startLoading, stopLoading]
|
|
39682
39753
|
);
|
|
39683
39754
|
const cancelSubscription = useCallback18(async () => {
|
|
39684
|
-
|
|
39755
|
+
startLoading();
|
|
39685
39756
|
setError(null);
|
|
39686
39757
|
try {
|
|
39687
39758
|
const headers = await getHeaders();
|
|
@@ -39699,11 +39770,11 @@ function useSubscription(options = {}) {
|
|
|
39699
39770
|
handleError(err);
|
|
39700
39771
|
return null;
|
|
39701
39772
|
} finally {
|
|
39702
|
-
|
|
39773
|
+
stopLoading();
|
|
39703
39774
|
}
|
|
39704
|
-
}, [getHeaders, handleError, fetchStatus]);
|
|
39775
|
+
}, [getHeaders, handleError, startLoading, stopLoading, fetchStatus]);
|
|
39705
39776
|
const renewSubscription = useCallback18(async () => {
|
|
39706
|
-
|
|
39777
|
+
startLoading();
|
|
39707
39778
|
setError(null);
|
|
39708
39779
|
try {
|
|
39709
39780
|
const headers = await getHeaders();
|
|
@@ -39721,10 +39792,9 @@ function useSubscription(options = {}) {
|
|
|
39721
39792
|
handleError(err);
|
|
39722
39793
|
return null;
|
|
39723
39794
|
} finally {
|
|
39724
|
-
|
|
39795
|
+
stopLoading();
|
|
39725
39796
|
}
|
|
39726
|
-
}, [getHeaders, handleError, fetchStatus]);
|
|
39727
|
-
const hasFetchedRef = useRef8(false);
|
|
39797
|
+
}, [getHeaders, handleError, startLoading, stopLoading, fetchStatus]);
|
|
39728
39798
|
useEffect12(() => {
|
|
39729
39799
|
if (autoFetch && !hasFetchedRef.current) {
|
|
39730
39800
|
hasFetchedRef.current = true;
|
|
@@ -40288,6 +40358,8 @@ function useWalletBinding(options = {}) {
|
|
|
40288
40358
|
const baseUrlRef = useRef12(baseUrl);
|
|
40289
40359
|
const onErrorRef = useRef12(onError);
|
|
40290
40360
|
const abortControllerRef = useRef12(null);
|
|
40361
|
+
const hasFetchedRef = useRef12(false);
|
|
40362
|
+
const loadingCountRef = useRef12(0);
|
|
40291
40363
|
useEffect14(() => {
|
|
40292
40364
|
getTokenRef.current = getToken;
|
|
40293
40365
|
baseUrlRef.current = baseUrl;
|
|
@@ -40295,12 +40367,21 @@ function useWalletBinding(options = {}) {
|
|
|
40295
40367
|
});
|
|
40296
40368
|
useEffect14(() => {
|
|
40297
40369
|
return () => {
|
|
40370
|
+
hasFetchedRef.current = false;
|
|
40298
40371
|
if (abortControllerRef.current) {
|
|
40299
40372
|
abortControllerRef.current.abort();
|
|
40300
40373
|
abortControllerRef.current = null;
|
|
40301
40374
|
}
|
|
40302
40375
|
};
|
|
40303
40376
|
}, []);
|
|
40377
|
+
const startLoading = useCallback22(() => {
|
|
40378
|
+
loadingCountRef.current++;
|
|
40379
|
+
setIsLoading(true);
|
|
40380
|
+
}, []);
|
|
40381
|
+
const stopLoading = useCallback22(() => {
|
|
40382
|
+
loadingCountRef.current = Math.max(0, loadingCountRef.current - 1);
|
|
40383
|
+
setIsLoading(loadingCountRef.current > 0);
|
|
40384
|
+
}, []);
|
|
40304
40385
|
const getHeaders = useCallback22(async () => {
|
|
40305
40386
|
const headers = {};
|
|
40306
40387
|
if (getTokenRef.current) {
|
|
@@ -40324,7 +40405,7 @@ function useWalletBinding(options = {}) {
|
|
|
40324
40405
|
const abortController = new AbortController();
|
|
40325
40406
|
abortControllerRef.current = abortController;
|
|
40326
40407
|
const signal = abortController.signal;
|
|
40327
|
-
|
|
40408
|
+
startLoading();
|
|
40328
40409
|
setError(null);
|
|
40329
40410
|
try {
|
|
40330
40411
|
const headers = await getHeaders();
|
|
@@ -40334,34 +40415,32 @@ function useWalletBinding(options = {}) {
|
|
|
40334
40415
|
headers,
|
|
40335
40416
|
signal
|
|
40336
40417
|
});
|
|
40418
|
+
if (signal.aborted) return;
|
|
40337
40419
|
if (response.error) {
|
|
40338
40420
|
const errorMsg = response.error.error ?? "Failed to fetch bound wallets";
|
|
40339
|
-
throw new Error(errorMsg);
|
|
40421
|
+
throw Object.assign(new Error(errorMsg), { cause: response.error });
|
|
40340
40422
|
}
|
|
40341
|
-
if (signal.aborted) return;
|
|
40342
40423
|
setWallets(response.data?.wallets ?? []);
|
|
40343
40424
|
setTotals(response.data?.totals ?? null);
|
|
40344
40425
|
} catch (err) {
|
|
40345
|
-
if (err instanceof Error && err.name === "AbortError") {
|
|
40426
|
+
if (signal.aborted || err instanceof Error && err.name === "AbortError") {
|
|
40346
40427
|
return;
|
|
40347
40428
|
}
|
|
40348
40429
|
handleError(err);
|
|
40349
40430
|
} finally {
|
|
40350
|
-
|
|
40351
|
-
setIsLoading(false);
|
|
40352
|
-
}
|
|
40431
|
+
stopLoading();
|
|
40353
40432
|
if (abortControllerRef.current === abortController) {
|
|
40354
40433
|
abortControllerRef.current = null;
|
|
40355
40434
|
}
|
|
40356
40435
|
}
|
|
40357
|
-
}, [getHeaders, handleError]);
|
|
40436
|
+
}, [getHeaders, handleError, startLoading, stopLoading]);
|
|
40358
40437
|
const refetch = useCallback22(async () => {
|
|
40359
40438
|
setWallets([]);
|
|
40360
40439
|
setTotals(null);
|
|
40361
40440
|
await fetchBinding();
|
|
40362
40441
|
}, [fetchBinding]);
|
|
40363
40442
|
const getNonce = useCallback22(async () => {
|
|
40364
|
-
|
|
40443
|
+
startLoading();
|
|
40365
40444
|
setError(null);
|
|
40366
40445
|
try {
|
|
40367
40446
|
const headers = await getHeaders();
|
|
@@ -40378,12 +40457,12 @@ function useWalletBinding(options = {}) {
|
|
|
40378
40457
|
handleError(err);
|
|
40379
40458
|
return null;
|
|
40380
40459
|
} finally {
|
|
40381
|
-
|
|
40460
|
+
stopLoading();
|
|
40382
40461
|
}
|
|
40383
|
-
}, [getHeaders, handleError]);
|
|
40462
|
+
}, [getHeaders, handleError, startLoading, stopLoading]);
|
|
40384
40463
|
const bindWallet = useCallback22(
|
|
40385
40464
|
async (request) => {
|
|
40386
|
-
|
|
40465
|
+
startLoading();
|
|
40387
40466
|
setError(null);
|
|
40388
40467
|
try {
|
|
40389
40468
|
const headers = await getHeaders();
|
|
@@ -40402,14 +40481,14 @@ function useWalletBinding(options = {}) {
|
|
|
40402
40481
|
handleError(err);
|
|
40403
40482
|
return null;
|
|
40404
40483
|
} finally {
|
|
40405
|
-
|
|
40484
|
+
stopLoading();
|
|
40406
40485
|
}
|
|
40407
40486
|
},
|
|
40408
|
-
[getHeaders, handleError, fetchBinding]
|
|
40487
|
+
[getHeaders, handleError, startLoading, stopLoading, fetchBinding]
|
|
40409
40488
|
);
|
|
40410
40489
|
const unbindWallet = useCallback22(
|
|
40411
40490
|
async (address) => {
|
|
40412
|
-
|
|
40491
|
+
startLoading();
|
|
40413
40492
|
setError(null);
|
|
40414
40493
|
try {
|
|
40415
40494
|
const headers = await getHeaders();
|
|
@@ -40428,12 +40507,11 @@ function useWalletBinding(options = {}) {
|
|
|
40428
40507
|
handleError(err);
|
|
40429
40508
|
return false;
|
|
40430
40509
|
} finally {
|
|
40431
|
-
|
|
40510
|
+
stopLoading();
|
|
40432
40511
|
}
|
|
40433
40512
|
},
|
|
40434
|
-
[getHeaders, handleError, fetchBinding]
|
|
40513
|
+
[getHeaders, handleError, startLoading, stopLoading, fetchBinding]
|
|
40435
40514
|
);
|
|
40436
|
-
const hasFetchedRef = useRef12(false);
|
|
40437
40515
|
useEffect14(() => {
|
|
40438
40516
|
if (autoFetch && !hasFetchedRef.current) {
|
|
40439
40517
|
hasFetchedRef.current = true;
|
|
@@ -40773,6 +40851,7 @@ export {
|
|
|
40773
40851
|
isSupportedFile,
|
|
40774
40852
|
isSupportedMediaType,
|
|
40775
40853
|
linkMemoryEntitiesOp,
|
|
40854
|
+
loadSettings,
|
|
40776
40855
|
localChatBackend,
|
|
40777
40856
|
maskScopedEmbeddingCache,
|
|
40778
40857
|
maxVaultAttachmentBytes,
|
|
@@ -40820,6 +40899,7 @@ export {
|
|
|
40820
40899
|
resumeStream,
|
|
40821
40900
|
retain,
|
|
40822
40901
|
revokeNotionAccess,
|
|
40902
|
+
saveSetting,
|
|
40823
40903
|
savedToolToStored,
|
|
40824
40904
|
scoreProfileSalience,
|
|
40825
40905
|
screenCandidatesForInjection,
|