@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.
@@ -8174,6 +8174,61 @@ function createDecaySweeper(options) {
8174
8174
  };
8175
8175
  }
8176
8176
 
8177
+ // src/lib/memory/profileSalience.ts
8178
+ var DEFAULT_PROFILE_PROOF_ALPHA = 0.2;
8179
+ var DEFAULT_PROFILE_FACT_TYPE_WEIGHTS = {
8180
+ identity: 1.5,
8181
+ preference: 1.5,
8182
+ relationship: 1.5,
8183
+ constraint: 1.5,
8184
+ other: 1,
8185
+ plan: 0.6,
8186
+ ongoing_context: 0.6
8187
+ };
8188
+ var DEFAULT_PROFILE_TREND_MULTIPLIERS = {
8189
+ strengthening: 1.25,
8190
+ new: 1.1,
8191
+ stable: 1,
8192
+ weakening: 0.75,
8193
+ stale: 0.5
8194
+ };
8195
+ function typeWeight(factType, weights) {
8196
+ if (!factType) return 1;
8197
+ const w = weights[factType];
8198
+ if (w !== void 0 && Number.isFinite(w) && w > 0) return w;
8199
+ return 1;
8200
+ }
8201
+ function scoreProfileSalience(input, now = Date.now(), options = {}) {
8202
+ const alpha = options.proofCountAlpha ?? DEFAULT_PROFILE_PROOF_ALPHA;
8203
+ const typeWeights = { ...DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, ...options.factTypeWeights };
8204
+ const trendMults = { ...DEFAULT_PROFILE_TREND_MULTIPLIERS, ...options.trendMultipliers };
8205
+ const proofs = Math.max(1, input.proofCount ?? 1);
8206
+ const proofBoost = 1 + alpha * Math.log(1 + proofs) - alpha * Math.log(2);
8207
+ const trend = classifyObservationTrend(input, now);
8208
+ const tw = typeWeight(input.factType, typeWeights);
8209
+ const tm = trendMults[trend] ?? 1;
8210
+ const score = tw * proofBoost * tm;
8211
+ return Number.isFinite(score) ? score : 0;
8212
+ }
8213
+ function rankProfileCandidates(inputs, now = Date.now(), options = {}) {
8214
+ const ranked = inputs.map((input) => {
8215
+ const proofs = Math.max(1, input.proofCount ?? 1);
8216
+ return {
8217
+ id: input.id,
8218
+ score: scoreProfileSalience(input, now, options),
8219
+ trend: classifyObservationTrend(input, now),
8220
+ factType: input.factType ?? null,
8221
+ proofCount: proofs
8222
+ };
8223
+ });
8224
+ ranked.sort((a, b) => {
8225
+ if (b.score !== a.score) return b.score - a.score;
8226
+ if (b.proofCount !== a.proofCount) return b.proofCount - a.proofCount;
8227
+ return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
8228
+ });
8229
+ return ranked;
8230
+ }
8231
+
8177
8232
  // src/lib/memory/recallConstants.ts
8178
8233
  var RECALL_TOOL_NAME = "recall_memory";
8179
8234
  var RECALL_MAX_LIMIT = 50;
@@ -8398,18 +8453,18 @@ async function reflect(query, ctx, options) {
8398
8453
  usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0 }
8399
8454
  };
8400
8455
  if (trimmed.length === 0) return empty;
8401
- const { maxTokens: _llmMaxTokens, ...recallOptions } = options;
8402
- const recalled = await recall(trimmed, ctx, recallOptions);
8403
- const memoryIds = recalled.memories.map((m) => m.id);
8456
+ const { maxTokens: _llmMaxTokens, memories: providedMemories, ...recallOptions } = options;
8457
+ const recalledMemories = providedMemories !== void 0 ? providedMemories : (await recall(trimmed, ctx, recallOptions)).memories;
8458
+ const memoryIds = recalledMemories.map((m) => m.id);
8404
8459
  const baseResult = {
8405
8460
  text: "",
8406
8461
  basedOn: { memoryIds },
8407
8462
  usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0 }
8408
8463
  };
8409
- if (recalled.memories.length === 0) {
8464
+ if (recalledMemories.length === 0) {
8410
8465
  return baseResult;
8411
8466
  }
8412
- const evidence = recalled.memories.map((m, i) => `[${i + 1}] (id: ${m.id}, kind: ${m.kind})
8467
+ const evidence = recalledMemories.map((m, i) => `[${i + 1}] (id: ${m.id}, kind: ${m.kind})
8413
8468
  ${m.content}`).join("\n\n");
8414
8469
  const baseUrl = options.baseUrl ?? DEFAULT_BASE_URL;
8415
8470
  const model = options.llmModel ?? DEFAULT_MODEL3;
@@ -8595,7 +8650,8 @@ async function synthesizeProfile(ctx, options = {}) {
8595
8650
  facetKeys: facets.map((f) => f.key).sort(),
8596
8651
  facetsSignature: facetsSignature(facets),
8597
8652
  scopes: [...scopes].sort(),
8598
- redacted: options.redactor !== void 0
8653
+ redacted: options.redactor !== void 0,
8654
+ reviewedMemoryIdsSignature: reviewedMemoryIdsSignature(options.reviewedMemoryIds)
8599
8655
  };
8600
8656
  const previous = options.previous && options.previous.version === PROFILE_DOC_VERSION && configMatches(options.previous.config, config) ? options.previous : void 0;
8601
8657
  const memories = await getAllVaultMemoriesOp(ctx.vaultCtx, {
@@ -8668,7 +8724,11 @@ async function synthesizeProfile(ctx, options = {}) {
8668
8724
  }
8669
8725
  function configMatches(a, b) {
8670
8726
  if (!a) return false;
8671
- return a.redacted === b.redacted && a.facetsSignature === b.facetsSignature && a.scopes.length === b.scopes.length && a.scopes.every((s, i) => s === b.scopes[i]);
8727
+ 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]);
8728
+ }
8729
+ function reviewedMemoryIdsSignature(ids) {
8730
+ if (ids === void 0 || ids.length === 0) return "";
8731
+ return [...new Set(ids)].sort().join("\n");
8672
8732
  }
8673
8733
  function facetsSignature(facets) {
8674
8734
  return facets.map((f) => JSON.stringify([f.key, f.label, f.query, f.guidance])).sort().join("\n");
@@ -8772,18 +8832,46 @@ async function attributeFacts(ctx, candidates, facets) {
8772
8832
  return keys;
8773
8833
  }
8774
8834
  async function synthesizeFacet(facet, ctx, options, prior) {
8835
+ const scopes = options.scopes ?? DEFAULT_SCOPES;
8836
+ const limit = options.limit ?? DEFAULT_FACET_RECALL_LIMIT;
8837
+ const factTypeWeights = { ...DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, ...options.factTypeWeights };
8838
+ const proofCountAlpha = options.proofCountAlpha ?? DEFAULT_PROFILE_PROOF_ALPHA;
8839
+ const reviewed = options.reviewedMemoryIds;
8840
+ const hasReviewGate = reviewed !== void 0 && reviewed.length > 0;
8841
+ const recalled = await recall(facet.query, ctx, {
8842
+ scopes,
8843
+ limit: hasReviewGate ? RECALL_MAX_LIMIT : limit,
8844
+ types: ["fact"],
8845
+ factTypeWeights,
8846
+ proofCountAlpha
8847
+ });
8848
+ let memories = recalled.memories;
8849
+ if (hasReviewGate) {
8850
+ const allowed = new Set(reviewed);
8851
+ memories = memories.filter((m) => allowed.has(m.id)).slice(0, limit);
8852
+ }
8853
+ if (memories.length === 0) {
8854
+ return {
8855
+ key: facet.key,
8856
+ label: facet.label,
8857
+ text: "",
8858
+ sourceMemoryIds: [],
8859
+ generatedAt: Date.now()
8860
+ };
8861
+ }
8775
8862
  const result = await reflect(facet.query, ctx, {
8776
8863
  apiKey: options.apiKey,
8777
8864
  getToken: options.getToken,
8778
8865
  llmModel: options.llmModel ?? DEFAULT_SYNTHESIS_MODEL,
8779
8866
  baseUrl: options.baseUrl,
8780
8867
  fetchFn: options.fetchFn,
8781
- scopes: options.scopes ?? DEFAULT_SCOPES,
8782
- limit: options.limit ?? DEFAULT_FACET_RECALL_LIMIT,
8868
+ scopes,
8869
+ limit,
8783
8870
  types: ["fact"],
8784
8871
  maxTokens: DEFAULT_FACET_MAX_TOKENS,
8785
8872
  systemPrompt: buildFacetSystemPrompt(facet),
8786
- responseSchema: FACET_RESPONSE_SCHEMA
8873
+ responseSchema: FACET_RESPONSE_SCHEMA,
8874
+ memories
8787
8875
  });
8788
8876
  const noEvidence = result.basedOn.memoryIds.length === 0;
8789
8877
  const { text: text12, legitimateEmpty } = extractFacetText(result.structuredOutput);
@@ -14368,6 +14456,9 @@ export {
14368
14456
  DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP,
14369
14457
  DEFAULT_MIN_CHUNK_SIZE,
14370
14458
  DEFAULT_PROFILE_FACETS,
14459
+ DEFAULT_PROFILE_FACT_TYPE_WEIGHTS,
14460
+ DEFAULT_PROFILE_PROOF_ALPHA,
14461
+ DEFAULT_PROFILE_TREND_MULTIPLIERS,
14371
14462
  DEFAULT_VAULT_CACHE_SIZE,
14372
14463
  DatabaseManager,
14373
14464
  ENTITY_FANOUT,
@@ -14493,6 +14584,7 @@ export {
14493
14584
  preEmbedVaultMemories,
14494
14585
  quantizeEmbedding,
14495
14586
  queueManager,
14587
+ rankProfileCandidates,
14496
14588
  recall,
14497
14589
  reflect,
14498
14590
  refreshNotionAccessToken,
@@ -14502,6 +14594,7 @@ export {
14502
14594
  restoreVaultMemoryOp,
14503
14595
  resumeStream,
14504
14596
  retain,
14597
+ scoreProfileSalience,
14505
14598
  screenCandidatesForInjection,
14506
14599
  sdkMigrations,
14507
14600
  sdkModelClasses,
@@ -6095,8 +6095,8 @@ function rankFusedVaultMemories(query, queryEmbedding, items, options) {
6095
6095
  const proofCount = Math.max(1, item?.proofCount ?? 1);
6096
6096
  const proofBoost = 1 + proofCountAlpha * Math.log(1 + proofCount) - proofCountAlpha * Math.log(2);
6097
6097
  const rawTypeWeight = item?.factType ? factTypeWeights?.[item.factType] : void 0;
6098
- const typeWeight = rawTypeWeight !== void 0 && Number.isFinite(rawTypeWeight) && rawTypeWeight > 0 ? rawTypeWeight : 1;
6099
- return recencyBoost * proofBoost * typeWeight;
6098
+ const typeWeight2 = rawTypeWeight !== void 0 && Number.isFinite(rawTypeWeight) && rawTypeWeight > 0 ? rawTypeWeight : 1;
6099
+ return recencyBoost * proofBoost * typeWeight2;
6100
6100
  };
6101
6101
  let combined = [...baseRanked, ...admitted].map((r) => ({
6102
6102
  ...r,
@@ -7022,6 +7022,9 @@ __export(index_exports, {
7022
7022
  DEFAULT_MIN_CHUNK_SIZE: () => DEFAULT_MIN_CHUNK_SIZE,
7023
7023
  DEFAULT_PERSONALITY_SETTINGS: () => DEFAULT_PERSONALITY_SETTINGS,
7024
7024
  DEFAULT_PROFILE_FACETS: () => DEFAULT_PROFILE_FACETS,
7025
+ DEFAULT_PROFILE_FACT_TYPE_WEIGHTS: () => DEFAULT_PROFILE_FACT_TYPE_WEIGHTS,
7026
+ DEFAULT_PROFILE_PROOF_ALPHA: () => DEFAULT_PROFILE_PROOF_ALPHA,
7027
+ DEFAULT_PROFILE_TREND_MULTIPLIERS: () => DEFAULT_PROFILE_TREND_MULTIPLIERS,
7025
7028
  DEFAULT_SERVER_TOOLS_MATCH_OPTIONS: () => DEFAULT_SERVER_TOOLS_MATCH_OPTIONS,
7026
7029
  DEFAULT_VAULT_CACHE_SIZE: () => DEFAULT_VAULT_CACHE_SIZE,
7027
7030
  DatabaseManager: () => DatabaseManager,
@@ -7307,6 +7310,7 @@ __export(index_exports, {
7307
7310
  putAppFileOp: () => putAppFileOp,
7308
7311
  quantizeEmbedding: () => quantizeEmbedding,
7309
7312
  queueManager: () => queueManager,
7313
+ rankProfileCandidates: () => rankProfileCandidates,
7310
7314
  readEncryptedFile: () => readEncryptedFile,
7311
7315
  recall: () => recall,
7312
7316
  reflect: () => reflect,
@@ -7333,6 +7337,7 @@ __export(index_exports, {
7333
7337
  revokeGithubToken: () => revokeGithubToken,
7334
7338
  revokeNotionAccess: () => revokeNotionAccess,
7335
7339
  savedToolToStored: () => savedToolToStored,
7340
+ scoreProfileSalience: () => scoreProfileSalience,
7336
7341
  screenCandidatesForInjection: () => screenCandidatesForInjection,
7337
7342
  sdkMigrations: () => sdkMigrations,
7338
7343
  sdkModelClasses: () => sdkModelClasses,
@@ -15635,6 +15640,64 @@ function createDecaySweeper(options) {
15635
15640
  // src/lib/memory/index.ts
15636
15641
  init_graphTraversal();
15637
15642
  init_observationTrend();
15643
+
15644
+ // src/lib/memory/profileSalience.ts
15645
+ init_observationTrend();
15646
+ var DEFAULT_PROFILE_PROOF_ALPHA = 0.2;
15647
+ var DEFAULT_PROFILE_FACT_TYPE_WEIGHTS = {
15648
+ identity: 1.5,
15649
+ preference: 1.5,
15650
+ relationship: 1.5,
15651
+ constraint: 1.5,
15652
+ other: 1,
15653
+ plan: 0.6,
15654
+ ongoing_context: 0.6
15655
+ };
15656
+ var DEFAULT_PROFILE_TREND_MULTIPLIERS = {
15657
+ strengthening: 1.25,
15658
+ new: 1.1,
15659
+ stable: 1,
15660
+ weakening: 0.75,
15661
+ stale: 0.5
15662
+ };
15663
+ function typeWeight(factType, weights) {
15664
+ if (!factType) return 1;
15665
+ const w = weights[factType];
15666
+ if (w !== void 0 && Number.isFinite(w) && w > 0) return w;
15667
+ return 1;
15668
+ }
15669
+ function scoreProfileSalience(input, now = Date.now(), options = {}) {
15670
+ const alpha = options.proofCountAlpha ?? DEFAULT_PROFILE_PROOF_ALPHA;
15671
+ const typeWeights = { ...DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, ...options.factTypeWeights };
15672
+ const trendMults = { ...DEFAULT_PROFILE_TREND_MULTIPLIERS, ...options.trendMultipliers };
15673
+ const proofs = Math.max(1, input.proofCount ?? 1);
15674
+ const proofBoost = 1 + alpha * Math.log(1 + proofs) - alpha * Math.log(2);
15675
+ const trend = classifyObservationTrend(input, now);
15676
+ const tw = typeWeight(input.factType, typeWeights);
15677
+ const tm = trendMults[trend] ?? 1;
15678
+ const score = tw * proofBoost * tm;
15679
+ return Number.isFinite(score) ? score : 0;
15680
+ }
15681
+ function rankProfileCandidates(inputs, now = Date.now(), options = {}) {
15682
+ const ranked = inputs.map((input) => {
15683
+ const proofs = Math.max(1, input.proofCount ?? 1);
15684
+ return {
15685
+ id: input.id,
15686
+ score: scoreProfileSalience(input, now, options),
15687
+ trend: classifyObservationTrend(input, now),
15688
+ factType: input.factType ?? null,
15689
+ proofCount: proofs
15690
+ };
15691
+ });
15692
+ ranked.sort((a, b) => {
15693
+ if (b.score !== a.score) return b.score - a.score;
15694
+ if (b.proofCount !== a.proofCount) return b.proofCount - a.proofCount;
15695
+ return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
15696
+ });
15697
+ return ranked;
15698
+ }
15699
+
15700
+ // src/lib/memory/index.ts
15638
15701
  init_recall();
15639
15702
 
15640
15703
  // src/lib/memory/recallTool.ts
@@ -15868,18 +15931,18 @@ async function reflect(query, ctx, options) {
15868
15931
  usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0 }
15869
15932
  };
15870
15933
  if (trimmed.length === 0) return empty;
15871
- const { maxTokens: _llmMaxTokens, ...recallOptions } = options;
15872
- const recalled = await recall(trimmed, ctx, recallOptions);
15873
- const memoryIds = recalled.memories.map((m) => m.id);
15934
+ const { maxTokens: _llmMaxTokens, memories: providedMemories, ...recallOptions } = options;
15935
+ const recalledMemories = providedMemories !== void 0 ? providedMemories : (await recall(trimmed, ctx, recallOptions)).memories;
15936
+ const memoryIds = recalledMemories.map((m) => m.id);
15874
15937
  const baseResult = {
15875
15938
  text: "",
15876
15939
  basedOn: { memoryIds },
15877
15940
  usage: { promptTokens: 0, completionTokens: 0, totalTokens: 0 }
15878
15941
  };
15879
- if (recalled.memories.length === 0) {
15942
+ if (recalledMemories.length === 0) {
15880
15943
  return baseResult;
15881
15944
  }
15882
- const evidence = recalled.memories.map((m, i) => `[${i + 1}] (id: ${m.id}, kind: ${m.kind})
15945
+ const evidence = recalledMemories.map((m, i) => `[${i + 1}] (id: ${m.id}, kind: ${m.kind})
15883
15946
  ${m.content}`).join("\n\n");
15884
15947
  const baseUrl = options.baseUrl ?? DEFAULT_BASE_URL2;
15885
15948
  const model = options.llmModel ?? DEFAULT_MODEL5;
@@ -16002,6 +16065,7 @@ init_constants();
16002
16065
  init_embeddings();
16003
16066
  init_vector();
16004
16067
  init_observationTrend();
16068
+ init_recall();
16005
16069
  var DEFAULT_SYNTHESIS_MODEL = "inclusionai/ling-2.6-flash";
16006
16070
  var DEFAULT_FACET_RECALL_LIMIT = 20;
16007
16071
  var DEFAULT_FACET_MAX_TOKENS = 512;
@@ -16074,7 +16138,8 @@ async function synthesizeProfile(ctx, options = {}) {
16074
16138
  facetKeys: facets.map((f) => f.key).sort(),
16075
16139
  facetsSignature: facetsSignature(facets),
16076
16140
  scopes: [...scopes].sort(),
16077
- redacted: options.redactor !== void 0
16141
+ redacted: options.redactor !== void 0,
16142
+ reviewedMemoryIdsSignature: reviewedMemoryIdsSignature(options.reviewedMemoryIds)
16078
16143
  };
16079
16144
  const previous = options.previous && options.previous.version === PROFILE_DOC_VERSION && configMatches(options.previous.config, config) ? options.previous : void 0;
16080
16145
  const memories = await getAllVaultMemoriesOp(ctx.vaultCtx, {
@@ -16147,7 +16212,11 @@ async function synthesizeProfile(ctx, options = {}) {
16147
16212
  }
16148
16213
  function configMatches(a, b) {
16149
16214
  if (!a) return false;
16150
- return a.redacted === b.redacted && a.facetsSignature === b.facetsSignature && a.scopes.length === b.scopes.length && a.scopes.every((s, i) => s === b.scopes[i]);
16215
+ 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]);
16216
+ }
16217
+ function reviewedMemoryIdsSignature(ids) {
16218
+ if (ids === void 0 || ids.length === 0) return "";
16219
+ return [...new Set(ids)].sort().join("\n");
16151
16220
  }
16152
16221
  function facetsSignature(facets) {
16153
16222
  return facets.map((f) => JSON.stringify([f.key, f.label, f.query, f.guidance])).sort().join("\n");
@@ -16251,18 +16320,46 @@ async function attributeFacts(ctx, candidates, facets) {
16251
16320
  return keys;
16252
16321
  }
16253
16322
  async function synthesizeFacet(facet, ctx, options, prior) {
16323
+ const scopes = options.scopes ?? DEFAULT_SCOPES;
16324
+ const limit = options.limit ?? DEFAULT_FACET_RECALL_LIMIT;
16325
+ const factTypeWeights = { ...DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, ...options.factTypeWeights };
16326
+ const proofCountAlpha = options.proofCountAlpha ?? DEFAULT_PROFILE_PROOF_ALPHA;
16327
+ const reviewed = options.reviewedMemoryIds;
16328
+ const hasReviewGate = reviewed !== void 0 && reviewed.length > 0;
16329
+ const recalled = await recall(facet.query, ctx, {
16330
+ scopes,
16331
+ limit: hasReviewGate ? RECALL_MAX_LIMIT : limit,
16332
+ types: ["fact"],
16333
+ factTypeWeights,
16334
+ proofCountAlpha
16335
+ });
16336
+ let memories = recalled.memories;
16337
+ if (hasReviewGate) {
16338
+ const allowed = new Set(reviewed);
16339
+ memories = memories.filter((m) => allowed.has(m.id)).slice(0, limit);
16340
+ }
16341
+ if (memories.length === 0) {
16342
+ return {
16343
+ key: facet.key,
16344
+ label: facet.label,
16345
+ text: "",
16346
+ sourceMemoryIds: [],
16347
+ generatedAt: Date.now()
16348
+ };
16349
+ }
16254
16350
  const result = await reflect(facet.query, ctx, {
16255
16351
  apiKey: options.apiKey,
16256
16352
  getToken: options.getToken,
16257
16353
  llmModel: options.llmModel ?? DEFAULT_SYNTHESIS_MODEL,
16258
16354
  baseUrl: options.baseUrl,
16259
16355
  fetchFn: options.fetchFn,
16260
- scopes: options.scopes ?? DEFAULT_SCOPES,
16261
- limit: options.limit ?? DEFAULT_FACET_RECALL_LIMIT,
16356
+ scopes,
16357
+ limit,
16262
16358
  types: ["fact"],
16263
16359
  maxTokens: DEFAULT_FACET_MAX_TOKENS,
16264
16360
  systemPrompt: buildFacetSystemPrompt(facet),
16265
- responseSchema: FACET_RESPONSE_SCHEMA
16361
+ responseSchema: FACET_RESPONSE_SCHEMA,
16362
+ memories
16266
16363
  });
16267
16364
  const noEvidence = result.basedOn.memoryIds.length === 0;
16268
16365
  const { text: text12, legitimateEmpty } = extractFacetText(result.structuredOutput);
@@ -32168,6 +32265,9 @@ function renderAnumaJsx(jsx3) {
32168
32265
  DEFAULT_MIN_CHUNK_SIZE,
32169
32266
  DEFAULT_PERSONALITY_SETTINGS,
32170
32267
  DEFAULT_PROFILE_FACETS,
32268
+ DEFAULT_PROFILE_FACT_TYPE_WEIGHTS,
32269
+ DEFAULT_PROFILE_PROOF_ALPHA,
32270
+ DEFAULT_PROFILE_TREND_MULTIPLIERS,
32171
32271
  DEFAULT_SERVER_TOOLS_MATCH_OPTIONS,
32172
32272
  DEFAULT_VAULT_CACHE_SIZE,
32173
32273
  DatabaseManager,
@@ -32453,6 +32553,7 @@ function renderAnumaJsx(jsx3) {
32453
32553
  putAppFileOp,
32454
32554
  quantizeEmbedding,
32455
32555
  queueManager,
32556
+ rankProfileCandidates,
32456
32557
  readEncryptedFile,
32457
32558
  recall,
32458
32559
  reflect,
@@ -32479,6 +32580,7 @@ function renderAnumaJsx(jsx3) {
32479
32580
  revokeGithubToken,
32480
32581
  revokeNotionAccess,
32481
32582
  savedToolToStored,
32583
+ scoreProfileSalience,
32482
32584
  screenCandidatesForInjection,
32483
32585
  sdkMigrations,
32484
32586
  sdkModelClasses,
@@ -8152,6 +8152,66 @@ interface LlmNeighborRefinerOptions extends PortalLlmAuth {
8152
8152
  */
8153
8153
  declare function createLlmNeighborRefiner(options: LlmNeighborRefinerOptions): NeighborRefiner;
8154
8154
 
8155
+ /**
8156
+ * Profile salience — profile-worthiness scoring for vault facts (#706).
8157
+ *
8158
+ * Distinct from query-time relevance (`recall` fusion). Answers: "is this
8159
+ * fact worth putting on a shareable profile?" using durable type, proof
8160
+ * density, and C2 observation trend. Pure + deterministic — no LLM, no DB.
8161
+ *
8162
+ * Used by:
8163
+ * - `synthesizeProfile` facet recall (default factTypeWeights)
8164
+ * - Publish-review UIs via {@link rankProfileCandidates} (nearby / client)
8165
+ *
8166
+ * Persisted `importance` is deferred until publish flow proves the need.
8167
+ */
8168
+
8169
+ /** Proof-count curve weight inside {@link scoreProfileSalience}. */
8170
+ declare const DEFAULT_PROFILE_PROOF_ALPHA = 0.2;
8171
+ /**
8172
+ * Per-FactType multipliers for profile synthesis / salience.
8173
+ * Durable identity-class types (never age-archive in decay) rank higher;
8174
+ * ephemeral plan/ongoing_context rank lower. Untyped / `other` stay neutral.
8175
+ */
8176
+ declare const DEFAULT_PROFILE_FACT_TYPE_WEIGHTS: Partial<Record<FactType, number>>;
8177
+ /** C2 trend multipliers for profile-worthiness. */
8178
+ declare const DEFAULT_PROFILE_TREND_MULTIPLIERS: Record<ObservationTrend, number>;
8179
+ interface ProfileSalienceInput extends ObservationTrendInput {
8180
+ /** Vault memory id — required for {@link rankProfileCandidates}. */
8181
+ id: string;
8182
+ /** Extractor FactType; null/undefined → neutral weight (1.0). */
8183
+ factType?: string | null;
8184
+ }
8185
+ interface RankedProfileCandidate {
8186
+ id: string;
8187
+ score: number;
8188
+ trend: ObservationTrend;
8189
+ factType?: string | null;
8190
+ proofCount: number;
8191
+ }
8192
+ interface ScoreProfileSalienceOptions {
8193
+ /** Override type weights (merged over {@link DEFAULT_PROFILE_FACT_TYPE_WEIGHTS}). */
8194
+ factTypeWeights?: Partial<Record<FactType, number>>;
8195
+ /** Override trend multipliers. */
8196
+ trendMultipliers?: Partial<Record<ObservationTrend, number>>;
8197
+ /** Proof-count α. Default: {@link DEFAULT_PROFILE_PROOF_ALPHA}. */
8198
+ proofCountAlpha?: number;
8199
+ }
8200
+ /**
8201
+ * Score a vault fact for profile-worthiness.
8202
+ *
8203
+ * `typeWeight * (1 + α·log(1+proofCount) − α·log(2)) * trendMultiplier`
8204
+ *
8205
+ * The proof term mirrors vault fusion's log curve (neutral at proofCount=1).
8206
+ * Pass `now` for deterministic evals.
8207
+ */
8208
+ declare function scoreProfileSalience(input: ProfileSalienceInput, now?: number, options?: ScoreProfileSalienceOptions): number;
8209
+ /**
8210
+ * Rank vault facts by profile-worthiness (descending score).
8211
+ * Ties broken by higher proofCount, then id ascending for stability.
8212
+ */
8213
+ declare function rankProfileCandidates(inputs: readonly ProfileSalienceInput[], now?: number, options?: ScoreProfileSalienceOptions): RankedProfileCandidate[];
8214
+
8155
8215
  /**
8156
8216
  * Unified Recall API — single retrieval surface above vault + engine.
8157
8217
  *
@@ -8289,6 +8349,12 @@ interface ReflectOptions extends RecallOptions, PortalLlmAuth {
8289
8349
  fetchFn?: typeof fetch;
8290
8350
  /** Optional JSON Schema to coerce structured outputs. */
8291
8351
  responseSchema?: Record<string, unknown>;
8352
+ /**
8353
+ * Skip Stage-1 {@link recall} and synthesize from these memories instead.
8354
+ * Used by `synthesizeProfile` after intersecting recall with a
8355
+ * `reviewedMemoryIds` gate so the LLM never sees unreviewed evidence.
8356
+ */
8357
+ memories?: RankedMemory[];
8292
8358
  }
8293
8359
  interface ReflectResult {
8294
8360
  /** The synthesized answer text. */
@@ -8412,8 +8478,9 @@ interface ProfileSection {
8412
8478
  /** Fingerprint of the config that produced a {@link ProfileDoc}. Delta reuse
8413
8479
  * (both the wholesale fast path and per-section reuse) is only valid when the
8414
8480
  * current call's config matches — otherwise reused sections could carry the
8415
- * wrong scope's evidence, un-redacted text under a now-present redactor, or an
8416
- * old section shape. */
8481
+ * wrong scope's evidence, un-redacted text under a now-present redactor, an
8482
+ * old section shape, or text grounded in memory ids that are no longer in the
8483
+ * publish-review set. */
8417
8484
  interface ProfileConfigFingerprint {
8418
8485
  /** Facet keys present in the doc, sorted. */
8419
8486
  facetKeys: ProfileFacetKey[];
@@ -8428,6 +8495,14 @@ interface ProfileConfigFingerprint {
8428
8495
  /** Whether a PII redactor gated the section text. Reusing un-gated text under
8429
8496
  * a now-present redactor would leak PII, so this flips the fingerprint. */
8430
8497
  redacted: boolean;
8498
+ /**
8499
+ * Order-independent digest of {@link SynthesizeProfileOptions.reviewedMemoryIds}.
8500
+ * Empty string when the review gate is off (omit / empty array). Changing the
8501
+ * set must invalidate reuse — otherwise a narrowed review keeps text grounded
8502
+ * in unreviewed ids, and a widened review leaves previously-cleared sections
8503
+ * empty.
8504
+ */
8505
+ reviewedMemoryIdsSignature: string;
8431
8506
  }
8432
8507
  /** A synthesized profile. Server-authoritative once published; the client
8433
8508
  * caches it and passes it back as {@link SynthesizeProfileOptions.previous}. */
@@ -8473,6 +8548,24 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
8473
8548
  * Omit only when the caller redacts downstream — `nearby` also moderates
8474
8549
  * server-side, but the client should never publish un-gated text. */
8475
8550
  redactor?: PiiRedactor;
8551
+ /**
8552
+ * Per-FactType score multipliers for facet recall. Default:
8553
+ * {@link DEFAULT_PROFILE_FACT_TYPE_WEIGHTS} (durable types boosted).
8554
+ * Does not change global chat `recall()` defaults.
8555
+ */
8556
+ factTypeWeights?: Partial<Record<FactType, number>>;
8557
+ /**
8558
+ * Proof-count α for facet recall. Default: {@link DEFAULT_PROFILE_PROOF_ALPHA}
8559
+ * (0.2). Chat recall stays at 0.1.
8560
+ */
8561
+ proofCountAlpha?: number;
8562
+ /**
8563
+ * When non-empty, intersect each facet's recalled evidence with this id set
8564
+ * before the LLM runs (publish-review gate). Empty intersection → empty
8565
+ * section (legitimate no-evidence), not a stale fallback. Omit / empty →
8566
+ * no gate.
8567
+ */
8568
+ reviewedMemoryIds?: readonly string[];
8476
8569
  }
8477
8570
  /**
8478
8571
  * Synthesize a shareable {@link ProfileDoc} from the user's vault, on-device.
@@ -13935,4 +14028,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
13935
14028
  */
13936
14029
  declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
13937
14030
 
13938
- 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, 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 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_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, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, 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 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 MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, 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 PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, 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 RectProps, type ReflectOptions, type ReflectResult, 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 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 StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, 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 TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, 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 VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, 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, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, 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, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, 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, walk, webPlatformStorage, writeEncryptedFile };
14031
+ 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, 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 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, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, 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 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 MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, 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 PlatformStorage, type PortalLlmAuth, 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 QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, 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 RectProps, type ReflectOptions, type ReflectResult, 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 StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, 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 TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, 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 VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, 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, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, 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, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, 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, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, 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, walk, webPlatformStorage, writeEncryptedFile };