@anuma/sdk 4.2.0 → 5.0.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-VBO6KSNQ.mjs → chunk-SIMGZQ4P.mjs} +480 -196
- package/dist/expo/index.cjs +417 -120
- package/dist/expo/index.d.mts +161 -26
- package/dist/expo/index.d.ts +161 -26
- package/dist/expo/index.mjs +22 -6
- package/dist/expo/{recall-OCQOA7M3.mjs → recall-PIDYDFIQ.mjs} +1 -1
- package/dist/index.cjs +31 -17
- package/dist/index.mjs +31 -17
- package/dist/react/{chunk-BS7C4CUW.mjs → chunk-KTBOHRRE.mjs} +480 -196
- package/dist/react/index.cjs +417 -120
- package/dist/react/index.d.mts +155 -26
- package/dist/react/index.d.ts +155 -26
- package/dist/react/index.mjs +22 -6
- package/dist/react/{recall-WXCZHXHZ.mjs → recall-DVX4W2UD.mjs} +1 -1
- package/dist/server/{chunk-WADHFDMA.mjs → chunk-FKVYUOSD.mjs} +480 -196
- package/dist/server/index.cjs +417 -120
- package/dist/server/index.d.mts +154 -25
- package/dist/server/index.d.ts +154 -25
- package/dist/server/index.mjs +22 -6
- package/dist/server/{recall-QTVT7HCZ.mjs → recall-74L75BJ3.mjs} +1 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -3353,6 +3353,29 @@ declare function ChartCard({ data }: ChartCardProps): react_jsx_runtime.JSX.Elem
|
|
|
3353
3353
|
* - "v3": HKDF derived key with domain separation (for new encryption)
|
|
3354
3354
|
*/
|
|
3355
3355
|
type EncryptionKeyVersion = "v2" | "v3";
|
|
3356
|
+
/**
|
|
3357
|
+
* Thrown by {@link getEncryptionKey} when the requested version is absent.
|
|
3358
|
+
* Distinct from AES-GCM auth-tag failures so decrypt callers can tell
|
|
3359
|
+
* "need to derive/hydrate this version" from "wrong key for intact ciphertext".
|
|
3360
|
+
*/
|
|
3361
|
+
declare class EncryptionKeyMissingError extends Error {
|
|
3362
|
+
readonly address: string;
|
|
3363
|
+
readonly version: EncryptionKeyVersion;
|
|
3364
|
+
constructor(address: string, version: EncryptionKeyVersion);
|
|
3365
|
+
}
|
|
3366
|
+
/**
|
|
3367
|
+
* Options for {@link requestEncryptionKey}.
|
|
3368
|
+
*/
|
|
3369
|
+
interface RequestEncryptionKeyOptions {
|
|
3370
|
+
/**
|
|
3371
|
+
* When true, re-derive and replace any existing in-memory keys for this
|
|
3372
|
+
* address. Default false preserves the historical "if present, return"
|
|
3373
|
+
* short-circuit. Prefer {@link refreshEncryptionKeyIfMatches} when the
|
|
3374
|
+
* caller has ciphertext that must keep working — force-replace can pin a
|
|
3375
|
+
* newly derived wrong key over a still-valid one.
|
|
3376
|
+
*/
|
|
3377
|
+
force?: boolean;
|
|
3378
|
+
}
|
|
3356
3379
|
/**
|
|
3357
3380
|
* Register a callback that fires when an encryption key becomes available for an address.
|
|
3358
3381
|
* If the key is already available, the callback fires immediately.
|
|
@@ -3500,9 +3523,30 @@ declare function decryptDataBytes(encryptedHex: string, address: string, version
|
|
|
3500
3523
|
*/
|
|
3501
3524
|
declare function decryptDataBytesFromBytes(encrypted: Uint8Array, address: string, version?: EncryptionKeyVersion): Promise<Uint8Array>;
|
|
3502
3525
|
/**
|
|
3503
|
-
* Checks if an encryption key exists in memory for the given wallet address
|
|
3526
|
+
* Checks if an encryption key exists in memory for the given wallet address.
|
|
3527
|
+
*
|
|
3528
|
+
* @param address - Wallet address
|
|
3529
|
+
* @param version - When omitted, checks the **v3** (`current`) key — the key
|
|
3530
|
+
* write/OPFS/encrypt paths need. Callers that only need to read legacy
|
|
3531
|
+
* `enc:v2:` data should pass `"v2"` explicitly. (#561 / PR #828)
|
|
3504
3532
|
*/
|
|
3505
|
-
declare function hasEncryptionKey(address: string): boolean;
|
|
3533
|
+
declare function hasEncryptionKey(address: string, version?: EncryptionKeyVersion): boolean;
|
|
3534
|
+
/**
|
|
3535
|
+
* Seed (or merge) raw key hex into the in-memory store without signing.
|
|
3536
|
+
*
|
|
3537
|
+
* Used by platform polyfills that hydrate from SecureStore / keychain where
|
|
3538
|
+
* one version may be missing — callers must not require both versions to
|
|
3539
|
+
* exist before the other becomes usable (#561).
|
|
3540
|
+
*
|
|
3541
|
+
* Existing versions are preserved when the corresponding argument is omitted.
|
|
3542
|
+
* Pass an explicit empty merge is not supported; omit the field to leave it.
|
|
3543
|
+
*
|
|
3544
|
+
* Each provided key must be 64 hex characters (32-byte AES key).
|
|
3545
|
+
*/
|
|
3546
|
+
declare function seedEncryptionKeys(address: string, keys: {
|
|
3547
|
+
legacy?: string;
|
|
3548
|
+
current?: string;
|
|
3549
|
+
}): void;
|
|
3506
3550
|
/**
|
|
3507
3551
|
* Encrypts data using a pre-fetched CryptoKey.
|
|
3508
3552
|
* Use this for batch operations to avoid repeated key lookups.
|
|
@@ -3583,17 +3627,43 @@ type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<
|
|
|
3583
3627
|
type EmbeddedWalletSignerFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
3584
3628
|
/**
|
|
3585
3629
|
* Requests the user to sign a message to generate an encryption key.
|
|
3586
|
-
* If a key already exists in memory for the given wallet, resolves immediately
|
|
3630
|
+
* If a key already exists in memory for the given wallet, resolves immediately
|
|
3631
|
+
* unless {@link RequestEncryptionKeyOptions.force} is set.
|
|
3587
3632
|
*
|
|
3588
3633
|
* Note: Keys are stored in memory only and do not persist across page reloads.
|
|
3589
3634
|
* This is a security feature - users must sign once per session to derive their key.
|
|
3590
3635
|
*
|
|
3636
|
+
* When a seeded/pinned store already has keys and the fresh derive does not
|
|
3637
|
+
* match any of them, the store is left unchanged and this resolves to `false`
|
|
3638
|
+
* (without firing {@link onKeyAvailable}). Callers that need write readiness
|
|
3639
|
+
* should check the return value or {@link hasEncryptionKey} before encrypting
|
|
3640
|
+
* so they can surface a re-unlock UI instead of failing downstream (#828).
|
|
3641
|
+
*
|
|
3591
3642
|
* @param walletAddress - The wallet address to generate the key for
|
|
3592
3643
|
* @param signMessage - Function to sign a message (returns signature hex string)
|
|
3593
3644
|
* @param embeddedWalletSigner - Optional function for silent signing with embedded wallets
|
|
3594
|
-
* @
|
|
3645
|
+
* @param options - Optional flags (e.g. force re-derive)
|
|
3646
|
+
* @returns `true` when keys are available after the call; `false` when a
|
|
3647
|
+
* divergent derive left the store unchanged (or the session was torn down
|
|
3648
|
+
* mid-flight).
|
|
3649
|
+
*/
|
|
3650
|
+
declare function requestEncryptionKey(walletAddress: string, signMessage: SignMessageFn, embeddedWalletSigner?: EmbeddedWalletSignerFn, options?: RequestEncryptionKeyOptions): Promise<boolean>;
|
|
3651
|
+
/**
|
|
3652
|
+
* Re-derive encryption keys from a fresh signature and commit them **only if**
|
|
3653
|
+
* they successfully decrypt `probeCiphertext` (a prefixed `enc:v2:` / `enc:v3:`
|
|
3654
|
+
* value). If they do not, the existing in-memory keys are left untouched.
|
|
3655
|
+
*
|
|
3656
|
+
* Concurrent calls for the same wallet share one sign+derive. Each caller then
|
|
3657
|
+
* probes **its own** ciphertext against those candidates, so mixed-era messages
|
|
3658
|
+
* in one `Promise.all` batch can still recover when only the leader's probe
|
|
3659
|
+
* misses (#828 review). Failed candidates are memoized for the session so
|
|
3660
|
+
* pagination does not re-prompt on every page when the wallet has changed.
|
|
3661
|
+
*
|
|
3662
|
+
* @returns true when keys were refreshed (probe decrypted); false when the
|
|
3663
|
+
* probe failed under the candidate keys (store unchanged) or the probe was
|
|
3664
|
+
* not encrypted.
|
|
3595
3665
|
*/
|
|
3596
|
-
declare function
|
|
3666
|
+
declare function refreshEncryptionKeyIfMatches(walletAddress: string, probeCiphertext: string, signMessage: SignMessageFn, embeddedWalletSigner?: EmbeddedWalletSignerFn): Promise<boolean>;
|
|
3597
3667
|
/**
|
|
3598
3668
|
* Requests the user to sign a message to generate an ECDH key pair.
|
|
3599
3669
|
* If a key pair already exists in memory for the given wallet, resolves immediately.
|
|
@@ -3640,7 +3710,7 @@ declare function clearAllKeyPairs(): void;
|
|
|
3640
3710
|
*/
|
|
3641
3711
|
interface UseEncryptionResult {
|
|
3642
3712
|
/** Request and generate an encryption key for a wallet address */
|
|
3643
|
-
requestEncryptionKey: (walletAddress: string) => Promise<
|
|
3713
|
+
requestEncryptionKey: (walletAddress: string) => Promise<boolean>;
|
|
3644
3714
|
/** Request and generate an ECDH key pair for a wallet address */
|
|
3645
3715
|
requestKeyPair: (walletAddress: string) => Promise<void>;
|
|
3646
3716
|
/** Export the public key for a wallet address as base64-encoded SPKI */
|
|
@@ -4855,6 +4925,15 @@ interface StoredMessage {
|
|
|
4855
4925
|
feedback?: MessageFeedback;
|
|
4856
4926
|
/** Tool call events from the backend response (for reconstructing tool call history) */
|
|
4857
4927
|
toolCallEvents?: LlmapiToolCallEvent[];
|
|
4928
|
+
/**
|
|
4929
|
+
* Set when `content` could not be decrypted on read (#561).
|
|
4930
|
+
* The `content` field still holds the original ciphertext — never a
|
|
4931
|
+
* `[Decryption Failed]` placeholder — so a later unlock can recover.
|
|
4932
|
+
* - `key_missing`: no key for this field's `enc:vN:` version in the store
|
|
4933
|
+
* - `auth_mismatch`: a key was present but AES-GCM auth failed (wrong key)
|
|
4934
|
+
* - `invalid_payload`: malformed ciphertext envelope
|
|
4935
|
+
*/
|
|
4936
|
+
decryptionStatus?: "key_missing" | "auth_mismatch" | "invalid_payload";
|
|
4858
4937
|
}
|
|
4859
4938
|
interface ActivityPhase {
|
|
4860
4939
|
id: string;
|
|
@@ -6203,15 +6282,26 @@ interface MemoryVaultSearchOptions {
|
|
|
6203
6282
|
/** RRF smoothing constant for lane fusion. Default 60. */
|
|
6204
6283
|
rrfK?: number;
|
|
6205
6284
|
/**
|
|
6206
|
-
*
|
|
6207
|
-
*
|
|
6208
|
-
*
|
|
6209
|
-
*
|
|
6285
|
+
* Pre-decomposed facet queries for the composite ranker (719/B4). When
|
|
6286
|
+
* ≥2 are supplied (and embeddings are available), runs {@link rankComposite}
|
|
6287
|
+
* over them — no LLM call inside the search path. Callers that want LLM
|
|
6288
|
+
* rewrite (e.g. `createRecallTool`) call `decomposeQuery` first and pass
|
|
6289
|
+
* the facets here.
|
|
6290
|
+
*/
|
|
6291
|
+
subQueries?: string[];
|
|
6292
|
+
/**
|
|
6293
|
+
* @deprecated 719/B4 — ignored by {@link searchVaultMemories} /
|
|
6294
|
+
* {@link searchVaultMemoriesWithSize}. Pass {@link MemoryVaultSearchOptions.subQueries}
|
|
6295
|
+
* (or use `createRecallTool`). The legacy {@link createMemoryVaultSearchTool}
|
|
6296
|
+
* executor still honors `decompose: "llm"` + `decomposeOptions` for eval
|
|
6297
|
+
* parity, then forwards facets into the LLM-free search path.
|
|
6210
6298
|
*/
|
|
6211
6299
|
decompose?: "off" | "llm";
|
|
6212
|
-
/**
|
|
6213
|
-
*
|
|
6214
|
-
*
|
|
6300
|
+
/**
|
|
6301
|
+
* @deprecated 719/B4 — see `decompose`. Ignored on the programmatic search
|
|
6302
|
+
* path; tool-layer rewrite still reads this from the search-tool options.
|
|
6303
|
+
* Prefer `RecallToolOptions.decomposeOptions` with `createRecallTool`.
|
|
6304
|
+
*/
|
|
6215
6305
|
decomposeOptions?: PortalLlmAuth & {
|
|
6216
6306
|
baseUrl?: string;
|
|
6217
6307
|
model?: string;
|
|
@@ -6376,9 +6466,11 @@ type MemoryKind = "fact" | "chunk";
|
|
|
6376
6466
|
* Budget controls retrieval depth/cost. Higher budgets enable more
|
|
6377
6467
|
* candidate sources and the cross-encoder reranker.
|
|
6378
6468
|
*
|
|
6379
|
-
* - `low`: cosine + BM25
|
|
6380
|
-
* - `mid`: +
|
|
6381
|
-
* - `high`: +
|
|
6469
|
+
* - `low`: cosine + BM25 + recency. No reranker. Mobile default.
|
|
6470
|
+
* - `mid`: + cross-encoder rerank.
|
|
6471
|
+
* - `high`: + multi-hop graph traversal. LLM-free — query decomposition
|
|
6472
|
+
* (when wanted) lives in the tool/agent layer ({@link createRecallTool}),
|
|
6473
|
+
* not inside `recall()` itself (719/B4).
|
|
6382
6474
|
*/
|
|
6383
6475
|
type Budget = "low" | "mid" | "high";
|
|
6384
6476
|
interface ScoreBreakdown {
|
|
@@ -6478,10 +6570,28 @@ interface RecallOptions {
|
|
|
6478
6570
|
/** Drop results below this score. Default: 0.1 for facts, 0.5 for chunks (mirrors today's defaults). */
|
|
6479
6571
|
minScore?: number;
|
|
6480
6572
|
/**
|
|
6481
|
-
*
|
|
6482
|
-
*
|
|
6483
|
-
*
|
|
6484
|
-
*
|
|
6573
|
+
* Pre-decomposed facet queries for the composite ranker. When ≥2 are
|
|
6574
|
+
* supplied, the vault lane runs `rankComposite` over them (no LLM call
|
|
6575
|
+
* inside `recall()` — 719/B4). Callers that still want LLM rewrite
|
|
6576
|
+
* (e.g. {@link createRecallTool} at `budget: 'high'`) call
|
|
6577
|
+
* `decomposeQuery` themselves and pass the result here. A single entry
|
|
6578
|
+
* (or omitting this) keeps the single-query path.
|
|
6579
|
+
*/
|
|
6580
|
+
subQueries?: string[];
|
|
6581
|
+
/**
|
|
6582
|
+
* Auth + endpoint for optional LLM helpers that reuse portal auth —
|
|
6583
|
+
* currently {@link RecallOptions.graphRefine} neighbor selection.
|
|
6584
|
+
* Query decomposition is **not** driven by this field inside `recall()`
|
|
6585
|
+
* (719/B4); {@link createRecallTool} reads the same shape from
|
|
6586
|
+
* `RecallToolOptions.decomposeOptions` for tool-layer rewrite.
|
|
6587
|
+
*
|
|
6588
|
+
* Callers that still pass `{ budget: 'high', decomposeOptions }` without
|
|
6589
|
+
* {@link RecallOptions.subQueries} keep compiling but no longer rewrite —
|
|
6590
|
+
* `recall()` emits `decompose-moved` on {@link RecallDiagnostics.degraded}
|
|
6591
|
+
* so upgrades without a changelog read still leave a telemetry breadcrumb.
|
|
6592
|
+
*
|
|
6593
|
+
* Auth is the dual pattern — one of `apiKey` / `getToken` is required;
|
|
6594
|
+
* see {@link PortalLlmAuth}.
|
|
6485
6595
|
*/
|
|
6486
6596
|
decomposeOptions?: PortalLlmAuth & {
|
|
6487
6597
|
baseUrl?: string;
|
|
@@ -6585,9 +6695,22 @@ type RecallDegradation =
|
|
|
6585
6695
|
/** Rerank was requested (budget mid/high) but the cross-encoder didn't run
|
|
6586
6696
|
* this call — unavailable (e.g. React Native) or a transient failure. */
|
|
6587
6697
|
"rerank-unavailable"
|
|
6588
|
-
/**
|
|
6589
|
-
*
|
|
6698
|
+
/**
|
|
6699
|
+
* @deprecated 719/B4 moved query decomposition out of `recall()`. Budget
|
|
6700
|
+
* `high` no longer requires `decomposeOptions` and this signal is never
|
|
6701
|
+
* emitted. Prefer `"decompose-moved"` for the upgrade breadcrumb. Kept in
|
|
6702
|
+
* the union so existing telemetry consumers stay typed.
|
|
6703
|
+
*/
|
|
6590
6704
|
| "decompose-unavailable"
|
|
6705
|
+
/**
|
|
6706
|
+
* `budget: 'high'` with `decomposeOptions` set but no usable
|
|
6707
|
+
* {@link RecallOptions.subQueries}. Pre-B4 this call shape triggered LLM
|
|
6708
|
+
* rewrite inside `recall()`; post-B4 it stays on the single-query high
|
|
6709
|
+
* path (rerank + graph) and callers must pass facets (or use
|
|
6710
|
+
* {@link createRecallTool}). Surfaced so silent quality regressions show
|
|
6711
|
+
* up in diagnostics instead of looking healthier than before.
|
|
6712
|
+
*/
|
|
6713
|
+
| "decompose-moved"
|
|
6591
6714
|
/** There was no usable cosine lane, so results were ranked on BM25 (lexical)
|
|
6592
6715
|
* alone: either the query embedding failed (or came back empty), or no
|
|
6593
6716
|
* candidate had a vector to score against it because the row (re)embed failed.
|
|
@@ -8627,9 +8750,14 @@ declare function rankProfileCandidates(inputs: readonly ProfileSalienceInput[],
|
|
|
8627
8750
|
* Unified Recall API — single retrieval surface above vault + engine.
|
|
8628
8751
|
*
|
|
8629
8752
|
* Budget maps to pipeline depth (mirrors Hindsight's tiered defaults):
|
|
8630
|
-
* - `low` → V2 cosine + BM25 + recency (no rerank
|
|
8753
|
+
* - `low` → V2 cosine + BM25 + recency (no rerank)
|
|
8631
8754
|
* - `mid` → V2 + cross-encoder rerank
|
|
8632
|
-
* - `high` → V2 + rerank +
|
|
8755
|
+
* - `high` → V2 + rerank + multi-hop graph traversal
|
|
8756
|
+
*
|
|
8757
|
+
* LLM-free by design (719/B4): query decomposition for composite asks
|
|
8758
|
+
* lives in the tool/agent layer (`createRecallTool`), which may pass
|
|
8759
|
+
* pre-built `subQueries` into this API. `recall()` itself never pays an
|
|
8760
|
+
* LLM RTT.
|
|
8633
8761
|
*
|
|
8634
8762
|
* Fact + chunk lanes are fused with RRF (k=60). The previous naive
|
|
8635
8763
|
* "sort the union by raw score" path is gone — score scales differ
|
|
@@ -8684,7 +8812,8 @@ interface RecallToolOptions {
|
|
|
8684
8812
|
folderId?: string | null;
|
|
8685
8813
|
/** Exclude one conversation from chunk results (typically the active one). */
|
|
8686
8814
|
excludeConversationId?: string;
|
|
8687
|
-
/** LLM-decompose options; only used at budget="high".
|
|
8815
|
+
/** LLM-decompose options; only used at budget="high". Runs in THIS tool
|
|
8816
|
+
* executor (719/B4) — `recall()` itself is LLM-free. Auth follows the
|
|
8688
8817
|
* dual pattern: apiKey (server/CLI) or getToken (browser identity
|
|
8689
8818
|
* tokens) — at least one required. */
|
|
8690
8819
|
decomposeOptions?: PortalLlmAuth & {
|
|
@@ -14500,4 +14629,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
14500
14629
|
*/
|
|
14501
14630
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
14502
14631
|
|
|
14503
|
-
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
|
14632
|
+
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
package/dist/react/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
EMBEDDINGS_DEGRADED_EMPTY,
|
|
9
9
|
ENTITY_FANOUT,
|
|
10
10
|
ENTITY_KINDS,
|
|
11
|
+
EncryptionKeyMissingError,
|
|
11
12
|
LRUCache,
|
|
12
13
|
MAX_HOPS,
|
|
13
14
|
NODE_BUDGET,
|
|
@@ -46,6 +47,7 @@ import {
|
|
|
46
47
|
createVaultEmbeddingCache,
|
|
47
48
|
createVaultMemoriesBatchOp,
|
|
48
49
|
createVaultMemoryOp,
|
|
50
|
+
decomposeQuery,
|
|
49
51
|
decryptData,
|
|
50
52
|
decryptDataBatch,
|
|
51
53
|
decryptDataBytes,
|
|
@@ -132,6 +134,7 @@ import {
|
|
|
132
134
|
prepareVaultCandidates,
|
|
133
135
|
rankPreparedVaultCandidates,
|
|
134
136
|
recall,
|
|
137
|
+
refreshEncryptionKeyIfMatches,
|
|
135
138
|
relinkMemoryTopicsOp,
|
|
136
139
|
replaceMemoryEntitiesGuardedOp,
|
|
137
140
|
requestEncryptionKey,
|
|
@@ -141,6 +144,7 @@ import {
|
|
|
141
144
|
searchChunksOp,
|
|
142
145
|
searchMessagesOp,
|
|
143
146
|
searchVaultMemories,
|
|
147
|
+
seedEncryptionKeys,
|
|
144
148
|
setMemoryEntitiesOp,
|
|
145
149
|
setMemoryVisibilityOp,
|
|
146
150
|
shouldChunkMessage,
|
|
@@ -161,7 +165,7 @@ import {
|
|
|
161
165
|
updateVaultMemoryOp,
|
|
162
166
|
useEncryption,
|
|
163
167
|
vaultMemoryToStored
|
|
164
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-KTBOHRRE.mjs";
|
|
165
169
|
import {
|
|
166
170
|
PiiRedactor,
|
|
167
171
|
createStreamingDeAnonymizer,
|
|
@@ -8628,7 +8632,7 @@ function createRecallTool(ctx, toolOptions, callbacks) {
|
|
|
8628
8632
|
type: "function",
|
|
8629
8633
|
function: {
|
|
8630
8634
|
name: RECALL_TOOL_NAME,
|
|
8631
|
-
description:
|
|
8635
|
+
description: `Search the user's memory across stored facts/preferences and past conversation excerpts. Returns a unified ranked list \u2014 facts carry an \`id\` you can reference; conversation excerpts carry a date and role. Use this whenever the user's question may relate to anything previously discussed or saved (preferences, prior decisions, past topics). Phrase the query naturally. For multi-faceted / overview questions ("tell me about the user", "what's my tech stack"), prefer several targeted searches \u2014 one facet each (e.g. name, work, hobbies) \u2014 over a single broad query; fuse the results yourself.`,
|
|
8632
8636
|
arguments: {
|
|
8633
8637
|
type: "object",
|
|
8634
8638
|
properties: {
|
|
@@ -8683,6 +8687,13 @@ function createRecallTool(ctx, toolOptions, callbacks) {
|
|
|
8683
8687
|
let surfaced = 0;
|
|
8684
8688
|
try {
|
|
8685
8689
|
let recallDegraded = [];
|
|
8690
|
+
let subQueries;
|
|
8691
|
+
if (defaultBudget === "high" && toolOptions?.decomposeOptions) {
|
|
8692
|
+
const decomp = await decomposeQuery(query, toolOptions.decomposeOptions);
|
|
8693
|
+
if (decomp.mode === "composite" && decomp.subQueries.length >= 2) {
|
|
8694
|
+
subQueries = decomp.subQueries;
|
|
8695
|
+
}
|
|
8696
|
+
}
|
|
8686
8697
|
const recallOpts = {
|
|
8687
8698
|
onDiagnostics: (d) => {
|
|
8688
8699
|
recallDegraded = d.degraded;
|
|
@@ -8696,10 +8707,12 @@ function createRecallTool(ctx, toolOptions, callbacks) {
|
|
|
8696
8707
|
...toolOptions?.excludeConversationId && {
|
|
8697
8708
|
excludeConversationId: toolOptions.excludeConversationId
|
|
8698
8709
|
},
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8710
|
+
// Do NOT forward decomposeOptions into recall() — rewrite already
|
|
8711
|
+
// ran above, and forwarding would falsely trip `decompose-moved`
|
|
8712
|
+
// on every specific-mode high-budget call. graphRefine auth can
|
|
8713
|
+
// be threaded later when the tool opts into that path.
|
|
8714
|
+
...toolOptions?.now !== void 0 && { now: toolOptions.now },
|
|
8715
|
+
...subQueries && { subQueries }
|
|
8703
8716
|
};
|
|
8704
8717
|
const result = await recall(query, ctx, recallOpts);
|
|
8705
8718
|
if (callbacks?.onChunksRetrieved) {
|
|
@@ -24589,6 +24602,7 @@ export {
|
|
|
24589
24602
|
DropboxAuthProvider,
|
|
24590
24603
|
ENTITY_FANOUT,
|
|
24591
24604
|
ENTITY_KINDS,
|
|
24605
|
+
EncryptionKeyMissingError,
|
|
24592
24606
|
Entity as EntityModel,
|
|
24593
24607
|
ExcelProcessor,
|
|
24594
24608
|
FILE_PLACEHOLDER_PREFIX,
|
|
@@ -24879,6 +24893,7 @@ export {
|
|
|
24879
24893
|
reflect,
|
|
24880
24894
|
refreshCalendarToken,
|
|
24881
24895
|
refreshDriveToken,
|
|
24896
|
+
refreshEncryptionKeyIfMatches,
|
|
24882
24897
|
refreshGithubToken,
|
|
24883
24898
|
refreshNotionToken,
|
|
24884
24899
|
relinkMemoryTopicsOp,
|
|
@@ -24910,6 +24925,7 @@ export {
|
|
|
24910
24925
|
searchMediaOp,
|
|
24911
24926
|
searchMessagesOp,
|
|
24912
24927
|
searchVaultMemories,
|
|
24928
|
+
seedEncryptionKeys,
|
|
24913
24929
|
selectServerToolsForPrompt,
|
|
24914
24930
|
serializeJsx,
|
|
24915
24931
|
setLogger,
|