@anuma/sdk 7.3.4 → 7.5.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 +215 -15
- package/dist/expo/index.d.mts +33 -1
- package/dist/expo/index.d.ts +33 -1
- package/dist/expo/index.mjs +215 -15
- package/dist/react/index.cjs +215 -15
- package/dist/react/index.d.mts +33 -1
- package/dist/react/index.d.ts +33 -1
- package/dist/react/index.mjs +215 -15
- package/dist/server/index.cjs +72 -15
- package/dist/server/index.d.mts +33 -1
- package/dist/server/index.d.ts +33 -1
- package/dist/server/index.mjs +72 -15
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -18739,9 +18739,51 @@ function isBorderline(input) {
|
|
|
18739
18739
|
}
|
|
18740
18740
|
return false;
|
|
18741
18741
|
}
|
|
18742
|
+
function vaultDecayBackend(vaultCtx) {
|
|
18743
|
+
return {
|
|
18744
|
+
candidates: () => getDecayCandidatesRawOp(vaultCtx),
|
|
18745
|
+
archive: async (rows, now) => {
|
|
18746
|
+
const archived = /* @__PURE__ */ new Set();
|
|
18747
|
+
for (const c of rows) {
|
|
18748
|
+
const ok = await archiveVaultMemoryOp(vaultCtx, c.uniqueId, {
|
|
18749
|
+
now,
|
|
18750
|
+
expectedUpdatedAt: c.updatedAt,
|
|
18751
|
+
expectedLastObservedAt: c.lastObservedAt ?? null
|
|
18752
|
+
});
|
|
18753
|
+
if (ok) archived.add(c.uniqueId);
|
|
18754
|
+
}
|
|
18755
|
+
return archived;
|
|
18756
|
+
},
|
|
18757
|
+
hardDelete: async (rows, deleteOptions) => {
|
|
18758
|
+
const deleted = /* @__PURE__ */ new Set();
|
|
18759
|
+
for (const c of rows) {
|
|
18760
|
+
if (await hardDeleteDecayedOp(vaultCtx, c.uniqueId, deleteOptions)) deleted.add(c.uniqueId);
|
|
18761
|
+
}
|
|
18762
|
+
return deleted;
|
|
18763
|
+
}
|
|
18764
|
+
};
|
|
18765
|
+
}
|
|
18742
18766
|
function createDecaySweeper(options) {
|
|
18743
|
-
const { vaultCtx,
|
|
18767
|
+
const { vaultCtx, ...sweepOptions } = options;
|
|
18744
18768
|
assertVaultScopeForSweep(vaultCtx);
|
|
18769
|
+
return createDecaySweeperOver(vaultDecayBackend(vaultCtx), sweepOptions);
|
|
18770
|
+
}
|
|
18771
|
+
function ruleBasedDecayOptions(options = {}) {
|
|
18772
|
+
if (options.classifier !== void 0)
|
|
18773
|
+
throw new Error(
|
|
18774
|
+
"MemoryStore.decay sweeps by rule only; a decay classifier needs decrypted content"
|
|
18775
|
+
);
|
|
18776
|
+
const { now, policy, onSwept, onError } = options;
|
|
18777
|
+
return {
|
|
18778
|
+
...now !== void 0 && { now },
|
|
18779
|
+
...policy && { policy },
|
|
18780
|
+
...onSwept && { onSwept },
|
|
18781
|
+
...onError && { onError }
|
|
18782
|
+
};
|
|
18783
|
+
}
|
|
18784
|
+
function createDecaySweeperOver(backend, options) {
|
|
18785
|
+
const { policy, classifier, onSwept, onError } = options;
|
|
18786
|
+
const maxTransitions = options.maxTransitionsPerSweep ?? Number.POSITIVE_INFINITY;
|
|
18745
18787
|
const hardDeleteWindowMs = policy?.hardDeleteWindowMs ?? DEFAULT_DECAY_POLICY.hardDeleteWindowMs;
|
|
18746
18788
|
const maxClassifierCalls = options.maxClassifierCallsPerSweep ?? DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP;
|
|
18747
18789
|
const classifierCache = /* @__PURE__ */ new Map();
|
|
@@ -18783,7 +18825,7 @@ function createDecaySweeper(options) {
|
|
|
18783
18825
|
const now = resolveNow(options.now);
|
|
18784
18826
|
let candidates;
|
|
18785
18827
|
try {
|
|
18786
|
-
candidates = await
|
|
18828
|
+
candidates = await backend.candidates();
|
|
18787
18829
|
} catch (err) {
|
|
18788
18830
|
onError?.(err instanceof Error ? err : new Error(String(err)));
|
|
18789
18831
|
return emptyResult();
|
|
@@ -18806,25 +18848,37 @@ function createDecaySweeper(options) {
|
|
|
18806
18848
|
result.scanned = candidates.length;
|
|
18807
18849
|
result.classifierCalls = sweep.classifierCalls;
|
|
18808
18850
|
result.classifierCapHits = sweep.classifierCapHits;
|
|
18851
|
+
let landed = 0;
|
|
18852
|
+
const apply = async (queue, run, count2) => {
|
|
18853
|
+
let next = 0;
|
|
18854
|
+
while (next < queue.length && landed < maxTransitions) {
|
|
18855
|
+
const batch = queue.slice(next, next + (maxTransitions - landed));
|
|
18856
|
+
next += batch.length;
|
|
18857
|
+
const done = await run(batch.map(({ candidate }) => candidate));
|
|
18858
|
+
for (const { candidate, source } of batch) {
|
|
18859
|
+
if (!done.has(candidate.uniqueId)) continue;
|
|
18860
|
+
landed++;
|
|
18861
|
+
count2(source);
|
|
18862
|
+
}
|
|
18863
|
+
}
|
|
18864
|
+
};
|
|
18809
18865
|
try {
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
expectedLastObservedAt: c.lastObservedAt ?? null
|
|
18815
|
-
});
|
|
18816
|
-
if (ok) {
|
|
18866
|
+
await apply(
|
|
18867
|
+
toArchive,
|
|
18868
|
+
(rows) => backend.archive(rows, now),
|
|
18869
|
+
(source) => {
|
|
18817
18870
|
result.archived++;
|
|
18818
18871
|
result[source].archived++;
|
|
18819
18872
|
}
|
|
18820
|
-
|
|
18821
|
-
|
|
18822
|
-
|
|
18823
|
-
|
|
18873
|
+
);
|
|
18874
|
+
await apply(
|
|
18875
|
+
toDelete,
|
|
18876
|
+
(rows) => backend.hardDelete(rows, { hardDeleteWindowMs, now }),
|
|
18877
|
+
(source) => {
|
|
18824
18878
|
result.deleted++;
|
|
18825
18879
|
result[source].deleted++;
|
|
18826
18880
|
}
|
|
18827
|
-
|
|
18881
|
+
);
|
|
18828
18882
|
} catch (err) {
|
|
18829
18883
|
onError?.(err instanceof Error ? err : new Error(String(err)));
|
|
18830
18884
|
}
|
|
@@ -20883,7 +20937,10 @@ function createLocalMemoryStore(options) {
|
|
|
20883
20937
|
return () => subscriptions.forEach((s) => s.unsubscribe());
|
|
20884
20938
|
},
|
|
20885
20939
|
maintenance,
|
|
20886
|
-
topicMaintenance: maintenance
|
|
20940
|
+
topicMaintenance: maintenance,
|
|
20941
|
+
decay: {
|
|
20942
|
+
createDecaySweeper: (sweeperOptions) => createDecaySweeper({ ...ruleBasedDecayOptions(sweeperOptions), vaultCtx })
|
|
20943
|
+
}
|
|
20887
20944
|
};
|
|
20888
20945
|
}
|
|
20889
20946
|
|
|
@@ -22279,6 +22336,9 @@ var MAX_QUERY_TOPICS = 100;
|
|
|
22279
22336
|
var MAX_QUERY_FILTER = 20;
|
|
22280
22337
|
var GRAPH_LANE_ROWS = 256;
|
|
22281
22338
|
var TEMPORAL_LANE_ROWS = 256;
|
|
22339
|
+
var REPAIR_ROWS = 50;
|
|
22340
|
+
var REPAIR_SCAN = 2e3;
|
|
22341
|
+
var DECAY_TRANSITIONS_PER_SWEEP = 200;
|
|
22282
22342
|
var RemoteMemoryPartialCreateError = class extends Error {
|
|
22283
22343
|
constructor(created, cause) {
|
|
22284
22344
|
super(`createMany stored ${created.length} memories before a batch failed`);
|
|
@@ -22287,6 +22347,9 @@ var RemoteMemoryPartialCreateError = class extends Error {
|
|
|
22287
22347
|
this.name = "RemoteMemoryPartialCreateError";
|
|
22288
22348
|
}
|
|
22289
22349
|
};
|
|
22350
|
+
function rejectsInput(error) {
|
|
22351
|
+
return error instanceof EmbeddingHttpError && error.status !== void 0 && error.status >= 400 && error.status < 500 && error.status !== 429 && !isFatalEmbeddingError(error);
|
|
22352
|
+
}
|
|
22290
22353
|
function warnFailed(failed) {
|
|
22291
22354
|
if (failed.length)
|
|
22292
22355
|
getLogger().warn(
|
|
@@ -22792,6 +22855,42 @@ function createRemoteMemoryStore(options) {
|
|
|
22792
22855
|
relinkTopics: () => Promise.resolve([]),
|
|
22793
22856
|
backfillTopics: () => Promise.resolve([])
|
|
22794
22857
|
};
|
|
22858
|
+
const decayRow = (memory) => ({
|
|
22859
|
+
uniqueId: memory.memory_id,
|
|
22860
|
+
factType: memory.fact_type ?? null,
|
|
22861
|
+
eventTimeEnd: memory.event_time_end ?? null,
|
|
22862
|
+
eventTimeKind: memory.event_time_kind ?? null,
|
|
22863
|
+
updatedAt: memory.updated_at,
|
|
22864
|
+
lastObservedAt: memory.last_observed_at ?? null,
|
|
22865
|
+
archivedAt: memory.archived_at ?? null,
|
|
22866
|
+
source: memory.source ?? null,
|
|
22867
|
+
trustTier: memory.trust_tier ?? null
|
|
22868
|
+
});
|
|
22869
|
+
const decayWrite = async (rows, change, edit) => {
|
|
22870
|
+
if (rows.length === 0) return /* @__PURE__ */ new Set();
|
|
22871
|
+
const seen2 = new Map(rows.map((row) => [row.uniqueId, row]));
|
|
22872
|
+
const { saved, failed } = await mutateMany(
|
|
22873
|
+
[...seen2.keys()],
|
|
22874
|
+
() => change,
|
|
22875
|
+
(memory) => edit(memory, seen2.get(memory.memory_id))
|
|
22876
|
+
);
|
|
22877
|
+
if (failed.size)
|
|
22878
|
+
getLogger().warn("[memory/remote-store] Decay skipped memories:", [...failed.values()]);
|
|
22879
|
+
return new Set(saved.keys());
|
|
22880
|
+
};
|
|
22881
|
+
const decayBackend = {
|
|
22882
|
+
candidates: async () => (await pages(metadata2, { include_archived: true, include_quarantined: true })).filter(({ memory }) => memory.kind === void 0 || memory.kind === null).map(({ memory }) => decayRow(memory)),
|
|
22883
|
+
archive: (rows, now) => decayWrite(
|
|
22884
|
+
rows,
|
|
22885
|
+
"edit",
|
|
22886
|
+
(memory, seen2) => (memory.archived_at ?? null) === null && memory.updated_at === seen2.updatedAt && (memory.last_observed_at ?? null) === (seen2.lastObservedAt ?? null) ? { ...memory, archived_at: now } : null
|
|
22887
|
+
),
|
|
22888
|
+
hardDelete: (rows, { hardDeleteWindowMs, now }) => decayWrite(
|
|
22889
|
+
rows,
|
|
22890
|
+
"membership",
|
|
22891
|
+
(memory) => memory.archived_at !== void 0 && memory.archived_at !== null && now - memory.archived_at > hardDeleteWindowMs ? { ...memory, is_deleted: true } : null
|
|
22892
|
+
)
|
|
22893
|
+
};
|
|
22795
22894
|
const everyState = {
|
|
22796
22895
|
include_deleted: true,
|
|
22797
22896
|
include_archived: true,
|
|
@@ -22867,9 +22966,104 @@ function createRemoteMemoryStore(options) {
|
|
|
22867
22966
|
polling = false;
|
|
22868
22967
|
});
|
|
22869
22968
|
};
|
|
22969
|
+
const unrepairable = /* @__PURE__ */ new Set();
|
|
22970
|
+
let repairCursor;
|
|
22971
|
+
const repairEmbeddings = async ({
|
|
22972
|
+
maxRows = REPAIR_ROWS,
|
|
22973
|
+
maxScan = REPAIR_SCAN,
|
|
22974
|
+
cursor: start = repairCursor
|
|
22975
|
+
} = {}) => {
|
|
22976
|
+
const scannedRows = [];
|
|
22977
|
+
let cursor2 = start;
|
|
22978
|
+
do {
|
|
22979
|
+
const page = await metadata2({
|
|
22980
|
+
include_deleted: true,
|
|
22981
|
+
include_archived: true,
|
|
22982
|
+
include_quarantined: true,
|
|
22983
|
+
include_superseded: true,
|
|
22984
|
+
limit: Math.min(200, Math.max(1, maxScan - scannedRows.length)),
|
|
22985
|
+
...cursor2 && { cursor: cursor2 }
|
|
22986
|
+
});
|
|
22987
|
+
scannedRows.push(...page.items);
|
|
22988
|
+
cursor2 = page.next_cursor;
|
|
22989
|
+
} while (cursor2 && scannedRows.length < maxScan);
|
|
22990
|
+
const allStale = scannedRows.filter(
|
|
22991
|
+
({ memory }) => memory.embedding_model !== model && !unrepairable.has(memory.memory_id)
|
|
22992
|
+
);
|
|
22993
|
+
const repaired = /* @__PURE__ */ new Set();
|
|
22994
|
+
const result = {
|
|
22995
|
+
scanned: scannedRows.length,
|
|
22996
|
+
reembedded: 0,
|
|
22997
|
+
failed: 0,
|
|
22998
|
+
skippedConflict: 0
|
|
22999
|
+
};
|
|
23000
|
+
const finish = () => {
|
|
23001
|
+
const settled = allStale.every(
|
|
23002
|
+
({ memory }) => repaired.has(memory.memory_id) || unrepairable.has(memory.memory_id)
|
|
23003
|
+
);
|
|
23004
|
+
repairCursor = settled ? cursor2 : start;
|
|
23005
|
+
return repairCursor ? { ...result, cursor: repairCursor } : result;
|
|
23006
|
+
};
|
|
23007
|
+
const stale = allStale.slice(0, maxRows).map(({ memory }) => memory.memory_id);
|
|
23008
|
+
if (stale.length === 0) return finish();
|
|
23009
|
+
const { records, unreadable } = await readEveryState(stale);
|
|
23010
|
+
result.failed += unreadable.size;
|
|
23011
|
+
for (const id of stale)
|
|
23012
|
+
if (unreadable.has(id) || !records.get(id)?.memory.content.trim()) unrepairable.add(id);
|
|
23013
|
+
const targets = stale.filter((id) => !unrepairable.has(id)).map((id) => records.get(id));
|
|
23014
|
+
if (targets.length === 0) return finish();
|
|
23015
|
+
const vectors = await embedForRepair(targets);
|
|
23016
|
+
if (!vectors) {
|
|
23017
|
+
result.failed += targets.length;
|
|
23018
|
+
return finish();
|
|
23019
|
+
}
|
|
23020
|
+
for (const [i, record2] of targets.entries()) {
|
|
23021
|
+
const vector = vectors[i];
|
|
23022
|
+
if (!vector) {
|
|
23023
|
+
result.failed++;
|
|
23024
|
+
continue;
|
|
23025
|
+
}
|
|
23026
|
+
await serialized(record2.memory.memory_id, async () => {
|
|
23027
|
+
try {
|
|
23028
|
+
const saved = await persistence.put(
|
|
23029
|
+
{ ...record2.memory, embedding: storedVector(vector), embedding_model: model },
|
|
23030
|
+
record2
|
|
23031
|
+
);
|
|
23032
|
+
notify("embedding", [saved]);
|
|
23033
|
+
repaired.add(record2.memory.memory_id);
|
|
23034
|
+
result.reembedded++;
|
|
23035
|
+
} catch (error) {
|
|
23036
|
+
if (error instanceof RemoteMemoryError && error.code === "version_conflict")
|
|
23037
|
+
result.skippedConflict++;
|
|
23038
|
+
else result.failed++;
|
|
23039
|
+
}
|
|
23040
|
+
});
|
|
23041
|
+
}
|
|
23042
|
+
return finish();
|
|
23043
|
+
};
|
|
23044
|
+
const embedForRepair = async (targets) => {
|
|
23045
|
+
const texts = targets.map(({ memory }) => memory.content);
|
|
23046
|
+
try {
|
|
23047
|
+
return await generateEmbeddings(texts, embeddingOptions);
|
|
23048
|
+
} catch (error) {
|
|
23049
|
+
getLogger().warn("[memory/remote-store] Failed to embed memories for repair:", error);
|
|
23050
|
+
if (!rejectsInput(error)) return null;
|
|
23051
|
+
}
|
|
23052
|
+
const vectors = [];
|
|
23053
|
+
for (const [i, text14] of texts.entries()) {
|
|
23054
|
+
try {
|
|
23055
|
+
[vectors[i]] = await generateEmbeddings([text14], embeddingOptions);
|
|
23056
|
+
} catch (error) {
|
|
23057
|
+
if (!rejectsInput(error)) return null;
|
|
23058
|
+
unrepairable.add(targets[i].memory.memory_id);
|
|
23059
|
+
}
|
|
23060
|
+
}
|
|
23061
|
+
return vectors;
|
|
23062
|
+
};
|
|
22870
23063
|
return {
|
|
22871
23064
|
masksEmbeddingInput: embeddingOptions.maskInput !== void 0,
|
|
22872
23065
|
topicMaintenance,
|
|
23066
|
+
repairEmbeddings,
|
|
22873
23067
|
list: async (listOptions = {}) => (await listRows(decrypted, listOptions, listFilters(listOptions), maxOf(listOptions))).map(
|
|
22874
23068
|
(r) => stored(r.memory)
|
|
22875
23069
|
),
|
|
@@ -23069,6 +23263,12 @@ function createRemoteMemoryStore(options) {
|
|
|
23069
23263
|
else if (result.action === "update" || result.action === "merge") notify("edit");
|
|
23070
23264
|
return result;
|
|
23071
23265
|
},
|
|
23266
|
+
decay: {
|
|
23267
|
+
createDecaySweeper: (sweeperOptions) => createDecaySweeperOver(decayBackend, {
|
|
23268
|
+
...ruleBasedDecayOptions(sweeperOptions),
|
|
23269
|
+
maxTransitionsPerSweep: DECAY_TRANSITIONS_PER_SWEEP
|
|
23270
|
+
})
|
|
23271
|
+
},
|
|
23072
23272
|
subscribe: (onChange, subscribeOptions = {}) => {
|
|
23073
23273
|
const subscriber = { onChange, options: subscribeOptions };
|
|
23074
23274
|
subscribers.add(subscriber);
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -6597,6 +6597,16 @@ interface MemorySubscribeOptions {
|
|
|
6597
6597
|
*/
|
|
6598
6598
|
embeddings?: boolean;
|
|
6599
6599
|
}
|
|
6600
|
+
/** @public */
|
|
6601
|
+
type MemoryDecaySweeperOptions = Pick<CreateDecaySweeperOptions, "now" | "policy" | "onSwept" | "onError">;
|
|
6602
|
+
/**
|
|
6603
|
+
* Rule-based memory decay over a store's metadata, on any backend.
|
|
6604
|
+
* @public
|
|
6605
|
+
*/
|
|
6606
|
+
interface MemoryDecay {
|
|
6607
|
+
/** A rule-based decay sweeper over this store's memories. */
|
|
6608
|
+
createDecaySweeper(options?: MemoryDecaySweeperOptions): DecaySweeper;
|
|
6609
|
+
}
|
|
6600
6610
|
/**
|
|
6601
6611
|
* Background jobs that keep a LOCAL store healthy.
|
|
6602
6612
|
*
|
|
@@ -6650,6 +6660,24 @@ interface MemoryTopicMaintenance {
|
|
|
6650
6660
|
/** Fill `topics` on pre-v42 rows from their existing links. Returns the ids filled. */
|
|
6651
6661
|
backfillTopics(memoryIds: readonly string[]): Promise<string[]>;
|
|
6652
6662
|
}
|
|
6663
|
+
/** @public */
|
|
6664
|
+
interface EmbeddingRepairOptions {
|
|
6665
|
+
/** Most memories one run re-embeds. Default 50. */
|
|
6666
|
+
maxRows?: number;
|
|
6667
|
+
/** Most memories one run inspects. Default 2000. */
|
|
6668
|
+
maxScan?: number;
|
|
6669
|
+
/** Where to resume the scan, from a previous result. Defaults to where this store's last run stopped. */
|
|
6670
|
+
cursor?: string;
|
|
6671
|
+
}
|
|
6672
|
+
/** @public */
|
|
6673
|
+
interface EmbeddingRepairResult {
|
|
6674
|
+
scanned: number;
|
|
6675
|
+
reembedded: number;
|
|
6676
|
+
failed: number;
|
|
6677
|
+
skippedConflict: number;
|
|
6678
|
+
/** Where the next run resumes; absent when the next run starts over from the newest memory. */
|
|
6679
|
+
cursor?: string;
|
|
6680
|
+
}
|
|
6653
6681
|
/**
|
|
6654
6682
|
* One user's memories, pitched at what the apps do with them rather than at
|
|
6655
6683
|
* the storage ops underneath. Two backends are intended: the on-device
|
|
@@ -6717,8 +6745,12 @@ interface MemoryStore {
|
|
|
6717
6745
|
* after subscribing. Returns the unsubscribe function.
|
|
6718
6746
|
*/
|
|
6719
6747
|
subscribe(onChange: () => void, options?: MemorySubscribeOptions): () => void;
|
|
6748
|
+
/** Re-embeds memories the backend cannot rank with the current model. Absent where recall re-embeds lazily. */
|
|
6749
|
+
repairEmbeddings?(options?: EmbeddingRepairOptions): Promise<EmbeddingRepairResult>;
|
|
6720
6750
|
/** TRANSITIONAL — see {@link MemoryMaintenance}. Absent on a remote backend. */
|
|
6721
6751
|
maintenance?: MemoryMaintenance;
|
|
6752
|
+
/** Rule-based decay, available without the local-only {@link MemoryMaintenance}. */
|
|
6753
|
+
readonly decay?: MemoryDecay;
|
|
6722
6754
|
/** Topic-extraction upkeep, available on every backend. */
|
|
6723
6755
|
readonly topicMaintenance: MemoryTopicMaintenance;
|
|
6724
6756
|
}
|
|
@@ -11464,4 +11496,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11464
11496
|
*/
|
|
11465
11497
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11466
11498
|
|
|
11467
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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 MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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, type WriteFailureReason, 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, encryptToolCallEventsOp, 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, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, 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, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11499
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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, type EmbeddingRepairOptions, type EmbeddingRepairResult, 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 MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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, type WriteFailureReason, 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, encryptToolCallEventsOp, 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, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, 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, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -6597,6 +6597,16 @@ interface MemorySubscribeOptions {
|
|
|
6597
6597
|
*/
|
|
6598
6598
|
embeddings?: boolean;
|
|
6599
6599
|
}
|
|
6600
|
+
/** @public */
|
|
6601
|
+
type MemoryDecaySweeperOptions = Pick<CreateDecaySweeperOptions, "now" | "policy" | "onSwept" | "onError">;
|
|
6602
|
+
/**
|
|
6603
|
+
* Rule-based memory decay over a store's metadata, on any backend.
|
|
6604
|
+
* @public
|
|
6605
|
+
*/
|
|
6606
|
+
interface MemoryDecay {
|
|
6607
|
+
/** A rule-based decay sweeper over this store's memories. */
|
|
6608
|
+
createDecaySweeper(options?: MemoryDecaySweeperOptions): DecaySweeper;
|
|
6609
|
+
}
|
|
6600
6610
|
/**
|
|
6601
6611
|
* Background jobs that keep a LOCAL store healthy.
|
|
6602
6612
|
*
|
|
@@ -6650,6 +6660,24 @@ interface MemoryTopicMaintenance {
|
|
|
6650
6660
|
/** Fill `topics` on pre-v42 rows from their existing links. Returns the ids filled. */
|
|
6651
6661
|
backfillTopics(memoryIds: readonly string[]): Promise<string[]>;
|
|
6652
6662
|
}
|
|
6663
|
+
/** @public */
|
|
6664
|
+
interface EmbeddingRepairOptions {
|
|
6665
|
+
/** Most memories one run re-embeds. Default 50. */
|
|
6666
|
+
maxRows?: number;
|
|
6667
|
+
/** Most memories one run inspects. Default 2000. */
|
|
6668
|
+
maxScan?: number;
|
|
6669
|
+
/** Where to resume the scan, from a previous result. Defaults to where this store's last run stopped. */
|
|
6670
|
+
cursor?: string;
|
|
6671
|
+
}
|
|
6672
|
+
/** @public */
|
|
6673
|
+
interface EmbeddingRepairResult {
|
|
6674
|
+
scanned: number;
|
|
6675
|
+
reembedded: number;
|
|
6676
|
+
failed: number;
|
|
6677
|
+
skippedConflict: number;
|
|
6678
|
+
/** Where the next run resumes; absent when the next run starts over from the newest memory. */
|
|
6679
|
+
cursor?: string;
|
|
6680
|
+
}
|
|
6653
6681
|
/**
|
|
6654
6682
|
* One user's memories, pitched at what the apps do with them rather than at
|
|
6655
6683
|
* the storage ops underneath. Two backends are intended: the on-device
|
|
@@ -6717,8 +6745,12 @@ interface MemoryStore {
|
|
|
6717
6745
|
* after subscribing. Returns the unsubscribe function.
|
|
6718
6746
|
*/
|
|
6719
6747
|
subscribe(onChange: () => void, options?: MemorySubscribeOptions): () => void;
|
|
6748
|
+
/** Re-embeds memories the backend cannot rank with the current model. Absent where recall re-embeds lazily. */
|
|
6749
|
+
repairEmbeddings?(options?: EmbeddingRepairOptions): Promise<EmbeddingRepairResult>;
|
|
6720
6750
|
/** TRANSITIONAL — see {@link MemoryMaintenance}. Absent on a remote backend. */
|
|
6721
6751
|
maintenance?: MemoryMaintenance;
|
|
6752
|
+
/** Rule-based decay, available without the local-only {@link MemoryMaintenance}. */
|
|
6753
|
+
readonly decay?: MemoryDecay;
|
|
6722
6754
|
/** Topic-extraction upkeep, available on every backend. */
|
|
6723
6755
|
readonly topicMaintenance: MemoryTopicMaintenance;
|
|
6724
6756
|
}
|
|
@@ -11464,4 +11496,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11464
11496
|
*/
|
|
11465
11497
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11466
11498
|
|
|
11467
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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 MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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, type WriteFailureReason, 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, encryptToolCallEventsOp, 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, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, 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, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11499
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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, type EmbeddingRepairOptions, type EmbeddingRepairResult, 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 MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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, type WriteFailureReason, 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, encryptToolCallEventsOp, 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, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, 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, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|