@anuma/sdk 6.21.1 → 6.23.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-CIMZZ7GQ.mjs → chunk-6BULYLRY.mjs} +92 -8
- package/dist/expo/index.cjs +761 -162
- package/dist/expo/index.d.mts +151 -9
- package/dist/expo/index.d.ts +151 -9
- package/dist/expo/index.mjs +516 -14
- package/dist/{react/recall-7Q3V337H.mjs → expo/recall-CUTJWQDQ.mjs} +1 -1
- package/dist/memory/context.cjs +183 -0
- package/dist/memory/context.d.mts +936 -0
- package/dist/memory/context.d.ts +936 -0
- package/dist/memory/context.mjs +157 -0
- package/dist/react/{chunk-AVYB5IXC.mjs → chunk-GPLMMMZN.mjs} +1 -1
- package/dist/react/{chunk-JRVAUZHM.mjs → chunk-K4N52PSK.mjs} +93 -9
- package/dist/react/{consolidate-URHGJT7I.mjs → consolidate-XKS6IZFC.mjs} +2 -2
- package/dist/react/index.cjs +876 -270
- package/dist/react/index.d.mts +209 -9
- package/dist/react/index.d.ts +209 -9
- package/dist/react/index.mjs +569 -65
- package/dist/{expo/recall-FQQGE6A2.mjs → react/recall-LFHIWONV.mjs} +2 -2
- package/dist/server/{chunk-4DSDATYG.mjs → chunk-FEDRFVHD.mjs} +182 -98
- package/dist/server/index.cjs +815 -216
- package/dist/server/index.d.mts +150 -5
- package/dist/server/index.d.ts +150 -5
- package/dist/server/index.mjs +509 -7
- package/dist/server/{recall-HA4UX4BB.mjs → recall-Z2WJGXOL.mjs} +1 -1
- package/dist/telemetry/index.d.mts +7 -1
- package/dist/telemetry/index.d.ts +7 -1
- package/dist/tools/index.cjs +347 -1
- package/dist/tools/index.d.mts +167 -1
- package/dist/tools/index.d.ts +167 -1
- package/dist/tools/index.mjs +343 -1
- package/package.json +8 -1
- package/dist/react/{chunk-WUG6GTHO.mjs → chunk-MHZB6KIX.mjs} +8 -8
package/dist/react/index.d.ts
CHANGED
|
@@ -5824,6 +5824,12 @@ declare function updateConversationProjectOp(ctx: StorageOperationsContext, id:
|
|
|
5824
5824
|
* Pass null to get conversations that don't belong to any project.
|
|
5825
5825
|
*/
|
|
5826
5826
|
declare function getConversationsByProjectOp(ctx: StorageOperationsContext, projectId: string | null): Promise<StoredConversation[]>;
|
|
5827
|
+
/**
|
|
5828
|
+
* Delete a single message by its unique ID.
|
|
5829
|
+
* Clears file_ids before deletion and returns the unique ID.
|
|
5830
|
+
* Note: Callers should use deleteMediaByMessageOp to cascade delete media.
|
|
5831
|
+
*/
|
|
5832
|
+
declare function deleteMessageOp(ctx: StorageOperationsContext, uniqueId: string): Promise<string | null>;
|
|
5827
5833
|
/**
|
|
5828
5834
|
* Update the feedback (like/dislike) for a message.
|
|
5829
5835
|
* Each regenerated response can have its own independent feedback.
|
|
@@ -6620,6 +6626,7 @@ interface MemoryVaultSearchOptions {
|
|
|
6620
6626
|
* types. Applied at load time via `Q.oneOf` on the indexed `fact_type`
|
|
6621
6627
|
* column. Omit for no type filter. */
|
|
6622
6628
|
factTypes?: string[];
|
|
6629
|
+
memoryIds?: string[];
|
|
6623
6630
|
/**
|
|
6624
6631
|
* PR5 — optional per-FactType score multiplier applied in the boost stage
|
|
6625
6632
|
* (e.g. `{ identity: 1.2, ongoing_context: 0.8 }`). Empty/omitted = uniform
|
|
@@ -6942,6 +6949,11 @@ interface RecallOptions {
|
|
|
6942
6949
|
* and no-op when unset (all types are eligible). Vault-only.
|
|
6943
6950
|
*/
|
|
6944
6951
|
factTypes?: FactType[];
|
|
6952
|
+
/** Restrict fact candidates BEFORE ranking. Empty means no facts. When set,
|
|
6953
|
+
* unrestricted chunk search is disabled; it must not escape a topic scope.
|
|
6954
|
+
* Asking for `"chunk"` alongside this yields no excerpts and reports
|
|
6955
|
+
* `"chunks-scope-restricted"` on {@link RecallDiagnostics.degraded}. */
|
|
6956
|
+
memoryIds?: string[];
|
|
6945
6957
|
/**
|
|
6946
6958
|
* PR5 — optional per-FactType score multiplier applied in the fusion boost
|
|
6947
6959
|
* stage (e.g. boost `identity`/`constraint`, down-weight `ongoing_context`).
|
|
@@ -7117,7 +7129,13 @@ type RecallDegradation =
|
|
|
7117
7129
|
| "graph-lane-failed"
|
|
7118
7130
|
/** The W6 temporal side lane threw and was dropped. Same posture as the graph
|
|
7119
7131
|
* lane: recall still returned, ranked without the temporal signal. */
|
|
7120
|
-
| "temporal-lane-failed"
|
|
7132
|
+
| "temporal-lane-failed"
|
|
7133
|
+
/** {@link RecallOptions.memoryIds} was set and `types` asked for `"chunk"`.
|
|
7134
|
+
* Conversation excerpts have no equivalent membership filter, so running the
|
|
7135
|
+
* chunk lane would escape the topic/folder scope — it is dropped instead.
|
|
7136
|
+
* Without this signal a scoped caller asking for excerpts got an empty
|
|
7137
|
+
* result indistinguishable from "the vault had no match". */
|
|
7138
|
+
| "chunks-scope-restricted";
|
|
7121
7139
|
/**
|
|
7122
7140
|
* Why a recall returned nothing. `""` when it returned something, so the field
|
|
7123
7141
|
* is always present and groupable rather than being absent on the healthy path.
|
|
@@ -8072,6 +8090,14 @@ interface UpdateVaultMemoryOptions {
|
|
|
8072
8090
|
* two parallel retain() calls observe each other's commits and neither
|
|
8073
8091
|
* loses its increment. Wins over `proofCount` when both are set. */
|
|
8074
8092
|
proofCountIncrement?: number;
|
|
8093
|
+
/** Source ids for an observation. Unioned inside the writer. A replay whose
|
|
8094
|
+
* ids are all already on the row contributes no new evidence, so
|
|
8095
|
+
* `proofCount`/`proofCountIncrement` and {@link lastObservedAt} are skipped —
|
|
8096
|
+
* but the write still lands: `content`, `embedding`, `restore`, `eventTime`
|
|
8097
|
+
* and the rest apply, because a consolidation rewrite legitimately carries
|
|
8098
|
+
* the same source ids as the observation that triggered it.
|
|
8099
|
+
* Omit for unkeyed/manual observations. */
|
|
8100
|
+
observationSourceIds?: string[];
|
|
8075
8101
|
/** Set source ("manual" | "auto-extracted" | "capsule"). */
|
|
8076
8102
|
source?: string;
|
|
8077
8103
|
/**
|
|
@@ -8125,6 +8151,9 @@ interface VaultMemoryOperationsContext {
|
|
|
8125
8151
|
embeddedWalletSigner?: EmbeddedWalletSignerFn;
|
|
8126
8152
|
/** When set, operations scope to this user (server-side multi-user). */
|
|
8127
8153
|
userId?: string;
|
|
8154
|
+
/** Optional extraction source eligibility check, executed inside the writer.
|
|
8155
|
+
* Must only read the database (must not start another writer). */
|
|
8156
|
+
canWrite?: () => Promise<boolean>;
|
|
8128
8157
|
/**
|
|
8129
8158
|
* Asserts this context runs against a physically single-tenant database — one
|
|
8130
8159
|
* where every row belongs to the same owner (the per-wallet client DBs, which
|
|
@@ -8165,6 +8194,7 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
|
|
|
8165
8194
|
includeQuarantined?: boolean;
|
|
8166
8195
|
/** Typed memory (PR1) — restrict to these fact types. Omit for no filter. */
|
|
8167
8196
|
factTypes?: string[];
|
|
8197
|
+
memoryIds?: string[];
|
|
8168
8198
|
/**
|
|
8169
8199
|
* Include A2-superseded memories (each carries `supersededBy`). Default
|
|
8170
8200
|
* `false` — superseded rows are excluded, as they are from recall/dedup.
|
|
@@ -8223,6 +8253,7 @@ declare function getVaultCandidateKeysOp(ctx: VaultMemoryOperationsContext, opti
|
|
|
8223
8253
|
* silently path-dependent (#779).
|
|
8224
8254
|
*/
|
|
8225
8255
|
factTypes?: string[];
|
|
8256
|
+
memoryIds?: string[];
|
|
8226
8257
|
/** Include archived (decayed) memories. Default `false`, as elsewhere. */
|
|
8227
8258
|
includeArchived?: boolean;
|
|
8228
8259
|
}): Promise<VaultCandidateKey[]>;
|
|
@@ -8510,6 +8541,7 @@ interface DecayCandidateRaw {
|
|
|
8510
8541
|
/** Unix ms — the raw `updated_at`, used both for the age rule and as the
|
|
8511
8542
|
* optimistic-concurrency guard passed back to {@link archiveVaultMemoryOp}. */
|
|
8512
8543
|
updatedAt: number;
|
|
8544
|
+
lastObservedAt?: number | null;
|
|
8513
8545
|
archivedAt: number | null;
|
|
8514
8546
|
source: string | null;
|
|
8515
8547
|
/** `trusted` | `quarantined` | null. Quarantined rows still decay by RULE, but
|
|
@@ -8554,6 +8586,8 @@ declare function archiveVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: str
|
|
|
8554
8586
|
/** Optimistic-concurrency guard: skip if the row's `updated_at` changed
|
|
8555
8587
|
* since the sweep observed it (a concurrent re-observation). */
|
|
8556
8588
|
expectedUpdatedAt?: number;
|
|
8589
|
+
/** Also guard re-observations, which deliberately preserve updated_at. */
|
|
8590
|
+
expectedLastObservedAt?: number | null;
|
|
8557
8591
|
}): Promise<boolean>;
|
|
8558
8592
|
/**
|
|
8559
8593
|
* Restore an archived memory (PR2) — clear `archived_at` so it re-enters recall.
|
|
@@ -8698,6 +8732,63 @@ interface PhotoIngestResult {
|
|
|
8698
8732
|
*/
|
|
8699
8733
|
declare function ingestPublishedPhotoMemoriesOp(ctx: VaultMemoryOperationsContext, rows: PublishedPhotoMemory[]): Promise<PhotoIngestResult>;
|
|
8700
8734
|
|
|
8735
|
+
/**
|
|
8736
|
+
* Genuine-flow marker for first-party BACKGROUND calls the SDK makes to the portal.
|
|
8737
|
+
*
|
|
8738
|
+
* The portal runs an abuse detector on its chat endpoints and — behind a flag — on
|
|
8739
|
+
* `/api/v1/utility/*`. Genuineness is judged purely from the RAW system-prompt text:
|
|
8740
|
+
* user chat carries >=2 fragments of the app's chat base prompt, and every other
|
|
8741
|
+
* first-party flow carries its own verbatim fingerprint (ai-portal
|
|
8742
|
+
* `internal/detection/markers.go`). The SDK's background memory ops build their own
|
|
8743
|
+
* task-specific prompts, so they match none of those and read as MARKERLESS — i.e.
|
|
8744
|
+
* indistinguishable from a scripted abuser on a free-tier wallet.
|
|
8745
|
+
*
|
|
8746
|
+
* That is harmless while the detector only refuses models priced above its floor
|
|
8747
|
+
* (these ops all run on cheap fixed models). It stops being harmless the moment the
|
|
8748
|
+
* portal refuses the markerless cohort regardless of price, which is what
|
|
8749
|
+
* `PORTAL_DETECTION_REJECT_MARKERLESS` does: fact extraction, topic sweeps,
|
|
8750
|
+
* consolidation and query decomposition would start 4xx-ing for real users. Carrying
|
|
8751
|
+
* the marker is what keeps them served.
|
|
8752
|
+
*
|
|
8753
|
+
* WHAT CARRIES IT: every caller of `callPortalJsonCompletion` (fact extraction, topic
|
|
8754
|
+
* extraction, consolidation, decay/injection classifiers, graph traversal, query
|
|
8755
|
+
* decomposition), profile-facet synthesis, and progressive history summarization
|
|
8756
|
+
* (`chat/summarize.ts`, which needs its own system message because it sends none).
|
|
8757
|
+
* All are background ops with no user waiting on a chat turn.
|
|
8758
|
+
*
|
|
8759
|
+
* WHAT DELIBERATELY DOES NOT: `reflect()` when it answers the user's own question.
|
|
8760
|
+
* That is a user-facing turn, not an internal flow, and mislabelling it would put the
|
|
8761
|
+
* wrong provenance on real chat traffic. Its background caller (profile synthesis)
|
|
8762
|
+
* marks its own prompt instead.
|
|
8763
|
+
*
|
|
8764
|
+
* ⚠ {@link INTERNAL_FLOW_MARKER} must stay BYTE-IDENTICAL to
|
|
8765
|
+
* `detection.FingerprintInternalUtility` in ai-portal `internal/detection/markers.go`
|
|
8766
|
+
* and to `INTERNAL_FLOW_MARKER` in ai-memoryless-client — which now holds TWO
|
|
8767
|
+
* copies, `packages/hooks/src/internalFlowMarker.ts` for the app and
|
|
8768
|
+
* `apps/cf-tasks/src/internalFlowMarker.ts` for the workers (a separate copy on
|
|
8769
|
+
* purpose: a Worker bundle must not pull `@memoryless/hooks` in for one string).
|
|
8770
|
+
* The server does a plain substring match, so a stray edit in any one of the four
|
|
8771
|
+
* silently turns those flows back into suspects. All four carry a literal-pinning
|
|
8772
|
+
* test.
|
|
8773
|
+
*
|
|
8774
|
+
* HONEST SCOPE: this raises the bar (it kills scripted farms that don't bother
|
|
8775
|
+
* copying our prompts) but it is client-supplied text and therefore copyable by
|
|
8776
|
+
* anyone who reads a request. It is not a cryptographic wall — a server-minted
|
|
8777
|
+
* short-TTL per-request token would be, and is a later phase.
|
|
8778
|
+
*/
|
|
8779
|
+
/**
|
|
8780
|
+
* The verbatim marker line. Deliberately semantically inert: it states provenance and
|
|
8781
|
+
* nothing else, so prepending it cannot change how a model answers an extraction or
|
|
8782
|
+
* classification prompt. Do not reword, translate, or interpolate.
|
|
8783
|
+
*/
|
|
8784
|
+
declare const INTERNAL_FLOW_MARKER = "Anuma internal first-party flow (not user chat).";
|
|
8785
|
+
/**
|
|
8786
|
+
* Prepend {@link INTERNAL_FLOW_MARKER} to a system prompt. Idempotent — a prompt that
|
|
8787
|
+
* already carries the marker is returned unchanged, so applying it at more than one
|
|
8788
|
+
* layer (or on a retry of an already-marked request) cannot stack it.
|
|
8789
|
+
*/
|
|
8790
|
+
declare function withInternalFlowMarker(systemPrompt: string): string;
|
|
8791
|
+
|
|
8701
8792
|
/**
|
|
8702
8793
|
* Auto-extraction worker — orchestration glue for wiring
|
|
8703
8794
|
* {@link extractAndRetain} into a chat lifecycle.
|
|
@@ -8727,7 +8818,8 @@ declare function ingestPublishedPhotoMemoriesOp(ctx: VaultMemoryOperationsContex
|
|
|
8727
8818
|
*
|
|
8728
8819
|
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
8729
8820
|
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
8730
|
-
* returned empty/malformed after exhausting its retries)
|
|
8821
|
+
* returned empty/malformed after exhausting its retries), or any failed retain
|
|
8822
|
+
* operation leave it in place,
|
|
8731
8823
|
* so the next turn's window re-covers those messages instead of stranding them.
|
|
8732
8824
|
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
8733
8825
|
*
|
|
@@ -9120,6 +9212,8 @@ interface DecayInput {
|
|
|
9120
9212
|
eventTimeKind: string | null;
|
|
9121
9213
|
/** Unix ms of the row's last write (re-observation resets this). */
|
|
9122
9214
|
updatedAt: number;
|
|
9215
|
+
/** Last distinct observation; does not change the edit timestamp. */
|
|
9216
|
+
lastObservedAt?: number | null;
|
|
9123
9217
|
/** Unix ms when archived, or null when active. */
|
|
9124
9218
|
archivedAt: number | null;
|
|
9125
9219
|
/** `manual` | `auto-extracted` | `capsule` | null. Manual is never decayed. */
|
|
@@ -9682,6 +9776,8 @@ interface RecallToolOptions {
|
|
|
9682
9776
|
minScore?: number;
|
|
9683
9777
|
/** Vault scope filter. */
|
|
9684
9778
|
scopes?: string[];
|
|
9779
|
+
/** Topic membership, enforced before fact ranking; disables unrestricted chunks. */
|
|
9780
|
+
memoryIds?: string[];
|
|
9685
9781
|
/** Vault folder filter. */
|
|
9686
9782
|
folderId?: string | null;
|
|
9687
9783
|
/** Exclude one conversation from chunk results (typically the active one). */
|
|
@@ -9755,7 +9851,30 @@ interface ReflectOptions extends RecallOptions, PortalLlmAuth {
|
|
|
9755
9851
|
llmModel?: string;
|
|
9756
9852
|
/** Cap response length. Default: 4096. */
|
|
9757
9853
|
maxTokens?: number;
|
|
9758
|
-
/**
|
|
9854
|
+
/**
|
|
9855
|
+
* Override the grounding system prompt.
|
|
9856
|
+
*
|
|
9857
|
+
* ⚠ DOING THIS MAKES THE REQUEST'S PROVENANCE YOURS. The default prompt's first sentence is
|
|
9858
|
+
* this flow's fingerprint in the portal's freeloader (anti-bot) detector (see
|
|
9859
|
+
* {@link DEFAULT_SYSTEM_PROMPT}); replacing it wholesale removes that, and a free-tier request
|
|
9860
|
+
* carrying no recognised provenance is rejected outright once the portal's markerless reject is
|
|
9861
|
+
* enabled — a 403, not a degraded answer.
|
|
9862
|
+
*
|
|
9863
|
+
* Which replacement is correct depends on what the call IS, and there is no safe default:
|
|
9864
|
+
*
|
|
9865
|
+
* - **A background/internal call** (a fixed-purpose helper, not a user's own question): prepend
|
|
9866
|
+
* {@link withInternalFlowMarker}, which is exported for exactly this. That is what
|
|
9867
|
+
* profile-facet synthesis does.
|
|
9868
|
+
* - **A user-facing call** (the person is asking their own question and expects an answer):
|
|
9869
|
+
* do NOT use the internal marker — it asserts "not user chat" and would be false. Keep the
|
|
9870
|
+
* default prompt, or append your instructions to it rather than replacing it, so the
|
|
9871
|
+
* fingerprint survives. A genuinely distinct user-facing flow needs its own fingerprint
|
|
9872
|
+
* registered in ai-portal `internal/detection/markers.go`.
|
|
9873
|
+
*
|
|
9874
|
+
* Appending is the cheap way to stay safe: `${DEFAULT_SYSTEM_PROMPT}\n\n${yourInstructions}`
|
|
9875
|
+
* keeps the fingerprint as a prefix. `reflect.test.ts` pins both the marked and the bare
|
|
9876
|
+
* override paths so this stays true.
|
|
9877
|
+
*/
|
|
9759
9878
|
systemPrompt?: string;
|
|
9760
9879
|
/**
|
|
9761
9880
|
* Extra caller instruction to carry on the USER turn, between the question and
|
|
@@ -10498,6 +10617,83 @@ declare function verifyMemoriesForPublish(memories: readonly MemoryToVerify[], s
|
|
|
10498
10617
|
*/
|
|
10499
10618
|
declare function createMessageSourceResolver(ctx: StorageOperationsContext): VerificationSources;
|
|
10500
10619
|
|
|
10620
|
+
type MemoryContextLane = "profile" | "fact" | "episode" | "session";
|
|
10621
|
+
interface MemoryContextItem {
|
|
10622
|
+
id: string;
|
|
10623
|
+
content: string;
|
|
10624
|
+
score: number;
|
|
10625
|
+
lane: MemoryContextLane;
|
|
10626
|
+
sourceIds: string[];
|
|
10627
|
+
/** Ranked fact evidence, retained when profile deduplication wins placement. */
|
|
10628
|
+
recalled?: boolean;
|
|
10629
|
+
}
|
|
10630
|
+
interface MemoryContextOptions {
|
|
10631
|
+
query: string;
|
|
10632
|
+
recall: (query: string, options: RecallOptions) => Promise<RecallResult>;
|
|
10633
|
+
loadFacts?: ((options: Parameters<typeof getAllVaultMemoriesOp>[1]) => Promise<StoredVaultMemory[]>) | null;
|
|
10634
|
+
loadSessionRefs?: (() => Promise<Array<{
|
|
10635
|
+
memoryId: string;
|
|
10636
|
+
score: number;
|
|
10637
|
+
}>>) | null;
|
|
10638
|
+
recallOptions?: RecallOptions;
|
|
10639
|
+
/** Topic membership is applied before ranking and to every context lane. */
|
|
10640
|
+
memoryIds?: string[];
|
|
10641
|
+
/** Character budget for contents (formatting overhead is excluded). Default 12000. */
|
|
10642
|
+
maxChars?: number;
|
|
10643
|
+
includeEpisodes?: boolean;
|
|
10644
|
+
onDegraded?: (lane: MemoryContextLane, error: unknown) => void;
|
|
10645
|
+
}
|
|
10646
|
+
interface MemoryContextResult {
|
|
10647
|
+
items: MemoryContextItem[];
|
|
10648
|
+
ranked: boolean;
|
|
10649
|
+
rankedCount: number;
|
|
10650
|
+
degraded: MemoryContextLane[];
|
|
10651
|
+
truncated: boolean;
|
|
10652
|
+
}
|
|
10653
|
+
/** Only skip confidently trivial utterances. Word counts reject useful short
|
|
10654
|
+
* queries and languages whose writing does not separate words with spaces.
|
|
10655
|
+
*
|
|
10656
|
+
* The stoplist is an exact-match allowance for greetings and acknowledgments,
|
|
10657
|
+
* not a language model: anything not listed still recalls, so a missing
|
|
10658
|
+
* language costs a wasted lookup, never a missed memory. Kept to the handful of
|
|
10659
|
+
* forms that cannot carry a fact in the languages the app ships in. */
|
|
10660
|
+
declare function shouldRecallMemory(query: string): boolean;
|
|
10661
|
+
/** Assemble bounded stable/dynamic profile, relevant facts, source excerpts and
|
|
10662
|
+
* prior-turn facts. Lane failures are isolated: an outage cannot replace a
|
|
10663
|
+
* legitimate empty search with unrelated vault contents. */
|
|
10664
|
+
declare function assembleMemoryContext(options: MemoryContextOptions): Promise<MemoryContextResult>;
|
|
10665
|
+
|
|
10666
|
+
interface DurableAutoExtractorOptions extends Omit<CreateAutoExtractorOptions, "scope"> {
|
|
10667
|
+
/**
|
|
10668
|
+
* Scope for facts retained from newly queued turns. Pass an accessor to have
|
|
10669
|
+
* a privacy-mode flip observed at write time: a plain string is sampled once
|
|
10670
|
+
* at construction, which makes correctness depend on the caller disposing and
|
|
10671
|
+
* recreating the extractor on every flip. An accessor that throws is treated
|
|
10672
|
+
* as `"private"` — the direction that cannot publish.
|
|
10673
|
+
*/
|
|
10674
|
+
scope?: string | (() => string);
|
|
10675
|
+
/** Coalesce arrivals after durably recording them. Defaults to 20 seconds. */
|
|
10676
|
+
debounceMs?: number;
|
|
10677
|
+
/** Retry delay for a failed batch. Defaults to 30 seconds; max three attempts
|
|
10678
|
+
* per session. Unfinished jobs remain available on the next resume. */
|
|
10679
|
+
retryDelayMs?: number;
|
|
10680
|
+
/**
|
|
10681
|
+
* Ceiling on one batch, from the extraction call through retention. Defaults
|
|
10682
|
+
* to 180 seconds — deliberately above the extraction call's own budget
|
|
10683
|
+
* (`timeoutMs`, 60s per attempt, x `maxAttempts`), so this is a backstop
|
|
10684
|
+
* against a promise that never settles at all rather than a second timeout
|
|
10685
|
+
* competing with that one. Use `timeoutMs`/`totalTimeoutMs` to bound the LLM
|
|
10686
|
+
* call itself. Without a ceiling here, one unsettled promise latched the
|
|
10687
|
+
* drain and killed the outbox for the rest of the session.
|
|
10688
|
+
*/
|
|
10689
|
+
batchTimeoutMs?: number;
|
|
10690
|
+
}
|
|
10691
|
+
/** Durable client extraction. Call once per authenticated database session.
|
|
10692
|
+
* Resumes pending jobs on creation, reads bounded batches from encrypted
|
|
10693
|
+
* history, and acknowledges only successful batches. No plaintext snapshots
|
|
10694
|
+
* or pending facts are written to platform preferences. */
|
|
10695
|
+
declare function createDurableAutoExtractor(options: DurableAutoExtractorOptions): AutoExtractor;
|
|
10696
|
+
|
|
10501
10697
|
/**
|
|
10502
10698
|
* Text Chunking Utilities
|
|
10503
10699
|
*
|
|
@@ -11391,10 +11587,7 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11391
11587
|
* @param options - Optional filtering (scopes to include, whether to
|
|
11392
11588
|
* include soft-deleted memories)
|
|
11393
11589
|
*/
|
|
11394
|
-
getVaultMemories: (options?:
|
|
11395
|
-
scopes?: string[];
|
|
11396
|
-
includeDeleted?: boolean;
|
|
11397
|
-
}) => Promise<StoredVaultMemory[]>;
|
|
11590
|
+
getVaultMemories: (options?: Parameters<typeof getAllVaultMemoriesOp>[1]) => Promise<StoredVaultMemory[]>;
|
|
11398
11591
|
/**
|
|
11399
11592
|
* Create a new vault memory with the given content.
|
|
11400
11593
|
* @param content - The memory text
|
|
@@ -11855,8 +12048,15 @@ declare class WatermelonChatStorageAdapter implements ChatStorageAdapter {
|
|
|
11855
12048
|
* - v45: Added `media` to memory_vault — the photo(s) a server-extracted
|
|
11856
12049
|
* memory came from, as JSON `[{feed_item_id, object_key}]`. Null on every
|
|
11857
12050
|
* row that did not come from a photo, which is all of them before this
|
|
12051
|
+
* migration ran
|
|
12052
|
+
* - v46: Added device-local memory_extraction_jobs outbox for restart-safe
|
|
12053
|
+
* extraction. Additive (a single createTable, no backfill), so a v45 database
|
|
12054
|
+
* upgrades cleanly. NOT reversible: WatermelonDB has no downgrade path, so
|
|
12055
|
+
* rolling a release back past v46 after a device has run it resets that
|
|
12056
|
+
* device's local database. Relevant to OTA, where a JS-only rollback can
|
|
12057
|
+
* land on a database the newer build already migrated
|
|
11858
12058
|
*/
|
|
11859
|
-
declare const SDK_SCHEMA_VERSION =
|
|
12059
|
+
declare const SDK_SCHEMA_VERSION = 46;
|
|
11860
12060
|
/**
|
|
11861
12061
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
11862
12062
|
*
|
|
@@ -16100,4 +16300,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
16100
16300
|
*/
|
|
16101
16301
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
16102
16302
|
|
|
16103
|
-
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type 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, type ExtractionFunnel, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };
|
|
16303
|
+
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type 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, type DurableAutoExtractorOptions, 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, type ExtractionFunnel, type ExtractionTimings, 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, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, 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, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, withInternalFlowMarker, writeEncryptedFile };
|