@anuma/sdk 4.2.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/{chunk-VBO6KSNQ.mjs → chunk-SIMGZQ4P.mjs} +480 -196
- package/dist/expo/index.cjs +417 -120
- package/dist/expo/index.d.mts +161 -26
- package/dist/expo/index.d.ts +161 -26
- package/dist/expo/index.mjs +22 -6
- package/dist/expo/{recall-OCQOA7M3.mjs → recall-PIDYDFIQ.mjs} +1 -1
- package/dist/index.cjs +31 -17
- package/dist/index.mjs +31 -17
- package/dist/react/{chunk-BS7C4CUW.mjs → chunk-KTBOHRRE.mjs} +480 -196
- package/dist/react/index.cjs +417 -120
- package/dist/react/index.d.mts +155 -26
- package/dist/react/index.d.ts +155 -26
- package/dist/react/index.mjs +22 -6
- package/dist/react/{recall-WXCZHXHZ.mjs → recall-DVX4W2UD.mjs} +1 -1
- package/dist/server/{chunk-WADHFDMA.mjs → chunk-FKVYUOSD.mjs} +480 -196
- package/dist/server/index.cjs +417 -120
- package/dist/server/index.d.mts +154 -25
- package/dist/server/index.d.ts +154 -25
- package/dist/server/index.mjs +22 -6
- package/dist/server/{recall-QTVT7HCZ.mjs → recall-74L75BJ3.mjs} +1 -1
- package/package.json +1 -1
package/dist/server/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
EMBEDDINGS_DEGRADED_EMPTY,
|
|
8
8
|
ENTITY_FANOUT,
|
|
9
9
|
ENTITY_KINDS,
|
|
10
|
+
EncryptionKeyMissingError,
|
|
10
11
|
LRUCache,
|
|
11
12
|
MAX_HOPS,
|
|
12
13
|
NODE_BUDGET,
|
|
@@ -42,6 +43,7 @@ import {
|
|
|
42
43
|
createVaultEmbeddingCache,
|
|
43
44
|
createVaultMemoriesBatchOp,
|
|
44
45
|
createVaultMemoryOp,
|
|
46
|
+
decomposeQuery,
|
|
45
47
|
decryptData,
|
|
46
48
|
decryptDataBatch,
|
|
47
49
|
decryptDataBytes,
|
|
@@ -95,6 +97,7 @@ import {
|
|
|
95
97
|
prepareVaultCandidates,
|
|
96
98
|
rankPreparedVaultCandidates,
|
|
97
99
|
recall,
|
|
100
|
+
refreshEncryptionKeyIfMatches,
|
|
98
101
|
relinkMemoryTopicsOp,
|
|
99
102
|
replaceMemoryEntitiesGuardedOp,
|
|
100
103
|
requestEncryptionKey,
|
|
@@ -116,6 +119,7 @@ import {
|
|
|
116
119
|
searchChunksOp,
|
|
117
120
|
searchMessagesOp,
|
|
118
121
|
searchVaultMemories,
|
|
122
|
+
seedEncryptionKeys,
|
|
119
123
|
setMemoryVisibilityOp,
|
|
120
124
|
shouldChunkMessage,
|
|
121
125
|
stampTopicsExtractedAtOp,
|
|
@@ -133,7 +137,7 @@ import {
|
|
|
133
137
|
updateVaultMemoryOp,
|
|
134
138
|
upsertMessageOp,
|
|
135
139
|
vaultMemoryToStored
|
|
136
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-FKVYUOSD.mjs";
|
|
137
141
|
import {
|
|
138
142
|
createStreamingDeAnonymizer,
|
|
139
143
|
notifyConsolidationFallback,
|
|
@@ -6583,7 +6587,7 @@ function createRecallTool(ctx, toolOptions, callbacks) {
|
|
|
6583
6587
|
type: "function",
|
|
6584
6588
|
function: {
|
|
6585
6589
|
name: RECALL_TOOL_NAME,
|
|
6586
|
-
description:
|
|
6590
|
+
description: `Search the user's memory across stored facts/preferences and past conversation excerpts. Returns a unified ranked list \u2014 facts carry an \`id\` you can reference; conversation excerpts carry a date and role. Use this whenever the user's question may relate to anything previously discussed or saved (preferences, prior decisions, past topics). Phrase the query naturally. For multi-faceted / overview questions ("tell me about the user", "what's my tech stack"), prefer several targeted searches \u2014 one facet each (e.g. name, work, hobbies) \u2014 over a single broad query; fuse the results yourself.`,
|
|
6587
6591
|
arguments: {
|
|
6588
6592
|
type: "object",
|
|
6589
6593
|
properties: {
|
|
@@ -6638,6 +6642,13 @@ function createRecallTool(ctx, toolOptions, callbacks) {
|
|
|
6638
6642
|
let surfaced = 0;
|
|
6639
6643
|
try {
|
|
6640
6644
|
let recallDegraded = [];
|
|
6645
|
+
let subQueries;
|
|
6646
|
+
if (defaultBudget === "high" && toolOptions?.decomposeOptions) {
|
|
6647
|
+
const decomp = await decomposeQuery(query, toolOptions.decomposeOptions);
|
|
6648
|
+
if (decomp.mode === "composite" && decomp.subQueries.length >= 2) {
|
|
6649
|
+
subQueries = decomp.subQueries;
|
|
6650
|
+
}
|
|
6651
|
+
}
|
|
6641
6652
|
const recallOpts = {
|
|
6642
6653
|
onDiagnostics: (d) => {
|
|
6643
6654
|
recallDegraded = d.degraded;
|
|
@@ -6651,10 +6662,12 @@ function createRecallTool(ctx, toolOptions, callbacks) {
|
|
|
6651
6662
|
...toolOptions?.excludeConversationId && {
|
|
6652
6663
|
excludeConversationId: toolOptions.excludeConversationId
|
|
6653
6664
|
},
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6665
|
+
// Do NOT forward decomposeOptions into recall() — rewrite already
|
|
6666
|
+
// ran above, and forwarding would falsely trip `decompose-moved`
|
|
6667
|
+
// on every specific-mode high-budget call. graphRefine auth can
|
|
6668
|
+
// be threaded later when the tool opts into that path.
|
|
6669
|
+
...toolOptions?.now !== void 0 && { now: toolOptions.now },
|
|
6670
|
+
...subQueries && { subQueries }
|
|
6658
6671
|
};
|
|
6659
6672
|
const result = await recall(query, ctx, recallOpts);
|
|
6660
6673
|
if (callbacks?.onChunksRetrieved) {
|
|
@@ -13112,6 +13125,7 @@ export {
|
|
|
13112
13125
|
DEFAULT_VAULT_CACHE_SIZE,
|
|
13113
13126
|
DatabaseManager,
|
|
13114
13127
|
ENTITY_FANOUT,
|
|
13128
|
+
EncryptionKeyMissingError,
|
|
13115
13129
|
ExcelProcessor,
|
|
13116
13130
|
HARD_DELETE_WINDOW_MS,
|
|
13117
13131
|
INFERENCE_ID_HEADER,
|
|
@@ -13312,6 +13326,7 @@ export {
|
|
|
13312
13326
|
rankProfileCandidates,
|
|
13313
13327
|
recall,
|
|
13314
13328
|
reflect,
|
|
13329
|
+
refreshEncryptionKeyIfMatches,
|
|
13315
13330
|
relinkMemoryTopicsOp,
|
|
13316
13331
|
relinkMisclassifiedVideosOp,
|
|
13317
13332
|
renderTemplate,
|
|
@@ -13332,6 +13347,7 @@ export {
|
|
|
13332
13347
|
searchMediaOp,
|
|
13333
13348
|
searchMessagesOp,
|
|
13334
13349
|
searchVaultMemories,
|
|
13350
|
+
seedEncryptionKeys,
|
|
13335
13351
|
selectServerToolsForPrompt,
|
|
13336
13352
|
serverPlatformStorage,
|
|
13337
13353
|
setMemoryVisibilityOp,
|