@anuma/sdk 6.25.0 → 6.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/expo/{chunk-XDBX4FZY.mjs → chunk-EDABJLYN.mjs} +441 -2
  2. package/dist/{react/consolidate-XKS6IZFC.mjs → expo/consolidate-5WM3CFKK.mjs} +2 -4
  3. package/dist/expo/index.cjs +14011 -14024
  4. package/dist/expo/index.d.mts +140 -27
  5. package/dist/expo/index.d.ts +140 -27
  6. package/dist/expo/index.mjs +10575 -2283
  7. package/dist/index.cjs +88 -46
  8. package/dist/index.mjs +88 -46
  9. package/dist/memory/context.d.mts +20 -1
  10. package/dist/memory/context.d.ts +20 -1
  11. package/dist/{server/chunk-RKQ4MRS2.mjs → react/chunk-BPMINZPO.mjs} +443 -2
  12. package/dist/{expo/consolidate-XBYKAFKT.mjs → react/consolidate-A2X3M47N.mjs} +2 -4
  13. package/dist/react/index.cjs +18107 -18149
  14. package/dist/react/index.d.mts +147 -27
  15. package/dist/react/index.d.ts +147 -27
  16. package/dist/react/index.mjs +13693 -5157
  17. package/dist/{react/chunk-GPLMMMZN.mjs → server/chunk-DWNEDXA5.mjs} +425 -4
  18. package/dist/server/{consolidate-54P6QZKU.mjs → consolidate-53I4CTD7.mjs} +2 -4
  19. package/dist/server/index.cjs +11590 -11580
  20. package/dist/server/index.d.mts +147 -27
  21. package/dist/server/index.d.ts +147 -27
  22. package/dist/server/index.mjs +26502 -4209
  23. package/dist/telemetry/index.d.mts +4 -0
  24. package/dist/telemetry/index.d.ts +4 -0
  25. package/dist/tools/selection/index.cjs +88 -46
  26. package/dist/tools/selection/index.mjs +88 -46
  27. package/package.json +1 -1
  28. package/dist/expo/chunk-5LKHK5LN.mjs +0 -8142
  29. package/dist/expo/chunk-WUG6GTHO.mjs +0 -445
  30. package/dist/expo/recall-4FSY2MC4.mjs +0 -8
  31. package/dist/react/chunk-DOYXFYB3.mjs +0 -8472
  32. package/dist/react/chunk-MHZB6KIX.mjs +0 -445
  33. package/dist/react/recall-6FVSDGWU.mjs +0 -8
  34. package/dist/server/chunk-FEDRFVHD.mjs +0 -22161
  35. package/dist/server/chunk-YXL5VKCO.mjs +0 -429
  36. package/dist/server/recall-Z2WJGXOL.mjs +0 -8
@@ -113,8 +113,15 @@ import { ResultCallback } from '@nozbe/watermelondb/utils/fp/Result';
113
113
  * rolling a release back past v46 after a device has run it resets that
114
114
  * device's local database. Relevant to OTA, where a JS-only rollback can
115
115
  * land on a database the newer build already migrated
116
+ * - v47: Added failed_sessions, failed_head, failed_at to
117
+ * memory_extraction_jobs — the persisted poison count for a job's head batch
118
+ * (how many worker sessions it failed in, which batch that count belongs to,
119
+ * and when the last one was counted, so sessions minutes apart count once). Without it the retry
120
+ * budget was in memory and reset on every turn, so one batch that could never
121
+ * extract blocked its conversation's extraction forever. Additive, both
122
+ * nullable, no backfill: NULL reads as "never failed"
116
123
  */
117
- declare const SDK_SCHEMA_VERSION = 46;
124
+ declare const SDK_SCHEMA_VERSION = 47;
118
125
  /**
119
126
  * Combined WatermelonDB schema for all SDK storage modules.
120
127
  *
@@ -4371,6 +4378,13 @@ declare function searchChunksOp(ctx: StorageOperationsContext, queryVector: numb
4371
4378
  limit?: number;
4372
4379
  minSimilarity?: number;
4373
4380
  conversationId?: string;
4381
+ /**
4382
+ * Skip every message in this conversation BEFORE scoring, so it can't take
4383
+ * top-K slots. Filtering after the cut (what recall() used to do) lets a
4384
+ * long current conversation fill all `limit` slots and leaves
4385
+ * past-conversation recall with nothing.
4386
+ */
4387
+ excludeConversationId?: string;
4374
4388
  /**
4375
4389
  * Current embedding model. When set, messages whose stored
4376
4390
  * `embedding_model` is non-null and differs are skipped — their vectors
@@ -5160,6 +5174,28 @@ interface EmbeddingOptions {
5160
5174
  * while real PII never reaches the server. Used when PII redaction is active.
5161
5175
  */
5162
5176
  maskInput?: (text: string) => string;
5177
+ /**
5178
+ * Deadline, in ms, for EACH embeddings HTTP attempt (default 15000). An
5179
+ * attempt that exceeds it is aborted and counts as a transient failure, so the
5180
+ * bounded retry still applies. `0` disables the deadline.
5181
+ */
5182
+ timeoutMs?: number;
5183
+ /**
5184
+ * Deadline, in ms, for the `getToken()` read that precedes a request (default
5185
+ * 10000). A provider that never settles rejects instead of hanging the
5186
+ * embedding — and the recall waiting on it. `0` disables the deadline.
5187
+ */
5188
+ tokenTimeoutMs?: number;
5189
+ /**
5190
+ * Overall deadline, in ms, for one `generateEmbedding` call — the token read,
5191
+ * every retry attempt and the backoff between them. Unset (the default) means
5192
+ * only the per-attempt deadlines apply, which is right for background/bulk
5193
+ * embeds. The recall query path sets it (see
5194
+ * `RecallOptions.queryEmbedTotalTimeoutMs`) so an outage degrades a turn to
5195
+ * BM25 within a few seconds instead of ~4 x `timeoutMs`. Not applied by
5196
+ * `generateEmbeddings`.
5197
+ */
5198
+ totalTimeoutMs?: number;
5163
5199
  }
5164
5200
 
5165
5201
  /**
@@ -5248,6 +5284,12 @@ interface MemoryVaultSearchOptions {
5248
5284
  rerankTopN?: number;
5249
5285
  /** Multiplicative cross-encoder blend weight. Default 0.1. Only used when `rerank` is true. */
5250
5286
  ceWeight?: number;
5287
+ /**
5288
+ * Max ms a rerank waits for the cross-encoder's FIRST model load (default
5289
+ * 10000). On expiry the search degrades to the fused ranking and reports
5290
+ * `reranked: false`; the load continues in the background for later calls.
5291
+ */
5292
+ rerankLoadTimeoutMs?: number;
5251
5293
  /** Recency boost slope applied in the fused ranker. Default 1.0. */
5252
5294
  recencyAlpha?: number;
5253
5295
  /** Recency decay curve overrides (per-year decay slope, floor, no-date multiplier). */
@@ -5315,6 +5357,23 @@ interface MemoryVaultSearchOptions {
5315
5357
  * prefix stays byte-identical.
5316
5358
  */
5317
5359
  decryptLast?: boolean;
5360
+ /**
5361
+ * A vector the caller already computed for THIS query, with the model named in
5362
+ * `embeddingOptions`. When set, the search uses it instead of embedding the
5363
+ * query a second time — `recall()` embeds once for its chunk lane and passes
5364
+ * the vector here. An EMPTY array means the caller's embed failed: the search
5365
+ * degrades to BM25 (reported as embeddings unavailable) without re-trying a
5366
+ * provider that just failed.
5367
+ */
5368
+ queryEmbedding?: number[];
5369
+ /**
5370
+ * Overall deadline, in ms, for embedding the QUERY (token read + all attempts
5371
+ * + backoff). On expiry the search degrades to BM25 and reports embeddings
5372
+ * unavailable. Unset = only the per-attempt deadlines apply. `recall()` sets
5373
+ * it (default 8000 — see `RecallOptions.queryEmbedTotalTimeoutMs`); row
5374
+ * (re)embeds are never subject to it.
5375
+ */
5376
+ queryEmbedTotalTimeoutMs?: number;
5318
5377
  /** Admission window multiplier for decrypt-last (`limit * admitFactor`). Default 3. */
5319
5378
  admitFactor?: number;
5320
5379
  /** Admission window floor for decrypt-last. Default 30. */
@@ -5331,7 +5390,14 @@ declare function preEmbedVaultMemories(vaultCtx: VaultMemoryOperationsContext, e
5331
5390
  * Eagerly embed a single piece of content and store it in the cache.
5332
5391
  * Call this when a vault memory is created or updated.
5333
5392
  */
5334
- declare function eagerEmbedContent(content: string, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, vaultCtx?: VaultMemoryOperationsContext, memoryId?: string): Promise<void>;
5393
+ declare function eagerEmbedContent(content: string, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, vaultCtx?: VaultMemoryOperationsContext, memoryId?: string,
5394
+ /**
5395
+ * `updatedAt` of the committed row this content belongs to. When given, the
5396
+ * cache entry is tied to that row version; without it the entry is
5397
+ * unversioned and a search re-resolves it from the stored column instead of
5398
+ * trusting it (see `vectorVersion.ts`).
5399
+ */
5400
+ updatedAt?: Date): Promise<void>;
5335
5401
  /**
5336
5402
  * A single vault search result with its similarity score.
5337
5403
  */
@@ -5372,21 +5438,6 @@ interface VaultSearchResult {
5372
5438
  * @returns Sorted results (empty array on invalid input or empty vault)
5373
5439
  */
5374
5440
  declare function searchVaultMemories(query: string, vaultCtx: VaultMemoryOperationsContext, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, searchOptions?: MemoryVaultSearchOptions): Promise<VaultSearchResult[]>;
5375
- /**
5376
- * Creates a memory vault search tool for use with chat completions.
5377
- *
5378
- * The tool allows the LLM to search through vault memories using semantic
5379
- * similarity. Vault entries should have their embeddings pre-computed in the
5380
- * cache (via preEmbedVaultMemories or eagerEmbedContent). Any missing
5381
- * embeddings are computed on the fly as a fallback.
5382
- *
5383
- * @param vaultCtx - Vault operations context for database access
5384
- * @param embeddingOptions - Options for embedding generation (auth, base URL)
5385
- * @param cache - Pre-populated embedding cache
5386
- * @param searchOptions - Optional search configuration
5387
- * @returns A ToolConfig that can be passed to chat completion tools
5388
- */
5389
- declare function createMemoryVaultSearchTool(vaultCtx: VaultMemoryOperationsContext, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, searchOptions?: MemoryVaultSearchOptions): ToolConfig;
5390
5441
 
5391
5442
  /**
5392
5443
  * C2 — Observation trend labels.
@@ -5609,6 +5660,20 @@ interface RecallOptions {
5609
5660
  rerankTopN?: number;
5610
5661
  /** Multiplicative cross-encoder blend weight. Default: 0.1. */
5611
5662
  ceWeight?: number;
5663
+ /**
5664
+ * Max ms a `mid`/`high` recall waits for the cross-encoder's FIRST model load
5665
+ * before degrading to the fused ranking (reported as `rerank-unavailable`).
5666
+ * Default: 10000. The load keeps going in the background for later calls.
5667
+ */
5668
+ rerankLoadTimeoutMs?: number;
5669
+ /**
5670
+ * Overall deadline, in ms, for embedding the query — token read, every retry
5671
+ * attempt and the backoff between them. Default: 8000. On expiry the fact lane
5672
+ * degrades to BM25 and the (cosine-only) chunk lane is skipped, reported as
5673
+ * `embeddings-unavailable`, so an embeddings outage costs a turn at most this
5674
+ * long rather than ~4 x the per-attempt timeout. `0` disables it.
5675
+ */
5676
+ queryEmbedTotalTimeoutMs?: number;
5612
5677
  /** Recency boost slope in the fused ranker. Default: 1.0. */
5613
5678
  recencyAlpha?: number;
5614
5679
  /** Recency decay curve overrides (per-year decay slope, floor, no-date multiplier). */
@@ -5636,7 +5701,8 @@ interface RecallOptions {
5636
5701
  maxHops?: number;
5637
5702
  /** Max neighbor entities expanded per hop. Default: 8. */
5638
5703
  entityFanout?: number;
5639
- /** Hard cap on accumulated memory IDs across all hops. Default: 64. */
5704
+ /** Hard cap on graph-lane memory IDs — across all hops, and on the single-hop
5705
+ * lane `low`/`mid` run. Default: 64. */
5640
5706
  nodeBudget?: number;
5641
5707
  /**
5642
5708
  * PR5 — enable LLM graph path-refinement: at each traversal hop a model picks
@@ -5871,6 +5937,10 @@ interface RecallDiagnostics {
5871
5937
  * fast `vault_size = 0` population never established a baseline for this
5872
5938
  * cost, and why the ~850ms floor on the smallest NON-empty vaults had no
5873
5939
  * attributable owner.
5940
+ *
5941
+ * EXCEPTION — a mixed fact + chunk recall embeds the query ONCE, during
5942
+ * {@link prep}, and hands the vector to both lanes. There `queryEmbed` is
5943
+ * that shared embed and sits inside `prep`, not `factLane`.
5874
5944
  */
5875
5945
  queryEmbed: number;
5876
5946
  /** Chunk-lane search (`searchChunksOp`). */
@@ -7058,7 +7128,21 @@ declare function hardDeleteDecayedOp(ctx: VaultMemoryOperationsContext, id: stri
7058
7128
  hardDeleteWindowMs: number;
7059
7129
  now?: number;
7060
7130
  }): Promise<boolean>;
7061
- declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext, id: string, embedding: string, embeddingModel: string): Promise<boolean>;
7131
+ /**
7132
+ * What a re-embed was computed from. A search embeds a row it READ earlier, so
7133
+ * by the time the vector lands the row may have been edited (the tool clears
7134
+ * the embedding on an edit, a consolidation rewrites content under
7135
+ * preserveUpdatedAt); writing then would pin a vector for text that is gone.
7136
+ */
7137
+ interface VaultEmbeddingExpectation {
7138
+ /** Plaintext content the vector was computed from. */
7139
+ content?: string;
7140
+ /** `updatedAt` (ms) of the row as it was read. */
7141
+ updatedAt?: number;
7142
+ }
7143
+ declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext, id: string, embedding: string, embeddingModel: string,
7144
+ /** When given, the write lands only if the row still matches it. */
7145
+ expected?: VaultEmbeddingExpectation): Promise<boolean>;
7062
7146
 
7063
7147
  /**
7064
7148
  * Ingest server-extracted photo memories into the local vault.
@@ -8011,6 +8095,38 @@ declare function createMemoryEngineTool(storageCtx: StorageOperationsContext, em
8011
8095
  onRetrieve?: (conversationIds: string[]) => void;
8012
8096
  }): ToolConfig;
8013
8097
 
8098
+ /**
8099
+ * `memory_vault_search` chat tool — the executor half of the vault search.
8100
+ *
8101
+ * Split out of `searchTool.ts` to break the `recall` <-> `searchTool` import
8102
+ * cycle: `recall()` statically imports the vault search from `searchTool.ts`,
8103
+ * and this executor routes through `recall()`. While both lived in one module
8104
+ * the executor reached recall through a dynamic `import()`, and the cycle it
8105
+ * papered over is what surfaced as the order-dependent
8106
+ * `Cannot access 'nowMs' before initialization` flake. With the executor here,
8107
+ * the graph is a straight line: executor -> recall -> searchTool.
8108
+ *
8109
+ * `searchTool.ts` must NOT import (or re-export) from this module, or the
8110
+ * cycle comes back. The public name is re-exported from the barrel
8111
+ * (`./index.ts`), which is the path every entry point already uses.
8112
+ */
8113
+
8114
+ /**
8115
+ * Creates a memory vault search tool for use with chat completions.
8116
+ *
8117
+ * The tool allows the LLM to search through vault memories using semantic
8118
+ * similarity. Vault entries should have their embeddings pre-computed in the
8119
+ * cache (via preEmbedVaultMemories or eagerEmbedContent). Any missing
8120
+ * embeddings are computed on the fly as a fallback.
8121
+ *
8122
+ * @param vaultCtx - Vault operations context for database access
8123
+ * @param embeddingOptions - Options for embedding generation (auth, base URL)
8124
+ * @param cache - Pre-populated embedding cache
8125
+ * @param searchOptions - Optional search configuration
8126
+ * @returns A ToolConfig that can be passed to chat completion tools
8127
+ */
8128
+ declare function createMemoryVaultSearchTool(vaultCtx: VaultMemoryOperationsContext, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, searchOptions?: MemoryVaultSearchOptions): ToolConfig;
8129
+
8014
8130
  /**
8015
8131
  * Memory Vault Tool
8016
8132
  *
@@ -9319,7 +9435,7 @@ declare function reflect(query: string, ctx: RecallContext, options: ReflectOpti
9319
9435
  declare class RerankerUnavailableError extends Error {
9320
9436
  /** The underlying import failure, kept for debugging. */
9321
9437
  readonly reason: unknown;
9322
- constructor(reason: unknown);
9438
+ constructor(reason: unknown, message?: string);
9323
9439
  }
9324
9440
  /**
9325
9441
  * Whether the cross-encoder reranker can run in this environment.
@@ -10048,14 +10164,18 @@ interface DurableAutoExtractorOptions extends Omit<CreateAutoExtractorOptions, "
10048
10164
  retryDelayMs?: number;
10049
10165
  /**
10050
10166
  * Ceiling on one batch, from the extraction call through retention. Defaults
10051
- * to 180 seconds — deliberately above the extraction call's own budget
10052
- * (`timeoutMs`, 60s per attempt, x `maxAttempts`), so this is a backstop
10053
- * against a promise that never settles at all rather than a second timeout
10054
- * competing with that one. Use `timeoutMs`/`totalTimeoutMs` to bound the LLM
10055
- * call itself. Without a ceiling here, one unsettled promise latched the
10056
- * drain and killed the outbox for the rest of the session.
10167
+ * to the extraction call's own worst case — `extract.timeoutMs` (60s) x
10168
+ * `extract.maxAttempts` (3) plus backoff, or `extract.totalTimeoutMs` when
10169
+ * that is smaller — plus a fixed retain budget, so this is a backstop against
10170
+ * a promise that never settles rather than a second timeout competing with
10171
+ * the call's own. A batch past its ceiling is cancelled: its late writes are
10172
+ * refused, so the retry cannot race it into duplicate rows. Without a
10173
+ * ceiling, one unsettled promise latched the drain and killed the outbox for
10174
+ * the rest of the session.
10057
10175
  */
10058
10176
  batchTimeoutMs?: number;
10177
+ /** Clock for the failed-session spacing. Defaults to `Date.now`. */
10178
+ now?: () => number;
10059
10179
  }
10060
10180
  /** Durable client extraction. Call once per authenticated database session.
10061
10181
  * Resumes pending jobs on creation, reads bounded batches from encrypted
@@ -11057,4 +11177,4 @@ declare function sanitizeQuotes(s: string): string;
11057
11177
  declare function renderTemplate(value: string | null | undefined, template: string): string | null;
11058
11178
  declare function buildSystemPrompt(ctx: PromptContext, options?: BuildPromptOptions): BuildPromptResult;
11059
11179
 
11060
- export { type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, type ApiType, type AutoExecutedToolResult, type AutoExtractMessage, type AutoExtractor, type Budget, type BuildPromptOptions, type BuildPromptResult, type CachedChunkVectors, type CachedServerTools, type ChatCompletionUsage, type ChatRole, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type ConsolidationAction, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES, DEFAULT_SUMMARY_MODEL, DEFAULT_SUMMARY_TOKEN_THRESHOLD, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, MAX_HOPS, MAX_MESSAGES_PER_SUMMARIZATION, MEDIUM_TTL_MS, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, Message, type MessageChunk, type MessageFeedback, type MessageOrigin, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type PublishedPhotoMemory, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunTerminalState, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SelectServerToolsForPromptOptions, type ServerTool, type ServerToolCallEvent, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SettingsStorageOperationsContext, type SignMessageFn, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredConversation, type StoredConversationSummary, type StoredFileWithContext, type StoredMedia, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, type StoredProject, type StoredUserPreference, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, type SynthesizeProfileOptions, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, VaultMemory, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, assembleMemoryContext, backfillMemoryTopicsOp, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, capHopsForDensity, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessageOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, onKeyAvailable, parseMedia, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp, verifyMemoriesForPublish };
11180
+ export { type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, type ApiType, type AutoExecutedToolResult, type AutoExtractMessage, type AutoExtractor, type Budget, type BuildPromptOptions, type BuildPromptResult, type CachedChunkVectors, type CachedServerTools, type ChatCompletionUsage, type ChatRole, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type ConsolidationAction, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES, DEFAULT_SUMMARY_MODEL, DEFAULT_SUMMARY_TOKEN_THRESHOLD, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, MAX_HOPS, MAX_MESSAGES_PER_SUMMARIZATION, MEDIUM_TTL_MS, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, Message, type MessageChunk, type MessageFeedback, type MessageOrigin, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type PublishedPhotoMemory, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunTerminalState, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SelectServerToolsForPromptOptions, type ServerTool, type ServerToolCallEvent, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SettingsStorageOperationsContext, type SignMessageFn, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredConversation, type StoredConversationSummary, type StoredFileWithContext, type StoredMedia, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, type StoredProject, type StoredUserPreference, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, type SynthesizeProfileOptions, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, VaultMemory, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, assembleMemoryContext, backfillMemoryTopicsOp, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, capHopsForDensity, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessageOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, onKeyAvailable, parseMedia, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp, verifyMemoriesForPublish };