@anuma/sdk 6.17.2 → 6.19.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/{chunk-JXN7LD6B.mjs → chunk-L253L67R.mjs} +2 -2
- package/dist/expo/{chunk-4Z2X4UYQ.mjs → chunk-WUG6GTHO.mjs} +10 -1
- package/dist/expo/{chunk-A2G6TRUK.mjs → chunk-XDBX4FZY.mjs} +1 -1
- package/dist/{react/consolidate-7NMKF7UC.mjs → expo/consolidate-XBYKAFKT.mjs} +2 -2
- package/dist/expo/index.cjs +90 -8
- package/dist/expo/index.d.mts +100 -2
- package/dist/expo/index.d.ts +100 -2
- package/dist/expo/index.mjs +84 -11
- package/dist/expo/{recall-TGRI5MN4.mjs → recall-B3PUQHJK.mjs} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react/{chunk-7X7BNMGS.mjs → chunk-AVYB5IXC.mjs} +1 -1
- package/dist/react/{chunk-TVPCH7ZZ.mjs → chunk-JRJRRO4P.mjs} +2 -2
- package/dist/react/{chunk-4Z2X4UYQ.mjs → chunk-WUG6GTHO.mjs} +10 -1
- package/dist/{expo/consolidate-ZM5JNULQ.mjs → react/consolidate-URHGJT7I.mjs} +2 -2
- package/dist/react/index.cjs +81 -4
- package/dist/react/index.d.mts +100 -2
- package/dist/react/index.d.ts +100 -2
- package/dist/react/index.mjs +75 -7
- package/dist/react/{recall-OKNLU335.mjs → recall-WPYCG4ED.mjs} +2 -2
- package/dist/server/{chunk-K7H7ICPK.mjs → chunk-2A6HXY4P.mjs} +2 -2
- package/dist/server/{chunk-4LPSEROP.mjs → chunk-RKQ4MRS2.mjs} +1 -1
- package/dist/server/{chunk-BSCEZOIW.mjs → chunk-YXL5VKCO.mjs} +10 -1
- package/dist/server/{consolidate-MSAXASHL.mjs → consolidate-54P6QZKU.mjs} +2 -2
- package/dist/server/index.cjs +53 -2
- package/dist/server/index.d.mts +91 -1
- package/dist/server/index.d.ts +91 -1
- package/dist/server/index.mjs +47 -5
- package/dist/server/{recall-YXJATOSD.mjs → recall-JPIWNKA7.mjs} +2 -2
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -6271,7 +6271,7 @@ declare function getEntitiesByMemoryIdsOp(ctx: EntityOperationsContext, memoryId
|
|
|
6271
6271
|
*
|
|
6272
6272
|
* @public
|
|
6273
6273
|
*/
|
|
6274
|
-
type TaskType = "title" | "commit_message" | "memory_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
|
|
6274
|
+
type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
|
|
6275
6275
|
|
|
6276
6276
|
/**
|
|
6277
6277
|
* Shared portal LLM call for the memory pipeline.
|
|
@@ -6368,6 +6368,26 @@ type PortalLlmFailureReason =
|
|
|
6368
6368
|
| "null-completion"
|
|
6369
6369
|
/** `totalTimeoutMs` was spent before the next attempt could run. */
|
|
6370
6370
|
| "time-budget-exhausted";
|
|
6371
|
+
/**
|
|
6372
|
+
* One attempt of a {@link callPortalJsonCompletion} call, reported to
|
|
6373
|
+
* `onAttempt` as it settles — success included. The wire-level diagnostic the
|
|
6374
|
+
* give-up hook cannot provide: a call that succeeds on its third try returns a
|
|
6375
|
+
* value and fires no `onFailure`, yet it cost three completions and its first
|
|
6376
|
+
* two answers were unusable. Extraction quality regressions have hidden in
|
|
6377
|
+
* exactly that shape (a prompt change that made the model answer `NONE` first,
|
|
6378
|
+
* JSON on retry), so the extraction eval gates on the first-attempt clean rate.
|
|
6379
|
+
*
|
|
6380
|
+
* @public
|
|
6381
|
+
*/
|
|
6382
|
+
interface PortalLlmAttempt {
|
|
6383
|
+
/** 1-based attempt index. */
|
|
6384
|
+
attempt: number;
|
|
6385
|
+
/** Whether this attempt produced a parseable JSON value. */
|
|
6386
|
+
ok: boolean;
|
|
6387
|
+
/** Classification when `ok` is false. */
|
|
6388
|
+
reason?: PortalLlmFailureReason;
|
|
6389
|
+
httpStatus?: number;
|
|
6390
|
+
}
|
|
6371
6391
|
/**
|
|
6372
6392
|
* A give-up report: the classified {@link PortalLlmFailureReason} plus the
|
|
6373
6393
|
* little context worth carrying into telemetry. Both extra fields are bounded
|
|
@@ -7547,6 +7567,12 @@ interface ExtractFactsOptions extends PortalLlmAuth {
|
|
|
7547
7567
|
* (i.e. redaction silently eating facts) is alarmable.
|
|
7548
7568
|
*/
|
|
7549
7569
|
onCandidatesDropped?: () => void;
|
|
7570
|
+
/**
|
|
7571
|
+
* Per-attempt wire diagnostic, forwarded to {@link callPortalJsonCompletion}.
|
|
7572
|
+
* The extraction eval gates on it (first-attempt clean rate); production
|
|
7573
|
+
* callers may leave it unset.
|
|
7574
|
+
*/
|
|
7575
|
+
onAttempt?: (attempt: PortalLlmAttempt) => void;
|
|
7550
7576
|
}
|
|
7551
7577
|
/**
|
|
7552
7578
|
* Stage 1 — call the LLM to extract candidate facts from the recent
|
|
@@ -10707,6 +10733,41 @@ declare function decodeChunkVector(vector: number[] | string | null | undefined,
|
|
|
10707
10733
|
* Each operation can be intercepted by the host app for confirmation/cancellation.
|
|
10708
10734
|
*/
|
|
10709
10735
|
|
|
10736
|
+
/**
|
|
10737
|
+
* The 7 FactTypes a manual save may self-classify into (PR5). Mirrors the
|
|
10738
|
+
* extractor's `FactType` union in `memory/autoExtract` — kept as a local const
|
|
10739
|
+
* (not imported) to avoid a memoryVault → memory runtime import cycle. Only used
|
|
10740
|
+
* to validate the optional `type` tool argument; an unrecognized value is
|
|
10741
|
+
* dropped (persisted as null, the untyped/medium-decay bucket).
|
|
10742
|
+
*/
|
|
10743
|
+
declare const MANUAL_FACT_TYPES: readonly ["identity", "preference", "relationship", "plan", "ongoing_context", "constraint", "other"];
|
|
10744
|
+
/** A FactType the save tool's optional `type` argument may carry. */
|
|
10745
|
+
type ManualFactType = (typeof MANUAL_FACT_TYPES)[number];
|
|
10746
|
+
/**
|
|
10747
|
+
* What a {@link VaultMemoryWriter} reports back. The action set mirrors
|
|
10748
|
+
* `RetainResult.action` in `memory/retain` — restated here rather than imported
|
|
10749
|
+
* for the same reason MANUAL_FACT_TYPES is (memoryVault → memory import cycle).
|
|
10750
|
+
*/
|
|
10751
|
+
type VaultWriteAction = "create" | "merge" | "update" | "supersede" | "suppressed" | "skip";
|
|
10752
|
+
interface VaultWriteOutcome {
|
|
10753
|
+
/** The memory the write landed on: the fresh row, or the existing one it merged into. */
|
|
10754
|
+
memoryId: string;
|
|
10755
|
+
action: VaultWriteAction;
|
|
10756
|
+
}
|
|
10757
|
+
/** A NEW memory the tool wants written — `id`-addressed updates never come here. */
|
|
10758
|
+
interface VaultWriteInput {
|
|
10759
|
+
content: string;
|
|
10760
|
+
scope: string;
|
|
10761
|
+
folderId?: string;
|
|
10762
|
+
factType?: ManualFactType;
|
|
10763
|
+
}
|
|
10764
|
+
/**
|
|
10765
|
+
* The seam through which the tool writes NEW memories when the host supplies one.
|
|
10766
|
+
* `useChatStorage` (react + expo) passes a `retain()`-backed writer so a
|
|
10767
|
+
* model-initiated save gets the same cosine auto-merge the background extractor
|
|
10768
|
+
* gets, instead of a bare insert that trusts the model to have de-duplicated.
|
|
10769
|
+
*/
|
|
10770
|
+
type VaultMemoryWriter = (input: VaultWriteInput) => Promise<VaultWriteOutcome>;
|
|
10710
10771
|
/**
|
|
10711
10772
|
* Describes a pending vault save operation for UI confirmation.
|
|
10712
10773
|
*/
|
|
@@ -10745,6 +10806,35 @@ interface MemoryVaultToolOptions {
|
|
|
10745
10806
|
* When provided, the LLM can specify a folderName argument.
|
|
10746
10807
|
*/
|
|
10747
10808
|
folderMap?: Map<string, string>;
|
|
10809
|
+
/**
|
|
10810
|
+
* Writer for NEW memories. When set, a save without an `id` goes through it
|
|
10811
|
+
* instead of a bare `createVaultMemoryOp`, and the tool phrases its reply from
|
|
10812
|
+
* the reported action (a merge reads as "already known", not "saved").
|
|
10813
|
+
*
|
|
10814
|
+
* The hooks supply a `retain()`-backed writer, which is what makes this tool
|
|
10815
|
+
* stop being a dedup bypass: until then the only thing standing between the
|
|
10816
|
+
* model and a duplicate row was the prompt asking it to pass an `id`. Omit it
|
|
10817
|
+
* (as a bare `createMemoryVaultTool(vaultCtx, …)` caller must — retain needs
|
|
10818
|
+
* embeddings) and the direct insert path is unchanged.
|
|
10819
|
+
*
|
|
10820
|
+
* Updates addressed by `id` never come here: the model has already named the
|
|
10821
|
+
* row, so there is nothing to de-duplicate against.
|
|
10822
|
+
*/
|
|
10823
|
+
write?: VaultMemoryWriter;
|
|
10824
|
+
/**
|
|
10825
|
+
* Fires after a NEW memory's write settles, with what was asked and what the
|
|
10826
|
+
* writer did. The host's analytics hook: `onSave` runs BEFORE the write and so
|
|
10827
|
+
* cannot tell a fresh create from a merge into an existing memory — and that
|
|
10828
|
+
* split is the one number that says whether model-initiated saves duplicate
|
|
10829
|
+
* the vault. Fires on both write paths (a `write` seam, or the direct insert
|
|
10830
|
+
* when none is supplied — reported as `create`). Not called for
|
|
10831
|
+
* `id`-addressed updates or cancelled saves. A throwing or rejecting listener
|
|
10832
|
+
* is awaited and swallowed so it can never fail the tool call.
|
|
10833
|
+
*/
|
|
10834
|
+
onWritten?: (event: {
|
|
10835
|
+
input: VaultWriteInput;
|
|
10836
|
+
outcome: VaultWriteOutcome;
|
|
10837
|
+
}) => void | Promise<void>;
|
|
10748
10838
|
}
|
|
10749
10839
|
/**
|
|
10750
10840
|
* Creates a memory vault tool for use with chat completions.
|
|
@@ -11066,6 +11156,14 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11066
11156
|
* @returns A ToolConfig that can be passed to sendMessage's clientTools
|
|
11067
11157
|
*/
|
|
11068
11158
|
createMemoryVaultTool: (options?: MemoryVaultToolOptions) => ToolConfig;
|
|
11159
|
+
/**
|
|
11160
|
+
* Write one memory through `retain()` — cosine auto-merge against the vault,
|
|
11161
|
+
* so an explicit "save this" from a host surface (selection → memory, a
|
|
11162
|
+
* manual add) lands as a re-observation of an existing memory instead of a
|
|
11163
|
+
* duplicate row when the vault already holds the fact. The
|
|
11164
|
+
* `memory_vault_save` tool writes through this too. Throws without `getToken`.
|
|
11165
|
+
*/
|
|
11166
|
+
retainVaultMemory: (input: VaultWriteInput) => Promise<RetainResult>;
|
|
11069
11167
|
/**
|
|
11070
11168
|
* Create a memory vault search tool for LLM to search vault memories
|
|
11071
11169
|
* using semantic similarity. Pre-configured with vault context, auth, and
|
|
@@ -15833,4 +15931,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
15833
15931
|
*/
|
|
15834
15932
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
15835
15933
|
|
|
15836
|
-
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, CHUNKS_DISCARDED_ORIGIN, 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 CreateDecaySweeperOptions, 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_DECAY_POLICY, 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_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 DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, 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 GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, 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 MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, 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 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 RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, 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 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 SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, 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 TopicExtractionInput, type TopicExtractionRunResult, 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 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, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, 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, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, 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, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, 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, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };
|
|
15934
|
+
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, CHUNKS_DISCARDED_ORIGIN, 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 CreateDecaySweeperOptions, 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_DECAY_POLICY, 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_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 DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, 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 GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, 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 MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, 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 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 RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, 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 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 SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, 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 TopicExtractionInput, type TopicExtractionRunResult, 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 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, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, 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, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, 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, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, 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, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };
|
package/dist/react/index.mjs
CHANGED
|
@@ -179,14 +179,14 @@ import {
|
|
|
179
179
|
updateVaultMemoryOp,
|
|
180
180
|
useEncryption,
|
|
181
181
|
vaultMemoryToStored
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-JRJRRO4P.mjs";
|
|
183
183
|
import {
|
|
184
184
|
PiiRedactor,
|
|
185
185
|
createStreamingDeAnonymizer,
|
|
186
186
|
isPiiRedactor,
|
|
187
187
|
notifyConsolidationFallback,
|
|
188
188
|
resolvePiiRedactor
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-AVYB5IXC.mjs";
|
|
190
190
|
import {
|
|
191
191
|
INTERNAL_FLOW_MARKER,
|
|
192
192
|
callPortalJsonCompletion,
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
taskTypeHeader,
|
|
203
203
|
validateEndpointOverride,
|
|
204
204
|
withInternalFlowMarker
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-WUG6GTHO.mjs";
|
|
206
206
|
import {
|
|
207
207
|
BASE_URL,
|
|
208
208
|
MCP_R2_DOMAIN,
|
|
@@ -7711,7 +7711,7 @@ async function tryConsolidate(trimmed, ctx, options, prepared) {
|
|
|
7711
7711
|
content: m.content,
|
|
7712
7712
|
similarity: m.similarity
|
|
7713
7713
|
}));
|
|
7714
|
-
const { consolidateMemory: doConsolidate } = await import("./consolidate-
|
|
7714
|
+
const { consolidateMemory: doConsolidate } = await import("./consolidate-URHGJT7I.mjs");
|
|
7715
7715
|
const decision = await doConsolidate(trimmed, candidates, consolidateOptions);
|
|
7716
7716
|
if (decision.action === "create") return null;
|
|
7717
7717
|
if (decision.action === "supersede" && decision.content) {
|
|
@@ -7953,7 +7953,8 @@ Extract durable user facts.`,
|
|
|
7953
7953
|
...options.maxAttempts !== void 0 && { maxAttempts: options.maxAttempts },
|
|
7954
7954
|
...options.timeoutMs !== void 0 && { timeoutMs: options.timeoutMs },
|
|
7955
7955
|
...options.totalTimeoutMs !== void 0 && { totalTimeoutMs: options.totalTimeoutMs },
|
|
7956
|
-
...options.backoffMs && { backoffMs: options.backoffMs }
|
|
7956
|
+
...options.backoffMs && { backoffMs: options.backoffMs },
|
|
7957
|
+
...options.onAttempt && { onAttempt: options.onAttempt }
|
|
7957
7958
|
});
|
|
7958
7959
|
if (parsed === null) {
|
|
7959
7960
|
options.onExhaustedEmpty?.(failure ?? { reason: "empty-content", attempts: 1 });
|
|
@@ -10335,6 +10336,26 @@ var MANUAL_FACT_TYPES = [
|
|
|
10335
10336
|
function normalizeManualFactType(value) {
|
|
10336
10337
|
return typeof value === "string" && MANUAL_FACT_TYPES.includes(value) ? value : void 0;
|
|
10337
10338
|
}
|
|
10339
|
+
async function notifyWritten(options, input, outcome) {
|
|
10340
|
+
try {
|
|
10341
|
+
await options?.onWritten?.({ input, outcome });
|
|
10342
|
+
} catch {
|
|
10343
|
+
}
|
|
10344
|
+
}
|
|
10345
|
+
function describeWriteOutcome(outcome) {
|
|
10346
|
+
switch (outcome.action) {
|
|
10347
|
+
case "create":
|
|
10348
|
+
return `Memory saved successfully (ID: ${outcome.memoryId}).`;
|
|
10349
|
+
case "update":
|
|
10350
|
+
case "supersede":
|
|
10351
|
+
return `Memory saved successfully (ID: ${outcome.memoryId}); it replaces an earlier version of this fact.`;
|
|
10352
|
+
case "merge":
|
|
10353
|
+
case "skip":
|
|
10354
|
+
return `The vault already holds this fact (ID: ${outcome.memoryId}); it was noted as re-observed. Nothing new was created \u2014 do not save it again.`;
|
|
10355
|
+
case "suppressed":
|
|
10356
|
+
return "Not saved: this matches a memory the user previously deleted. Do not re-save it.";
|
|
10357
|
+
}
|
|
10358
|
+
}
|
|
10338
10359
|
function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
|
|
10339
10360
|
const hasOnSave = !!options?.onSave;
|
|
10340
10361
|
const folderNames = options?.folderMap ? Array.from(options.folderMap.keys()) : [];
|
|
@@ -10427,6 +10448,17 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
|
|
|
10427
10448
|
return `Memory updated successfully (ID: ${updated.uniqueId}).`;
|
|
10428
10449
|
} else {
|
|
10429
10450
|
const folderId = folderName ? options?.folderMap?.get(folderName) : void 0;
|
|
10451
|
+
if (options?.write) {
|
|
10452
|
+
const input = {
|
|
10453
|
+
content,
|
|
10454
|
+
scope,
|
|
10455
|
+
...folderId !== void 0 && { folderId },
|
|
10456
|
+
...factType !== void 0 && { factType }
|
|
10457
|
+
};
|
|
10458
|
+
const outcome = await options.write(input);
|
|
10459
|
+
await notifyWritten(options, input, outcome);
|
|
10460
|
+
return describeWriteOutcome(outcome);
|
|
10461
|
+
}
|
|
10430
10462
|
const created = await createVaultMemoryOp(vaultCtx, {
|
|
10431
10463
|
content,
|
|
10432
10464
|
scope,
|
|
@@ -10446,6 +10478,16 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
|
|
|
10446
10478
|
}
|
|
10447
10479
|
);
|
|
10448
10480
|
}
|
|
10481
|
+
await notifyWritten(
|
|
10482
|
+
options,
|
|
10483
|
+
{
|
|
10484
|
+
content,
|
|
10485
|
+
scope,
|
|
10486
|
+
...folderId !== void 0 && { folderId },
|
|
10487
|
+
...factType !== void 0 && { factType }
|
|
10488
|
+
},
|
|
10489
|
+
{ memoryId: created.uniqueId, action: "create" }
|
|
10490
|
+
);
|
|
10449
10491
|
return `Memory saved successfully (ID: ${created.uniqueId}).`;
|
|
10450
10492
|
}
|
|
10451
10493
|
} catch (error) {
|
|
@@ -13021,17 +13063,42 @@ function useChatStorage(options) {
|
|
|
13021
13063
|
},
|
|
13022
13064
|
[storageCtx, getToken, vaultEmbeddingOptions]
|
|
13023
13065
|
);
|
|
13066
|
+
const retainVaultMemory = useCallback4(
|
|
13067
|
+
async (input) => {
|
|
13068
|
+
if (!getToken) {
|
|
13069
|
+
throw new Error("getToken is required to retain a vault memory");
|
|
13070
|
+
}
|
|
13071
|
+
return retain(
|
|
13072
|
+
input.content,
|
|
13073
|
+
{
|
|
13074
|
+
vaultCtx,
|
|
13075
|
+
embeddingOptions: vaultEmbeddingOptions,
|
|
13076
|
+
vaultCache: vaultEmbeddingCache
|
|
13077
|
+
},
|
|
13078
|
+
{
|
|
13079
|
+
source: "manual",
|
|
13080
|
+
scope: input.scope,
|
|
13081
|
+
...input.folderId !== void 0 && { folderId: input.folderId },
|
|
13082
|
+
...input.factType !== void 0 && { factType: input.factType }
|
|
13083
|
+
}
|
|
13084
|
+
);
|
|
13085
|
+
},
|
|
13086
|
+
[vaultCtx, getToken, vaultEmbeddingOptions, vaultEmbeddingCache]
|
|
13087
|
+
);
|
|
13024
13088
|
const createMemoryVaultTool2 = useCallback4(
|
|
13025
13089
|
(options2) => {
|
|
13026
13090
|
const embOpts = getToken ? vaultEmbeddingOptions : void 0;
|
|
13027
13091
|
return createMemoryVaultTool(
|
|
13028
13092
|
vaultCtx,
|
|
13029
|
-
|
|
13093
|
+
// New memories go through retain() (auto-merge) whenever embeddings are
|
|
13094
|
+
// available; a caller-supplied `write` still wins. Without a token the
|
|
13095
|
+
// tool keeps its direct-insert path — retain cannot embed.
|
|
13096
|
+
embOpts ? { write: retainVaultMemory, ...options2 } : options2,
|
|
13030
13097
|
embOpts,
|
|
13031
13098
|
embOpts ? vaultEmbeddingCache : void 0
|
|
13032
13099
|
);
|
|
13033
13100
|
},
|
|
13034
|
-
[vaultCtx, getToken, vaultEmbeddingOptions, vaultEmbeddingCache]
|
|
13101
|
+
[vaultCtx, getToken, vaultEmbeddingOptions, vaultEmbeddingCache, retainVaultMemory]
|
|
13035
13102
|
);
|
|
13036
13103
|
const getVaultMemories = useCallback4(
|
|
13037
13104
|
(options2) => {
|
|
@@ -14327,6 +14394,7 @@ function useChatStorage(options) {
|
|
|
14327
14394
|
getAllFiles,
|
|
14328
14395
|
createMemoryEngineTool: createMemoryEngineTool2,
|
|
14329
14396
|
createMemoryVaultTool: createMemoryVaultTool2,
|
|
14397
|
+
retainVaultMemory,
|
|
14330
14398
|
createMemoryVaultSearchTool: createMemoryVaultSearchTool2,
|
|
14331
14399
|
createRecallTool: createRecallTool2,
|
|
14332
14400
|
recall: recallFn,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callPortalJsonCompletion,
|
|
3
3
|
getLogger
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YXL5VKCO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
BASE_URL,
|
|
7
7
|
__commonJS,
|
|
@@ -20923,7 +20923,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
|
|
|
20923
20923
|
subQueries = decomp.subQueries;
|
|
20924
20924
|
}
|
|
20925
20925
|
}
|
|
20926
|
-
const { recall: recall2 } = await import("./recall-
|
|
20926
|
+
const { recall: recall2 } = await import("./recall-JPIWNKA7.mjs");
|
|
20927
20927
|
let recallDegraded = [];
|
|
20928
20928
|
const result = await recall2(
|
|
20929
20929
|
query,
|
|
@@ -159,7 +159,16 @@ async function callPortalJsonCompletion(req) {
|
|
|
159
159
|
...reinforce && { reinforceJsonContract: true }
|
|
160
160
|
} : reinforce ? { ...req, reinforceJsonContract: true } : req;
|
|
161
161
|
const outcome = await attemptPortalJson(attemptReq, endpoint);
|
|
162
|
-
if (outcome.kind === "ok")
|
|
162
|
+
if (outcome.kind === "ok") {
|
|
163
|
+
req.onAttempt?.({ attempt, ok: true });
|
|
164
|
+
return outcome.value;
|
|
165
|
+
}
|
|
166
|
+
req.onAttempt?.({
|
|
167
|
+
attempt,
|
|
168
|
+
ok: false,
|
|
169
|
+
reason: outcome.code,
|
|
170
|
+
...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus }
|
|
171
|
+
});
|
|
163
172
|
lastFailure = {
|
|
164
173
|
reason: outcome.code,
|
|
165
174
|
...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notifyConsolidationFallback,
|
|
3
3
|
resolvePiiRedactor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RKQ4MRS2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
callPortalJsonCompletion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YXL5VKCO.mjs";
|
|
8
8
|
import "./chunk-3RPGXXPZ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/lib/memory/consolidate.ts
|
package/dist/server/index.cjs
CHANGED
|
@@ -20704,7 +20704,16 @@ async function callPortalJsonCompletion(req) {
|
|
|
20704
20704
|
...reinforce && { reinforceJsonContract: true }
|
|
20705
20705
|
} : reinforce ? { ...req, reinforceJsonContract: true } : req;
|
|
20706
20706
|
const outcome = await attemptPortalJson(attemptReq, endpoint);
|
|
20707
|
-
if (outcome.kind === "ok")
|
|
20707
|
+
if (outcome.kind === "ok") {
|
|
20708
|
+
req.onAttempt?.({ attempt, ok: true });
|
|
20709
|
+
return outcome.value;
|
|
20710
|
+
}
|
|
20711
|
+
req.onAttempt?.({
|
|
20712
|
+
attempt,
|
|
20713
|
+
ok: false,
|
|
20714
|
+
reason: outcome.code,
|
|
20715
|
+
...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus }
|
|
20716
|
+
});
|
|
20708
20717
|
lastFailure = {
|
|
20709
20718
|
reason: outcome.code,
|
|
20710
20719
|
...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus },
|
|
@@ -28660,6 +28669,26 @@ var MANUAL_FACT_TYPES = [
|
|
|
28660
28669
|
function normalizeManualFactType(value) {
|
|
28661
28670
|
return typeof value === "string" && MANUAL_FACT_TYPES.includes(value) ? value : void 0;
|
|
28662
28671
|
}
|
|
28672
|
+
async function notifyWritten(options, input, outcome) {
|
|
28673
|
+
try {
|
|
28674
|
+
await options?.onWritten?.({ input, outcome });
|
|
28675
|
+
} catch {
|
|
28676
|
+
}
|
|
28677
|
+
}
|
|
28678
|
+
function describeWriteOutcome(outcome) {
|
|
28679
|
+
switch (outcome.action) {
|
|
28680
|
+
case "create":
|
|
28681
|
+
return `Memory saved successfully (ID: ${outcome.memoryId}).`;
|
|
28682
|
+
case "update":
|
|
28683
|
+
case "supersede":
|
|
28684
|
+
return `Memory saved successfully (ID: ${outcome.memoryId}); it replaces an earlier version of this fact.`;
|
|
28685
|
+
case "merge":
|
|
28686
|
+
case "skip":
|
|
28687
|
+
return `The vault already holds this fact (ID: ${outcome.memoryId}); it was noted as re-observed. Nothing new was created \u2014 do not save it again.`;
|
|
28688
|
+
case "suppressed":
|
|
28689
|
+
return "Not saved: this matches a memory the user previously deleted. Do not re-save it.";
|
|
28690
|
+
}
|
|
28691
|
+
}
|
|
28663
28692
|
function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
|
|
28664
28693
|
const hasOnSave = !!options?.onSave;
|
|
28665
28694
|
const folderNames = options?.folderMap ? Array.from(options.folderMap.keys()) : [];
|
|
@@ -28752,6 +28781,17 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
|
|
|
28752
28781
|
return `Memory updated successfully (ID: ${updated.uniqueId}).`;
|
|
28753
28782
|
} else {
|
|
28754
28783
|
const folderId = folderName ? options?.folderMap?.get(folderName) : void 0;
|
|
28784
|
+
if (options?.write) {
|
|
28785
|
+
const input = {
|
|
28786
|
+
content,
|
|
28787
|
+
scope,
|
|
28788
|
+
...folderId !== void 0 && { folderId },
|
|
28789
|
+
...factType !== void 0 && { factType }
|
|
28790
|
+
};
|
|
28791
|
+
const outcome = await options.write(input);
|
|
28792
|
+
await notifyWritten(options, input, outcome);
|
|
28793
|
+
return describeWriteOutcome(outcome);
|
|
28794
|
+
}
|
|
28755
28795
|
const created = await createVaultMemoryOp(vaultCtx, {
|
|
28756
28796
|
content,
|
|
28757
28797
|
scope,
|
|
@@ -28771,6 +28811,16 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
|
|
|
28771
28811
|
}
|
|
28772
28812
|
);
|
|
28773
28813
|
}
|
|
28814
|
+
await notifyWritten(
|
|
28815
|
+
options,
|
|
28816
|
+
{
|
|
28817
|
+
content,
|
|
28818
|
+
scope,
|
|
28819
|
+
...folderId !== void 0 && { folderId },
|
|
28820
|
+
...factType !== void 0 && { factType }
|
|
28821
|
+
},
|
|
28822
|
+
{ memoryId: created.uniqueId, action: "create" }
|
|
28823
|
+
);
|
|
28774
28824
|
return `Memory saved successfully (ID: ${created.uniqueId}).`;
|
|
28775
28825
|
}
|
|
28776
28826
|
} catch (error) {
|
|
@@ -29731,7 +29781,8 @@ Extract durable user facts.`,
|
|
|
29731
29781
|
...options.maxAttempts !== void 0 && { maxAttempts: options.maxAttempts },
|
|
29732
29782
|
...options.timeoutMs !== void 0 && { timeoutMs: options.timeoutMs },
|
|
29733
29783
|
...options.totalTimeoutMs !== void 0 && { totalTimeoutMs: options.totalTimeoutMs },
|
|
29734
|
-
...options.backoffMs && { backoffMs: options.backoffMs }
|
|
29784
|
+
...options.backoffMs && { backoffMs: options.backoffMs },
|
|
29785
|
+
...options.onAttempt && { onAttempt: options.onAttempt }
|
|
29735
29786
|
});
|
|
29736
29787
|
if (parsed === null) {
|
|
29737
29788
|
options.onExhaustedEmpty?.(failure ?? { reason: "empty-content", attempts: 1 });
|