@anuma/sdk 6.17.2 → 6.19.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.
Files changed (30) hide show
  1. package/dist/expo/{chunk-JXN7LD6B.mjs → chunk-L253L67R.mjs} +2 -2
  2. package/dist/expo/{chunk-4Z2X4UYQ.mjs → chunk-WUG6GTHO.mjs} +10 -1
  3. package/dist/expo/{chunk-A2G6TRUK.mjs → chunk-XDBX4FZY.mjs} +1 -1
  4. package/dist/{react/consolidate-7NMKF7UC.mjs → expo/consolidate-XBYKAFKT.mjs} +2 -2
  5. package/dist/expo/index.cjs +90 -8
  6. package/dist/expo/index.d.mts +100 -2
  7. package/dist/expo/index.d.ts +100 -2
  8. package/dist/expo/index.mjs +84 -11
  9. package/dist/expo/{recall-TGRI5MN4.mjs → recall-B3PUQHJK.mjs} +2 -2
  10. package/dist/index.d.mts +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/react/{chunk-7X7BNMGS.mjs → chunk-AVYB5IXC.mjs} +1 -1
  13. package/dist/react/{chunk-TVPCH7ZZ.mjs → chunk-JRJRRO4P.mjs} +2 -2
  14. package/dist/react/{chunk-4Z2X4UYQ.mjs → chunk-WUG6GTHO.mjs} +10 -1
  15. package/dist/{expo/consolidate-ZM5JNULQ.mjs → react/consolidate-URHGJT7I.mjs} +2 -2
  16. package/dist/react/index.cjs +81 -4
  17. package/dist/react/index.d.mts +100 -2
  18. package/dist/react/index.d.ts +100 -2
  19. package/dist/react/index.mjs +75 -7
  20. package/dist/react/{recall-OKNLU335.mjs → recall-WPYCG4ED.mjs} +2 -2
  21. package/dist/server/{chunk-K7H7ICPK.mjs → chunk-2A6HXY4P.mjs} +2 -2
  22. package/dist/server/{chunk-4LPSEROP.mjs → chunk-RKQ4MRS2.mjs} +1 -1
  23. package/dist/server/{chunk-BSCEZOIW.mjs → chunk-YXL5VKCO.mjs} +10 -1
  24. package/dist/server/{consolidate-MSAXASHL.mjs → consolidate-54P6QZKU.mjs} +2 -2
  25. package/dist/server/index.cjs +53 -2
  26. package/dist/server/index.d.mts +91 -1
  27. package/dist/server/index.d.ts +91 -1
  28. package/dist/server/index.mjs +47 -5
  29. package/dist/server/{recall-YXJATOSD.mjs → recall-JPIWNKA7.mjs} +2 -2
  30. package/package.json +1 -1
@@ -133,7 +133,7 @@ import {
133
133
  upsertMessageOp,
134
134
  useEncryption,
135
135
  vaultMemoryToStored
136
- } from "./chunk-JXN7LD6B.mjs";
136
+ } from "./chunk-L253L67R.mjs";
137
137
  import {
138
138
  PII_PATTERNS,
139
139
  PiiRedactor,
@@ -141,7 +141,7 @@ import {
141
141
  isPiiRedactor,
142
142
  notifyConsolidationFallback,
143
143
  resolvePiiRedactor
144
- } from "./chunk-A2G6TRUK.mjs";
144
+ } from "./chunk-XDBX4FZY.mjs";
145
145
  import {
146
146
  INTERNAL_FLOW_MARKER,
147
147
  callPortalJsonCompletion,
@@ -157,7 +157,7 @@ import {
157
157
  taskTypeHeader,
158
158
  validateEndpointOverride,
159
159
  withInternalFlowMarker
160
- } from "./chunk-4Z2X4UYQ.mjs";
160
+ } from "./chunk-WUG6GTHO.mjs";
161
161
  import {
162
162
  BASE_URL,
163
163
  MCP_R2_DOMAIN,
@@ -6893,7 +6893,7 @@ async function tryConsolidate(trimmed, ctx, options, prepared) {
6893
6893
  content: m.content,
6894
6894
  similarity: m.similarity
6895
6895
  }));
6896
- const { consolidateMemory: doConsolidate } = await import("./consolidate-ZM5JNULQ.mjs");
6896
+ const { consolidateMemory: doConsolidate } = await import("./consolidate-XBYKAFKT.mjs");
6897
6897
  const decision = await doConsolidate(trimmed, candidates, consolidateOptions);
6898
6898
  if (decision.action === "create") return null;
6899
6899
  if (decision.action === "supersede" && decision.content) {
@@ -7135,7 +7135,8 @@ Extract durable user facts.`,
7135
7135
  ...options.maxAttempts !== void 0 && { maxAttempts: options.maxAttempts },
7136
7136
  ...options.timeoutMs !== void 0 && { timeoutMs: options.timeoutMs },
7137
7137
  ...options.totalTimeoutMs !== void 0 && { totalTimeoutMs: options.totalTimeoutMs },
7138
- ...options.backoffMs && { backoffMs: options.backoffMs }
7138
+ ...options.backoffMs && { backoffMs: options.backoffMs },
7139
+ ...options.onAttempt && { onAttempt: options.onAttempt }
7139
7140
  });
7140
7141
  if (parsed === null) {
7141
7142
  options.onExhaustedEmpty?.(failure ?? { reason: "empty-content", attempts: 1 });
@@ -9517,6 +9518,26 @@ var MANUAL_FACT_TYPES = [
9517
9518
  function normalizeManualFactType(value) {
9518
9519
  return typeof value === "string" && MANUAL_FACT_TYPES.includes(value) ? value : void 0;
9519
9520
  }
9521
+ async function notifyWritten(options, input, outcome) {
9522
+ try {
9523
+ await options?.onWritten?.({ input, outcome });
9524
+ } catch {
9525
+ }
9526
+ }
9527
+ function describeWriteOutcome(outcome) {
9528
+ switch (outcome.action) {
9529
+ case "create":
9530
+ return `Memory saved successfully (ID: ${outcome.memoryId}).`;
9531
+ case "update":
9532
+ case "supersede":
9533
+ return `Memory saved successfully (ID: ${outcome.memoryId}); it replaces an earlier version of this fact.`;
9534
+ case "merge":
9535
+ case "skip":
9536
+ return `The vault already holds this fact (ID: ${outcome.memoryId}); it was noted as re-observed. Nothing new was created \u2014 do not save it again.`;
9537
+ case "suppressed":
9538
+ return "Not saved: this matches a memory the user previously deleted. Do not re-save it.";
9539
+ }
9540
+ }
9520
9541
  function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
9521
9542
  const hasOnSave = !!options?.onSave;
9522
9543
  const folderNames = options?.folderMap ? Array.from(options.folderMap.keys()) : [];
@@ -9609,6 +9630,17 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
9609
9630
  return `Memory updated successfully (ID: ${updated.uniqueId}).`;
9610
9631
  } else {
9611
9632
  const folderId = folderName ? options?.folderMap?.get(folderName) : void 0;
9633
+ if (options?.write) {
9634
+ const input = {
9635
+ content,
9636
+ scope,
9637
+ ...folderId !== void 0 && { folderId },
9638
+ ...factType !== void 0 && { factType }
9639
+ };
9640
+ const outcome = await options.write(input);
9641
+ await notifyWritten(options, input, outcome);
9642
+ return describeWriteOutcome(outcome);
9643
+ }
9612
9644
  const created = await createVaultMemoryOp(vaultCtx, {
9613
9645
  content,
9614
9646
  scope,
@@ -9628,6 +9660,16 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
9628
9660
  }
9629
9661
  );
9630
9662
  }
9663
+ await notifyWritten(
9664
+ options,
9665
+ {
9666
+ content,
9667
+ scope,
9668
+ ...folderId !== void 0 && { folderId },
9669
+ ...factType !== void 0 && { factType }
9670
+ },
9671
+ { memoryId: created.uniqueId, action: "create" }
9672
+ );
9631
9673
  return `Memory saved successfully (ID: ${created.uniqueId}).`;
9632
9674
  }
9633
9675
  } catch (error) {
@@ -10970,12 +11012,6 @@ function useChatStorage(options) {
10970
11012
  },
10971
11013
  [storageCtx, getToken, baseUrl, embeddingModel, maskEmbeddingInput]
10972
11014
  );
10973
- const createMemoryVaultTool2 = useCallback4(
10974
- (options2) => {
10975
- return createMemoryVaultTool(vaultCtx, options2);
10976
- },
10977
- [vaultCtx]
10978
- );
10979
11015
  const vaultEmbeddingCache = useMemo(
10980
11016
  () => getVaultEmbeddingCache(database, walletAddress, embeddingModel),
10981
11017
  [database, walletAddress, embeddingModel]
@@ -10987,6 +11023,42 @@ function useChatStorage(options) {
10987
11023
  chunkVectorCacheRef.current.clear();
10988
11024
  });
10989
11025
  }, [vaultEmbeddingCache]);
11026
+ const retainVaultMemory = useCallback4(
11027
+ async (input) => {
11028
+ if (!getToken) {
11029
+ throw new Error("getToken is required to retain a vault memory");
11030
+ }
11031
+ return retain(
11032
+ input.content,
11033
+ {
11034
+ vaultCtx,
11035
+ embeddingOptions: {
11036
+ getToken,
11037
+ baseUrl,
11038
+ model: embeddingModel,
11039
+ maskInput: maskEmbeddingInput
11040
+ },
11041
+ vaultCache: vaultEmbeddingCache
11042
+ },
11043
+ {
11044
+ source: "manual",
11045
+ scope: input.scope,
11046
+ ...input.folderId !== void 0 && { folderId: input.folderId },
11047
+ ...input.factType !== void 0 && { factType: input.factType }
11048
+ }
11049
+ );
11050
+ },
11051
+ [vaultCtx, getToken, baseUrl, embeddingModel, maskEmbeddingInput, vaultEmbeddingCache]
11052
+ );
11053
+ const createMemoryVaultTool2 = useCallback4(
11054
+ (options2) => {
11055
+ return createMemoryVaultTool(
11056
+ vaultCtx,
11057
+ getToken ? { write: retainVaultMemory, ...options2 } : options2
11058
+ );
11059
+ },
11060
+ [vaultCtx, getToken, retainVaultMemory]
11061
+ );
10990
11062
  const createRecallTool2 = useCallback4(
10991
11063
  (toolOptions, callbacks) => {
10992
11064
  if (!getToken) {
@@ -12336,6 +12408,7 @@ function useChatStorage(options) {
12336
12408
  getMessageCount,
12337
12409
  createMemoryEngineTool: createMemoryEngineTool2,
12338
12410
  createMemoryVaultTool: createMemoryVaultTool2,
12411
+ retainVaultMemory,
12339
12412
  createRecallTool: createRecallTool2,
12340
12413
  recall: recallFn,
12341
12414
  getVaultMemories,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-JXN7LD6B.mjs";
4
- import "./chunk-4Z2X4UYQ.mjs";
3
+ } from "./chunk-L253L67R.mjs";
4
+ import "./chunk-WUG6GTHO.mjs";
5
5
  import "./chunk-GYKJOWEO.mjs";
6
6
  export {
7
7
  recall
package/dist/index.d.mts CHANGED
@@ -8951,7 +8951,7 @@ declare function decryptConversationTitle(encryptedTitle: string, address: strin
8951
8951
  *
8952
8952
  * @public
8953
8953
  */
8954
- type TaskType = "title" | "commit_message" | "memory_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8954
+ type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8955
8955
  /**
8956
8956
  * HTTP header naming the Class-B task a request performs.
8957
8957
  *
package/dist/index.d.ts CHANGED
@@ -8951,7 +8951,7 @@ declare function decryptConversationTitle(encryptedTitle: string, address: strin
8951
8951
  *
8952
8952
  * @public
8953
8953
  */
8954
- type TaskType = "title" | "commit_message" | "memory_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8954
+ type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
8955
8955
  /**
8956
8956
  * HTTP header naming the Class-B task a request performs.
8957
8957
  *
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getLogger
3
- } from "./chunk-4Z2X4UYQ.mjs";
3
+ } from "./chunk-WUG6GTHO.mjs";
4
4
 
5
5
  // src/lib/pii/patterns.ts
6
6
  function luhnCheck(digits) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  callPortalJsonCompletion,
3
3
  getLogger
4
- } from "./chunk-4Z2X4UYQ.mjs";
4
+ } from "./chunk-WUG6GTHO.mjs";
5
5
  import {
6
6
  BASE_URL,
7
7
  createClientConfig
@@ -7192,7 +7192,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
7192
7192
  subQueries = decomp.subQueries;
7193
7193
  }
7194
7194
  }
7195
- const { recall: recall2 } = await import("./recall-OKNLU335.mjs");
7195
+ const { recall: recall2 } = await import("./recall-WPYCG4ED.mjs");
7196
7196
  let recallDegraded = [];
7197
7197
  const result = await recall2(
7198
7198
  query,
@@ -172,7 +172,16 @@ async function callPortalJsonCompletion(req) {
172
172
  ...reinforce && { reinforceJsonContract: true }
173
173
  } : reinforce ? { ...req, reinforceJsonContract: true } : req;
174
174
  const outcome = await attemptPortalJson(attemptReq, endpoint);
175
- if (outcome.kind === "ok") return outcome.value;
175
+ if (outcome.kind === "ok") {
176
+ req.onAttempt?.({ attempt, ok: true });
177
+ return outcome.value;
178
+ }
179
+ req.onAttempt?.({
180
+ attempt,
181
+ ok: false,
182
+ reason: outcome.code,
183
+ ...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus }
184
+ });
176
185
  lastFailure = {
177
186
  reason: outcome.code,
178
187
  ...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus },
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  notifyConsolidationFallback,
3
3
  resolvePiiRedactor
4
- } from "./chunk-A2G6TRUK.mjs";
4
+ } from "./chunk-AVYB5IXC.mjs";
5
5
  import {
6
6
  callPortalJsonCompletion
7
- } from "./chunk-4Z2X4UYQ.mjs";
7
+ } from "./chunk-WUG6GTHO.mjs";
8
8
  import "./chunk-GYKJOWEO.mjs";
9
9
 
10
10
  // src/lib/memory/consolidate.ts
@@ -6545,7 +6545,16 @@ async function callPortalJsonCompletion(req) {
6545
6545
  ...reinforce && { reinforceJsonContract: true }
6546
6546
  } : reinforce ? { ...req, reinforceJsonContract: true } : req;
6547
6547
  const outcome = await attemptPortalJson(attemptReq, endpoint);
6548
- if (outcome.kind === "ok") return outcome.value;
6548
+ if (outcome.kind === "ok") {
6549
+ req.onAttempt?.({ attempt, ok: true });
6550
+ return outcome.value;
6551
+ }
6552
+ req.onAttempt?.({
6553
+ attempt,
6554
+ ok: false,
6555
+ reason: outcome.code,
6556
+ ...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus }
6557
+ });
6549
6558
  lastFailure = {
6550
6559
  reason: outcome.code,
6551
6560
  ...outcome.httpStatus !== void 0 && { httpStatus: outcome.httpStatus },
@@ -18159,7 +18168,8 @@ Extract durable user facts.`,
18159
18168
  ...options.maxAttempts !== void 0 && { maxAttempts: options.maxAttempts },
18160
18169
  ...options.timeoutMs !== void 0 && { timeoutMs: options.timeoutMs },
18161
18170
  ...options.totalTimeoutMs !== void 0 && { totalTimeoutMs: options.totalTimeoutMs },
18162
- ...options.backoffMs && { backoffMs: options.backoffMs }
18171
+ ...options.backoffMs && { backoffMs: options.backoffMs },
18172
+ ...options.onAttempt && { onAttempt: options.onAttempt }
18163
18173
  });
18164
18174
  if (parsed === null) {
18165
18175
  options.onExhaustedEmpty?.(failure ?? { reason: "empty-content", attempts: 1 });
@@ -20606,6 +20616,26 @@ var MANUAL_FACT_TYPES = [
20606
20616
  function normalizeManualFactType(value) {
20607
20617
  return typeof value === "string" && MANUAL_FACT_TYPES.includes(value) ? value : void 0;
20608
20618
  }
20619
+ async function notifyWritten(options, input, outcome) {
20620
+ try {
20621
+ await options?.onWritten?.({ input, outcome });
20622
+ } catch {
20623
+ }
20624
+ }
20625
+ function describeWriteOutcome(outcome) {
20626
+ switch (outcome.action) {
20627
+ case "create":
20628
+ return `Memory saved successfully (ID: ${outcome.memoryId}).`;
20629
+ case "update":
20630
+ case "supersede":
20631
+ return `Memory saved successfully (ID: ${outcome.memoryId}); it replaces an earlier version of this fact.`;
20632
+ case "merge":
20633
+ case "skip":
20634
+ return `The vault already holds this fact (ID: ${outcome.memoryId}); it was noted as re-observed. Nothing new was created \u2014 do not save it again.`;
20635
+ case "suppressed":
20636
+ return "Not saved: this matches a memory the user previously deleted. Do not re-save it.";
20637
+ }
20638
+ }
20609
20639
  function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
20610
20640
  const hasOnSave = !!options?.onSave;
20611
20641
  const folderNames = options?.folderMap ? Array.from(options.folderMap.keys()) : [];
@@ -20698,6 +20728,17 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
20698
20728
  return `Memory updated successfully (ID: ${updated.uniqueId}).`;
20699
20729
  } else {
20700
20730
  const folderId = folderName ? options?.folderMap?.get(folderName) : void 0;
20731
+ if (options?.write) {
20732
+ const input = {
20733
+ content,
20734
+ scope,
20735
+ ...folderId !== void 0 && { folderId },
20736
+ ...factType !== void 0 && { factType }
20737
+ };
20738
+ const outcome = await options.write(input);
20739
+ await notifyWritten(options, input, outcome);
20740
+ return describeWriteOutcome(outcome);
20741
+ }
20701
20742
  const created = await createVaultMemoryOp(vaultCtx, {
20702
20743
  content,
20703
20744
  scope,
@@ -20717,6 +20758,16 @@ function createMemoryVaultTool(vaultCtx, options, embeddingOptions, cache) {
20717
20758
  }
20718
20759
  );
20719
20760
  }
20761
+ await notifyWritten(
20762
+ options,
20763
+ {
20764
+ content,
20765
+ scope,
20766
+ ...folderId !== void 0 && { folderId },
20767
+ ...factType !== void 0 && { factType }
20768
+ },
20769
+ { memoryId: created.uniqueId, action: "create" }
20770
+ );
20720
20771
  return `Memory saved successfully (ID: ${created.uniqueId}).`;
20721
20772
  }
20722
20773
  } catch (error) {
@@ -23318,17 +23369,42 @@ function useChatStorage(options) {
23318
23369
  },
23319
23370
  [storageCtx, getToken, vaultEmbeddingOptions]
23320
23371
  );
23372
+ const retainVaultMemory = (0, import_react5.useCallback)(
23373
+ async (input) => {
23374
+ if (!getToken) {
23375
+ throw new Error("getToken is required to retain a vault memory");
23376
+ }
23377
+ return retain(
23378
+ input.content,
23379
+ {
23380
+ vaultCtx,
23381
+ embeddingOptions: vaultEmbeddingOptions,
23382
+ vaultCache: vaultEmbeddingCache
23383
+ },
23384
+ {
23385
+ source: "manual",
23386
+ scope: input.scope,
23387
+ ...input.folderId !== void 0 && { folderId: input.folderId },
23388
+ ...input.factType !== void 0 && { factType: input.factType }
23389
+ }
23390
+ );
23391
+ },
23392
+ [vaultCtx, getToken, vaultEmbeddingOptions, vaultEmbeddingCache]
23393
+ );
23321
23394
  const createMemoryVaultTool2 = (0, import_react5.useCallback)(
23322
23395
  (options2) => {
23323
23396
  const embOpts = getToken ? vaultEmbeddingOptions : void 0;
23324
23397
  return createMemoryVaultTool(
23325
23398
  vaultCtx,
23326
- options2,
23399
+ // New memories go through retain() (auto-merge) whenever embeddings are
23400
+ // available; a caller-supplied `write` still wins. Without a token the
23401
+ // tool keeps its direct-insert path — retain cannot embed.
23402
+ embOpts ? { write: retainVaultMemory, ...options2 } : options2,
23327
23403
  embOpts,
23328
23404
  embOpts ? vaultEmbeddingCache : void 0
23329
23405
  );
23330
23406
  },
23331
- [vaultCtx, getToken, vaultEmbeddingOptions, vaultEmbeddingCache]
23407
+ [vaultCtx, getToken, vaultEmbeddingOptions, vaultEmbeddingCache, retainVaultMemory]
23332
23408
  );
23333
23409
  const getVaultMemories = (0, import_react5.useCallback)(
23334
23410
  (options2) => {
@@ -24624,6 +24700,7 @@ function useChatStorage(options) {
24624
24700
  getAllFiles,
24625
24701
  createMemoryEngineTool: createMemoryEngineTool2,
24626
24702
  createMemoryVaultTool: createMemoryVaultTool2,
24703
+ retainVaultMemory,
24627
24704
  createMemoryVaultSearchTool: createMemoryVaultSearchTool2,
24628
24705
  createRecallTool: createRecallTool2,
24629
24706
  recall: recallFn,
@@ -6271,7 +6271,7 @@ declare function getEntitiesByMemoryIdsOp(ctx: EntityOperationsContext, memoryId
6271
6271
  *
6272
6272
  * @public
6273
6273
  */
6274
- type TaskType = "title" | "commit_message" | "memory_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
6274
+ type TaskType = "title" | "commit_message" | "memory_extract" | "memory_import_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration_generate" | "app_inspiration_trends" | "app_inspiration_remix" | "spotlight_image" | "slide_image" | "slide_video" | "slide_music" | "slide_sfx" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "tool_slides_image_gen" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
6275
6275
 
6276
6276
  /**
6277
6277
  * Shared portal LLM call for the memory pipeline.
@@ -6368,6 +6368,26 @@ type PortalLlmFailureReason =
6368
6368
  | "null-completion"
6369
6369
  /** `totalTimeoutMs` was spent before the next attempt could run. */
6370
6370
  | "time-budget-exhausted";
6371
+ /**
6372
+ * One attempt of a {@link callPortalJsonCompletion} call, reported to
6373
+ * `onAttempt` as it settles — success included. The wire-level diagnostic the
6374
+ * give-up hook cannot provide: a call that succeeds on its third try returns a
6375
+ * value and fires no `onFailure`, yet it cost three completions and its first
6376
+ * two answers were unusable. Extraction quality regressions have hidden in
6377
+ * exactly that shape (a prompt change that made the model answer `NONE` first,
6378
+ * JSON on retry), so the extraction eval gates on the first-attempt clean rate.
6379
+ *
6380
+ * @public
6381
+ */
6382
+ interface PortalLlmAttempt {
6383
+ /** 1-based attempt index. */
6384
+ attempt: number;
6385
+ /** Whether this attempt produced a parseable JSON value. */
6386
+ ok: boolean;
6387
+ /** Classification when `ok` is false. */
6388
+ reason?: PortalLlmFailureReason;
6389
+ httpStatus?: number;
6390
+ }
6371
6391
  /**
6372
6392
  * A give-up report: the classified {@link PortalLlmFailureReason} plus the
6373
6393
  * little context worth carrying into telemetry. Both extra fields are bounded
@@ -7547,6 +7567,12 @@ interface ExtractFactsOptions extends PortalLlmAuth {
7547
7567
  * (i.e. redaction silently eating facts) is alarmable.
7548
7568
  */
7549
7569
  onCandidatesDropped?: () => void;
7570
+ /**
7571
+ * Per-attempt wire diagnostic, forwarded to {@link callPortalJsonCompletion}.
7572
+ * The extraction eval gates on it (first-attempt clean rate); production
7573
+ * callers may leave it unset.
7574
+ */
7575
+ onAttempt?: (attempt: PortalLlmAttempt) => void;
7550
7576
  }
7551
7577
  /**
7552
7578
  * Stage 1 — call the LLM to extract candidate facts from the recent
@@ -10707,6 +10733,41 @@ declare function decodeChunkVector(vector: number[] | string | null | undefined,
10707
10733
  * Each operation can be intercepted by the host app for confirmation/cancellation.
10708
10734
  */
10709
10735
 
10736
+ /**
10737
+ * The 7 FactTypes a manual save may self-classify into (PR5). Mirrors the
10738
+ * extractor's `FactType` union in `memory/autoExtract` — kept as a local const
10739
+ * (not imported) to avoid a memoryVault → memory runtime import cycle. Only used
10740
+ * to validate the optional `type` tool argument; an unrecognized value is
10741
+ * dropped (persisted as null, the untyped/medium-decay bucket).
10742
+ */
10743
+ declare const MANUAL_FACT_TYPES: readonly ["identity", "preference", "relationship", "plan", "ongoing_context", "constraint", "other"];
10744
+ /** A FactType the save tool's optional `type` argument may carry. */
10745
+ type ManualFactType = (typeof MANUAL_FACT_TYPES)[number];
10746
+ /**
10747
+ * What a {@link VaultMemoryWriter} reports back. The action set mirrors
10748
+ * `RetainResult.action` in `memory/retain` — restated here rather than imported
10749
+ * for the same reason MANUAL_FACT_TYPES is (memoryVault → memory import cycle).
10750
+ */
10751
+ type VaultWriteAction = "create" | "merge" | "update" | "supersede" | "suppressed" | "skip";
10752
+ interface VaultWriteOutcome {
10753
+ /** The memory the write landed on: the fresh row, or the existing one it merged into. */
10754
+ memoryId: string;
10755
+ action: VaultWriteAction;
10756
+ }
10757
+ /** A NEW memory the tool wants written — `id`-addressed updates never come here. */
10758
+ interface VaultWriteInput {
10759
+ content: string;
10760
+ scope: string;
10761
+ folderId?: string;
10762
+ factType?: ManualFactType;
10763
+ }
10764
+ /**
10765
+ * The seam through which the tool writes NEW memories when the host supplies one.
10766
+ * `useChatStorage` (react + expo) passes a `retain()`-backed writer so a
10767
+ * model-initiated save gets the same cosine auto-merge the background extractor
10768
+ * gets, instead of a bare insert that trusts the model to have de-duplicated.
10769
+ */
10770
+ type VaultMemoryWriter = (input: VaultWriteInput) => Promise<VaultWriteOutcome>;
10710
10771
  /**
10711
10772
  * Describes a pending vault save operation for UI confirmation.
10712
10773
  */
@@ -10745,6 +10806,35 @@ interface MemoryVaultToolOptions {
10745
10806
  * When provided, the LLM can specify a folderName argument.
10746
10807
  */
10747
10808
  folderMap?: Map<string, string>;
10809
+ /**
10810
+ * Writer for NEW memories. When set, a save without an `id` goes through it
10811
+ * instead of a bare `createVaultMemoryOp`, and the tool phrases its reply from
10812
+ * the reported action (a merge reads as "already known", not "saved").
10813
+ *
10814
+ * The hooks supply a `retain()`-backed writer, which is what makes this tool
10815
+ * stop being a dedup bypass: until then the only thing standing between the
10816
+ * model and a duplicate row was the prompt asking it to pass an `id`. Omit it
10817
+ * (as a bare `createMemoryVaultTool(vaultCtx, …)` caller must — retain needs
10818
+ * embeddings) and the direct insert path is unchanged.
10819
+ *
10820
+ * Updates addressed by `id` never come here: the model has already named the
10821
+ * row, so there is nothing to de-duplicate against.
10822
+ */
10823
+ write?: VaultMemoryWriter;
10824
+ /**
10825
+ * Fires after a NEW memory's write settles, with what was asked and what the
10826
+ * writer did. The host's analytics hook: `onSave` runs BEFORE the write and so
10827
+ * cannot tell a fresh create from a merge into an existing memory — and that
10828
+ * split is the one number that says whether model-initiated saves duplicate
10829
+ * the vault. Fires on both write paths (a `write` seam, or the direct insert
10830
+ * when none is supplied — reported as `create`). Not called for
10831
+ * `id`-addressed updates or cancelled saves. A throwing or rejecting listener
10832
+ * is awaited and swallowed so it can never fail the tool call.
10833
+ */
10834
+ onWritten?: (event: {
10835
+ input: VaultWriteInput;
10836
+ outcome: VaultWriteOutcome;
10837
+ }) => void | Promise<void>;
10748
10838
  }
10749
10839
  /**
10750
10840
  * Creates a memory vault tool for use with chat completions.
@@ -11066,6 +11156,14 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
11066
11156
  * @returns A ToolConfig that can be passed to sendMessage's clientTools
11067
11157
  */
11068
11158
  createMemoryVaultTool: (options?: MemoryVaultToolOptions) => ToolConfig;
11159
+ /**
11160
+ * Write one memory through `retain()` — cosine auto-merge against the vault,
11161
+ * so an explicit "save this" from a host surface (selection → memory, a
11162
+ * manual add) lands as a re-observation of an existing memory instead of a
11163
+ * duplicate row when the vault already holds the fact. The
11164
+ * `memory_vault_save` tool writes through this too. Throws without `getToken`.
11165
+ */
11166
+ retainVaultMemory: (input: VaultWriteInput) => Promise<RetainResult>;
11069
11167
  /**
11070
11168
  * Create a memory vault search tool for LLM to search vault memories
11071
11169
  * using semantic similarity. Pre-configured with vault context, auth, and
@@ -15833,4 +15931,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
15833
15931
  */
15834
15932
  declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
15835
15933
 
15836
- 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 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, 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 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 VaultSaveOperation, type VaultSearchResult, 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 };
15934
+ 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 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, 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 };