@anuma/sdk 3.5.0 → 3.6.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 +114 -12
- package/dist/expo/index.d.mts +96 -3
- package/dist/expo/index.d.ts +96 -3
- package/dist/expo/index.mjs +103 -10
- package/dist/react/index.cjs +114 -12
- package/dist/react/index.d.mts +96 -3
- package/dist/react/index.d.ts +96 -3
- package/dist/react/index.mjs +103 -10
- package/dist/server/index.cjs +114 -12
- package/dist/server/index.d.mts +96 -3
- package/dist/server/index.d.ts +96 -3
- package/dist/server/index.mjs +103 -10
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -5888,8 +5888,8 @@ function rankFusedVaultMemories(query, queryEmbedding, items, options) {
|
|
|
5888
5888
|
const proofCount = Math.max(1, item?.proofCount ?? 1);
|
|
5889
5889
|
const proofBoost = 1 + proofCountAlpha * Math.log(1 + proofCount) - proofCountAlpha * Math.log(2);
|
|
5890
5890
|
const rawTypeWeight = item?.factType ? factTypeWeights?.[item.factType] : void 0;
|
|
5891
|
-
const
|
|
5892
|
-
return recencyBoost * proofBoost *
|
|
5891
|
+
const typeWeight2 = rawTypeWeight !== void 0 && Number.isFinite(rawTypeWeight) && rawTypeWeight > 0 ? rawTypeWeight : 1;
|
|
5892
|
+
return recencyBoost * proofBoost * typeWeight2;
|
|
5893
5893
|
};
|
|
5894
5894
|
let combined = [...baseRanked, ...admitted].map((r) => ({
|
|
5895
5895
|
...r,
|
|
@@ -6790,6 +6790,9 @@ __export(index_exports, {
|
|
|
6790
6790
|
DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP: () => DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP,
|
|
6791
6791
|
DEFAULT_MIN_CHUNK_SIZE: () => DEFAULT_MIN_CHUNK_SIZE,
|
|
6792
6792
|
DEFAULT_PROFILE_FACETS: () => DEFAULT_PROFILE_FACETS,
|
|
6793
|
+
DEFAULT_PROFILE_FACT_TYPE_WEIGHTS: () => DEFAULT_PROFILE_FACT_TYPE_WEIGHTS,
|
|
6794
|
+
DEFAULT_PROFILE_PROOF_ALPHA: () => DEFAULT_PROFILE_PROOF_ALPHA,
|
|
6795
|
+
DEFAULT_PROFILE_TREND_MULTIPLIERS: () => DEFAULT_PROFILE_TREND_MULTIPLIERS,
|
|
6793
6796
|
DEFAULT_VAULT_CACHE_SIZE: () => DEFAULT_VAULT_CACHE_SIZE,
|
|
6794
6797
|
DatabaseManager: () => DatabaseManager,
|
|
6795
6798
|
ENTITY_FANOUT: () => ENTITY_FANOUT,
|
|
@@ -6915,6 +6918,7 @@ __export(index_exports, {
|
|
|
6915
6918
|
preEmbedVaultMemories: () => preEmbedVaultMemories,
|
|
6916
6919
|
quantizeEmbedding: () => quantizeEmbedding,
|
|
6917
6920
|
queueManager: () => queueManager,
|
|
6921
|
+
rankProfileCandidates: () => rankProfileCandidates,
|
|
6918
6922
|
recall: () => recall,
|
|
6919
6923
|
reflect: () => reflect,
|
|
6920
6924
|
refreshNotionAccessToken: () => refreshNotionAccessToken,
|
|
@@ -6924,6 +6928,7 @@ __export(index_exports, {
|
|
|
6924
6928
|
restoreVaultMemoryOp: () => restoreVaultMemoryOp,
|
|
6925
6929
|
resumeStream: () => resumeStream,
|
|
6926
6930
|
retain: () => retain,
|
|
6931
|
+
scoreProfileSalience: () => scoreProfileSalience,
|
|
6927
6932
|
screenCandidatesForInjection: () => screenCandidatesForInjection,
|
|
6928
6933
|
sdkMigrations: () => sdkMigrations,
|
|
6929
6934
|
sdkModelClasses: () => sdkModelClasses,
|
|
@@ -15083,6 +15088,64 @@ function createDecaySweeper(options) {
|
|
|
15083
15088
|
// src/lib/memory/index.ts
|
|
15084
15089
|
init_graphTraversal();
|
|
15085
15090
|
init_observationTrend();
|
|
15091
|
+
|
|
15092
|
+
// src/lib/memory/profileSalience.ts
|
|
15093
|
+
init_observationTrend();
|
|
15094
|
+
var DEFAULT_PROFILE_PROOF_ALPHA = 0.2;
|
|
15095
|
+
var DEFAULT_PROFILE_FACT_TYPE_WEIGHTS = {
|
|
15096
|
+
identity: 1.5,
|
|
15097
|
+
preference: 1.5,
|
|
15098
|
+
relationship: 1.5,
|
|
15099
|
+
constraint: 1.5,
|
|
15100
|
+
other: 1,
|
|
15101
|
+
plan: 0.6,
|
|
15102
|
+
ongoing_context: 0.6
|
|
15103
|
+
};
|
|
15104
|
+
var DEFAULT_PROFILE_TREND_MULTIPLIERS = {
|
|
15105
|
+
strengthening: 1.25,
|
|
15106
|
+
new: 1.1,
|
|
15107
|
+
stable: 1,
|
|
15108
|
+
weakening: 0.75,
|
|
15109
|
+
stale: 0.5
|
|
15110
|
+
};
|
|
15111
|
+
function typeWeight(factType, weights) {
|
|
15112
|
+
if (!factType) return 1;
|
|
15113
|
+
const w = weights[factType];
|
|
15114
|
+
if (w !== void 0 && Number.isFinite(w) && w > 0) return w;
|
|
15115
|
+
return 1;
|
|
15116
|
+
}
|
|
15117
|
+
function scoreProfileSalience(input, now = Date.now(), options = {}) {
|
|
15118
|
+
const alpha = options.proofCountAlpha ?? DEFAULT_PROFILE_PROOF_ALPHA;
|
|
15119
|
+
const typeWeights = { ...DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, ...options.factTypeWeights };
|
|
15120
|
+
const trendMults = { ...DEFAULT_PROFILE_TREND_MULTIPLIERS, ...options.trendMultipliers };
|
|
15121
|
+
const proofs = Math.max(1, input.proofCount ?? 1);
|
|
15122
|
+
const proofBoost = 1 + alpha * Math.log(1 + proofs) - alpha * Math.log(2);
|
|
15123
|
+
const trend = classifyObservationTrend(input, now);
|
|
15124
|
+
const tw = typeWeight(input.factType, typeWeights);
|
|
15125
|
+
const tm = trendMults[trend] ?? 1;
|
|
15126
|
+
const score = tw * proofBoost * tm;
|
|
15127
|
+
return Number.isFinite(score) ? score : 0;
|
|
15128
|
+
}
|
|
15129
|
+
function rankProfileCandidates(inputs, now = Date.now(), options = {}) {
|
|
15130
|
+
const ranked = inputs.map((input) => {
|
|
15131
|
+
const proofs = Math.max(1, input.proofCount ?? 1);
|
|
15132
|
+
return {
|
|
15133
|
+
id: input.id,
|
|
15134
|
+
score: scoreProfileSalience(input, now, options),
|
|
15135
|
+
trend: classifyObservationTrend(input, now),
|
|
15136
|
+
factType: input.factType ?? null,
|
|
15137
|
+
proofCount: proofs
|
|
15138
|
+
};
|
|
15139
|
+
});
|
|
15140
|
+
ranked.sort((a, b) => {
|
|
15141
|
+
if (b.score !== a.score) return b.score - a.score;
|
|
15142
|
+
if (b.proofCount !== a.proofCount) return b.proofCount - a.proofCount;
|
|
15143
|
+
return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
|
|
15144
|
+
});
|
|
15145
|
+
return ranked;
|
|
15146
|
+
}
|
|
15147
|
+
|
|
15148
|
+
// src/lib/memory/index.ts
|
|
15086
15149
|
init_recall();
|
|
15087
15150
|
|
|
15088
15151
|
// src/lib/memory/recallTool.ts
|
|
@@ -15316,18 +15379,18 @@ async function reflect(query, ctx, options) {
|
|
|
15316
15379
|
usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0 }
|
|
15317
15380
|
};
|
|
15318
15381
|
if (trimmed.length === 0) return empty;
|
|
15319
|
-
const { maxTokens: _llmMaxTokens, ...recallOptions } = options;
|
|
15320
|
-
const
|
|
15321
|
-
const memoryIds =
|
|
15382
|
+
const { maxTokens: _llmMaxTokens, memories: providedMemories, ...recallOptions } = options;
|
|
15383
|
+
const recalledMemories = providedMemories !== void 0 ? providedMemories : (await recall(trimmed, ctx, recallOptions)).memories;
|
|
15384
|
+
const memoryIds = recalledMemories.map((m) => m.id);
|
|
15322
15385
|
const baseResult = {
|
|
15323
15386
|
text: "",
|
|
15324
15387
|
basedOn: { memoryIds },
|
|
15325
15388
|
usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0 }
|
|
15326
15389
|
};
|
|
15327
|
-
if (
|
|
15390
|
+
if (recalledMemories.length === 0) {
|
|
15328
15391
|
return baseResult;
|
|
15329
15392
|
}
|
|
15330
|
-
const evidence =
|
|
15393
|
+
const evidence = recalledMemories.map((m, i) => `[${i + 1}] (id: ${m.id}, kind: ${m.kind})
|
|
15331
15394
|
${m.content}`).join("\n\n");
|
|
15332
15395
|
const baseUrl = options.baseUrl ?? DEFAULT_BASE_URL2;
|
|
15333
15396
|
const model = options.llmModel ?? DEFAULT_MODEL5;
|
|
@@ -15450,6 +15513,7 @@ init_constants();
|
|
|
15450
15513
|
init_embeddings();
|
|
15451
15514
|
init_vector();
|
|
15452
15515
|
init_observationTrend();
|
|
15516
|
+
init_recall();
|
|
15453
15517
|
var DEFAULT_SYNTHESIS_MODEL = "inclusionai/ling-2.6-flash";
|
|
15454
15518
|
var DEFAULT_FACET_RECALL_LIMIT = 20;
|
|
15455
15519
|
var DEFAULT_FACET_MAX_TOKENS = 512;
|
|
@@ -15522,7 +15586,8 @@ async function synthesizeProfile(ctx, options = {}) {
|
|
|
15522
15586
|
facetKeys: facets.map((f) => f.key).sort(),
|
|
15523
15587
|
facetsSignature: facetsSignature(facets),
|
|
15524
15588
|
scopes: [...scopes].sort(),
|
|
15525
|
-
redacted: options.redactor !== void 0
|
|
15589
|
+
redacted: options.redactor !== void 0,
|
|
15590
|
+
reviewedMemoryIdsSignature: reviewedMemoryIdsSignature(options.reviewedMemoryIds)
|
|
15526
15591
|
};
|
|
15527
15592
|
const previous = options.previous && options.previous.version === PROFILE_DOC_VERSION && configMatches(options.previous.config, config) ? options.previous : void 0;
|
|
15528
15593
|
const memories = await getAllVaultMemoriesOp(ctx.vaultCtx, {
|
|
@@ -15595,7 +15660,11 @@ async function synthesizeProfile(ctx, options = {}) {
|
|
|
15595
15660
|
}
|
|
15596
15661
|
function configMatches(a, b) {
|
|
15597
15662
|
if (!a) return false;
|
|
15598
|
-
return a.redacted === b.redacted && a.facetsSignature === b.facetsSignature && a.scopes.length === b.scopes.length && a.scopes.every((s, i) => s === b.scopes[i]);
|
|
15663
|
+
return a.redacted === b.redacted && a.facetsSignature === b.facetsSignature && (a.reviewedMemoryIdsSignature ?? "") === b.reviewedMemoryIdsSignature && a.scopes.length === b.scopes.length && a.scopes.every((s, i) => s === b.scopes[i]);
|
|
15664
|
+
}
|
|
15665
|
+
function reviewedMemoryIdsSignature(ids) {
|
|
15666
|
+
if (ids === void 0 || ids.length === 0) return "";
|
|
15667
|
+
return [...new Set(ids)].sort().join("\n");
|
|
15599
15668
|
}
|
|
15600
15669
|
function facetsSignature(facets) {
|
|
15601
15670
|
return facets.map((f) => JSON.stringify([f.key, f.label, f.query, f.guidance])).sort().join("\n");
|
|
@@ -15699,18 +15768,46 @@ async function attributeFacts(ctx, candidates, facets) {
|
|
|
15699
15768
|
return keys;
|
|
15700
15769
|
}
|
|
15701
15770
|
async function synthesizeFacet(facet, ctx, options, prior) {
|
|
15771
|
+
const scopes = options.scopes ?? DEFAULT_SCOPES;
|
|
15772
|
+
const limit = options.limit ?? DEFAULT_FACET_RECALL_LIMIT;
|
|
15773
|
+
const factTypeWeights = { ...DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, ...options.factTypeWeights };
|
|
15774
|
+
const proofCountAlpha = options.proofCountAlpha ?? DEFAULT_PROFILE_PROOF_ALPHA;
|
|
15775
|
+
const reviewed = options.reviewedMemoryIds;
|
|
15776
|
+
const hasReviewGate = reviewed !== void 0 && reviewed.length > 0;
|
|
15777
|
+
const recalled = await recall(facet.query, ctx, {
|
|
15778
|
+
scopes,
|
|
15779
|
+
limit: hasReviewGate ? RECALL_MAX_LIMIT : limit,
|
|
15780
|
+
types: ["fact"],
|
|
15781
|
+
factTypeWeights,
|
|
15782
|
+
proofCountAlpha
|
|
15783
|
+
});
|
|
15784
|
+
let memories = recalled.memories;
|
|
15785
|
+
if (hasReviewGate) {
|
|
15786
|
+
const allowed = new Set(reviewed);
|
|
15787
|
+
memories = memories.filter((m) => allowed.has(m.id)).slice(0, limit);
|
|
15788
|
+
}
|
|
15789
|
+
if (memories.length === 0) {
|
|
15790
|
+
return {
|
|
15791
|
+
key: facet.key,
|
|
15792
|
+
label: facet.label,
|
|
15793
|
+
text: "",
|
|
15794
|
+
sourceMemoryIds: [],
|
|
15795
|
+
generatedAt: Date.now()
|
|
15796
|
+
};
|
|
15797
|
+
}
|
|
15702
15798
|
const result = await reflect(facet.query, ctx, {
|
|
15703
15799
|
apiKey: options.apiKey,
|
|
15704
15800
|
getToken: options.getToken,
|
|
15705
15801
|
llmModel: options.llmModel ?? DEFAULT_SYNTHESIS_MODEL,
|
|
15706
15802
|
baseUrl: options.baseUrl,
|
|
15707
15803
|
fetchFn: options.fetchFn,
|
|
15708
|
-
scopes
|
|
15709
|
-
limit
|
|
15804
|
+
scopes,
|
|
15805
|
+
limit,
|
|
15710
15806
|
types: ["fact"],
|
|
15711
15807
|
maxTokens: DEFAULT_FACET_MAX_TOKENS,
|
|
15712
15808
|
systemPrompt: buildFacetSystemPrompt(facet),
|
|
15713
|
-
responseSchema: FACET_RESPONSE_SCHEMA
|
|
15809
|
+
responseSchema: FACET_RESPONSE_SCHEMA,
|
|
15810
|
+
memories
|
|
15714
15811
|
});
|
|
15715
15812
|
const noEvidence = result.basedOn.memoryIds.length === 0;
|
|
15716
15813
|
const { text: text12, legitimateEmpty } = extractFacetText(result.structuredOutput);
|
|
@@ -21331,6 +21428,9 @@ function createNotionTools(getAccessToken, requestNotionAccess) {
|
|
|
21331
21428
|
DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP,
|
|
21332
21429
|
DEFAULT_MIN_CHUNK_SIZE,
|
|
21333
21430
|
DEFAULT_PROFILE_FACETS,
|
|
21431
|
+
DEFAULT_PROFILE_FACT_TYPE_WEIGHTS,
|
|
21432
|
+
DEFAULT_PROFILE_PROOF_ALPHA,
|
|
21433
|
+
DEFAULT_PROFILE_TREND_MULTIPLIERS,
|
|
21334
21434
|
DEFAULT_VAULT_CACHE_SIZE,
|
|
21335
21435
|
DatabaseManager,
|
|
21336
21436
|
ENTITY_FANOUT,
|
|
@@ -21456,6 +21556,7 @@ function createNotionTools(getAccessToken, requestNotionAccess) {
|
|
|
21456
21556
|
preEmbedVaultMemories,
|
|
21457
21557
|
quantizeEmbedding,
|
|
21458
21558
|
queueManager,
|
|
21559
|
+
rankProfileCandidates,
|
|
21459
21560
|
recall,
|
|
21460
21561
|
reflect,
|
|
21461
21562
|
refreshNotionAccessToken,
|
|
@@ -21465,6 +21566,7 @@ function createNotionTools(getAccessToken, requestNotionAccess) {
|
|
|
21465
21566
|
restoreVaultMemoryOp,
|
|
21466
21567
|
resumeStream,
|
|
21467
21568
|
retain,
|
|
21569
|
+
scoreProfileSalience,
|
|
21468
21570
|
screenCandidatesForInjection,
|
|
21469
21571
|
sdkMigrations,
|
|
21470
21572
|
sdkModelClasses,
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -7001,6 +7001,66 @@ interface LlmNeighborRefinerOptions extends PortalLlmAuth {
|
|
|
7001
7001
|
*/
|
|
7002
7002
|
declare function createLlmNeighborRefiner(options: LlmNeighborRefinerOptions): NeighborRefiner;
|
|
7003
7003
|
|
|
7004
|
+
/**
|
|
7005
|
+
* Profile salience — profile-worthiness scoring for vault facts (#706).
|
|
7006
|
+
*
|
|
7007
|
+
* Distinct from query-time relevance (`recall` fusion). Answers: "is this
|
|
7008
|
+
* fact worth putting on a shareable profile?" using durable type, proof
|
|
7009
|
+
* density, and C2 observation trend. Pure + deterministic — no LLM, no DB.
|
|
7010
|
+
*
|
|
7011
|
+
* Used by:
|
|
7012
|
+
* - `synthesizeProfile` facet recall (default factTypeWeights)
|
|
7013
|
+
* - Publish-review UIs via {@link rankProfileCandidates} (nearby / client)
|
|
7014
|
+
*
|
|
7015
|
+
* Persisted `importance` is deferred until publish flow proves the need.
|
|
7016
|
+
*/
|
|
7017
|
+
|
|
7018
|
+
/** Proof-count curve weight inside {@link scoreProfileSalience}. */
|
|
7019
|
+
declare const DEFAULT_PROFILE_PROOF_ALPHA = 0.2;
|
|
7020
|
+
/**
|
|
7021
|
+
* Per-FactType multipliers for profile synthesis / salience.
|
|
7022
|
+
* Durable identity-class types (never age-archive in decay) rank higher;
|
|
7023
|
+
* ephemeral plan/ongoing_context rank lower. Untyped / `other` stay neutral.
|
|
7024
|
+
*/
|
|
7025
|
+
declare const DEFAULT_PROFILE_FACT_TYPE_WEIGHTS: Partial<Record<FactType, number>>;
|
|
7026
|
+
/** C2 trend multipliers for profile-worthiness. */
|
|
7027
|
+
declare const DEFAULT_PROFILE_TREND_MULTIPLIERS: Record<ObservationTrend, number>;
|
|
7028
|
+
interface ProfileSalienceInput extends ObservationTrendInput {
|
|
7029
|
+
/** Vault memory id — required for {@link rankProfileCandidates}. */
|
|
7030
|
+
id: string;
|
|
7031
|
+
/** Extractor FactType; null/undefined → neutral weight (1.0). */
|
|
7032
|
+
factType?: string | null;
|
|
7033
|
+
}
|
|
7034
|
+
interface RankedProfileCandidate {
|
|
7035
|
+
id: string;
|
|
7036
|
+
score: number;
|
|
7037
|
+
trend: ObservationTrend;
|
|
7038
|
+
factType?: string | null;
|
|
7039
|
+
proofCount: number;
|
|
7040
|
+
}
|
|
7041
|
+
interface ScoreProfileSalienceOptions {
|
|
7042
|
+
/** Override type weights (merged over {@link DEFAULT_PROFILE_FACT_TYPE_WEIGHTS}). */
|
|
7043
|
+
factTypeWeights?: Partial<Record<FactType, number>>;
|
|
7044
|
+
/** Override trend multipliers. */
|
|
7045
|
+
trendMultipliers?: Partial<Record<ObservationTrend, number>>;
|
|
7046
|
+
/** Proof-count α. Default: {@link DEFAULT_PROFILE_PROOF_ALPHA}. */
|
|
7047
|
+
proofCountAlpha?: number;
|
|
7048
|
+
}
|
|
7049
|
+
/**
|
|
7050
|
+
* Score a vault fact for profile-worthiness.
|
|
7051
|
+
*
|
|
7052
|
+
* `typeWeight * (1 + α·log(1+proofCount) − α·log(2)) * trendMultiplier`
|
|
7053
|
+
*
|
|
7054
|
+
* The proof term mirrors vault fusion's log curve (neutral at proofCount=1).
|
|
7055
|
+
* Pass `now` for deterministic evals.
|
|
7056
|
+
*/
|
|
7057
|
+
declare function scoreProfileSalience(input: ProfileSalienceInput, now?: number, options?: ScoreProfileSalienceOptions): number;
|
|
7058
|
+
/**
|
|
7059
|
+
* Rank vault facts by profile-worthiness (descending score).
|
|
7060
|
+
* Ties broken by higher proofCount, then id ascending for stability.
|
|
7061
|
+
*/
|
|
7062
|
+
declare function rankProfileCandidates(inputs: readonly ProfileSalienceInput[], now?: number, options?: ScoreProfileSalienceOptions): RankedProfileCandidate[];
|
|
7063
|
+
|
|
7004
7064
|
/**
|
|
7005
7065
|
* Unified Recall API — single retrieval surface above vault + engine.
|
|
7006
7066
|
*
|
|
@@ -7138,6 +7198,12 @@ interface ReflectOptions extends RecallOptions, PortalLlmAuth {
|
|
|
7138
7198
|
fetchFn?: typeof fetch;
|
|
7139
7199
|
/** Optional JSON Schema to coerce structured outputs. */
|
|
7140
7200
|
responseSchema?: Record<string, unknown>;
|
|
7201
|
+
/**
|
|
7202
|
+
* Skip Stage-1 {@link recall} and synthesize from these memories instead.
|
|
7203
|
+
* Used by `synthesizeProfile` after intersecting recall with a
|
|
7204
|
+
* `reviewedMemoryIds` gate so the LLM never sees unreviewed evidence.
|
|
7205
|
+
*/
|
|
7206
|
+
memories?: RankedMemory[];
|
|
7141
7207
|
}
|
|
7142
7208
|
interface ReflectResult {
|
|
7143
7209
|
/** The synthesized answer text. */
|
|
@@ -7261,8 +7327,9 @@ interface ProfileSection {
|
|
|
7261
7327
|
/** Fingerprint of the config that produced a {@link ProfileDoc}. Delta reuse
|
|
7262
7328
|
* (both the wholesale fast path and per-section reuse) is only valid when the
|
|
7263
7329
|
* current call's config matches — otherwise reused sections could carry the
|
|
7264
|
-
* wrong scope's evidence, un-redacted text under a now-present redactor,
|
|
7265
|
-
* old section shape
|
|
7330
|
+
* wrong scope's evidence, un-redacted text under a now-present redactor, an
|
|
7331
|
+
* old section shape, or text grounded in memory ids that are no longer in the
|
|
7332
|
+
* publish-review set. */
|
|
7266
7333
|
interface ProfileConfigFingerprint {
|
|
7267
7334
|
/** Facet keys present in the doc, sorted. */
|
|
7268
7335
|
facetKeys: ProfileFacetKey[];
|
|
@@ -7277,6 +7344,14 @@ interface ProfileConfigFingerprint {
|
|
|
7277
7344
|
/** Whether a PII redactor gated the section text. Reusing un-gated text under
|
|
7278
7345
|
* a now-present redactor would leak PII, so this flips the fingerprint. */
|
|
7279
7346
|
redacted: boolean;
|
|
7347
|
+
/**
|
|
7348
|
+
* Order-independent digest of {@link SynthesizeProfileOptions.reviewedMemoryIds}.
|
|
7349
|
+
* Empty string when the review gate is off (omit / empty array). Changing the
|
|
7350
|
+
* set must invalidate reuse — otherwise a narrowed review keeps text grounded
|
|
7351
|
+
* in unreviewed ids, and a widened review leaves previously-cleared sections
|
|
7352
|
+
* empty.
|
|
7353
|
+
*/
|
|
7354
|
+
reviewedMemoryIdsSignature: string;
|
|
7280
7355
|
}
|
|
7281
7356
|
/** A synthesized profile. Server-authoritative once published; the client
|
|
7282
7357
|
* caches it and passes it back as {@link SynthesizeProfileOptions.previous}. */
|
|
@@ -7322,6 +7397,24 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
|
|
|
7322
7397
|
* Omit only when the caller redacts downstream — `nearby` also moderates
|
|
7323
7398
|
* server-side, but the client should never publish un-gated text. */
|
|
7324
7399
|
redactor?: PiiRedactor;
|
|
7400
|
+
/**
|
|
7401
|
+
* Per-FactType score multipliers for facet recall. Default:
|
|
7402
|
+
* {@link DEFAULT_PROFILE_FACT_TYPE_WEIGHTS} (durable types boosted).
|
|
7403
|
+
* Does not change global chat `recall()` defaults.
|
|
7404
|
+
*/
|
|
7405
|
+
factTypeWeights?: Partial<Record<FactType, number>>;
|
|
7406
|
+
/**
|
|
7407
|
+
* Proof-count α for facet recall. Default: {@link DEFAULT_PROFILE_PROOF_ALPHA}
|
|
7408
|
+
* (0.2). Chat recall stays at 0.1.
|
|
7409
|
+
*/
|
|
7410
|
+
proofCountAlpha?: number;
|
|
7411
|
+
/**
|
|
7412
|
+
* When non-empty, intersect each facet's recalled evidence with this id set
|
|
7413
|
+
* before the LLM runs (publish-review gate). Empty intersection → empty
|
|
7414
|
+
* section (legitimate no-evidence), not a stale fallback. Omit / empty →
|
|
7415
|
+
* no gate.
|
|
7416
|
+
*/
|
|
7417
|
+
reviewedMemoryIds?: readonly string[];
|
|
7325
7418
|
}
|
|
7326
7419
|
/**
|
|
7327
7420
|
* Synthesize a shareable {@link ProfileDoc} from the user's vault, on-device.
|
|
@@ -8793,4 +8886,4 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
8793
8886
|
*/
|
|
8794
8887
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
8795
8888
|
|
|
8796
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, 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_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, 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 Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, RerankerUnavailableError, 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 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 SynthesizeProfileOptions, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hardDeleteDecayedOp, hasEncryptionKey, injectionSignatureCatalog, isPiiRedactor, isRerankerAvailable, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|
|
8889
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, 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, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, 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 Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, RerankerUnavailableError, 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 SynthesizeProfileOptions, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hardDeleteDecayedOp, hasEncryptionKey, injectionSignatureCatalog, isPiiRedactor, isRerankerAvailable, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -7001,6 +7001,66 @@ interface LlmNeighborRefinerOptions extends PortalLlmAuth {
|
|
|
7001
7001
|
*/
|
|
7002
7002
|
declare function createLlmNeighborRefiner(options: LlmNeighborRefinerOptions): NeighborRefiner;
|
|
7003
7003
|
|
|
7004
|
+
/**
|
|
7005
|
+
* Profile salience — profile-worthiness scoring for vault facts (#706).
|
|
7006
|
+
*
|
|
7007
|
+
* Distinct from query-time relevance (`recall` fusion). Answers: "is this
|
|
7008
|
+
* fact worth putting on a shareable profile?" using durable type, proof
|
|
7009
|
+
* density, and C2 observation trend. Pure + deterministic — no LLM, no DB.
|
|
7010
|
+
*
|
|
7011
|
+
* Used by:
|
|
7012
|
+
* - `synthesizeProfile` facet recall (default factTypeWeights)
|
|
7013
|
+
* - Publish-review UIs via {@link rankProfileCandidates} (nearby / client)
|
|
7014
|
+
*
|
|
7015
|
+
* Persisted `importance` is deferred until publish flow proves the need.
|
|
7016
|
+
*/
|
|
7017
|
+
|
|
7018
|
+
/** Proof-count curve weight inside {@link scoreProfileSalience}. */
|
|
7019
|
+
declare const DEFAULT_PROFILE_PROOF_ALPHA = 0.2;
|
|
7020
|
+
/**
|
|
7021
|
+
* Per-FactType multipliers for profile synthesis / salience.
|
|
7022
|
+
* Durable identity-class types (never age-archive in decay) rank higher;
|
|
7023
|
+
* ephemeral plan/ongoing_context rank lower. Untyped / `other` stay neutral.
|
|
7024
|
+
*/
|
|
7025
|
+
declare const DEFAULT_PROFILE_FACT_TYPE_WEIGHTS: Partial<Record<FactType, number>>;
|
|
7026
|
+
/** C2 trend multipliers for profile-worthiness. */
|
|
7027
|
+
declare const DEFAULT_PROFILE_TREND_MULTIPLIERS: Record<ObservationTrend, number>;
|
|
7028
|
+
interface ProfileSalienceInput extends ObservationTrendInput {
|
|
7029
|
+
/** Vault memory id — required for {@link rankProfileCandidates}. */
|
|
7030
|
+
id: string;
|
|
7031
|
+
/** Extractor FactType; null/undefined → neutral weight (1.0). */
|
|
7032
|
+
factType?: string | null;
|
|
7033
|
+
}
|
|
7034
|
+
interface RankedProfileCandidate {
|
|
7035
|
+
id: string;
|
|
7036
|
+
score: number;
|
|
7037
|
+
trend: ObservationTrend;
|
|
7038
|
+
factType?: string | null;
|
|
7039
|
+
proofCount: number;
|
|
7040
|
+
}
|
|
7041
|
+
interface ScoreProfileSalienceOptions {
|
|
7042
|
+
/** Override type weights (merged over {@link DEFAULT_PROFILE_FACT_TYPE_WEIGHTS}). */
|
|
7043
|
+
factTypeWeights?: Partial<Record<FactType, number>>;
|
|
7044
|
+
/** Override trend multipliers. */
|
|
7045
|
+
trendMultipliers?: Partial<Record<ObservationTrend, number>>;
|
|
7046
|
+
/** Proof-count α. Default: {@link DEFAULT_PROFILE_PROOF_ALPHA}. */
|
|
7047
|
+
proofCountAlpha?: number;
|
|
7048
|
+
}
|
|
7049
|
+
/**
|
|
7050
|
+
* Score a vault fact for profile-worthiness.
|
|
7051
|
+
*
|
|
7052
|
+
* `typeWeight * (1 + α·log(1+proofCount) − α·log(2)) * trendMultiplier`
|
|
7053
|
+
*
|
|
7054
|
+
* The proof term mirrors vault fusion's log curve (neutral at proofCount=1).
|
|
7055
|
+
* Pass `now` for deterministic evals.
|
|
7056
|
+
*/
|
|
7057
|
+
declare function scoreProfileSalience(input: ProfileSalienceInput, now?: number, options?: ScoreProfileSalienceOptions): number;
|
|
7058
|
+
/**
|
|
7059
|
+
* Rank vault facts by profile-worthiness (descending score).
|
|
7060
|
+
* Ties broken by higher proofCount, then id ascending for stability.
|
|
7061
|
+
*/
|
|
7062
|
+
declare function rankProfileCandidates(inputs: readonly ProfileSalienceInput[], now?: number, options?: ScoreProfileSalienceOptions): RankedProfileCandidate[];
|
|
7063
|
+
|
|
7004
7064
|
/**
|
|
7005
7065
|
* Unified Recall API — single retrieval surface above vault + engine.
|
|
7006
7066
|
*
|
|
@@ -7138,6 +7198,12 @@ interface ReflectOptions extends RecallOptions, PortalLlmAuth {
|
|
|
7138
7198
|
fetchFn?: typeof fetch;
|
|
7139
7199
|
/** Optional JSON Schema to coerce structured outputs. */
|
|
7140
7200
|
responseSchema?: Record<string, unknown>;
|
|
7201
|
+
/**
|
|
7202
|
+
* Skip Stage-1 {@link recall} and synthesize from these memories instead.
|
|
7203
|
+
* Used by `synthesizeProfile` after intersecting recall with a
|
|
7204
|
+
* `reviewedMemoryIds` gate so the LLM never sees unreviewed evidence.
|
|
7205
|
+
*/
|
|
7206
|
+
memories?: RankedMemory[];
|
|
7141
7207
|
}
|
|
7142
7208
|
interface ReflectResult {
|
|
7143
7209
|
/** The synthesized answer text. */
|
|
@@ -7261,8 +7327,9 @@ interface ProfileSection {
|
|
|
7261
7327
|
/** Fingerprint of the config that produced a {@link ProfileDoc}. Delta reuse
|
|
7262
7328
|
* (both the wholesale fast path and per-section reuse) is only valid when the
|
|
7263
7329
|
* current call's config matches — otherwise reused sections could carry the
|
|
7264
|
-
* wrong scope's evidence, un-redacted text under a now-present redactor,
|
|
7265
|
-
* old section shape
|
|
7330
|
+
* wrong scope's evidence, un-redacted text under a now-present redactor, an
|
|
7331
|
+
* old section shape, or text grounded in memory ids that are no longer in the
|
|
7332
|
+
* publish-review set. */
|
|
7266
7333
|
interface ProfileConfigFingerprint {
|
|
7267
7334
|
/** Facet keys present in the doc, sorted. */
|
|
7268
7335
|
facetKeys: ProfileFacetKey[];
|
|
@@ -7277,6 +7344,14 @@ interface ProfileConfigFingerprint {
|
|
|
7277
7344
|
/** Whether a PII redactor gated the section text. Reusing un-gated text under
|
|
7278
7345
|
* a now-present redactor would leak PII, so this flips the fingerprint. */
|
|
7279
7346
|
redacted: boolean;
|
|
7347
|
+
/**
|
|
7348
|
+
* Order-independent digest of {@link SynthesizeProfileOptions.reviewedMemoryIds}.
|
|
7349
|
+
* Empty string when the review gate is off (omit / empty array). Changing the
|
|
7350
|
+
* set must invalidate reuse — otherwise a narrowed review keeps text grounded
|
|
7351
|
+
* in unreviewed ids, and a widened review leaves previously-cleared sections
|
|
7352
|
+
* empty.
|
|
7353
|
+
*/
|
|
7354
|
+
reviewedMemoryIdsSignature: string;
|
|
7280
7355
|
}
|
|
7281
7356
|
/** A synthesized profile. Server-authoritative once published; the client
|
|
7282
7357
|
* caches it and passes it back as {@link SynthesizeProfileOptions.previous}. */
|
|
@@ -7322,6 +7397,24 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
|
|
|
7322
7397
|
* Omit only when the caller redacts downstream — `nearby` also moderates
|
|
7323
7398
|
* server-side, but the client should never publish un-gated text. */
|
|
7324
7399
|
redactor?: PiiRedactor;
|
|
7400
|
+
/**
|
|
7401
|
+
* Per-FactType score multipliers for facet recall. Default:
|
|
7402
|
+
* {@link DEFAULT_PROFILE_FACT_TYPE_WEIGHTS} (durable types boosted).
|
|
7403
|
+
* Does not change global chat `recall()` defaults.
|
|
7404
|
+
*/
|
|
7405
|
+
factTypeWeights?: Partial<Record<FactType, number>>;
|
|
7406
|
+
/**
|
|
7407
|
+
* Proof-count α for facet recall. Default: {@link DEFAULT_PROFILE_PROOF_ALPHA}
|
|
7408
|
+
* (0.2). Chat recall stays at 0.1.
|
|
7409
|
+
*/
|
|
7410
|
+
proofCountAlpha?: number;
|
|
7411
|
+
/**
|
|
7412
|
+
* When non-empty, intersect each facet's recalled evidence with this id set
|
|
7413
|
+
* before the LLM runs (publish-review gate). Empty intersection → empty
|
|
7414
|
+
* section (legitimate no-evidence), not a stale fallback. Omit / empty →
|
|
7415
|
+
* no gate.
|
|
7416
|
+
*/
|
|
7417
|
+
reviewedMemoryIds?: readonly string[];
|
|
7325
7418
|
}
|
|
7326
7419
|
/**
|
|
7327
7420
|
* Synthesize a shareable {@link ProfileDoc} from the user's vault, on-device.
|
|
@@ -8793,4 +8886,4 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
8793
8886
|
*/
|
|
8794
8887
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
8795
8888
|
|
|
8796
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, 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_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, 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 Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, RerankerUnavailableError, 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 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 SynthesizeProfileOptions, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hardDeleteDecayedOp, hasEncryptionKey, injectionSignatureCatalog, isPiiRedactor, isRerankerAvailable, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|
|
8889
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, 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, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, 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 Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, RerankerUnavailableError, 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 SynthesizeProfileOptions, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hardDeleteDecayedOp, hasEncryptionKey, injectionSignatureCatalog, isPiiRedactor, isRerankerAvailable, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|