@anuma/sdk 6.21.1 → 6.22.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.
@@ -429,7 +429,13 @@ type RecallDegradation =
429
429
  | "graph-lane-failed"
430
430
  /** The W6 temporal side lane threw and was dropped. Same posture as the graph
431
431
  * lane: recall still returned, ranked without the temporal signal. */
432
- | "temporal-lane-failed";
432
+ | "temporal-lane-failed"
433
+ /** {@link RecallOptions.memoryIds} was set and `types` asked for `"chunk"`.
434
+ * Conversation excerpts have no equivalent membership filter, so running the
435
+ * chunk lane would escape the topic/folder scope — it is dropped instead.
436
+ * Without this signal a scoped caller asking for excerpts got an empty
437
+ * result indistinguishable from "the vault had no match". */
438
+ | "chunks-scope-restricted";
433
439
  /**
434
440
  * Why a recall returned nothing. `""` when it returned something, so the field
435
441
  * is always present and groupable rather than being absent on the healthy path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anuma/sdk",
3
- "version": "6.21.1",
3
+ "version": "6.22.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -113,6 +113,13 @@
113
113
  "import": "./dist/pii/transformers.mjs",
114
114
  "require": "./dist/pii/transformers.cjs",
115
115
  "default": "./dist/pii/transformers.cjs"
116
+ },
117
+ "./memory/context": {
118
+ "types": "./dist/memory/context.d.ts",
119
+ "react-native": "./dist/memory/context.cjs",
120
+ "import": "./dist/memory/context.mjs",
121
+ "require": "./dist/memory/context.cjs",
122
+ "default": "./dist/memory/context.cjs"
116
123
  }
117
124
  },
118
125
  "files": [
@@ -27,6 +27,14 @@ function getLogger() {
27
27
  return currentLogger;
28
28
  }
29
29
 
30
+ // src/lib/internalFlowMarker.ts
31
+ var INTERNAL_FLOW_MARKER = "Anuma internal first-party flow (not user chat).";
32
+ function withInternalFlowMarker(systemPrompt) {
33
+ if (systemPrompt.includes(INTERNAL_FLOW_MARKER)) return systemPrompt;
34
+ return `${INTERNAL_FLOW_MARKER}
35
+ ${systemPrompt}`;
36
+ }
37
+
30
38
  // src/lib/chat/endpointOverride.ts
31
39
  function validateEndpointOverride(override) {
32
40
  const trimmed = override.trim();
@@ -45,14 +53,6 @@ function validateEndpointOverride(override) {
45
53
  return { valid: true, endpoint: trimmed.startsWith("/") ? trimmed : `/${trimmed}` };
46
54
  }
47
55
 
48
- // src/lib/internalFlowMarker.ts
49
- var INTERNAL_FLOW_MARKER = "Anuma internal first-party flow (not user chat).";
50
- function withInternalFlowMarker(systemPrompt) {
51
- if (systemPrompt.includes(INTERNAL_FLOW_MARKER)) return systemPrompt;
52
- return `${INTERNAL_FLOW_MARKER}
53
- ${systemPrompt}`;
54
- }
55
-
56
56
  // src/lib/taskType.ts
57
57
  var TASK_TYPE_HEADER = "X-Anuma-Task-Type";
58
58
  function taskTypeHeader(taskType) {