@anuma/sdk 2.4.2 → 2.6.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-UOUJUZM4.mjs → chunk-TCRDSUC6.mjs} +107 -5
- package/dist/expo/{consolidate-HEMQGOUD.mjs → consolidate-3QQPUWD6.mjs} +15 -9
- package/dist/expo/index.cjs +264 -70
- package/dist/expo/index.d.mts +77 -17
- package/dist/expo/index.d.ts +77 -17
- package/dist/expo/index.mjs +148 -58
- package/dist/{react/recall-G3CS444F.mjs → expo/recall-FQU3NUTL.mjs} +1 -1
- package/dist/react/{chunk-IYDQBFS2.mjs → chunk-ZXS3KOY4.mjs} +111 -6
- package/dist/react/{consolidate-IJH7LD2T.mjs → consolidate-3MXZV3G7.mjs} +15 -9
- package/dist/react/index.cjs +268 -71
- package/dist/react/index.d.mts +85 -20
- package/dist/react/index.d.ts +85 -20
- package/dist/react/index.mjs +148 -58
- package/dist/{expo/recall-HI7VO3VM.mjs → react/recall-PV7L3SN3.mjs} +1 -1
- package/dist/server/{chunk-3MLG7SUH.mjs → chunk-Z6II54I7.mjs} +107 -5
- package/dist/server/{consolidate-TDT4HRHG.mjs → consolidate-CN2GQV4D.mjs} +15 -9
- package/dist/server/index.cjs +264 -70
- package/dist/server/index.d.mts +77 -17
- package/dist/server/index.d.ts +77 -17
- package/dist/server/index.mjs +148 -58
- package/dist/server/{recall-MJHGXMHZ.mjs → recall-CQT24XLH.mjs} +1 -1
- package/package.json +1 -1
package/dist/server/index.d.mts
CHANGED
|
@@ -53,8 +53,16 @@ import { ResultCallback } from '@nozbe/watermelondb/utils/fp/Result';
|
|
|
53
53
|
* LLM topic-extraction pass, so the background topic worker re-extracts only
|
|
54
54
|
* memories edited since (updated_at > topics_extracted_at) instead of
|
|
55
55
|
* re-running the whole vault
|
|
56
|
+
* - v37: Added superseded_by + superseded_at columns to memory_vault for
|
|
57
|
+
* write-time supersession — a changed fact retires the stale one (points at
|
|
58
|
+
* the newer memory) instead of both surviving; superseded rows are excluded
|
|
59
|
+
* from recall/dedup by default
|
|
60
|
+
* - v38: Added topics_extracted_version column to memory_vault — the extraction
|
|
61
|
+
* logic version a memory was last stamped under. Bumping TOPICS_EXTRACTION_VERSION
|
|
62
|
+
* (new prompt/model) makes the worker re-extract every row whose stored version
|
|
63
|
+
* is behind, so topic-quality improvements propagate across the existing vault
|
|
56
64
|
*/
|
|
57
|
-
declare const SDK_SCHEMA_VERSION =
|
|
65
|
+
declare const SDK_SCHEMA_VERSION = 38;
|
|
58
66
|
/**
|
|
59
67
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
60
68
|
*
|
|
@@ -134,6 +142,7 @@ declare const sdkSchema: Readonly<{
|
|
|
134
142
|
* - v32 → v33: Added `embedding_model` column to memory_vault (null grandfathered as current-model-compatible)
|
|
135
143
|
* - v34 → v35: Added `conversation_memory` table (conversation ↔ recalled memory ids)
|
|
136
144
|
* - v35 → v36: Added `topics_extracted_at` column to memory_vault (watermark for the background topic-extraction worker; null + existing links grandfathered as extracted)
|
|
145
|
+
* - v36 → v37: Added `superseded_by` + `superseded_at` columns to memory_vault (write-time supersession; null = live, excluded from recall/dedup when set)
|
|
137
146
|
*/
|
|
138
147
|
declare const sdkMigrations: Readonly<{
|
|
139
148
|
validated: true;
|
|
@@ -4142,6 +4151,12 @@ declare class VaultMemory extends Model$1 {
|
|
|
4142
4151
|
/** Unix ms of the last LLM topic-extraction pass. Null = never extracted
|
|
4143
4152
|
* standalone (linked legacy rows are grandfathered as extracted). */
|
|
4144
4153
|
topicsExtractedAt: number | null;
|
|
4154
|
+
/** A2 supersession: newer memory id that replaced this one, or null if live. */
|
|
4155
|
+
supersededBy: string | null;
|
|
4156
|
+
supersededAt: number | null;
|
|
4157
|
+
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4158
|
+
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4159
|
+
topicsExtractedVersion: number | null;
|
|
4145
4160
|
createdAt: Date;
|
|
4146
4161
|
updatedAt: Date;
|
|
4147
4162
|
isDeleted: boolean;
|
|
@@ -4249,6 +4264,16 @@ interface StoredVaultMemory {
|
|
|
4249
4264
|
* Null = never extracted standalone; rows that already carry entity links
|
|
4250
4265
|
* are grandfathered as extracted (see getMemoriesNeedingTopicExtractionOp). */
|
|
4251
4266
|
topicsExtractedAt: number | null;
|
|
4267
|
+
/** Write-time supersession (A2): id of the newer memory that replaced this
|
|
4268
|
+
* one (incompatible-value update, e.g. "Lives in Portland" → "Lives in SF").
|
|
4269
|
+
* Null = live. Superseded rows are excluded from recall/dedup by default but
|
|
4270
|
+
* kept for history + the read-time fallback. */
|
|
4271
|
+
supersededBy: string | null;
|
|
4272
|
+
/** Unix ms when this memory was superseded. Null when live. */
|
|
4273
|
+
supersededAt: number | null;
|
|
4274
|
+
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4275
|
+
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4276
|
+
topicsExtractedVersion: number | null;
|
|
4252
4277
|
createdAt: Date;
|
|
4253
4278
|
updatedAt: Date;
|
|
4254
4279
|
isDeleted: boolean;
|
|
@@ -4357,16 +4382,42 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
|
|
|
4357
4382
|
* render "forgotten" nodes; ordinary consumers should leave this off.
|
|
4358
4383
|
*/
|
|
4359
4384
|
includeDeleted?: boolean;
|
|
4385
|
+
/**
|
|
4386
|
+
* Include A2-superseded memories (each carries `supersededBy`). Default
|
|
4387
|
+
* `false` — superseded rows are excluded, as they are from recall/dedup.
|
|
4388
|
+
* Used by a "memory history" view to render retired facts.
|
|
4389
|
+
*/
|
|
4390
|
+
includeSuperseded?: boolean;
|
|
4360
4391
|
}): Promise<StoredVaultMemory[]>;
|
|
4361
4392
|
declare function getAllVaultMemoryContentsOp(ctx: VaultMemoryOperationsContext, options?: {
|
|
4362
4393
|
since?: Date;
|
|
4363
4394
|
}): Promise<string[]>;
|
|
4364
4395
|
declare function updateVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string, opts: UpdateVaultMemoryOptions): Promise<StoredVaultMemory | null>;
|
|
4365
4396
|
declare function deleteVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string): Promise<boolean>;
|
|
4397
|
+
/**
|
|
4398
|
+
* Mark a memory as superseded by a newer one (A2 write-time supersession).
|
|
4399
|
+
* The row stays in the table (history + read-time fallback) but is excluded
|
|
4400
|
+
* from recall/dedup by default via `superseded_by`. Idempotent-ish: no-op if
|
|
4401
|
+
* the row is missing, not owned, deleted, or already superseded. Does NOT
|
|
4402
|
+
* preserve `updated_at` — superseded rows are hidden from recall, so their
|
|
4403
|
+
* recency is irrelevant.
|
|
4404
|
+
*
|
|
4405
|
+
* @param id - the memory being retired (e.g. "Lives in Portland")
|
|
4406
|
+
* @param supersededById - the newer memory that replaced it (e.g. "Lives in SF")
|
|
4407
|
+
*/
|
|
4408
|
+
declare function supersedeVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string, supersededById: string): Promise<boolean>;
|
|
4366
4409
|
/**
|
|
4367
4410
|
* Get all non-deleted, unfiled vault memories (folder_id is null).
|
|
4368
4411
|
*/
|
|
4369
4412
|
declare function getUnfiledVaultMemoriesOp(ctx: VaultMemoryOperationsContext): Promise<StoredVaultMemory[]>;
|
|
4413
|
+
/**
|
|
4414
|
+
* The current topic-extraction logic version. Bump this whenever the extraction
|
|
4415
|
+
* prompt or model in `topicExtract.ts` changes: every memory stamped under an
|
|
4416
|
+
* older version (including pre-v37 rows, read as version 0) is then re-extracted
|
|
4417
|
+
* by the next sweep, so topic-quality improvements propagate across the existing
|
|
4418
|
+
* vault. The worker's `limit` drains that re-extraction across sweeps.
|
|
4419
|
+
*/
|
|
4420
|
+
declare const TOPICS_EXTRACTION_VERSION = 1;
|
|
4370
4421
|
/**
|
|
4371
4422
|
* Result of {@link getMemoriesNeedingTopicExtractionOp}: which memories the
|
|
4372
4423
|
* background topic worker should run LLM entity extraction on, and which it
|
|
@@ -4376,8 +4427,10 @@ interface MemoriesNeedingTopicExtraction {
|
|
|
4376
4427
|
/**
|
|
4377
4428
|
* Memories to run LLM topic extraction on (decrypted): never-extracted rows
|
|
4378
4429
|
* with no entity links, plus stamped rows edited since their last pass
|
|
4379
|
-
* (`updated_at` > `topics_extracted_at`)
|
|
4380
|
-
*
|
|
4430
|
+
* (`updated_at` > `topics_extracted_at`) or extracted under an older
|
|
4431
|
+
* `topics_extracted_version` than {@link TOPICS_EXTRACTION_VERSION}. Edited /
|
|
4432
|
+
* stale-version rows come first (they get priority under `limit`), each group
|
|
4433
|
+
* newest-created first.
|
|
4381
4434
|
*/
|
|
4382
4435
|
pending: StoredVaultMemory[];
|
|
4383
4436
|
/**
|
|
@@ -4401,13 +4454,16 @@ declare function getMemoriesNeedingTopicExtractionOp(ctx: VaultMemoryOperationsC
|
|
|
4401
4454
|
limit?: number;
|
|
4402
4455
|
}): Promise<MemoriesNeedingTopicExtraction>;
|
|
4403
4456
|
/**
|
|
4404
|
-
* Stamp `topics_extracted_at` on the given
|
|
4405
|
-
* this after a successful extraction pass
|
|
4406
|
-
* quiet memories aren't re-asked every sweep)
|
|
4407
|
-
* `linkedUnstamped` rows without an LLM call.
|
|
4408
|
-
*
|
|
4409
|
-
*
|
|
4410
|
-
*
|
|
4457
|
+
* Stamp `topics_extracted_at` (and `topics_extracted_version`) on the given
|
|
4458
|
+
* memories — the topic worker calls this after a successful extraction pass
|
|
4459
|
+
* (including zero-entity results, so quiet memories aren't re-asked every sweep)
|
|
4460
|
+
* and to grandfather `linkedUnstamped` rows without an LLM call. `version`
|
|
4461
|
+
* defaults to {@link TOPICS_EXTRACTION_VERSION}: stamping at the current version
|
|
4462
|
+
* (for both fresh extractions and grandfathered legacy rows) means they aren't
|
|
4463
|
+
* re-extracted until a future version bump. Preserves `updated_at` so a stamp
|
|
4464
|
+
* never inflates the recency multiplier — and never masks a concurrent content
|
|
4465
|
+
* edit from the next sweep. Skips deleted, foreign-user, and user-managed rows.
|
|
4466
|
+
* Returns the IDs actually stamped.
|
|
4411
4467
|
*
|
|
4412
4468
|
* ALL eligibility AND `updated_at` are read from the LIVE Model inside the
|
|
4413
4469
|
* serialized writer — never a pre-writer snapshot. Writers are serialized, so
|
|
@@ -4422,7 +4478,7 @@ declare function getMemoriesNeedingTopicExtractionOp(ctx: VaultMemoryOperationsC
|
|
|
4422
4478
|
* (both `pending` and `linkedUnstamped` are capped), so the per-row Model load
|
|
4423
4479
|
* needed to `prepareUpdate` stays bounded and never spikes the RecordCache.
|
|
4424
4480
|
*/
|
|
4425
|
-
declare function stampTopicsExtractedAtOp(ctx: VaultMemoryOperationsContext, memoryIds: readonly string[], extractedAt: number): Promise<string[]>;
|
|
4481
|
+
declare function stampTopicsExtractedAtOp(ctx: VaultMemoryOperationsContext, memoryIds: readonly string[], extractedAt: number, version?: number): Promise<string[]>;
|
|
4426
4482
|
declare function deleteAllVaultMemoriesForUserOp(ctx: VaultMemoryOperationsContext, userId: string): Promise<number>;
|
|
4427
4483
|
declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext, id: string, embedding: string, embeddingModel: string): Promise<boolean>;
|
|
4428
4484
|
|
|
@@ -5853,7 +5909,7 @@ interface RecallDiagnostics {
|
|
|
5853
5909
|
/** Soft-degradation signals that fired this call (empty when clean). */
|
|
5854
5910
|
degraded: RecallDegradation[];
|
|
5855
5911
|
}
|
|
5856
|
-
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed";
|
|
5912
|
+
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed" | "supersede";
|
|
5857
5913
|
type RetainSource = "manual" | "auto-extracted" | "capsule";
|
|
5858
5914
|
/** Why the consolidator fell back to "create" instead of a real decision. */
|
|
5859
5915
|
type ConsolidationFallbackReason = "llm_error" | "invalid_response";
|
|
@@ -5919,7 +5975,8 @@ interface RetainOptions {
|
|
|
5919
5975
|
interface RetainResult {
|
|
5920
5976
|
action: RetainAction;
|
|
5921
5977
|
memoryId: string;
|
|
5922
|
-
/** When action is 'merge' or 'update', the prior memory's id.
|
|
5978
|
+
/** When action is 'merge' or 'update', the prior memory's id. When action is
|
|
5979
|
+
* 'supersede', the stale memory that was retired (`memoryId` is the new one). */
|
|
5923
5980
|
targetId?: string;
|
|
5924
5981
|
/**
|
|
5925
5982
|
* When action is 'suppressed', the id of the soft-deleted memory that blocked
|
|
@@ -6141,9 +6198,12 @@ declare function extractFacts(messages: AutoExtractMessage[], options: ExtractFa
|
|
|
6141
6198
|
type ExtractOutcome = "extracted" | "no-facts" | "empty-after-retry" | "dropped-after-redaction";
|
|
6142
6199
|
/**
|
|
6143
6200
|
* Stage 2 — for each extracted candidate, call retain() with auto-merge
|
|
6144
|
-
* enabled.
|
|
6145
|
-
*
|
|
6146
|
-
*
|
|
6201
|
+
* enabled. When `consolidateOptions` are wired, retain()'s consolidation pass
|
|
6202
|
+
* is the "resolver": a second LLM call against the top-K existing vault
|
|
6203
|
+
* memories that decides create/update/noop/supersede — including retiring a
|
|
6204
|
+
* stale value on a state change (the supersession the extraction prompt above
|
|
6205
|
+
* promises). Without consolidation, retain() still dedups at the cosine-merge
|
|
6206
|
+
* level, and the read-time supersession heuristic remains the fallback.
|
|
6147
6207
|
*
|
|
6148
6208
|
* Returns the candidates that survived validation along with the retain
|
|
6149
6209
|
* result for each (which captures whether the fact was created, merged,
|
|
@@ -7731,4 +7791,4 @@ declare function sanitizeQuotes(s: string): string;
|
|
|
7731
7791
|
declare function renderTemplate(value: string | null | undefined, template: string): string | null;
|
|
7732
7792
|
declare function buildSystemPrompt(ctx: PromptContext, options?: BuildPromptOptions): BuildPromptResult;
|
|
7733
7793
|
|
|
7734
|
-
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 ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, 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_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, 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 EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, 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 StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, TOOL_CATALOG, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|
|
7794
|
+
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 ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, 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_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, 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 EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, 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 StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, supersedeVaultMemoryOp, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -53,8 +53,16 @@ import { ResultCallback } from '@nozbe/watermelondb/utils/fp/Result';
|
|
|
53
53
|
* LLM topic-extraction pass, so the background topic worker re-extracts only
|
|
54
54
|
* memories edited since (updated_at > topics_extracted_at) instead of
|
|
55
55
|
* re-running the whole vault
|
|
56
|
+
* - v37: Added superseded_by + superseded_at columns to memory_vault for
|
|
57
|
+
* write-time supersession — a changed fact retires the stale one (points at
|
|
58
|
+
* the newer memory) instead of both surviving; superseded rows are excluded
|
|
59
|
+
* from recall/dedup by default
|
|
60
|
+
* - v38: Added topics_extracted_version column to memory_vault — the extraction
|
|
61
|
+
* logic version a memory was last stamped under. Bumping TOPICS_EXTRACTION_VERSION
|
|
62
|
+
* (new prompt/model) makes the worker re-extract every row whose stored version
|
|
63
|
+
* is behind, so topic-quality improvements propagate across the existing vault
|
|
56
64
|
*/
|
|
57
|
-
declare const SDK_SCHEMA_VERSION =
|
|
65
|
+
declare const SDK_SCHEMA_VERSION = 38;
|
|
58
66
|
/**
|
|
59
67
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
60
68
|
*
|
|
@@ -134,6 +142,7 @@ declare const sdkSchema: Readonly<{
|
|
|
134
142
|
* - v32 → v33: Added `embedding_model` column to memory_vault (null grandfathered as current-model-compatible)
|
|
135
143
|
* - v34 → v35: Added `conversation_memory` table (conversation ↔ recalled memory ids)
|
|
136
144
|
* - v35 → v36: Added `topics_extracted_at` column to memory_vault (watermark for the background topic-extraction worker; null + existing links grandfathered as extracted)
|
|
145
|
+
* - v36 → v37: Added `superseded_by` + `superseded_at` columns to memory_vault (write-time supersession; null = live, excluded from recall/dedup when set)
|
|
137
146
|
*/
|
|
138
147
|
declare const sdkMigrations: Readonly<{
|
|
139
148
|
validated: true;
|
|
@@ -4142,6 +4151,12 @@ declare class VaultMemory extends Model$1 {
|
|
|
4142
4151
|
/** Unix ms of the last LLM topic-extraction pass. Null = never extracted
|
|
4143
4152
|
* standalone (linked legacy rows are grandfathered as extracted). */
|
|
4144
4153
|
topicsExtractedAt: number | null;
|
|
4154
|
+
/** A2 supersession: newer memory id that replaced this one, or null if live. */
|
|
4155
|
+
supersededBy: string | null;
|
|
4156
|
+
supersededAt: number | null;
|
|
4157
|
+
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4158
|
+
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4159
|
+
topicsExtractedVersion: number | null;
|
|
4145
4160
|
createdAt: Date;
|
|
4146
4161
|
updatedAt: Date;
|
|
4147
4162
|
isDeleted: boolean;
|
|
@@ -4249,6 +4264,16 @@ interface StoredVaultMemory {
|
|
|
4249
4264
|
* Null = never extracted standalone; rows that already carry entity links
|
|
4250
4265
|
* are grandfathered as extracted (see getMemoriesNeedingTopicExtractionOp). */
|
|
4251
4266
|
topicsExtractedAt: number | null;
|
|
4267
|
+
/** Write-time supersession (A2): id of the newer memory that replaced this
|
|
4268
|
+
* one (incompatible-value update, e.g. "Lives in Portland" → "Lives in SF").
|
|
4269
|
+
* Null = live. Superseded rows are excluded from recall/dedup by default but
|
|
4270
|
+
* kept for history + the read-time fallback. */
|
|
4271
|
+
supersededBy: string | null;
|
|
4272
|
+
/** Unix ms when this memory was superseded. Null when live. */
|
|
4273
|
+
supersededAt: number | null;
|
|
4274
|
+
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4275
|
+
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4276
|
+
topicsExtractedVersion: number | null;
|
|
4252
4277
|
createdAt: Date;
|
|
4253
4278
|
updatedAt: Date;
|
|
4254
4279
|
isDeleted: boolean;
|
|
@@ -4357,16 +4382,42 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
|
|
|
4357
4382
|
* render "forgotten" nodes; ordinary consumers should leave this off.
|
|
4358
4383
|
*/
|
|
4359
4384
|
includeDeleted?: boolean;
|
|
4385
|
+
/**
|
|
4386
|
+
* Include A2-superseded memories (each carries `supersededBy`). Default
|
|
4387
|
+
* `false` — superseded rows are excluded, as they are from recall/dedup.
|
|
4388
|
+
* Used by a "memory history" view to render retired facts.
|
|
4389
|
+
*/
|
|
4390
|
+
includeSuperseded?: boolean;
|
|
4360
4391
|
}): Promise<StoredVaultMemory[]>;
|
|
4361
4392
|
declare function getAllVaultMemoryContentsOp(ctx: VaultMemoryOperationsContext, options?: {
|
|
4362
4393
|
since?: Date;
|
|
4363
4394
|
}): Promise<string[]>;
|
|
4364
4395
|
declare function updateVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string, opts: UpdateVaultMemoryOptions): Promise<StoredVaultMemory | null>;
|
|
4365
4396
|
declare function deleteVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string): Promise<boolean>;
|
|
4397
|
+
/**
|
|
4398
|
+
* Mark a memory as superseded by a newer one (A2 write-time supersession).
|
|
4399
|
+
* The row stays in the table (history + read-time fallback) but is excluded
|
|
4400
|
+
* from recall/dedup by default via `superseded_by`. Idempotent-ish: no-op if
|
|
4401
|
+
* the row is missing, not owned, deleted, or already superseded. Does NOT
|
|
4402
|
+
* preserve `updated_at` — superseded rows are hidden from recall, so their
|
|
4403
|
+
* recency is irrelevant.
|
|
4404
|
+
*
|
|
4405
|
+
* @param id - the memory being retired (e.g. "Lives in Portland")
|
|
4406
|
+
* @param supersededById - the newer memory that replaced it (e.g. "Lives in SF")
|
|
4407
|
+
*/
|
|
4408
|
+
declare function supersedeVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string, supersededById: string): Promise<boolean>;
|
|
4366
4409
|
/**
|
|
4367
4410
|
* Get all non-deleted, unfiled vault memories (folder_id is null).
|
|
4368
4411
|
*/
|
|
4369
4412
|
declare function getUnfiledVaultMemoriesOp(ctx: VaultMemoryOperationsContext): Promise<StoredVaultMemory[]>;
|
|
4413
|
+
/**
|
|
4414
|
+
* The current topic-extraction logic version. Bump this whenever the extraction
|
|
4415
|
+
* prompt or model in `topicExtract.ts` changes: every memory stamped under an
|
|
4416
|
+
* older version (including pre-v37 rows, read as version 0) is then re-extracted
|
|
4417
|
+
* by the next sweep, so topic-quality improvements propagate across the existing
|
|
4418
|
+
* vault. The worker's `limit` drains that re-extraction across sweeps.
|
|
4419
|
+
*/
|
|
4420
|
+
declare const TOPICS_EXTRACTION_VERSION = 1;
|
|
4370
4421
|
/**
|
|
4371
4422
|
* Result of {@link getMemoriesNeedingTopicExtractionOp}: which memories the
|
|
4372
4423
|
* background topic worker should run LLM entity extraction on, and which it
|
|
@@ -4376,8 +4427,10 @@ interface MemoriesNeedingTopicExtraction {
|
|
|
4376
4427
|
/**
|
|
4377
4428
|
* Memories to run LLM topic extraction on (decrypted): never-extracted rows
|
|
4378
4429
|
* with no entity links, plus stamped rows edited since their last pass
|
|
4379
|
-
* (`updated_at` > `topics_extracted_at`)
|
|
4380
|
-
*
|
|
4430
|
+
* (`updated_at` > `topics_extracted_at`) or extracted under an older
|
|
4431
|
+
* `topics_extracted_version` than {@link TOPICS_EXTRACTION_VERSION}. Edited /
|
|
4432
|
+
* stale-version rows come first (they get priority under `limit`), each group
|
|
4433
|
+
* newest-created first.
|
|
4381
4434
|
*/
|
|
4382
4435
|
pending: StoredVaultMemory[];
|
|
4383
4436
|
/**
|
|
@@ -4401,13 +4454,16 @@ declare function getMemoriesNeedingTopicExtractionOp(ctx: VaultMemoryOperationsC
|
|
|
4401
4454
|
limit?: number;
|
|
4402
4455
|
}): Promise<MemoriesNeedingTopicExtraction>;
|
|
4403
4456
|
/**
|
|
4404
|
-
* Stamp `topics_extracted_at` on the given
|
|
4405
|
-
* this after a successful extraction pass
|
|
4406
|
-
* quiet memories aren't re-asked every sweep)
|
|
4407
|
-
* `linkedUnstamped` rows without an LLM call.
|
|
4408
|
-
*
|
|
4409
|
-
*
|
|
4410
|
-
*
|
|
4457
|
+
* Stamp `topics_extracted_at` (and `topics_extracted_version`) on the given
|
|
4458
|
+
* memories — the topic worker calls this after a successful extraction pass
|
|
4459
|
+
* (including zero-entity results, so quiet memories aren't re-asked every sweep)
|
|
4460
|
+
* and to grandfather `linkedUnstamped` rows without an LLM call. `version`
|
|
4461
|
+
* defaults to {@link TOPICS_EXTRACTION_VERSION}: stamping at the current version
|
|
4462
|
+
* (for both fresh extractions and grandfathered legacy rows) means they aren't
|
|
4463
|
+
* re-extracted until a future version bump. Preserves `updated_at` so a stamp
|
|
4464
|
+
* never inflates the recency multiplier — and never masks a concurrent content
|
|
4465
|
+
* edit from the next sweep. Skips deleted, foreign-user, and user-managed rows.
|
|
4466
|
+
* Returns the IDs actually stamped.
|
|
4411
4467
|
*
|
|
4412
4468
|
* ALL eligibility AND `updated_at` are read from the LIVE Model inside the
|
|
4413
4469
|
* serialized writer — never a pre-writer snapshot. Writers are serialized, so
|
|
@@ -4422,7 +4478,7 @@ declare function getMemoriesNeedingTopicExtractionOp(ctx: VaultMemoryOperationsC
|
|
|
4422
4478
|
* (both `pending` and `linkedUnstamped` are capped), so the per-row Model load
|
|
4423
4479
|
* needed to `prepareUpdate` stays bounded and never spikes the RecordCache.
|
|
4424
4480
|
*/
|
|
4425
|
-
declare function stampTopicsExtractedAtOp(ctx: VaultMemoryOperationsContext, memoryIds: readonly string[], extractedAt: number): Promise<string[]>;
|
|
4481
|
+
declare function stampTopicsExtractedAtOp(ctx: VaultMemoryOperationsContext, memoryIds: readonly string[], extractedAt: number, version?: number): Promise<string[]>;
|
|
4426
4482
|
declare function deleteAllVaultMemoriesForUserOp(ctx: VaultMemoryOperationsContext, userId: string): Promise<number>;
|
|
4427
4483
|
declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext, id: string, embedding: string, embeddingModel: string): Promise<boolean>;
|
|
4428
4484
|
|
|
@@ -5853,7 +5909,7 @@ interface RecallDiagnostics {
|
|
|
5853
5909
|
/** Soft-degradation signals that fired this call (empty when clean). */
|
|
5854
5910
|
degraded: RecallDegradation[];
|
|
5855
5911
|
}
|
|
5856
|
-
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed";
|
|
5912
|
+
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed" | "supersede";
|
|
5857
5913
|
type RetainSource = "manual" | "auto-extracted" | "capsule";
|
|
5858
5914
|
/** Why the consolidator fell back to "create" instead of a real decision. */
|
|
5859
5915
|
type ConsolidationFallbackReason = "llm_error" | "invalid_response";
|
|
@@ -5919,7 +5975,8 @@ interface RetainOptions {
|
|
|
5919
5975
|
interface RetainResult {
|
|
5920
5976
|
action: RetainAction;
|
|
5921
5977
|
memoryId: string;
|
|
5922
|
-
/** When action is 'merge' or 'update', the prior memory's id.
|
|
5978
|
+
/** When action is 'merge' or 'update', the prior memory's id. When action is
|
|
5979
|
+
* 'supersede', the stale memory that was retired (`memoryId` is the new one). */
|
|
5923
5980
|
targetId?: string;
|
|
5924
5981
|
/**
|
|
5925
5982
|
* When action is 'suppressed', the id of the soft-deleted memory that blocked
|
|
@@ -6141,9 +6198,12 @@ declare function extractFacts(messages: AutoExtractMessage[], options: ExtractFa
|
|
|
6141
6198
|
type ExtractOutcome = "extracted" | "no-facts" | "empty-after-retry" | "dropped-after-redaction";
|
|
6142
6199
|
/**
|
|
6143
6200
|
* Stage 2 — for each extracted candidate, call retain() with auto-merge
|
|
6144
|
-
* enabled.
|
|
6145
|
-
*
|
|
6146
|
-
*
|
|
6201
|
+
* enabled. When `consolidateOptions` are wired, retain()'s consolidation pass
|
|
6202
|
+
* is the "resolver": a second LLM call against the top-K existing vault
|
|
6203
|
+
* memories that decides create/update/noop/supersede — including retiring a
|
|
6204
|
+
* stale value on a state change (the supersession the extraction prompt above
|
|
6205
|
+
* promises). Without consolidation, retain() still dedups at the cosine-merge
|
|
6206
|
+
* level, and the read-time supersession heuristic remains the fallback.
|
|
6147
6207
|
*
|
|
6148
6208
|
* Returns the candidates that survived validation along with the retain
|
|
6149
6209
|
* result for each (which captures whether the fact was created, merged,
|
|
@@ -7731,4 +7791,4 @@ declare function sanitizeQuotes(s: string): string;
|
|
|
7731
7791
|
declare function renderTemplate(value: string | null | undefined, template: string): string | null;
|
|
7732
7792
|
declare function buildSystemPrompt(ctx: PromptContext, options?: BuildPromptOptions): BuildPromptResult;
|
|
7733
7793
|
|
|
7734
|
-
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 ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, 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_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, 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 EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, 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 StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, TOOL_CATALOG, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|
|
7794
|
+
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 ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, 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_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, 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 EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, 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 StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, supersedeVaultMemoryOp, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|