@anuma/sdk 6.20.0 → 6.21.1

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.
@@ -133,7 +133,7 @@ import {
133
133
  upsertMessageOp,
134
134
  useEncryption,
135
135
  vaultMemoryToStored
136
- } from "./chunk-7HRJOHW4.mjs";
136
+ } from "./chunk-CIMZZ7GQ.mjs";
137
137
  import {
138
138
  PII_PATTERNS,
139
139
  PiiRedactor,
@@ -8520,13 +8520,25 @@ async function synthesizeProfile(ctx, options = {}) {
8520
8520
  watermark,
8521
8521
  options.reviewedMemoryIds
8522
8522
  );
8523
+ const memoriesById = new Map(memories.map((memory) => [memory.uniqueId, memory]));
8524
+ const fallbackPriors = /* @__PURE__ */ new Map();
8525
+ if (previous) {
8526
+ for (const section of previous.sections) {
8527
+ if (section.sourceMemoryIds.length > 0 && section.sourceMemoryIds.every((id) => {
8528
+ const memory = memoriesById.get(id);
8529
+ return memory && !memory.isDeleted && !memory.supersededBy && scopes.includes(memory.scope) && (options.reviewedMemoryIds === void 0 || options.reviewedMemoryIds.includes(id)) && changeTime(memory) <= previous.vaultWatermark;
8530
+ })) {
8531
+ fallbackPriors.set(section.key, section);
8532
+ }
8533
+ }
8534
+ }
8523
8535
  const settled = await Promise.allSettled(
8524
8536
  facets.map(async (facet) => {
8525
8537
  const prior = previous?.sections.find((s) => s.key === facet.key);
8526
8538
  if (prior && !staleKeys.has(facet.key)) {
8527
8539
  return prior;
8528
8540
  }
8529
- return synthesizeFacet(facet, ctx, options, prior);
8541
+ return synthesizeFacet(facet, ctx, options, fallbackPriors.get(facet.key));
8530
8542
  })
8531
8543
  );
8532
8544
  const sections = settled.map((r, i) => {
@@ -8539,10 +8551,7 @@ async function synthesizeProfile(ctx, options = {}) {
8539
8551
  error: r.reason instanceof Error ? r.reason.message : String(r.reason)
8540
8552
  }
8541
8553
  );
8542
- return fallbackSection(
8543
- facet,
8544
- previous?.sections.find((s) => s.key === facet.key)
8545
- );
8554
+ return fallbackSection(facet, fallbackPriors.get(facet.key));
8546
8555
  });
8547
8556
  return {
8548
8557
  version: PROFILE_DOC_VERSION,
@@ -8730,7 +8739,7 @@ async function synthesizeFacet(facet, ctx, options, prior) {
8730
8739
  const { text: text12, legitimateEmpty } = extractFacetText(result.structuredOutput);
8731
8740
  if (!text12 && !legitimateEmpty && !noEvidence) {
8732
8741
  getLogger().warn(
8733
- "[memory/synthesizeProfile] facet synthesis returned degraded-empty; keeping prior section",
8742
+ "[memory/synthesizeProfile] facet synthesis returned degraded-empty; using fallback section",
8734
8743
  { facet: facet.key, recalledCount: result.basedOn.memoryIds.length }
8735
8744
  );
8736
8745
  return fallbackSection(facet, prior);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-7HRJOHW4.mjs";
3
+ } from "./chunk-CIMZZ7GQ.mjs";
4
4
  import "./chunk-WUG6GTHO.mjs";
5
5
  import "./chunk-GYKJOWEO.mjs";
6
6
  export {
@@ -7196,7 +7196,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
7196
7196
  subQueries = decomp.subQueries;
7197
7197
  }
7198
7198
  }
7199
- const { recall: recall2 } = await import("./recall-B3M4BWQ2.mjs");
7199
+ const { recall: recall2 } = await import("./recall-7Q3V337H.mjs");
7200
7200
  let recallDegraded = [];
7201
7201
  const result = await recall2(
7202
7202
  query,
@@ -7787,7 +7787,22 @@ async function recall(query, ctx, options = {}) {
7787
7787
  let factLaneRankedOnCosine = false;
7788
7788
  let decryptLastRan;
7789
7789
  let vaultRowsDecrypted;
7790
- const emitDiagnostics = (candidateCount) => {
7790
+ let graphLaneCount = 0;
7791
+ let temporalLaneCount = 0;
7792
+ let graphLaneFailed = false;
7793
+ let temporalLaneFailed = false;
7794
+ let hitLimit = false;
7795
+ let factFloor = -1;
7796
+ let chunkFloor = -1;
7797
+ const emptyReasonFor = (admitted, laneRan) => {
7798
+ if (admitted > 0) return "";
7799
+ if (!query || typeof query !== "string" || query.trim().length === 0) return "empty-query";
7800
+ if (!laneRan) return "no-lanes";
7801
+ const chunkLaneCouldAnswer = types.includes("chunk") && !!ctx.storageCtx;
7802
+ if (vaultSize === 0 && !chunkLaneCouldAnswer) return "vault-empty";
7803
+ return "no-candidates";
7804
+ };
7805
+ const emitDiagnostics = (candidateCount, admitted) => {
7791
7806
  const cb = options.onDiagnostics;
7792
7807
  if (!cb) return;
7793
7808
  const degraded = [];
@@ -7798,6 +7813,11 @@ async function recall(query, ctx, options = {}) {
7798
7813
  degraded.push("decompose-moved");
7799
7814
  }
7800
7815
  if (embeddingsUnavailable) degraded.push("embeddings-unavailable");
7816
+ if (graphLaneFailed) degraded.push("graph-lane-failed");
7817
+ if (temporalLaneFailed) degraded.push("temporal-lane-failed");
7818
+ const laneRan = types.includes("fact") && !!ctx.vaultCtx && !!ctx.vaultCache || types.includes("chunk") && !!ctx.storageCtx;
7819
+ const scores = admitted.map((m) => m.score);
7820
+ const minScoreApplied = factResults.length > 0 ? factFloor : chunkResults.length > 0 ? chunkFloor : factFloor >= 0 ? factFloor : chunkFloor;
7801
7821
  const diagnostics = {
7802
7822
  usedBudget,
7803
7823
  reranked: didRerank,
@@ -7808,6 +7828,14 @@ async function recall(query, ctx, options = {}) {
7808
7828
  ...vaultRowsEmbedded !== void 0 && { vaultRowsEmbedded },
7809
7829
  factCount: factResults.length,
7810
7830
  chunkCount: chunkResults.length,
7831
+ admittedCount: admitted.length,
7832
+ topScore: scores.length > 0 ? Math.max(...scores) : -1,
7833
+ lowestAdmittedScore: scores.length > 0 ? Math.min(...scores) : -1,
7834
+ minScoreApplied,
7835
+ truncated: hitLimit,
7836
+ graphLaneCount,
7837
+ temporalLaneCount,
7838
+ emptyReason: emptyReasonFor(admitted.length, laneRan),
7811
7839
  timings: {
7812
7840
  total: nowMs2() - t0,
7813
7841
  prep: prepMs,
@@ -7825,7 +7853,7 @@ async function recall(query, ctx, options = {}) {
7825
7853
  }
7826
7854
  };
7827
7855
  if (!query || typeof query !== "string" || query.trim().length === 0) {
7828
- emitDiagnostics(0);
7856
+ emitDiagnostics(0, []);
7829
7857
  return { memories: [], usedBudget, reranked: false, candidateCount: 0 };
7830
7858
  }
7831
7859
  const needsChunkEmbedding = types.includes("chunk") && ctx.storageCtx;
@@ -7859,6 +7887,7 @@ async function recall(query, ctx, options = {}) {
7859
7887
  // empty ranking instead (mirrors safeCountVault's fail-soft posture).
7860
7888
  safeLane(
7861
7889
  "graph",
7890
+ () => graphLaneFailed = true,
7862
7891
  () => buildGraphLaneRanking(query, ctx, flags.traverse, {
7863
7892
  ...options.maxHops !== void 0 && { maxHops: options.maxHops },
7864
7893
  ...options.entityFanout !== void 0 && { entityFanout: options.entityFanout },
@@ -7867,12 +7896,19 @@ async function recall(query, ctx, options = {}) {
7867
7896
  ...graphRefiner && { refineNeighbors: graphRefiner }
7868
7897
  })
7869
7898
  ),
7870
- wantsTemporal ? safeLane("temporal", () => buildTemporalLaneRanking(query, ctx.vaultCtx, options.now)) : Promise.resolve([])
7899
+ wantsTemporal ? safeLane(
7900
+ "temporal",
7901
+ () => temporalLaneFailed = true,
7902
+ () => buildTemporalLaneRanking(query, ctx.vaultCtx, options.now)
7903
+ ) : Promise.resolve([])
7871
7904
  ]);
7872
7905
  prepMs = nowMs2() - prepStart;
7906
+ graphLaneCount = entityRanking.length;
7907
+ temporalLaneCount = temporalRanking.length;
7873
7908
  if (types.includes("fact") && ctx.vaultCtx && ctx.vaultCache) {
7874
7909
  const factStart = nowMs2();
7875
7910
  const vaultMinScore = options.minScore ?? DEFAULT_FACT_MIN_SCORE;
7911
+ factFloor = vaultMinScore;
7876
7912
  const {
7877
7913
  results,
7878
7914
  vaultSize: size,
@@ -7952,6 +7988,7 @@ async function recall(query, ctx, options = {}) {
7952
7988
  if (types.includes("chunk") && ctx.storageCtx && queryEmbedding) {
7953
7989
  const chunkStart = nowMs2();
7954
7990
  const chunkMinScore = options.minScore ?? DEFAULT_CHUNK_MIN_SCORE;
7991
+ chunkFloor = chunkMinScore;
7955
7992
  const results = await searchChunksOp(ctx.storageCtx, queryEmbedding, {
7956
7993
  limit: types.includes("fact") ? Math.max(limit * 2, 16) : limit,
7957
7994
  minSimilarity: chunkMinScore,
@@ -7978,9 +8015,11 @@ async function recall(query, ctx, options = {}) {
7978
8015
  memories2.sort((a, b) => b.score - a.score);
7979
8016
  const candidateCount = factResults.length + chunkResults.length;
7980
8017
  fuseMs = nowMs2() - fuseStart;
7981
- emitDiagnostics(candidateCount);
8018
+ const admitted = memories2.slice(0, limit);
8019
+ hitLimit = memories2.length > limit;
8020
+ emitDiagnostics(candidateCount, admitted);
7982
8021
  return {
7983
- memories: memories2.slice(0, limit),
8022
+ memories: admitted,
7984
8023
  usedBudget,
7985
8024
  reranked: didRerank,
7986
8025
  candidateCount,
@@ -8010,12 +8049,16 @@ async function recall(query, ctx, options = {}) {
8010
8049
  const ordered = [...byId.values()].sort((a, b) => b.score - a.score);
8011
8050
  const selectWith = (suppressed2) => {
8012
8051
  const out = [];
8052
+ let cut = false;
8013
8053
  for (const m of ordered) {
8014
- if (out.length >= limit) break;
8015
8054
  if (m.kind === "chunk" && m.messageId && suppressed2.has(m.messageId)) continue;
8055
+ if (out.length >= limit) {
8056
+ cut = true;
8057
+ break;
8058
+ }
8016
8059
  out.push(m);
8017
8060
  }
8018
- return out;
8061
+ return { out, cut };
8019
8062
  };
8020
8063
  const provenanceOf = (selected) => {
8021
8064
  const s = /* @__PURE__ */ new Set();
@@ -8025,15 +8068,18 @@ async function recall(query, ctx, options = {}) {
8025
8068
  return s;
8026
8069
  };
8027
8070
  let suppressed = /* @__PURE__ */ new Set();
8028
- let memories = selectWith(suppressed);
8071
+ let selection = selectWith(suppressed);
8072
+ let memories = selection.out;
8029
8073
  for (let i = 0; i < ordered.length; i++) {
8030
8074
  const next = provenanceOf(memories);
8031
8075
  if (next.size === suppressed.size && [...next].every((id) => suppressed.has(id))) break;
8032
8076
  suppressed = next;
8033
- memories = selectWith(suppressed);
8077
+ selection = selectWith(suppressed);
8078
+ memories = selection.out;
8034
8079
  }
8080
+ hitLimit = selection.cut;
8035
8081
  fuseMs = nowMs2() - fuseStart;
8036
- emitDiagnostics(byId.size);
8082
+ emitDiagnostics(byId.size, memories);
8037
8083
  return {
8038
8084
  memories,
8039
8085
  usedBudget,
@@ -8117,10 +8163,11 @@ async function safeCountVault(ctx) {
8117
8163
  return void 0;
8118
8164
  }
8119
8165
  }
8120
- async function safeLane(label, run) {
8166
+ async function safeLane(label, onFailure, run) {
8121
8167
  try {
8122
8168
  return await run();
8123
8169
  } catch (err) {
8170
+ onFailure();
8124
8171
  getLogger().warn(
8125
8172
  `[memory/recall] ${label} lane failed; continuing without it: ${err instanceof Error ? err.message : String(err)}`
8126
8173
  );
@@ -7962,7 +7962,22 @@ async function recall(query, ctx, options = {}) {
7962
7962
  let factLaneRankedOnCosine = false;
7963
7963
  let decryptLastRan;
7964
7964
  let vaultRowsDecrypted;
7965
- const emitDiagnostics = (candidateCount) => {
7965
+ let graphLaneCount = 0;
7966
+ let temporalLaneCount = 0;
7967
+ let graphLaneFailed = false;
7968
+ let temporalLaneFailed = false;
7969
+ let hitLimit = false;
7970
+ let factFloor = -1;
7971
+ let chunkFloor = -1;
7972
+ const emptyReasonFor = (admitted, laneRan) => {
7973
+ if (admitted > 0) return "";
7974
+ if (!query || typeof query !== "string" || query.trim().length === 0) return "empty-query";
7975
+ if (!laneRan) return "no-lanes";
7976
+ const chunkLaneCouldAnswer = types.includes("chunk") && !!ctx.storageCtx;
7977
+ if (vaultSize === 0 && !chunkLaneCouldAnswer) return "vault-empty";
7978
+ return "no-candidates";
7979
+ };
7980
+ const emitDiagnostics = (candidateCount, admitted) => {
7966
7981
  const cb = options.onDiagnostics;
7967
7982
  if (!cb) return;
7968
7983
  const degraded = [];
@@ -7973,6 +7988,11 @@ async function recall(query, ctx, options = {}) {
7973
7988
  degraded.push("decompose-moved");
7974
7989
  }
7975
7990
  if (embeddingsUnavailable) degraded.push("embeddings-unavailable");
7991
+ if (graphLaneFailed) degraded.push("graph-lane-failed");
7992
+ if (temporalLaneFailed) degraded.push("temporal-lane-failed");
7993
+ const laneRan = types.includes("fact") && !!ctx.vaultCtx && !!ctx.vaultCache || types.includes("chunk") && !!ctx.storageCtx;
7994
+ const scores = admitted.map((m) => m.score);
7995
+ const minScoreApplied = factResults.length > 0 ? factFloor : chunkResults.length > 0 ? chunkFloor : factFloor >= 0 ? factFloor : chunkFloor;
7976
7996
  const diagnostics = {
7977
7997
  usedBudget,
7978
7998
  reranked: didRerank,
@@ -7983,6 +8003,14 @@ async function recall(query, ctx, options = {}) {
7983
8003
  ...vaultRowsEmbedded !== void 0 && { vaultRowsEmbedded },
7984
8004
  factCount: factResults.length,
7985
8005
  chunkCount: chunkResults.length,
8006
+ admittedCount: admitted.length,
8007
+ topScore: scores.length > 0 ? Math.max(...scores) : -1,
8008
+ lowestAdmittedScore: scores.length > 0 ? Math.min(...scores) : -1,
8009
+ minScoreApplied,
8010
+ truncated: hitLimit,
8011
+ graphLaneCount,
8012
+ temporalLaneCount,
8013
+ emptyReason: emptyReasonFor(admitted.length, laneRan),
7986
8014
  timings: {
7987
8015
  total: nowMs() - t0,
7988
8016
  prep: prepMs,
@@ -8000,7 +8028,7 @@ async function recall(query, ctx, options = {}) {
8000
8028
  }
8001
8029
  };
8002
8030
  if (!query || typeof query !== "string" || query.trim().length === 0) {
8003
- emitDiagnostics(0);
8031
+ emitDiagnostics(0, []);
8004
8032
  return { memories: [], usedBudget, reranked: false, candidateCount: 0 };
8005
8033
  }
8006
8034
  const needsChunkEmbedding = types.includes("chunk") && ctx.storageCtx;
@@ -8034,6 +8062,7 @@ async function recall(query, ctx, options = {}) {
8034
8062
  // empty ranking instead (mirrors safeCountVault's fail-soft posture).
8035
8063
  safeLane(
8036
8064
  "graph",
8065
+ () => graphLaneFailed = true,
8037
8066
  () => buildGraphLaneRanking(query, ctx, flags.traverse, {
8038
8067
  ...options.maxHops !== void 0 && { maxHops: options.maxHops },
8039
8068
  ...options.entityFanout !== void 0 && { entityFanout: options.entityFanout },
@@ -8042,12 +8071,19 @@ async function recall(query, ctx, options = {}) {
8042
8071
  ...graphRefiner && { refineNeighbors: graphRefiner }
8043
8072
  })
8044
8073
  ),
8045
- wantsTemporal ? safeLane("temporal", () => buildTemporalLaneRanking(query, ctx.vaultCtx, options.now)) : Promise.resolve([])
8074
+ wantsTemporal ? safeLane(
8075
+ "temporal",
8076
+ () => temporalLaneFailed = true,
8077
+ () => buildTemporalLaneRanking(query, ctx.vaultCtx, options.now)
8078
+ ) : Promise.resolve([])
8046
8079
  ]);
8047
8080
  prepMs = nowMs() - prepStart;
8081
+ graphLaneCount = entityRanking.length;
8082
+ temporalLaneCount = temporalRanking.length;
8048
8083
  if (types.includes("fact") && ctx.vaultCtx && ctx.vaultCache) {
8049
8084
  const factStart = nowMs();
8050
8085
  const vaultMinScore = options.minScore ?? DEFAULT_FACT_MIN_SCORE;
8086
+ factFloor = vaultMinScore;
8051
8087
  const {
8052
8088
  results,
8053
8089
  vaultSize: size,
@@ -8127,6 +8163,7 @@ async function recall(query, ctx, options = {}) {
8127
8163
  if (types.includes("chunk") && ctx.storageCtx && queryEmbedding) {
8128
8164
  const chunkStart = nowMs();
8129
8165
  const chunkMinScore = options.minScore ?? DEFAULT_CHUNK_MIN_SCORE;
8166
+ chunkFloor = chunkMinScore;
8130
8167
  const results = await searchChunksOp(ctx.storageCtx, queryEmbedding, {
8131
8168
  limit: types.includes("fact") ? Math.max(limit * 2, 16) : limit,
8132
8169
  minSimilarity: chunkMinScore,
@@ -8153,9 +8190,11 @@ async function recall(query, ctx, options = {}) {
8153
8190
  memories2.sort((a, b) => b.score - a.score);
8154
8191
  const candidateCount = factResults.length + chunkResults.length;
8155
8192
  fuseMs = nowMs() - fuseStart;
8156
- emitDiagnostics(candidateCount);
8193
+ const admitted = memories2.slice(0, limit);
8194
+ hitLimit = memories2.length > limit;
8195
+ emitDiagnostics(candidateCount, admitted);
8157
8196
  return {
8158
- memories: memories2.slice(0, limit),
8197
+ memories: admitted,
8159
8198
  usedBudget,
8160
8199
  reranked: didRerank,
8161
8200
  candidateCount,
@@ -8185,12 +8224,16 @@ async function recall(query, ctx, options = {}) {
8185
8224
  const ordered = [...byId.values()].sort((a, b) => b.score - a.score);
8186
8225
  const selectWith = (suppressed2) => {
8187
8226
  const out = [];
8227
+ let cut = false;
8188
8228
  for (const m of ordered) {
8189
- if (out.length >= limit) break;
8190
8229
  if (m.kind === "chunk" && m.messageId && suppressed2.has(m.messageId)) continue;
8230
+ if (out.length >= limit) {
8231
+ cut = true;
8232
+ break;
8233
+ }
8191
8234
  out.push(m);
8192
8235
  }
8193
- return out;
8236
+ return { out, cut };
8194
8237
  };
8195
8238
  const provenanceOf = (selected) => {
8196
8239
  const s = /* @__PURE__ */ new Set();
@@ -8200,15 +8243,18 @@ async function recall(query, ctx, options = {}) {
8200
8243
  return s;
8201
8244
  };
8202
8245
  let suppressed = /* @__PURE__ */ new Set();
8203
- let memories = selectWith(suppressed);
8246
+ let selection = selectWith(suppressed);
8247
+ let memories = selection.out;
8204
8248
  for (let i = 0; i < ordered.length; i++) {
8205
8249
  const next = provenanceOf(memories);
8206
8250
  if (next.size === suppressed.size && [...next].every((id) => suppressed.has(id))) break;
8207
8251
  suppressed = next;
8208
- memories = selectWith(suppressed);
8252
+ selection = selectWith(suppressed);
8253
+ memories = selection.out;
8209
8254
  }
8255
+ hitLimit = selection.cut;
8210
8256
  fuseMs = nowMs() - fuseStart;
8211
- emitDiagnostics(byId.size);
8257
+ emitDiagnostics(byId.size, memories);
8212
8258
  return {
8213
8259
  memories,
8214
8260
  usedBudget,
@@ -8292,10 +8338,11 @@ async function safeCountVault(ctx) {
8292
8338
  return void 0;
8293
8339
  }
8294
8340
  }
8295
- async function safeLane(label, run) {
8341
+ async function safeLane(label, onFailure, run) {
8296
8342
  try {
8297
8343
  return await run();
8298
8344
  } catch (err) {
8345
+ onFailure();
8299
8346
  getLogger().warn(
8300
8347
  `[memory/recall] ${label} lane failed; continuing without it: ${err instanceof Error ? err.message : String(err)}`
8301
8348
  );
@@ -19593,13 +19640,25 @@ async function synthesizeProfile(ctx, options = {}) {
19593
19640
  watermark,
19594
19641
  options.reviewedMemoryIds
19595
19642
  );
19643
+ const memoriesById = new Map(memories.map((memory) => [memory.uniqueId, memory]));
19644
+ const fallbackPriors = /* @__PURE__ */ new Map();
19645
+ if (previous) {
19646
+ for (const section of previous.sections) {
19647
+ if (section.sourceMemoryIds.length > 0 && section.sourceMemoryIds.every((id) => {
19648
+ const memory = memoriesById.get(id);
19649
+ return memory && !memory.isDeleted && !memory.supersededBy && scopes.includes(memory.scope) && (options.reviewedMemoryIds === void 0 || options.reviewedMemoryIds.includes(id)) && changeTime(memory) <= previous.vaultWatermark;
19650
+ })) {
19651
+ fallbackPriors.set(section.key, section);
19652
+ }
19653
+ }
19654
+ }
19596
19655
  const settled = await Promise.allSettled(
19597
19656
  facets.map(async (facet) => {
19598
19657
  const prior = previous?.sections.find((s) => s.key === facet.key);
19599
19658
  if (prior && !staleKeys.has(facet.key)) {
19600
19659
  return prior;
19601
19660
  }
19602
- return synthesizeFacet(facet, ctx, options, prior);
19661
+ return synthesizeFacet(facet, ctx, options, fallbackPriors.get(facet.key));
19603
19662
  })
19604
19663
  );
19605
19664
  const sections = settled.map((r, i) => {
@@ -19612,10 +19671,7 @@ async function synthesizeProfile(ctx, options = {}) {
19612
19671
  error: r.reason instanceof Error ? r.reason.message : String(r.reason)
19613
19672
  }
19614
19673
  );
19615
- return fallbackSection(
19616
- facet,
19617
- previous?.sections.find((s) => s.key === facet.key)
19618
- );
19674
+ return fallbackSection(facet, fallbackPriors.get(facet.key));
19619
19675
  });
19620
19676
  return {
19621
19677
  version: PROFILE_DOC_VERSION,
@@ -19803,7 +19859,7 @@ async function synthesizeFacet(facet, ctx, options, prior) {
19803
19859
  const { text: text12, legitimateEmpty } = extractFacetText(result.structuredOutput);
19804
19860
  if (!text12 && !legitimateEmpty && !noEvidence) {
19805
19861
  getLogger().warn(
19806
- "[memory/synthesizeProfile] facet synthesis returned degraded-empty; keeping prior section",
19862
+ "[memory/synthesizeProfile] facet synthesis returned degraded-empty; using fallback section",
19807
19863
  { facet: facet.key, recalledCount: result.basedOn.memoryIds.length }
19808
19864
  );
19809
19865
  return fallbackSection(facet, prior);
@@ -7110,7 +7110,25 @@ type RecallDegradation =
7110
7110
  * failing back to the single-query path, or a row batch failing while other
7111
7111
  * rows keep usable vectors) — those are logged, not reported, so this stays a
7112
7112
  * reliable outage signal rather than a general embedding-error counter. */
7113
- | "embeddings-unavailable";
7113
+ | "embeddings-unavailable"
7114
+ /** The W5 graph (entity) side lane threw and was dropped. Auxiliary, so recall
7115
+ * still returned — but its RRF signal is missing from the ranking, and until
7116
+ * this existed the drop was a log line and nothing else. */
7117
+ | "graph-lane-failed"
7118
+ /** The W6 temporal side lane threw and was dropped. Same posture as the graph
7119
+ * lane: recall still returned, ranked without the temporal signal. */
7120
+ | "temporal-lane-failed";
7121
+ /**
7122
+ * Why a recall returned nothing. `""` when it returned something, so the field
7123
+ * is always present and groupable rather than being absent on the healthy path.
7124
+ *
7125
+ * The four are different problems: an empty query is a caller bug, no-lanes is a
7126
+ * context wiring bug (the requested kinds have no store), vault-empty is a new
7127
+ * user, and no-candidates is the only one that is about retrieval quality. They
7128
+ * were previously indistinguishable from outside — every one reported
7129
+ * `candidateCount: 0`.
7130
+ */
7131
+ type RecallEmptyReason = "" | "empty-query" | "no-lanes" | "vault-empty" | "no-candidates";
7114
7132
  /**
7115
7133
  * Per-call recall observability payload (see {@link RecallOptions.onDiagnostics}).
7116
7134
  * All timings are wall-clock milliseconds. Lane counts are post-dedupe,
@@ -7161,6 +7179,50 @@ interface RecallDiagnostics {
7161
7179
  factCount: number;
7162
7180
  /** Chunks the chunk lane returned (post-dedupe, pre-fusion). */
7163
7181
  chunkCount: number;
7182
+ /**
7183
+ * Memories actually RETURNED — `memories.length` after fusion, cross-lane
7184
+ * dedup and the `limit` slice.
7185
+ *
7186
+ * `candidateCount` is what was considered; this is what the caller got, and
7187
+ * the two are routinely far apart (the fact lane pulls `limit * 2` when fusing).
7188
+ * Every consumer that wanted "how many memories did this turn actually get"
7189
+ * was reading `candidateCount` and overcounting.
7190
+ */
7191
+ admittedCount: number;
7192
+ /** Highest score among the returned memories; -1 when none were returned. */
7193
+ topScore: number;
7194
+ /** Lowest score among the returned memories; -1 when none were returned. */
7195
+ lowestAdmittedScore: number;
7196
+ /**
7197
+ * The similarity floor the lane that produced these scores actually applied:
7198
+ * the fact lane's when it RETURNED results, otherwise the chunk lane's, and
7199
+ * **-1 when neither ran** (empty query, unwired context). Gated on results
7200
+ * rather than on the lane running, because a fact lane that ran and came
7201
+ * back empty filtered none of the scores in the payload — reporting its
7202
+ * 0.1 default against chunks that cleared 0.5 corrupted the telemetry.
7203
+ * When NOTHING was admitted, the floor a lane did apply is still reported:
7204
+ * "searched at this floor, found nothing" is the useful reading.
7205
+ *
7206
+ * Per-lane rather than one constant because the two defaults differ (0.1 fact
7207
+ * / 0.5 chunk), so a single seeded value reported a floor that a chunk-only
7208
+ * recall never applied. Reported next to the scores because the scores alone
7209
+ * cannot say what they cleared.
7210
+ */
7211
+ minScoreApplied: number;
7212
+ /**
7213
+ * Whether the `limit` cut an ELIGIBLE result — recorded at the cut, not
7214
+ * derived from `candidateCount > limit`. In the fused path `candidateCount`
7215
+ * counts before provenance suppression, so a recall whose suppressed chunks
7216
+ * brought it under the limit would otherwise report a truncation that never
7217
+ * happened.
7218
+ */
7219
+ truncated: boolean;
7220
+ /** Memory ids the W5 graph (entity) side lane contributed to the fusion. */
7221
+ graphLaneCount: number;
7222
+ /** Memory ids the W6 temporal side lane contributed to the fusion. */
7223
+ temporalLaneCount: number;
7224
+ /** Why nothing came back — see {@link RecallEmptyReason}. `""` when something did. */
7225
+ emptyReason: RecallEmptyReason;
7164
7226
  /** Wall-clock phase timings (ms). */
7165
7227
  timings: {
7166
7228
  /** Whole `recall()` call. */
@@ -9862,8 +9924,7 @@ interface ProfileSection {
9862
9924
  interests?: string[];
9863
9925
  /** Unix ms this section was generated. */
9864
9926
  generatedAt: number;
9865
- /** True when regeneration failed and a prior section value was carried
9866
- * forward (e.g. LLM returned empty) — the caller may choose to retry. */
9927
+ /** True when regeneration failed (e.g. LLM returned empty) — the caller may choose to retry. */
9867
9928
  stale?: boolean;
9868
9929
  }
9869
9930
  /** Fingerprint of the config that produced a {@link ProfileDoc}. Delta reuse
@@ -16039,4 +16100,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
16039
16100
  */
16040
16101
  declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
16041
16102
 
16042
- export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };
16103
+ export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };