@anuma/sdk 6.39.3 → 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 +229 -26
- package/dist/expo/index.d.mts +24 -2
- package/dist/expo/index.d.ts +24 -2
- package/dist/expo/index.mjs +229 -26
- package/dist/react/index.cjs +229 -26
- package/dist/react/index.d.mts +24 -2
- package/dist/react/index.d.ts +24 -2
- package/dist/react/index.mjs +229 -26
- package/dist/server/index.cjs +19 -16
- package/dist/server/index.d.mts +24 -2
- package/dist/server/index.d.ts +24 -2
- package/dist/server/index.mjs +19 -16
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -19876,6 +19876,14 @@ function createLocalMemoryStore(options) {
|
|
|
19876
19876
|
getLogger().warn("[memory/store] Failed to embed memory:", err);
|
|
19877
19877
|
});
|
|
19878
19878
|
};
|
|
19879
|
+
const maintenance = {
|
|
19880
|
+
createDecaySweeper: (sweeperOptions) => createDecaySweeper({ ...sweeperOptions, vaultCtx }),
|
|
19881
|
+
getTopicBacklog: (backlogOptions) => getMemoriesNeedingTopicExtractionOp(vaultCtx, backlogOptions),
|
|
19882
|
+
extractTopics: (memoryIds, extractOptions) => extractAndLinkEntitiesForMemoriesOp(vaultCtx, memoryIds, extractOptions),
|
|
19883
|
+
stampTopicsExtracted: (memoryIds, extractedAt, version) => stampTopicsExtractedAtOp(vaultCtx, memoryIds, extractedAt, version),
|
|
19884
|
+
relinkTopics: (memoryIds) => relinkMemoryTopicsOp(vaultCtx, memoryIds),
|
|
19885
|
+
backfillTopics: (memoryIds) => backfillMemoryTopicsOp(vaultCtx, memoryIds)
|
|
19886
|
+
};
|
|
19879
19887
|
return {
|
|
19880
19888
|
masksEmbeddingInput: options.embeddingOptions.maskInput !== void 0,
|
|
19881
19889
|
list: (listOptions) => getAllVaultMemoriesOp(vaultCtx, listOptions),
|
|
@@ -19889,21 +19897,22 @@ function createLocalMemoryStore(options) {
|
|
|
19889
19897
|
memoriesByTopics: (names) => getMemoriesByEntityNamesOp(entityCtx, names),
|
|
19890
19898
|
topicsByMemories: (memoryIds) => getEntitiesByMemoryIdsOp(entityCtx, memoryIds),
|
|
19891
19899
|
listTopics: async () => {
|
|
19892
|
-
const links = await entityCtx.memoryEntityCollection.query(...linksOwnedBy).
|
|
19900
|
+
const links = await entityCtx.memoryEntityCollection.query(...linksOwnedBy).unsafeFetchRaw();
|
|
19893
19901
|
const members = /* @__PURE__ */ new Map();
|
|
19894
19902
|
for (const link of links) {
|
|
19895
|
-
const entityId = String(link.
|
|
19903
|
+
const entityId = String(link.entity_id);
|
|
19896
19904
|
const set = members.get(entityId) ?? /* @__PURE__ */ new Set();
|
|
19897
|
-
set.add(String(link.
|
|
19905
|
+
set.add(String(link.memory_id));
|
|
19898
19906
|
members.set(entityId, set);
|
|
19899
19907
|
}
|
|
19900
|
-
const entities = userId === void 0 ? await entityCtx.entityCollection.query().
|
|
19908
|
+
const entities = userId === void 0 ? await entityCtx.entityCollection.query().unsafeFetchRaw() : members.size ? await entityCtx.entityCollection.query(import_watermelondb23.Q.where("id", import_watermelondb23.Q.oneOf([...members.keys()]))).unsafeFetchRaw() : [];
|
|
19901
19909
|
const byName = /* @__PURE__ */ new Map();
|
|
19902
19910
|
for (const entity of entities) {
|
|
19903
|
-
const
|
|
19904
|
-
const
|
|
19905
|
-
byName.
|
|
19906
|
-
|
|
19911
|
+
const name = String(entity.canonical_name);
|
|
19912
|
+
const count2 = members.get(String(entity.id))?.size ?? 0;
|
|
19913
|
+
const existing = byName.get(name);
|
|
19914
|
+
byName.set(name, {
|
|
19915
|
+
name,
|
|
19907
19916
|
kind: existing?.kind ?? entity.kind ?? null,
|
|
19908
19917
|
memoryCount: (existing?.memoryCount ?? 0) + count2
|
|
19909
19918
|
});
|
|
@@ -19994,14 +20003,8 @@ function createLocalMemoryStore(options) {
|
|
|
19994
20003
|
}
|
|
19995
20004
|
return () => subscriptions.forEach((s) => s.unsubscribe());
|
|
19996
20005
|
},
|
|
19997
|
-
maintenance
|
|
19998
|
-
|
|
19999
|
-
getTopicBacklog: (backlogOptions) => getMemoriesNeedingTopicExtractionOp(vaultCtx, backlogOptions),
|
|
20000
|
-
extractTopics: (memoryIds, extractOptions) => extractAndLinkEntitiesForMemoriesOp(vaultCtx, memoryIds, extractOptions),
|
|
20001
|
-
stampTopicsExtracted: (memoryIds, extractedAt, version) => stampTopicsExtractedAtOp(vaultCtx, memoryIds, extractedAt, version),
|
|
20002
|
-
relinkTopics: (memoryIds) => relinkMemoryTopicsOp(vaultCtx, memoryIds),
|
|
20003
|
-
backfillTopics: (memoryIds) => backfillMemoryTopicsOp(vaultCtx, memoryIds)
|
|
20004
|
-
}
|
|
20006
|
+
maintenance,
|
|
20007
|
+
topicMaintenance: maintenance
|
|
20005
20008
|
};
|
|
20006
20009
|
}
|
|
20007
20010
|
|
|
@@ -20786,7 +20789,7 @@ function createRemoteMemoryPipeline(options) {
|
|
|
20786
20789
|
const memory = {
|
|
20787
20790
|
...snapshot.memory,
|
|
20788
20791
|
content: patch.content,
|
|
20789
|
-
updated_at: patch.preserveUpdatedAt ? snapshot.memory.updated_at : Date.now()
|
|
20792
|
+
updated_at: patch.preserveUpdatedAt ? snapshot.memory.updated_at : Math.max(Date.now(), (snapshot.memory.topics_extracted_at ?? 0) + 1)
|
|
20790
20793
|
};
|
|
20791
20794
|
if (patch.scope !== void 0) memory.scope = patch.scope;
|
|
20792
20795
|
if (patch.embedding === void 0 && patch.content !== snapshot.memory.content) {
|
|
@@ -20920,6 +20923,7 @@ function projection({ memory }) {
|
|
|
20920
20923
|
};
|
|
20921
20924
|
}
|
|
20922
20925
|
function relevant(change, options) {
|
|
20926
|
+
if (change === "metadata") return false;
|
|
20923
20927
|
return options.includeDeleted ? change === "membership" : change !== "embedding" || !!options.embeddings;
|
|
20924
20928
|
}
|
|
20925
20929
|
function safely(onChange) {
|
|
@@ -21011,6 +21015,17 @@ function mergeTopics(existing, added) {
|
|
|
21011
21015
|
}
|
|
21012
21016
|
return [...byName.values()];
|
|
21013
21017
|
}
|
|
21018
|
+
function sameTopics(stored2, next) {
|
|
21019
|
+
const key = (t) => JSON.stringify([t.name, t.kind ?? null, t.source]);
|
|
21020
|
+
if (stored2 === null || stored2.length !== next.length) return false;
|
|
21021
|
+
const keys = new Set(stored2.map(key));
|
|
21022
|
+
return next.every((t) => keys.has(key(t)));
|
|
21023
|
+
}
|
|
21024
|
+
function extractionDue(memory) {
|
|
21025
|
+
const stamp = memory.topics_extracted_at;
|
|
21026
|
+
if (stamp === void 0 || stamp === null) return "fresh";
|
|
21027
|
+
return memory.updated_at > stamp || (memory.topics_extracted_version ?? 0) < TOPICS_EXTRACTION_VERSION ? "stale" : null;
|
|
21028
|
+
}
|
|
21014
21029
|
function canonicalTopics(row) {
|
|
21015
21030
|
return new Set((parseTopics(row.topics) ?? []).map((topic) => normalizeEntityName(topic.name)));
|
|
21016
21031
|
}
|
|
@@ -21023,7 +21038,12 @@ function createRemoteMemoryStore(options) {
|
|
|
21023
21038
|
const seen = /* @__PURE__ */ new Map();
|
|
21024
21039
|
let timer;
|
|
21025
21040
|
const notify = (change, records = []) => {
|
|
21026
|
-
if (timer)
|
|
21041
|
+
if (timer)
|
|
21042
|
+
for (const record2 of records) {
|
|
21043
|
+
const previous = seen.get(record2.memory.memory_id);
|
|
21044
|
+
if ((previous?.version ?? 0) + 1 === record2.version)
|
|
21045
|
+
seen.set(record2.memory.memory_id, record2);
|
|
21046
|
+
}
|
|
21027
21047
|
for (const subscriber of [...subscribers])
|
|
21028
21048
|
if (relevant(change, subscriber.options)) safely(subscriber.onChange);
|
|
21029
21049
|
};
|
|
@@ -21084,15 +21104,72 @@ function createRemoteMemoryStore(options) {
|
|
|
21084
21104
|
const record2 = await persistence.get(id);
|
|
21085
21105
|
return record2 && !record2.memory.is_deleted ? record2 : null;
|
|
21086
21106
|
};
|
|
21087
|
-
const
|
|
21107
|
+
const mutateLocked = async (id, change, edit) => {
|
|
21088
21108
|
const record2 = await live(id);
|
|
21089
21109
|
if (!record2) return null;
|
|
21090
21110
|
const next = edit(structuredClone(record2.memory));
|
|
21091
21111
|
if (!next) return null;
|
|
21092
21112
|
const saved = await persistence.put(next, record2);
|
|
21093
|
-
notify(change, [saved]);
|
|
21113
|
+
notify(typeof change === "function" ? change(record2.memory) : change, [saved]);
|
|
21094
21114
|
return saved;
|
|
21095
|
-
}
|
|
21115
|
+
};
|
|
21116
|
+
const mutate = (id, change, edit) => serialized(id, () => mutateLocked(id, change, edit));
|
|
21117
|
+
const serializedAll = (ids, task) => [...new Set(ids)].sort().reduceRight((inner, id) => () => serialized(id, inner), task)();
|
|
21118
|
+
const mutateMany = async (ids, change, edit) => {
|
|
21119
|
+
const saved = /* @__PURE__ */ new Map();
|
|
21120
|
+
const failed = /* @__PURE__ */ new Map();
|
|
21121
|
+
for (const slice of chunks([...new Set(ids)], MAX_BATCH)) {
|
|
21122
|
+
await serializedAll(slice, async () => {
|
|
21123
|
+
const writes = [];
|
|
21124
|
+
let read;
|
|
21125
|
+
try {
|
|
21126
|
+
read = await readEveryState(slice);
|
|
21127
|
+
} catch (error) {
|
|
21128
|
+
for (const id of slice) failed.set(id, error);
|
|
21129
|
+
return;
|
|
21130
|
+
}
|
|
21131
|
+
const { records, unreadable } = read;
|
|
21132
|
+
for (const id of slice) {
|
|
21133
|
+
const record2 = records.get(id);
|
|
21134
|
+
if (unreadable.has(id)) failed.set(id, new Error(`Memory ${id} could not be decrypted`));
|
|
21135
|
+
else if (!record2) failed.set(id, new Error(`Memory ${id} was not found`));
|
|
21136
|
+
else if (!record2.memory.is_deleted) {
|
|
21137
|
+
const memory = edit(structuredClone(record2.memory));
|
|
21138
|
+
if (memory) writes.push({ before: record2, memory });
|
|
21139
|
+
}
|
|
21140
|
+
}
|
|
21141
|
+
if (writes.length === 0) return;
|
|
21142
|
+
try {
|
|
21143
|
+
const written = await persistence.putMany(
|
|
21144
|
+
writes.map(({ before, memory }) => ({ memory, expectedVersion: before }))
|
|
21145
|
+
);
|
|
21146
|
+
const byChange = /* @__PURE__ */ new Map();
|
|
21147
|
+
written.forEach((record2, i) => {
|
|
21148
|
+
saved.set(record2.memory.memory_id, record2);
|
|
21149
|
+
const kind = change(writes[i].before.memory);
|
|
21150
|
+
byChange.set(kind, [...byChange.get(kind) ?? [], record2]);
|
|
21151
|
+
});
|
|
21152
|
+
for (const [kind, changed] of byChange) notify(kind, changed);
|
|
21153
|
+
} catch (error) {
|
|
21154
|
+
const perRow = error instanceof RemoteMemoryError && (error.code === "version_conflict" || error.status === 429);
|
|
21155
|
+
for (const { before } of writes) {
|
|
21156
|
+
const id = before.memory.memory_id;
|
|
21157
|
+
if (!perRow) {
|
|
21158
|
+
failed.set(id, error);
|
|
21159
|
+
continue;
|
|
21160
|
+
}
|
|
21161
|
+
try {
|
|
21162
|
+
const record2 = await mutateLocked(id, change, edit);
|
|
21163
|
+
if (record2) saved.set(id, record2);
|
|
21164
|
+
} catch (rowError) {
|
|
21165
|
+
failed.set(id, rowError);
|
|
21166
|
+
}
|
|
21167
|
+
}
|
|
21168
|
+
}
|
|
21169
|
+
});
|
|
21170
|
+
}
|
|
21171
|
+
return { saved, failed };
|
|
21172
|
+
};
|
|
21096
21173
|
const embedInBackground = ({ memory: { memory_id: id, content } }) => {
|
|
21097
21174
|
generateEmbedding(content, embeddingOptions).then(
|
|
21098
21175
|
(vector) => serialized(id, async () => {
|
|
@@ -21148,11 +21225,10 @@ function createRemoteMemoryStore(options) {
|
|
|
21148
21225
|
return records.map((record2) => stored(record2.memory));
|
|
21149
21226
|
};
|
|
21150
21227
|
const asStored = (record2) => record2 ? stored(record2.memory) : null;
|
|
21151
|
-
const
|
|
21228
|
+
const knownKinds = async (topics) => {
|
|
21152
21229
|
const unkinded = [
|
|
21153
21230
|
...new Set(topics.filter((t) => !t.kind).map((t) => normalizeEntityName(t.name)))
|
|
21154
21231
|
];
|
|
21155
|
-
if (unkinded.length === 0) return topics;
|
|
21156
21232
|
const kinds = /* @__PURE__ */ new Map();
|
|
21157
21233
|
for (const names of chunks(unkinded, MAX_QUERY_TOPICS)) {
|
|
21158
21234
|
for (const { memory } of await pages(metadata, {
|
|
@@ -21167,10 +21243,136 @@ function createRemoteMemoryStore(options) {
|
|
|
21167
21243
|
}
|
|
21168
21244
|
}
|
|
21169
21245
|
}
|
|
21170
|
-
return
|
|
21246
|
+
return (topic) => {
|
|
21171
21247
|
const kind = topic.kind ?? kinds.get(normalizeEntityName(topic.name));
|
|
21172
21248
|
return kind ? { ...topic, kind } : topic;
|
|
21173
|
-
}
|
|
21249
|
+
};
|
|
21250
|
+
};
|
|
21251
|
+
const withKnownKinds = async (topics) => topics.map(await knownKinds(topics));
|
|
21252
|
+
const readEveryState = async (ids) => {
|
|
21253
|
+
const records = /* @__PURE__ */ new Map();
|
|
21254
|
+
const unreadable = /* @__PURE__ */ new Set();
|
|
21255
|
+
for (const memory_ids of chunks(ids, MAX_QUERY_IDS)) {
|
|
21256
|
+
let cursor2;
|
|
21257
|
+
do {
|
|
21258
|
+
const page = await persistence.query({
|
|
21259
|
+
memory_ids,
|
|
21260
|
+
include_deleted: true,
|
|
21261
|
+
include_archived: true,
|
|
21262
|
+
include_quarantined: true,
|
|
21263
|
+
include_superseded: true,
|
|
21264
|
+
limit: 200,
|
|
21265
|
+
...cursor2 && { cursor: cursor2 }
|
|
21266
|
+
});
|
|
21267
|
+
warnFailed(page.failed);
|
|
21268
|
+
for (const record2 of page.items) records.set(record2.memory.memory_id, record2);
|
|
21269
|
+
for (const failure of page.failed) unreadable.add(failure.memory_id);
|
|
21270
|
+
cursor2 = page.next_cursor;
|
|
21271
|
+
} while (cursor2);
|
|
21272
|
+
}
|
|
21273
|
+
return { records, unreadable };
|
|
21274
|
+
};
|
|
21275
|
+
const topicMaintenance = {
|
|
21276
|
+
getTopicBacklog: async (backlogOptions = {}) => {
|
|
21277
|
+
const stale = [];
|
|
21278
|
+
const fresh = [];
|
|
21279
|
+
for (const { memory } of await pages(metadata, { order: "created" })) {
|
|
21280
|
+
if (memory.topics_user_managed) continue;
|
|
21281
|
+
const due = extractionDue(memory);
|
|
21282
|
+
if (due === "stale") stale.push(memory.memory_id);
|
|
21283
|
+
else if (due === "fresh") fresh.push(memory.memory_id);
|
|
21284
|
+
}
|
|
21285
|
+
const limit = backlogOptions.limit !== void 0 && backlogOptions.limit > 0 ? backlogOptions.limit : Infinity;
|
|
21286
|
+
return {
|
|
21287
|
+
pending: [...stale, ...fresh].slice(0, limit).map((uniqueId) => ({ uniqueId })),
|
|
21288
|
+
linkedUnstamped: [],
|
|
21289
|
+
topicsToRelink: [],
|
|
21290
|
+
topicsBackfill: []
|
|
21291
|
+
};
|
|
21292
|
+
},
|
|
21293
|
+
extractTopics: async (memoryIds, extractOptions) => {
|
|
21294
|
+
const extractedAt = extractOptions.now ?? Date.now();
|
|
21295
|
+
const skippedIds = [];
|
|
21296
|
+
const skippedReasons = /* @__PURE__ */ new Map();
|
|
21297
|
+
const skip = (id, reason) => {
|
|
21298
|
+
if (skippedReasons.has(id)) return;
|
|
21299
|
+
skippedIds.push(id);
|
|
21300
|
+
skippedReasons.set(id, reason);
|
|
21301
|
+
};
|
|
21302
|
+
const ids = [...new Set(memoryIds)];
|
|
21303
|
+
const { records, unreadable } = await readEveryState(ids);
|
|
21304
|
+
const inputs = [];
|
|
21305
|
+
for (const id of ids) {
|
|
21306
|
+
const memory = records.get(id)?.memory;
|
|
21307
|
+
if (unreadable.has(id)) skip(id, "unreadable");
|
|
21308
|
+
else if (!memory) skip(id, "not-found");
|
|
21309
|
+
else if (memory.is_deleted || memory.topics_user_managed) skip(id, "excluded");
|
|
21310
|
+
else inputs.push({ id, content: memory.content });
|
|
21311
|
+
}
|
|
21312
|
+
const entitiesByMemory = await extractEntitiesForMemories(inputs, extractOptions);
|
|
21313
|
+
const answered = /* @__PURE__ */ new Map();
|
|
21314
|
+
for (const input of inputs) {
|
|
21315
|
+
const entities = entitiesByMemory.get(input.id);
|
|
21316
|
+
if (entities === void 0) skip(input.id, "llm-unanswered");
|
|
21317
|
+
else
|
|
21318
|
+
answered.set(input.id, { content: input.content, topics: topicInputs(entities, "auto") });
|
|
21319
|
+
}
|
|
21320
|
+
const stampedIds = [];
|
|
21321
|
+
const fail = (id, reason) => {
|
|
21322
|
+
skip(id, reason);
|
|
21323
|
+
entitiesByMemory.delete(id);
|
|
21324
|
+
};
|
|
21325
|
+
try {
|
|
21326
|
+
const kinded = await knownKinds([...answered.values()].flatMap((a) => a.topics));
|
|
21327
|
+
const topics = new Map(
|
|
21328
|
+
[...answered].map(([id, a]) => [id, mergeTopics([], a.topics.map(kinded))])
|
|
21329
|
+
);
|
|
21330
|
+
const unchanged = (memory) => sameTopics(parseTopics(memory.topics), topics.get(memory.memory_id));
|
|
21331
|
+
const { saved, failed } = await mutateMany(
|
|
21332
|
+
[...answered.keys()],
|
|
21333
|
+
(before) => sameTopics(parseTopics(before.topics) ?? [], topics.get(before.memory_id)) ? "metadata" : "edit",
|
|
21334
|
+
(memory) => {
|
|
21335
|
+
if (memory.topics_user_managed || memory.content !== answered.get(memory.memory_id).content)
|
|
21336
|
+
return null;
|
|
21337
|
+
return {
|
|
21338
|
+
...memory,
|
|
21339
|
+
...!unchanged(memory) && {
|
|
21340
|
+
topics: serializeTopics(topics.get(memory.memory_id)),
|
|
21341
|
+
topics_updated_at: Date.now()
|
|
21342
|
+
},
|
|
21343
|
+
topics_extracted_at: Math.max(extractedAt, memory.updated_at),
|
|
21344
|
+
topics_extracted_version: TOPICS_EXTRACTION_VERSION
|
|
21345
|
+
};
|
|
21346
|
+
}
|
|
21347
|
+
);
|
|
21348
|
+
for (const id of answered.keys()) {
|
|
21349
|
+
if (saved.has(id)) stampedIds.push(id);
|
|
21350
|
+
else fail(id, failed.has(id) ? "link-failed" : "link-declined");
|
|
21351
|
+
}
|
|
21352
|
+
if (failed.size)
|
|
21353
|
+
getLogger().warn(
|
|
21354
|
+
"[memory/remote-store] Failed to write extracted topics:",
|
|
21355
|
+
failed.values().next().value
|
|
21356
|
+
);
|
|
21357
|
+
} catch (error) {
|
|
21358
|
+
getLogger().warn("[memory/remote-store] Failed to write extracted topics:", error);
|
|
21359
|
+
for (const id of answered.keys()) fail(id, "link-failed");
|
|
21360
|
+
}
|
|
21361
|
+
return { entitiesByMemory, stampedIds, skippedIds, skippedReasons };
|
|
21362
|
+
},
|
|
21363
|
+
stampTopicsExtracted: async (memoryIds, extractedAt, version = TOPICS_EXTRACTION_VERSION) => {
|
|
21364
|
+
const ids = [...new Set(memoryIds)];
|
|
21365
|
+
const { saved, failed } = await mutateMany(
|
|
21366
|
+
ids,
|
|
21367
|
+
() => "metadata",
|
|
21368
|
+
(memory) => memory.topics_user_managed ? null : { ...memory, topics_extracted_at: extractedAt, topics_extracted_version: version }
|
|
21369
|
+
);
|
|
21370
|
+
if (failed.size)
|
|
21371
|
+
getLogger().warn("[memory/remote-store] Failed to stamp topics:", [...failed.values()]);
|
|
21372
|
+
return ids.filter((id) => saved.has(id));
|
|
21373
|
+
},
|
|
21374
|
+
relinkTopics: () => Promise.resolve([]),
|
|
21375
|
+
backfillTopics: () => Promise.resolve([])
|
|
21174
21376
|
};
|
|
21175
21377
|
const everyState = {
|
|
21176
21378
|
include_deleted: true,
|
|
@@ -21249,6 +21451,7 @@ function createRemoteMemoryStore(options) {
|
|
|
21249
21451
|
};
|
|
21250
21452
|
return {
|
|
21251
21453
|
masksEmbeddingInput: embeddingOptions.maskInput !== void 0,
|
|
21454
|
+
topicMaintenance,
|
|
21252
21455
|
list: async (listOptions = {}) => (await listRows(decrypted, listOptions, listFilters(listOptions), maxOf(listOptions))).map(
|
|
21253
21456
|
(r) => stored(r.memory)
|
|
21254
21457
|
),
|
|
@@ -21333,7 +21536,7 @@ function createRemoteMemoryStore(options) {
|
|
|
21333
21536
|
const kind = patch.kind !== void 0 ? patch.kind : memory.kind;
|
|
21334
21537
|
assertValidKindLevel(kind, level);
|
|
21335
21538
|
memory.content = patch.content;
|
|
21336
|
-
memory.updated_at = Date.now();
|
|
21539
|
+
memory.updated_at = Math.max(Date.now(), (memory.topics_extracted_at ?? 0) + 1);
|
|
21337
21540
|
if (patch.level !== void 0) {
|
|
21338
21541
|
memory.level = level;
|
|
21339
21542
|
memory.scope = scopeForLevel(level);
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -6500,13 +6500,33 @@ interface MemorySubscribeOptions {
|
|
|
6500
6500
|
* from the main interface.
|
|
6501
6501
|
* @public
|
|
6502
6502
|
*/
|
|
6503
|
-
interface MemoryMaintenance {
|
|
6503
|
+
interface MemoryMaintenance extends MemoryTopicMaintenance {
|
|
6504
6504
|
/** Decay sweeper bound to this store's vault (see `createDecaySweeper`). */
|
|
6505
6505
|
createDecaySweeper(options?: Omit<CreateDecaySweeperOptions, "vaultCtx">): DecaySweeper;
|
|
6506
6506
|
/** One page of the topic-extraction backlog (see `getMemoriesNeedingTopicExtractionOp`). */
|
|
6507
6507
|
getTopicBacklog(options?: {
|
|
6508
6508
|
limit?: number;
|
|
6509
6509
|
}): Promise<MemoriesNeedingTopicExtraction>;
|
|
6510
|
+
}
|
|
6511
|
+
/** @public */
|
|
6512
|
+
interface MemoryTopicBacklog {
|
|
6513
|
+
pending: readonly {
|
|
6514
|
+
uniqueId: string;
|
|
6515
|
+
}[];
|
|
6516
|
+
linkedUnstamped: readonly string[];
|
|
6517
|
+
topicsToRelink: readonly string[];
|
|
6518
|
+
topicsBackfill: readonly string[];
|
|
6519
|
+
}
|
|
6520
|
+
/**
|
|
6521
|
+
* Topic-extraction upkeep for either backend. On a remote store `pending` carries ids only, the
|
|
6522
|
+
* other backlog lists are always empty, and `relinkTopics` / `backfillTopics` do nothing.
|
|
6523
|
+
* @public
|
|
6524
|
+
*/
|
|
6525
|
+
interface MemoryTopicMaintenance {
|
|
6526
|
+
/** One page of the topic-extraction backlog, edited or outdated rows first. */
|
|
6527
|
+
getTopicBacklog(options?: {
|
|
6528
|
+
limit?: number;
|
|
6529
|
+
}): Promise<MemoryTopicBacklog>;
|
|
6510
6530
|
/** LLM topic extraction + link + stamp for these memories. */
|
|
6511
6531
|
extractTopics(memoryIds: readonly string[], options: TopicExtractOptions & {
|
|
6512
6532
|
now?: number;
|
|
@@ -6583,6 +6603,8 @@ interface MemoryStore {
|
|
|
6583
6603
|
subscribe(onChange: () => void, options?: MemorySubscribeOptions): () => void;
|
|
6584
6604
|
/** TRANSITIONAL — see {@link MemoryMaintenance}. Absent on a remote backend. */
|
|
6585
6605
|
maintenance?: MemoryMaintenance;
|
|
6606
|
+
/** Topic-extraction upkeep, available on every backend. */
|
|
6607
|
+
readonly topicMaintenance: MemoryTopicMaintenance;
|
|
6586
6608
|
}
|
|
6587
6609
|
|
|
6588
6610
|
/**
|
|
@@ -11276,4 +11298,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11276
11298
|
*/
|
|
11277
11299
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11278
11300
|
|
|
11279
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, 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 ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11301
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, 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 ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -6500,13 +6500,33 @@ interface MemorySubscribeOptions {
|
|
|
6500
6500
|
* from the main interface.
|
|
6501
6501
|
* @public
|
|
6502
6502
|
*/
|
|
6503
|
-
interface MemoryMaintenance {
|
|
6503
|
+
interface MemoryMaintenance extends MemoryTopicMaintenance {
|
|
6504
6504
|
/** Decay sweeper bound to this store's vault (see `createDecaySweeper`). */
|
|
6505
6505
|
createDecaySweeper(options?: Omit<CreateDecaySweeperOptions, "vaultCtx">): DecaySweeper;
|
|
6506
6506
|
/** One page of the topic-extraction backlog (see `getMemoriesNeedingTopicExtractionOp`). */
|
|
6507
6507
|
getTopicBacklog(options?: {
|
|
6508
6508
|
limit?: number;
|
|
6509
6509
|
}): Promise<MemoriesNeedingTopicExtraction>;
|
|
6510
|
+
}
|
|
6511
|
+
/** @public */
|
|
6512
|
+
interface MemoryTopicBacklog {
|
|
6513
|
+
pending: readonly {
|
|
6514
|
+
uniqueId: string;
|
|
6515
|
+
}[];
|
|
6516
|
+
linkedUnstamped: readonly string[];
|
|
6517
|
+
topicsToRelink: readonly string[];
|
|
6518
|
+
topicsBackfill: readonly string[];
|
|
6519
|
+
}
|
|
6520
|
+
/**
|
|
6521
|
+
* Topic-extraction upkeep for either backend. On a remote store `pending` carries ids only, the
|
|
6522
|
+
* other backlog lists are always empty, and `relinkTopics` / `backfillTopics` do nothing.
|
|
6523
|
+
* @public
|
|
6524
|
+
*/
|
|
6525
|
+
interface MemoryTopicMaintenance {
|
|
6526
|
+
/** One page of the topic-extraction backlog, edited or outdated rows first. */
|
|
6527
|
+
getTopicBacklog(options?: {
|
|
6528
|
+
limit?: number;
|
|
6529
|
+
}): Promise<MemoryTopicBacklog>;
|
|
6510
6530
|
/** LLM topic extraction + link + stamp for these memories. */
|
|
6511
6531
|
extractTopics(memoryIds: readonly string[], options: TopicExtractOptions & {
|
|
6512
6532
|
now?: number;
|
|
@@ -6583,6 +6603,8 @@ interface MemoryStore {
|
|
|
6583
6603
|
subscribe(onChange: () => void, options?: MemorySubscribeOptions): () => void;
|
|
6584
6604
|
/** TRANSITIONAL — see {@link MemoryMaintenance}. Absent on a remote backend. */
|
|
6585
6605
|
maintenance?: MemoryMaintenance;
|
|
6606
|
+
/** Topic-extraction upkeep, available on every backend. */
|
|
6607
|
+
readonly topicMaintenance: MemoryTopicMaintenance;
|
|
6586
6608
|
}
|
|
6587
6609
|
|
|
6588
6610
|
/**
|
|
@@ -11276,4 +11298,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11276
11298
|
*/
|
|
11277
11299
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11278
11300
|
|
|
11279
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, 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 ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11301
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, 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 ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|