@anuma/sdk 3.8.4 → 3.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/index.cjs +5 -3
- package/dist/expo/index.d.mts +6 -0
- package/dist/expo/index.d.ts +6 -0
- package/dist/expo/index.mjs +5 -3
- package/dist/react/index.cjs +5 -3
- package/dist/react/index.d.mts +6 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.mjs +5 -3
- package/dist/server/index.cjs +5 -3
- package/dist/server/index.d.mts +6 -0
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.mjs +5 -3
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -15088,9 +15088,11 @@ function createAutoExtractor(options) {
|
|
|
15088
15088
|
}
|
|
15089
15089
|
}
|
|
15090
15090
|
);
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15091
|
+
if (outcome !== "empty-after-retry") {
|
|
15092
|
+
const advancedTo = window2[window2.length - 1].id;
|
|
15093
|
+
stateFor(conversationId).watermark = advancedTo;
|
|
15094
|
+
persistCursor(conversationId, messages, advancedTo, contiguous);
|
|
15095
|
+
}
|
|
15094
15096
|
for (let i = 0; i < results.length; i++) {
|
|
15095
15097
|
if (results[i].action === "suppressed") continue;
|
|
15096
15098
|
options.onMemoryExtracted?.({
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -6232,6 +6232,12 @@ declare class WalletPoller {
|
|
|
6232
6232
|
* during a busy window are still examined instead of scrolling out of a last-N
|
|
6233
6233
|
* window.
|
|
6234
6234
|
*
|
|
6235
|
+
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
6236
|
+
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
6237
|
+
* returned empty/malformed after exhausting its retries) both leave it in place,
|
|
6238
|
+
* so the next turn's window re-covers those messages instead of stranding them.
|
|
6239
|
+
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
6240
|
+
*
|
|
6235
6241
|
* Durability: the in-memory watermark alone does NOT survive process death, so
|
|
6236
6242
|
* a session killed after messages accumulate but before extraction would, on
|
|
6237
6243
|
* the next launch, fall back to a trailing-window guess and could skip the
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -6232,6 +6232,12 @@ declare class WalletPoller {
|
|
|
6232
6232
|
* during a busy window are still examined instead of scrolling out of a last-N
|
|
6233
6233
|
* window.
|
|
6234
6234
|
*
|
|
6235
|
+
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
6236
|
+
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
6237
|
+
* returned empty/malformed after exhausting its retries) both leave it in place,
|
|
6238
|
+
* so the next turn's window re-covers those messages instead of stranding them.
|
|
6239
|
+
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
6240
|
+
*
|
|
6235
6241
|
* Durability: the in-memory watermark alone does NOT survive process death, so
|
|
6236
6242
|
* a session killed after messages accumulate but before extraction would, on
|
|
6237
6243
|
* the next launch, fall back to a trailing-window guess and could skip the
|
package/dist/expo/index.mjs
CHANGED
|
@@ -7240,9 +7240,11 @@ function createAutoExtractor(options) {
|
|
|
7240
7240
|
}
|
|
7241
7241
|
}
|
|
7242
7242
|
);
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7243
|
+
if (outcome !== "empty-after-retry") {
|
|
7244
|
+
const advancedTo = window[window.length - 1].id;
|
|
7245
|
+
stateFor(conversationId).watermark = advancedTo;
|
|
7246
|
+
persistCursor(conversationId, messages, advancedTo, contiguous);
|
|
7247
|
+
}
|
|
7246
7248
|
for (let i = 0; i < results.length; i++) {
|
|
7247
7249
|
if (results[i].action === "suppressed") continue;
|
|
7248
7250
|
options.onMemoryExtracted?.({
|
package/dist/react/index.cjs
CHANGED
|
@@ -16378,9 +16378,11 @@ function createAutoExtractor(options) {
|
|
|
16378
16378
|
}
|
|
16379
16379
|
}
|
|
16380
16380
|
);
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16381
|
+
if (outcome !== "empty-after-retry") {
|
|
16382
|
+
const advancedTo = window2[window2.length - 1].id;
|
|
16383
|
+
stateFor(conversationId).watermark = advancedTo;
|
|
16384
|
+
persistCursor(conversationId, messages, advancedTo, contiguous);
|
|
16385
|
+
}
|
|
16384
16386
|
for (let i = 0; i < results.length; i++) {
|
|
16385
16387
|
if (results[i].action === "suppressed") continue;
|
|
16386
16388
|
options.onMemoryExtracted?.({
|
package/dist/react/index.d.mts
CHANGED
|
@@ -7388,6 +7388,12 @@ declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext,
|
|
|
7388
7388
|
* during a busy window are still examined instead of scrolling out of a last-N
|
|
7389
7389
|
* window.
|
|
7390
7390
|
*
|
|
7391
|
+
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
7392
|
+
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
7393
|
+
* returned empty/malformed after exhausting its retries) both leave it in place,
|
|
7394
|
+
* so the next turn's window re-covers those messages instead of stranding them.
|
|
7395
|
+
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
7396
|
+
*
|
|
7391
7397
|
* Durability: the in-memory watermark alone does NOT survive process death, so
|
|
7392
7398
|
* a session killed after messages accumulate but before extraction would, on
|
|
7393
7399
|
* the next launch, fall back to a trailing-window guess and could skip the
|
package/dist/react/index.d.ts
CHANGED
|
@@ -7388,6 +7388,12 @@ declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext,
|
|
|
7388
7388
|
* during a busy window are still examined instead of scrolling out of a last-N
|
|
7389
7389
|
* window.
|
|
7390
7390
|
*
|
|
7391
|
+
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
7392
|
+
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
7393
|
+
* returned empty/malformed after exhausting its retries) both leave it in place,
|
|
7394
|
+
* so the next turn's window re-covers those messages instead of stranding them.
|
|
7395
|
+
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
7396
|
+
*
|
|
7391
7397
|
* Durability: the in-memory watermark alone does NOT survive process death, so
|
|
7392
7398
|
* a session killed after messages accumulate but before extraction would, on
|
|
7393
7399
|
* the next launch, fall back to a trailing-window guess and could skip the
|
package/dist/react/index.mjs
CHANGED
|
@@ -8053,9 +8053,11 @@ function createAutoExtractor(options) {
|
|
|
8053
8053
|
}
|
|
8054
8054
|
}
|
|
8055
8055
|
);
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8056
|
+
if (outcome !== "empty-after-retry") {
|
|
8057
|
+
const advancedTo = window2[window2.length - 1].id;
|
|
8058
|
+
stateFor(conversationId).watermark = advancedTo;
|
|
8059
|
+
persistCursor(conversationId, messages, advancedTo, contiguous);
|
|
8060
|
+
}
|
|
8059
8061
|
for (let i = 0; i < results.length; i++) {
|
|
8060
8062
|
if (results[i].action === "suppressed") continue;
|
|
8061
8063
|
options.onMemoryExtracted?.({
|
package/dist/server/index.cjs
CHANGED
|
@@ -28244,9 +28244,11 @@ function createAutoExtractor(options) {
|
|
|
28244
28244
|
}
|
|
28245
28245
|
}
|
|
28246
28246
|
);
|
|
28247
|
-
|
|
28248
|
-
|
|
28249
|
-
|
|
28247
|
+
if (outcome !== "empty-after-retry") {
|
|
28248
|
+
const advancedTo = window2[window2.length - 1].id;
|
|
28249
|
+
stateFor(conversationId).watermark = advancedTo;
|
|
28250
|
+
persistCursor(conversationId, messages, advancedTo, contiguous);
|
|
28251
|
+
}
|
|
28250
28252
|
for (let i = 0; i < results.length; i++) {
|
|
28251
28253
|
if (results[i].action === "suppressed") continue;
|
|
28252
28254
|
options.onMemoryExtracted?.({
|
package/dist/server/index.d.mts
CHANGED
|
@@ -6943,6 +6943,12 @@ declare function createMemoryVaultTool(vaultCtx: VaultMemoryOperationsContext, o
|
|
|
6943
6943
|
* during a busy window are still examined instead of scrolling out of a last-N
|
|
6944
6944
|
* window.
|
|
6945
6945
|
*
|
|
6946
|
+
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
6947
|
+
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
6948
|
+
* returned empty/malformed after exhausting its retries) both leave it in place,
|
|
6949
|
+
* so the next turn's window re-covers those messages instead of stranding them.
|
|
6950
|
+
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
6951
|
+
*
|
|
6946
6952
|
* Durability: the in-memory watermark alone does NOT survive process death, so
|
|
6947
6953
|
* a session killed after messages accumulate but before extraction would, on
|
|
6948
6954
|
* the next launch, fall back to a trailing-window guess and could skip the
|
package/dist/server/index.d.ts
CHANGED
|
@@ -6943,6 +6943,12 @@ declare function createMemoryVaultTool(vaultCtx: VaultMemoryOperationsContext, o
|
|
|
6943
6943
|
* during a busy window are still examined instead of scrolling out of a last-N
|
|
6944
6944
|
* window.
|
|
6945
6945
|
*
|
|
6946
|
+
* The watermark advances only when the extractor genuinely EXAMINED the window.
|
|
6947
|
+
* A pipeline throw and an `empty-after-retry` outcome (the extraction LLM
|
|
6948
|
+
* returned empty/malformed after exhausting its retries) both leave it in place,
|
|
6949
|
+
* so the next turn's window re-covers those messages instead of stranding them.
|
|
6950
|
+
* A quiet turn that legitimately yielded no facts *does* advance it.
|
|
6951
|
+
*
|
|
6946
6952
|
* Durability: the in-memory watermark alone does NOT survive process death, so
|
|
6947
6953
|
* a session killed after messages accumulate but before extraction would, on
|
|
6948
6954
|
* the next launch, fall back to a trailing-window guess and could skip the
|
package/dist/server/index.mjs
CHANGED
|
@@ -6141,9 +6141,11 @@ function createAutoExtractor(options) {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
6143
6143
|
);
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6144
|
+
if (outcome !== "empty-after-retry") {
|
|
6145
|
+
const advancedTo = window2[window2.length - 1].id;
|
|
6146
|
+
stateFor(conversationId).watermark = advancedTo;
|
|
6147
|
+
persistCursor(conversationId, messages, advancedTo, contiguous);
|
|
6148
|
+
}
|
|
6147
6149
|
for (let i = 0; i < results.length; i++) {
|
|
6148
6150
|
if (results[i].action === "suppressed") continue;
|
|
6149
6151
|
options.onMemoryExtracted?.({
|