@anuma/sdk 6.39.2 → 6.40.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/index.cjs +333 -28
- package/dist/expo/index.d.mts +28 -8
- package/dist/expo/index.d.ts +28 -8
- package/dist/expo/index.mjs +333 -28
- package/dist/react/index.cjs +333 -28
- package/dist/react/index.d.mts +28 -8
- package/dist/react/index.d.ts +28 -8
- package/dist/react/index.mjs +333 -28
- package/dist/server/index.cjs +123 -18
- package/dist/server/index.d.mts +34 -8
- package/dist/server/index.d.ts +34 -8
- package/dist/server/index.mjs +123 -18
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -8741,6 +8741,93 @@ function composeHooks(hooks) {
|
|
|
8741
8741
|
};
|
|
8742
8742
|
}
|
|
8743
8743
|
|
|
8744
|
+
// src/lib/chat/streamIdleTimeout.ts
|
|
8745
|
+
var StreamIdleTimeoutError = class extends Error {
|
|
8746
|
+
constructor(idleTimeoutMs) {
|
|
8747
|
+
super(`Stream timed out after ${idleTimeoutMs} ms without activity.`);
|
|
8748
|
+
this.name = "StreamIdleTimeoutError";
|
|
8749
|
+
this.idleTimeoutMs = idleTimeoutMs;
|
|
8750
|
+
}
|
|
8751
|
+
};
|
|
8752
|
+
function withStreamIdleTimeout(transport, idleTimeoutMs) {
|
|
8753
|
+
if (!(idleTimeoutMs > 0) || idleTimeoutMs === Infinity) return transport;
|
|
8754
|
+
return (options) => ({
|
|
8755
|
+
stream: (async function* () {
|
|
8756
|
+
const controller = new AbortController();
|
|
8757
|
+
let timer;
|
|
8758
|
+
let settled = false;
|
|
8759
|
+
let completed = false;
|
|
8760
|
+
let iterator;
|
|
8761
|
+
let interruption;
|
|
8762
|
+
let rejectPending;
|
|
8763
|
+
const disarm = () => {
|
|
8764
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
8765
|
+
timer = void 0;
|
|
8766
|
+
};
|
|
8767
|
+
const interrupt = (error) => {
|
|
8768
|
+
if (interruption) return;
|
|
8769
|
+
interruption = error;
|
|
8770
|
+
rejectPending?.(error);
|
|
8771
|
+
controller.abort();
|
|
8772
|
+
};
|
|
8773
|
+
const arm = () => {
|
|
8774
|
+
if (settled || controller.signal.aborted) return;
|
|
8775
|
+
disarm();
|
|
8776
|
+
timer = setTimeout(() => {
|
|
8777
|
+
interrupt(new StreamIdleTimeoutError(idleTimeoutMs));
|
|
8778
|
+
}, idleTimeoutMs);
|
|
8779
|
+
};
|
|
8780
|
+
const onAbort = () => {
|
|
8781
|
+
controller.abort();
|
|
8782
|
+
};
|
|
8783
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
8784
|
+
try {
|
|
8785
|
+
if (options.signal?.aborted) {
|
|
8786
|
+
const error = new Error("Request aborted");
|
|
8787
|
+
error.name = "AbortError";
|
|
8788
|
+
throw error;
|
|
8789
|
+
}
|
|
8790
|
+
arm();
|
|
8791
|
+
iterator = transport({
|
|
8792
|
+
...options,
|
|
8793
|
+
signal: controller.signal,
|
|
8794
|
+
onActivity: () => {
|
|
8795
|
+
arm();
|
|
8796
|
+
options.onActivity?.();
|
|
8797
|
+
}
|
|
8798
|
+
}).stream[Symbol.asyncIterator]();
|
|
8799
|
+
while (true) {
|
|
8800
|
+
if (interruption) throw interruption;
|
|
8801
|
+
const next = await new Promise((resolve, reject) => {
|
|
8802
|
+
rejectPending = reject;
|
|
8803
|
+
Promise.resolve(iterator.next()).then(resolve, reject);
|
|
8804
|
+
});
|
|
8805
|
+
rejectPending = void 0;
|
|
8806
|
+
if (next.done) {
|
|
8807
|
+
completed = true;
|
|
8808
|
+
break;
|
|
8809
|
+
}
|
|
8810
|
+
arm();
|
|
8811
|
+
yield next.value;
|
|
8812
|
+
}
|
|
8813
|
+
} finally {
|
|
8814
|
+
settled = true;
|
|
8815
|
+
rejectPending = void 0;
|
|
8816
|
+
disarm();
|
|
8817
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
8818
|
+
if (!completed) {
|
|
8819
|
+
controller.abort();
|
|
8820
|
+
try {
|
|
8821
|
+
void iterator?.return?.().catch(() => {
|
|
8822
|
+
});
|
|
8823
|
+
} catch {
|
|
8824
|
+
}
|
|
8825
|
+
}
|
|
8826
|
+
}
|
|
8827
|
+
})()
|
|
8828
|
+
});
|
|
8829
|
+
}
|
|
8830
|
+
|
|
8744
8831
|
// src/lib/chat/useChat/utils.ts
|
|
8745
8832
|
var import_jsonrepair = require("jsonrepair");
|
|
8746
8833
|
init_logger();
|
|
@@ -10931,7 +11018,20 @@ var defaultTransport = (options) => {
|
|
|
10931
11018
|
} catch {
|
|
10932
11019
|
}
|
|
10933
11020
|
}
|
|
10934
|
-
return response;
|
|
11021
|
+
if (!response.body || !options.onActivity) return response;
|
|
11022
|
+
const body = response.body.pipeThrough(
|
|
11023
|
+
new TransformStream({
|
|
11024
|
+
transform(chunk, controller) {
|
|
11025
|
+
if (chunk.byteLength > 0) options.onActivity?.();
|
|
11026
|
+
controller.enqueue(chunk);
|
|
11027
|
+
}
|
|
11028
|
+
})
|
|
11029
|
+
);
|
|
11030
|
+
return new Response(body, {
|
|
11031
|
+
status: response.status,
|
|
11032
|
+
statusText: response.statusText,
|
|
11033
|
+
headers: response.headers
|
|
11034
|
+
});
|
|
10935
11035
|
};
|
|
10936
11036
|
return createSseClient({
|
|
10937
11037
|
method: options.method ?? "POST",
|
|
@@ -10988,6 +11088,7 @@ async function runToolLoop(options) {
|
|
|
10988
11088
|
conversationId,
|
|
10989
11089
|
smoothing,
|
|
10990
11090
|
signal,
|
|
11091
|
+
idleTimeoutMs = 12e4,
|
|
10991
11092
|
resumable,
|
|
10992
11093
|
detachSignal,
|
|
10993
11094
|
onStreamMeta,
|
|
@@ -11001,13 +11102,14 @@ async function runToolLoop(options) {
|
|
|
11001
11102
|
onStepFinish,
|
|
11002
11103
|
onRequest,
|
|
11003
11104
|
onStreamRetry,
|
|
11004
|
-
transport
|
|
11105
|
+
transport = defaultTransport,
|
|
11005
11106
|
preProcessors,
|
|
11006
11107
|
maxConnectorCalls = 2,
|
|
11007
11108
|
hooks: hooksOption,
|
|
11008
11109
|
piiRedaction,
|
|
11009
11110
|
onPiiRedacted
|
|
11010
11111
|
} = options;
|
|
11112
|
+
const makeStreamingRequest = withStreamIdleTimeout(transport, idleTimeoutMs);
|
|
11011
11113
|
const hooks = Array.isArray(hooksOption) ? composeHooks(hooksOption) : hooksOption;
|
|
11012
11114
|
const runId = generateRunId();
|
|
11013
11115
|
let messages = options.messages;
|
|
@@ -23145,6 +23247,14 @@ function createLocalMemoryStore(options) {
|
|
|
23145
23247
|
getLogger().warn("[memory/store] Failed to embed memory:", err);
|
|
23146
23248
|
});
|
|
23147
23249
|
};
|
|
23250
|
+
const maintenance = {
|
|
23251
|
+
createDecaySweeper: (sweeperOptions) => createDecaySweeper({ ...sweeperOptions, vaultCtx }),
|
|
23252
|
+
getTopicBacklog: (backlogOptions) => getMemoriesNeedingTopicExtractionOp(vaultCtx, backlogOptions),
|
|
23253
|
+
extractTopics: (memoryIds, extractOptions) => extractAndLinkEntitiesForMemoriesOp(vaultCtx, memoryIds, extractOptions),
|
|
23254
|
+
stampTopicsExtracted: (memoryIds, extractedAt, version) => stampTopicsExtractedAtOp(vaultCtx, memoryIds, extractedAt, version),
|
|
23255
|
+
relinkTopics: (memoryIds) => relinkMemoryTopicsOp(vaultCtx, memoryIds),
|
|
23256
|
+
backfillTopics: (memoryIds) => backfillMemoryTopicsOp(vaultCtx, memoryIds)
|
|
23257
|
+
};
|
|
23148
23258
|
return {
|
|
23149
23259
|
masksEmbeddingInput: options.embeddingOptions.maskInput !== void 0,
|
|
23150
23260
|
list: (listOptions) => getAllVaultMemoriesOp(vaultCtx, listOptions),
|
|
@@ -23158,21 +23268,22 @@ function createLocalMemoryStore(options) {
|
|
|
23158
23268
|
memoriesByTopics: (names) => getMemoriesByEntityNamesOp(entityCtx, names),
|
|
23159
23269
|
topicsByMemories: (memoryIds) => getEntitiesByMemoryIdsOp(entityCtx, memoryIds),
|
|
23160
23270
|
listTopics: async () => {
|
|
23161
|
-
const links = await entityCtx.memoryEntityCollection.query(...linksOwnedBy).
|
|
23271
|
+
const links = await entityCtx.memoryEntityCollection.query(...linksOwnedBy).unsafeFetchRaw();
|
|
23162
23272
|
const members = /* @__PURE__ */ new Map();
|
|
23163
23273
|
for (const link of links) {
|
|
23164
|
-
const entityId = String(link.
|
|
23274
|
+
const entityId = String(link.entity_id);
|
|
23165
23275
|
const set = members.get(entityId) ?? /* @__PURE__ */ new Set();
|
|
23166
|
-
set.add(String(link.
|
|
23276
|
+
set.add(String(link.memory_id));
|
|
23167
23277
|
members.set(entityId, set);
|
|
23168
23278
|
}
|
|
23169
|
-
const entities = userId === void 0 ? await entityCtx.entityCollection.query().
|
|
23279
|
+
const entities = userId === void 0 ? await entityCtx.entityCollection.query().unsafeFetchRaw() : members.size ? await entityCtx.entityCollection.query(import_watermelondb32.Q.where("id", import_watermelondb32.Q.oneOf([...members.keys()]))).unsafeFetchRaw() : [];
|
|
23170
23280
|
const byName = /* @__PURE__ */ new Map();
|
|
23171
23281
|
for (const entity of entities) {
|
|
23172
|
-
const
|
|
23173
|
-
const
|
|
23174
|
-
byName.
|
|
23175
|
-
|
|
23282
|
+
const name = String(entity.canonical_name);
|
|
23283
|
+
const count2 = members.get(String(entity.id))?.size ?? 0;
|
|
23284
|
+
const existing = byName.get(name);
|
|
23285
|
+
byName.set(name, {
|
|
23286
|
+
name,
|
|
23176
23287
|
kind: existing?.kind ?? entity.kind ?? null,
|
|
23177
23288
|
memoryCount: (existing?.memoryCount ?? 0) + count2
|
|
23178
23289
|
});
|
|
@@ -23263,14 +23374,8 @@ function createLocalMemoryStore(options) {
|
|
|
23263
23374
|
}
|
|
23264
23375
|
return () => subscriptions.forEach((s) => s.unsubscribe());
|
|
23265
23376
|
},
|
|
23266
|
-
maintenance
|
|
23267
|
-
|
|
23268
|
-
getTopicBacklog: (backlogOptions) => getMemoriesNeedingTopicExtractionOp(vaultCtx, backlogOptions),
|
|
23269
|
-
extractTopics: (memoryIds, extractOptions) => extractAndLinkEntitiesForMemoriesOp(vaultCtx, memoryIds, extractOptions),
|
|
23270
|
-
stampTopicsExtracted: (memoryIds, extractedAt, version) => stampTopicsExtractedAtOp(vaultCtx, memoryIds, extractedAt, version),
|
|
23271
|
-
relinkTopics: (memoryIds) => relinkMemoryTopicsOp(vaultCtx, memoryIds),
|
|
23272
|
-
backfillTopics: (memoryIds) => backfillMemoryTopicsOp(vaultCtx, memoryIds)
|
|
23273
|
-
}
|
|
23377
|
+
maintenance,
|
|
23378
|
+
topicMaintenance: maintenance
|
|
23274
23379
|
};
|
|
23275
23380
|
}
|
|
23276
23381
|
|
|
@@ -24055,7 +24160,7 @@ function createRemoteMemoryPipeline(options) {
|
|
|
24055
24160
|
const memory = {
|
|
24056
24161
|
...snapshot.memory,
|
|
24057
24162
|
content: patch.content,
|
|
24058
|
-
updated_at: patch.preserveUpdatedAt ? snapshot.memory.updated_at : Date.now()
|
|
24163
|
+
updated_at: patch.preserveUpdatedAt ? snapshot.memory.updated_at : Math.max(Date.now(), (snapshot.memory.topics_extracted_at ?? 0) + 1)
|
|
24059
24164
|
};
|
|
24060
24165
|
if (patch.scope !== void 0) memory.scope = patch.scope;
|
|
24061
24166
|
if (patch.embedding === void 0 && patch.content !== snapshot.memory.content) {
|
|
@@ -24189,6 +24294,7 @@ function projection({ memory }) {
|
|
|
24189
24294
|
};
|
|
24190
24295
|
}
|
|
24191
24296
|
function relevant(change, options) {
|
|
24297
|
+
if (change === "metadata") return false;
|
|
24192
24298
|
return options.includeDeleted ? change === "membership" : change !== "embedding" || !!options.embeddings;
|
|
24193
24299
|
}
|
|
24194
24300
|
function safely(onChange) {
|
|
@@ -24280,6 +24386,17 @@ function mergeTopics(existing, added) {
|
|
|
24280
24386
|
}
|
|
24281
24387
|
return [...byName.values()];
|
|
24282
24388
|
}
|
|
24389
|
+
function sameTopics(stored2, next) {
|
|
24390
|
+
const key = (t) => JSON.stringify([t.name, t.kind ?? null, t.source]);
|
|
24391
|
+
if (stored2 === null || stored2.length !== next.length) return false;
|
|
24392
|
+
const keys = new Set(stored2.map(key));
|
|
24393
|
+
return next.every((t) => keys.has(key(t)));
|
|
24394
|
+
}
|
|
24395
|
+
function extractionDue(memory) {
|
|
24396
|
+
const stamp = memory.topics_extracted_at;
|
|
24397
|
+
if (stamp === void 0 || stamp === null) return "fresh";
|
|
24398
|
+
return memory.updated_at > stamp || (memory.topics_extracted_version ?? 0) < TOPICS_EXTRACTION_VERSION ? "stale" : null;
|
|
24399
|
+
}
|
|
24283
24400
|
function canonicalTopics(row) {
|
|
24284
24401
|
return new Set((parseTopics(row.topics) ?? []).map((topic) => normalizeEntityName(topic.name)));
|
|
24285
24402
|
}
|
|
@@ -24292,7 +24409,12 @@ function createRemoteMemoryStore(options) {
|
|
|
24292
24409
|
const seen = /* @__PURE__ */ new Map();
|
|
24293
24410
|
let timer;
|
|
24294
24411
|
const notify = (change, records = []) => {
|
|
24295
|
-
if (timer)
|
|
24412
|
+
if (timer)
|
|
24413
|
+
for (const record2 of records) {
|
|
24414
|
+
const previous = seen.get(record2.memory.memory_id);
|
|
24415
|
+
if ((previous?.version ?? 0) + 1 === record2.version)
|
|
24416
|
+
seen.set(record2.memory.memory_id, record2);
|
|
24417
|
+
}
|
|
24296
24418
|
for (const subscriber of [...subscribers])
|
|
24297
24419
|
if (relevant(change, subscriber.options)) safely(subscriber.onChange);
|
|
24298
24420
|
};
|
|
@@ -24353,15 +24475,72 @@ function createRemoteMemoryStore(options) {
|
|
|
24353
24475
|
const record2 = await persistence.get(id);
|
|
24354
24476
|
return record2 && !record2.memory.is_deleted ? record2 : null;
|
|
24355
24477
|
};
|
|
24356
|
-
const
|
|
24478
|
+
const mutateLocked = async (id, change, edit) => {
|
|
24357
24479
|
const record2 = await live(id);
|
|
24358
24480
|
if (!record2) return null;
|
|
24359
24481
|
const next = edit(structuredClone(record2.memory));
|
|
24360
24482
|
if (!next) return null;
|
|
24361
24483
|
const saved = await persistence.put(next, record2);
|
|
24362
|
-
notify(change, [saved]);
|
|
24484
|
+
notify(typeof change === "function" ? change(record2.memory) : change, [saved]);
|
|
24363
24485
|
return saved;
|
|
24364
|
-
}
|
|
24486
|
+
};
|
|
24487
|
+
const mutate = (id, change, edit) => serialized(id, () => mutateLocked(id, change, edit));
|
|
24488
|
+
const serializedAll = (ids, task) => [...new Set(ids)].sort().reduceRight((inner, id) => () => serialized(id, inner), task)();
|
|
24489
|
+
const mutateMany = async (ids, change, edit) => {
|
|
24490
|
+
const saved = /* @__PURE__ */ new Map();
|
|
24491
|
+
const failed = /* @__PURE__ */ new Map();
|
|
24492
|
+
for (const slice of chunks([...new Set(ids)], MAX_BATCH)) {
|
|
24493
|
+
await serializedAll(slice, async () => {
|
|
24494
|
+
const writes = [];
|
|
24495
|
+
let read;
|
|
24496
|
+
try {
|
|
24497
|
+
read = await readEveryState(slice);
|
|
24498
|
+
} catch (error) {
|
|
24499
|
+
for (const id of slice) failed.set(id, error);
|
|
24500
|
+
return;
|
|
24501
|
+
}
|
|
24502
|
+
const { records, unreadable } = read;
|
|
24503
|
+
for (const id of slice) {
|
|
24504
|
+
const record2 = records.get(id);
|
|
24505
|
+
if (unreadable.has(id)) failed.set(id, new Error(`Memory ${id} could not be decrypted`));
|
|
24506
|
+
else if (!record2) failed.set(id, new Error(`Memory ${id} was not found`));
|
|
24507
|
+
else if (!record2.memory.is_deleted) {
|
|
24508
|
+
const memory = edit(structuredClone(record2.memory));
|
|
24509
|
+
if (memory) writes.push({ before: record2, memory });
|
|
24510
|
+
}
|
|
24511
|
+
}
|
|
24512
|
+
if (writes.length === 0) return;
|
|
24513
|
+
try {
|
|
24514
|
+
const written = await persistence.putMany(
|
|
24515
|
+
writes.map(({ before, memory }) => ({ memory, expectedVersion: before }))
|
|
24516
|
+
);
|
|
24517
|
+
const byChange = /* @__PURE__ */ new Map();
|
|
24518
|
+
written.forEach((record2, i) => {
|
|
24519
|
+
saved.set(record2.memory.memory_id, record2);
|
|
24520
|
+
const kind = change(writes[i].before.memory);
|
|
24521
|
+
byChange.set(kind, [...byChange.get(kind) ?? [], record2]);
|
|
24522
|
+
});
|
|
24523
|
+
for (const [kind, changed] of byChange) notify(kind, changed);
|
|
24524
|
+
} catch (error) {
|
|
24525
|
+
const perRow = error instanceof RemoteMemoryError && (error.code === "version_conflict" || error.status === 429);
|
|
24526
|
+
for (const { before } of writes) {
|
|
24527
|
+
const id = before.memory.memory_id;
|
|
24528
|
+
if (!perRow) {
|
|
24529
|
+
failed.set(id, error);
|
|
24530
|
+
continue;
|
|
24531
|
+
}
|
|
24532
|
+
try {
|
|
24533
|
+
const record2 = await mutateLocked(id, change, edit);
|
|
24534
|
+
if (record2) saved.set(id, record2);
|
|
24535
|
+
} catch (rowError) {
|
|
24536
|
+
failed.set(id, rowError);
|
|
24537
|
+
}
|
|
24538
|
+
}
|
|
24539
|
+
}
|
|
24540
|
+
});
|
|
24541
|
+
}
|
|
24542
|
+
return { saved, failed };
|
|
24543
|
+
};
|
|
24365
24544
|
const embedInBackground = ({ memory: { memory_id: id, content } }) => {
|
|
24366
24545
|
generateEmbedding(content, embeddingOptions).then(
|
|
24367
24546
|
(vector) => serialized(id, async () => {
|
|
@@ -24417,11 +24596,10 @@ function createRemoteMemoryStore(options) {
|
|
|
24417
24596
|
return records.map((record2) => stored(record2.memory));
|
|
24418
24597
|
};
|
|
24419
24598
|
const asStored = (record2) => record2 ? stored(record2.memory) : null;
|
|
24420
|
-
const
|
|
24599
|
+
const knownKinds = async (topics) => {
|
|
24421
24600
|
const unkinded = [
|
|
24422
24601
|
...new Set(topics.filter((t) => !t.kind).map((t) => normalizeEntityName(t.name)))
|
|
24423
24602
|
];
|
|
24424
|
-
if (unkinded.length === 0) return topics;
|
|
24425
24603
|
const kinds = /* @__PURE__ */ new Map();
|
|
24426
24604
|
for (const names of chunks(unkinded, MAX_QUERY_TOPICS)) {
|
|
24427
24605
|
for (const { memory } of await pages(metadata, {
|
|
@@ -24436,10 +24614,136 @@ function createRemoteMemoryStore(options) {
|
|
|
24436
24614
|
}
|
|
24437
24615
|
}
|
|
24438
24616
|
}
|
|
24439
|
-
return
|
|
24617
|
+
return (topic) => {
|
|
24440
24618
|
const kind = topic.kind ?? kinds.get(normalizeEntityName(topic.name));
|
|
24441
24619
|
return kind ? { ...topic, kind } : topic;
|
|
24442
|
-
}
|
|
24620
|
+
};
|
|
24621
|
+
};
|
|
24622
|
+
const withKnownKinds = async (topics) => topics.map(await knownKinds(topics));
|
|
24623
|
+
const readEveryState = async (ids) => {
|
|
24624
|
+
const records = /* @__PURE__ */ new Map();
|
|
24625
|
+
const unreadable = /* @__PURE__ */ new Set();
|
|
24626
|
+
for (const memory_ids of chunks(ids, MAX_QUERY_IDS)) {
|
|
24627
|
+
let cursor2;
|
|
24628
|
+
do {
|
|
24629
|
+
const page = await persistence.query({
|
|
24630
|
+
memory_ids,
|
|
24631
|
+
include_deleted: true,
|
|
24632
|
+
include_archived: true,
|
|
24633
|
+
include_quarantined: true,
|
|
24634
|
+
include_superseded: true,
|
|
24635
|
+
limit: 200,
|
|
24636
|
+
...cursor2 && { cursor: cursor2 }
|
|
24637
|
+
});
|
|
24638
|
+
warnFailed(page.failed);
|
|
24639
|
+
for (const record2 of page.items) records.set(record2.memory.memory_id, record2);
|
|
24640
|
+
for (const failure of page.failed) unreadable.add(failure.memory_id);
|
|
24641
|
+
cursor2 = page.next_cursor;
|
|
24642
|
+
} while (cursor2);
|
|
24643
|
+
}
|
|
24644
|
+
return { records, unreadable };
|
|
24645
|
+
};
|
|
24646
|
+
const topicMaintenance = {
|
|
24647
|
+
getTopicBacklog: async (backlogOptions = {}) => {
|
|
24648
|
+
const stale = [];
|
|
24649
|
+
const fresh = [];
|
|
24650
|
+
for (const { memory } of await pages(metadata, { order: "created" })) {
|
|
24651
|
+
if (memory.topics_user_managed) continue;
|
|
24652
|
+
const due = extractionDue(memory);
|
|
24653
|
+
if (due === "stale") stale.push(memory.memory_id);
|
|
24654
|
+
else if (due === "fresh") fresh.push(memory.memory_id);
|
|
24655
|
+
}
|
|
24656
|
+
const limit = backlogOptions.limit !== void 0 && backlogOptions.limit > 0 ? backlogOptions.limit : Infinity;
|
|
24657
|
+
return {
|
|
24658
|
+
pending: [...stale, ...fresh].slice(0, limit).map((uniqueId) => ({ uniqueId })),
|
|
24659
|
+
linkedUnstamped: [],
|
|
24660
|
+
topicsToRelink: [],
|
|
24661
|
+
topicsBackfill: []
|
|
24662
|
+
};
|
|
24663
|
+
},
|
|
24664
|
+
extractTopics: async (memoryIds, extractOptions) => {
|
|
24665
|
+
const extractedAt = extractOptions.now ?? Date.now();
|
|
24666
|
+
const skippedIds = [];
|
|
24667
|
+
const skippedReasons = /* @__PURE__ */ new Map();
|
|
24668
|
+
const skip = (id, reason) => {
|
|
24669
|
+
if (skippedReasons.has(id)) return;
|
|
24670
|
+
skippedIds.push(id);
|
|
24671
|
+
skippedReasons.set(id, reason);
|
|
24672
|
+
};
|
|
24673
|
+
const ids = [...new Set(memoryIds)];
|
|
24674
|
+
const { records, unreadable } = await readEveryState(ids);
|
|
24675
|
+
const inputs = [];
|
|
24676
|
+
for (const id of ids) {
|
|
24677
|
+
const memory = records.get(id)?.memory;
|
|
24678
|
+
if (unreadable.has(id)) skip(id, "unreadable");
|
|
24679
|
+
else if (!memory) skip(id, "not-found");
|
|
24680
|
+
else if (memory.is_deleted || memory.topics_user_managed) skip(id, "excluded");
|
|
24681
|
+
else inputs.push({ id, content: memory.content });
|
|
24682
|
+
}
|
|
24683
|
+
const entitiesByMemory = await extractEntitiesForMemories(inputs, extractOptions);
|
|
24684
|
+
const answered = /* @__PURE__ */ new Map();
|
|
24685
|
+
for (const input of inputs) {
|
|
24686
|
+
const entities = entitiesByMemory.get(input.id);
|
|
24687
|
+
if (entities === void 0) skip(input.id, "llm-unanswered");
|
|
24688
|
+
else
|
|
24689
|
+
answered.set(input.id, { content: input.content, topics: topicInputs(entities, "auto") });
|
|
24690
|
+
}
|
|
24691
|
+
const stampedIds = [];
|
|
24692
|
+
const fail = (id, reason) => {
|
|
24693
|
+
skip(id, reason);
|
|
24694
|
+
entitiesByMemory.delete(id);
|
|
24695
|
+
};
|
|
24696
|
+
try {
|
|
24697
|
+
const kinded = await knownKinds([...answered.values()].flatMap((a) => a.topics));
|
|
24698
|
+
const topics = new Map(
|
|
24699
|
+
[...answered].map(([id, a]) => [id, mergeTopics([], a.topics.map(kinded))])
|
|
24700
|
+
);
|
|
24701
|
+
const unchanged = (memory) => sameTopics(parseTopics(memory.topics), topics.get(memory.memory_id));
|
|
24702
|
+
const { saved, failed } = await mutateMany(
|
|
24703
|
+
[...answered.keys()],
|
|
24704
|
+
(before) => sameTopics(parseTopics(before.topics) ?? [], topics.get(before.memory_id)) ? "metadata" : "edit",
|
|
24705
|
+
(memory) => {
|
|
24706
|
+
if (memory.topics_user_managed || memory.content !== answered.get(memory.memory_id).content)
|
|
24707
|
+
return null;
|
|
24708
|
+
return {
|
|
24709
|
+
...memory,
|
|
24710
|
+
...!unchanged(memory) && {
|
|
24711
|
+
topics: serializeTopics(topics.get(memory.memory_id)),
|
|
24712
|
+
topics_updated_at: Date.now()
|
|
24713
|
+
},
|
|
24714
|
+
topics_extracted_at: Math.max(extractedAt, memory.updated_at),
|
|
24715
|
+
topics_extracted_version: TOPICS_EXTRACTION_VERSION
|
|
24716
|
+
};
|
|
24717
|
+
}
|
|
24718
|
+
);
|
|
24719
|
+
for (const id of answered.keys()) {
|
|
24720
|
+
if (saved.has(id)) stampedIds.push(id);
|
|
24721
|
+
else fail(id, failed.has(id) ? "link-failed" : "link-declined");
|
|
24722
|
+
}
|
|
24723
|
+
if (failed.size)
|
|
24724
|
+
getLogger().warn(
|
|
24725
|
+
"[memory/remote-store] Failed to write extracted topics:",
|
|
24726
|
+
failed.values().next().value
|
|
24727
|
+
);
|
|
24728
|
+
} catch (error) {
|
|
24729
|
+
getLogger().warn("[memory/remote-store] Failed to write extracted topics:", error);
|
|
24730
|
+
for (const id of answered.keys()) fail(id, "link-failed");
|
|
24731
|
+
}
|
|
24732
|
+
return { entitiesByMemory, stampedIds, skippedIds, skippedReasons };
|
|
24733
|
+
},
|
|
24734
|
+
stampTopicsExtracted: async (memoryIds, extractedAt, version = TOPICS_EXTRACTION_VERSION) => {
|
|
24735
|
+
const ids = [...new Set(memoryIds)];
|
|
24736
|
+
const { saved, failed } = await mutateMany(
|
|
24737
|
+
ids,
|
|
24738
|
+
() => "metadata",
|
|
24739
|
+
(memory) => memory.topics_user_managed ? null : { ...memory, topics_extracted_at: extractedAt, topics_extracted_version: version }
|
|
24740
|
+
);
|
|
24741
|
+
if (failed.size)
|
|
24742
|
+
getLogger().warn("[memory/remote-store] Failed to stamp topics:", [...failed.values()]);
|
|
24743
|
+
return ids.filter((id) => saved.has(id));
|
|
24744
|
+
},
|
|
24745
|
+
relinkTopics: () => Promise.resolve([]),
|
|
24746
|
+
backfillTopics: () => Promise.resolve([])
|
|
24443
24747
|
};
|
|
24444
24748
|
const everyState = {
|
|
24445
24749
|
include_deleted: true,
|
|
@@ -24518,6 +24822,7 @@ function createRemoteMemoryStore(options) {
|
|
|
24518
24822
|
};
|
|
24519
24823
|
return {
|
|
24520
24824
|
masksEmbeddingInput: embeddingOptions.maskInput !== void 0,
|
|
24825
|
+
topicMaintenance,
|
|
24521
24826
|
list: async (listOptions = {}) => (await listRows(decrypted, listOptions, listFilters(listOptions), maxOf(listOptions))).map(
|
|
24522
24827
|
(r) => stored(r.memory)
|
|
24523
24828
|
),
|
|
@@ -24602,7 +24907,7 @@ function createRemoteMemoryStore(options) {
|
|
|
24602
24907
|
const kind = patch.kind !== void 0 ? patch.kind : memory.kind;
|
|
24603
24908
|
assertValidKindLevel(kind, level);
|
|
24604
24909
|
memory.content = patch.content;
|
|
24605
|
-
memory.updated_at = Date.now();
|
|
24910
|
+
memory.updated_at = Math.max(Date.now(), (memory.topics_extracted_at ?? 0) + 1);
|
|
24606
24911
|
if (patch.level !== void 0) {
|
|
24607
24912
|
memory.level = level;
|
|
24608
24913
|
memory.scope = scopeForLevel(level);
|
package/dist/react/index.d.mts
CHANGED
|
@@ -3247,12 +3247,10 @@ type StreamingTransportOptions = {
|
|
|
3247
3247
|
inferenceId: string;
|
|
3248
3248
|
}) => void;
|
|
3249
3249
|
/**
|
|
3250
|
-
* Fires
|
|
3251
|
-
*
|
|
3252
|
-
*
|
|
3253
|
-
*
|
|
3254
|
-
* apart from a dead connection (no bytes at all). Not every transport emits it
|
|
3255
|
-
* — the xhr transport does; treat its absence as "no extra liveness info".
|
|
3250
|
+
* Fires when the transport receives bytes, including SSE keep-alive comments.
|
|
3251
|
+
* Consumers can use this callback to reset the idle timeout.
|
|
3252
|
+
* The fetch and XHR transports emit it.
|
|
3253
|
+
* Custom transports can omit it if they cannot report byte activity.
|
|
3256
3254
|
*/
|
|
3257
3255
|
onActivity?: () => void;
|
|
3258
3256
|
};
|
|
@@ -7640,13 +7638,33 @@ interface MemorySubscribeOptions {
|
|
|
7640
7638
|
* from the main interface.
|
|
7641
7639
|
* @public
|
|
7642
7640
|
*/
|
|
7643
|
-
interface MemoryMaintenance {
|
|
7641
|
+
interface MemoryMaintenance extends MemoryTopicMaintenance {
|
|
7644
7642
|
/** Decay sweeper bound to this store's vault (see `createDecaySweeper`). */
|
|
7645
7643
|
createDecaySweeper(options?: Omit<CreateDecaySweeperOptions, "vaultCtx">): DecaySweeper;
|
|
7646
7644
|
/** One page of the topic-extraction backlog (see `getMemoriesNeedingTopicExtractionOp`). */
|
|
7647
7645
|
getTopicBacklog(options?: {
|
|
7648
7646
|
limit?: number;
|
|
7649
7647
|
}): Promise<MemoriesNeedingTopicExtraction>;
|
|
7648
|
+
}
|
|
7649
|
+
/** @public */
|
|
7650
|
+
interface MemoryTopicBacklog {
|
|
7651
|
+
pending: readonly {
|
|
7652
|
+
uniqueId: string;
|
|
7653
|
+
}[];
|
|
7654
|
+
linkedUnstamped: readonly string[];
|
|
7655
|
+
topicsToRelink: readonly string[];
|
|
7656
|
+
topicsBackfill: readonly string[];
|
|
7657
|
+
}
|
|
7658
|
+
/**
|
|
7659
|
+
* Topic-extraction upkeep for either backend. On a remote store `pending` carries ids only, the
|
|
7660
|
+
* other backlog lists are always empty, and `relinkTopics` / `backfillTopics` do nothing.
|
|
7661
|
+
* @public
|
|
7662
|
+
*/
|
|
7663
|
+
interface MemoryTopicMaintenance {
|
|
7664
|
+
/** One page of the topic-extraction backlog, edited or outdated rows first. */
|
|
7665
|
+
getTopicBacklog(options?: {
|
|
7666
|
+
limit?: number;
|
|
7667
|
+
}): Promise<MemoryTopicBacklog>;
|
|
7650
7668
|
/** LLM topic extraction + link + stamp for these memories. */
|
|
7651
7669
|
extractTopics(memoryIds: readonly string[], options: TopicExtractOptions & {
|
|
7652
7670
|
now?: number;
|
|
@@ -7723,6 +7741,8 @@ interface MemoryStore {
|
|
|
7723
7741
|
subscribe(onChange: () => void, options?: MemorySubscribeOptions): () => void;
|
|
7724
7742
|
/** TRANSITIONAL — see {@link MemoryMaintenance}. Absent on a remote backend. */
|
|
7725
7743
|
maintenance?: MemoryMaintenance;
|
|
7744
|
+
/** Topic-extraction upkeep, available on every backend. */
|
|
7745
|
+
readonly topicMaintenance: MemoryTopicMaintenance;
|
|
7726
7746
|
}
|
|
7727
7747
|
|
|
7728
7748
|
/**
|
|
@@ -16371,4 +16391,4 @@ type UseWalletBindingResult = {
|
|
|
16371
16391
|
*/
|
|
16372
16392
|
declare function useWalletBinding(options?: UseWalletBindingOptions): UseWalletBindingResult;
|
|
16373
16393
|
|
|
16374
|
-
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 FileProcessingReason, type FileProcessingStatus, 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 LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, 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 MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryUpdate, 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 RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StreamSmoothingConfig, 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 VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, 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, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, 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, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, 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, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, 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, isAttachedFilesText, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isEncrypted, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, memoryCipher, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, 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, stripLegacyChunkTextOp, 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, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
|
|
16394
|
+
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 FileProcessingReason, type FileProcessingStatus, 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 LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, 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 MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, 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 RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StreamSmoothingConfig, 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 VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, 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, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, 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, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, 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, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, 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, isAttachedFilesText, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isEncrypted, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, memoryCipher, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, 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, stripLegacyChunkTextOp, 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, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
|