@mastra/memory 1.10.1-alpha.1 → 1.10.1-alpha.3

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 (29) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{chunk-NS47X3OB.cjs → chunk-DTAZSLVU.cjs} +214 -79
  3. package/dist/chunk-DTAZSLVU.cjs.map +1 -0
  4. package/dist/{chunk-2QSOQQPM.js → chunk-SKRONGCV.js} +214 -79
  5. package/dist/chunk-SKRONGCV.js.map +1 -0
  6. package/dist/docs/SKILL.md +1 -1
  7. package/dist/docs/assets/SOURCE_MAP.json +47 -47
  8. package/dist/index.cjs +11 -11
  9. package/dist/index.js +4 -4
  10. package/dist/{observational-memory-WMCWT577.js → observational-memory-UGDENJPE.js} +3 -3
  11. package/dist/{observational-memory-WMCWT577.js.map → observational-memory-UGDENJPE.js.map} +1 -1
  12. package/dist/{observational-memory-I5UTOG63.cjs → observational-memory-XIZTJN3S.cjs} +26 -26
  13. package/dist/{observational-memory-I5UTOG63.cjs.map → observational-memory-XIZTJN3S.cjs.map} +1 -1
  14. package/dist/processors/index.cjs +24 -24
  15. package/dist/processors/index.js +1 -1
  16. package/dist/processors/observational-memory/observation-turn/index.d.ts +1 -1
  17. package/dist/processors/observational-memory/observation-turn/index.d.ts.map +1 -1
  18. package/dist/processors/observational-memory/observation-turn/step.d.ts.map +1 -1
  19. package/dist/processors/observational-memory/observation-turn/turn.d.ts +15 -7
  20. package/dist/processors/observational-memory/observation-turn/turn.d.ts.map +1 -1
  21. package/dist/processors/observational-memory/observation-turn/types.d.ts +4 -0
  22. package/dist/processors/observational-memory/observation-turn/types.d.ts.map +1 -1
  23. package/dist/processors/observational-memory/observational-memory.d.ts +2 -0
  24. package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
  25. package/dist/processors/observational-memory/processor.d.ts.map +1 -1
  26. package/dist/processors/observational-memory/repro-capture.d.ts.map +1 -1
  27. package/package.json +2 -2
  28. package/dist/chunk-2QSOQQPM.js.map +0 -1
  29. package/dist/chunk-NS47X3OB.cjs.map +0 -1
@@ -3,7 +3,7 @@ name: mastra-memory
3
3
  description: Documentation for @mastra/memory. Use when working with @mastra/memory APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/memory"
6
- version: "1.10.1-alpha.1"
6
+ version: "1.10.1-alpha.3"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,120 +1,120 @@
1
1
  {
2
- "version": "1.10.1-alpha.1",
2
+ "version": "1.10.1-alpha.3",
3
3
  "package": "@mastra/memory",
4
4
  "exports": {
5
5
  "ModelByInputTokens": {
6
6
  "types": "dist/processors/index.d.ts",
7
- "implementation": "dist/chunk-2QSOQQPM.js",
8
- "line": 664
7
+ "implementation": "dist/chunk-SKRONGCV.js",
8
+ "line": 665
9
9
  },
10
10
  "OBSERVER_SYSTEM_PROMPT": {
11
11
  "types": "dist/processors/index.d.ts",
12
- "implementation": "dist/chunk-2QSOQQPM.js"
12
+ "implementation": "dist/chunk-SKRONGCV.js"
13
13
  },
14
14
  "ObservationalMemory": {
15
15
  "types": "dist/processors/index.d.ts",
16
- "implementation": "dist/chunk-2QSOQQPM.js",
17
- "line": 5516
16
+ "implementation": "dist/chunk-SKRONGCV.js",
17
+ "line": 5518
18
18
  },
19
19
  "ObservationalMemoryProcessor": {
20
20
  "types": "dist/processors/index.d.ts",
21
- "implementation": "dist/chunk-2QSOQQPM.js",
22
- "line": 7858
21
+ "implementation": "dist/chunk-SKRONGCV.js",
22
+ "line": 7976
23
23
  },
24
24
  "TokenCounter": {
25
25
  "types": "dist/processors/index.d.ts",
26
- "implementation": "dist/chunk-2QSOQQPM.js",
27
- "line": 5068
26
+ "implementation": "dist/chunk-SKRONGCV.js",
27
+ "line": 5070
28
28
  },
29
29
  "buildObserverPrompt": {
30
30
  "types": "dist/processors/index.d.ts",
31
- "implementation": "dist/chunk-2QSOQQPM.js",
32
- "line": 3227
31
+ "implementation": "dist/chunk-SKRONGCV.js",
32
+ "line": 3229
33
33
  },
34
34
  "buildObserverSystemPrompt": {
35
35
  "types": "dist/processors/index.d.ts",
36
- "implementation": "dist/chunk-2QSOQQPM.js",
37
- "line": 2701
36
+ "implementation": "dist/chunk-SKRONGCV.js",
37
+ "line": 2703
38
38
  },
39
39
  "combineObservationGroupRanges": {
40
40
  "types": "dist/processors/index.d.ts",
41
- "implementation": "dist/chunk-2QSOQQPM.js",
42
- "line": 753
41
+ "implementation": "dist/chunk-SKRONGCV.js",
42
+ "line": 754
43
43
  },
44
44
  "deriveObservationGroupProvenance": {
45
45
  "types": "dist/processors/index.d.ts",
46
- "implementation": "dist/chunk-2QSOQQPM.js",
47
- "line": 780
46
+ "implementation": "dist/chunk-SKRONGCV.js",
47
+ "line": 781
48
48
  },
49
49
  "extractCurrentTask": {
50
50
  "types": "dist/processors/index.d.ts",
51
- "implementation": "dist/chunk-2QSOQQPM.js",
52
- "line": 3341
51
+ "implementation": "dist/chunk-SKRONGCV.js",
52
+ "line": 3343
53
53
  },
54
54
  "formatMessagesForObserver": {
55
55
  "types": "dist/processors/index.d.ts",
56
- "implementation": "dist/chunk-2QSOQQPM.js",
57
- "line": 2967
56
+ "implementation": "dist/chunk-SKRONGCV.js",
57
+ "line": 2969
58
58
  },
59
59
  "getObservationsAsOf": {
60
60
  "types": "dist/processors/index.d.ts",
61
- "implementation": "dist/chunk-2QSOQQPM.js",
62
- "line": 8013
61
+ "implementation": "dist/chunk-SKRONGCV.js",
62
+ "line": 8148
63
63
  },
64
64
  "hasCurrentTaskSection": {
65
65
  "types": "dist/processors/index.d.ts",
66
- "implementation": "dist/chunk-2QSOQQPM.js",
67
- "line": 3329
66
+ "implementation": "dist/chunk-SKRONGCV.js",
67
+ "line": 3331
68
68
  },
69
69
  "injectAnchorIds": {
70
70
  "types": "dist/processors/index.d.ts",
71
- "implementation": "dist/chunk-2QSOQQPM.js",
72
- "line": 2258
71
+ "implementation": "dist/chunk-SKRONGCV.js",
72
+ "line": 2260
73
73
  },
74
74
  "optimizeObservationsForContext": {
75
75
  "types": "dist/processors/index.d.ts",
76
- "implementation": "dist/chunk-2QSOQQPM.js",
77
- "line": 3352
76
+ "implementation": "dist/chunk-SKRONGCV.js",
77
+ "line": 3354
78
78
  },
79
79
  "parseAnchorId": {
80
80
  "types": "dist/processors/index.d.ts",
81
- "implementation": "dist/chunk-2QSOQQPM.js",
82
- "line": 2231
81
+ "implementation": "dist/chunk-SKRONGCV.js",
82
+ "line": 2233
83
83
  },
84
84
  "parseObservationGroups": {
85
85
  "types": "dist/processors/index.d.ts",
86
- "implementation": "dist/chunk-2QSOQQPM.js",
87
- "line": 725
86
+ "implementation": "dist/chunk-SKRONGCV.js",
87
+ "line": 726
88
88
  },
89
89
  "parseObserverOutput": {
90
90
  "types": "dist/processors/index.d.ts",
91
- "implementation": "dist/chunk-2QSOQQPM.js",
92
- "line": 3237
91
+ "implementation": "dist/chunk-SKRONGCV.js",
92
+ "line": 3239
93
93
  },
94
94
  "reconcileObservationGroupsFromReflection": {
95
95
  "types": "dist/processors/index.d.ts",
96
- "implementation": "dist/chunk-2QSOQQPM.js",
97
- "line": 807
96
+ "implementation": "dist/chunk-SKRONGCV.js",
97
+ "line": 808
98
98
  },
99
99
  "renderObservationGroupsForReflection": {
100
100
  "types": "dist/processors/index.d.ts",
101
- "implementation": "dist/chunk-2QSOQQPM.js",
102
- "line": 760
101
+ "implementation": "dist/chunk-SKRONGCV.js",
102
+ "line": 761
103
103
  },
104
104
  "stripEphemeralAnchorIds": {
105
105
  "types": "dist/processors/index.d.ts",
106
- "implementation": "dist/chunk-2QSOQQPM.js",
107
- "line": 2288
106
+ "implementation": "dist/chunk-SKRONGCV.js",
107
+ "line": 2290
108
108
  },
109
109
  "stripObservationGroups": {
110
110
  "types": "dist/processors/index.d.ts",
111
- "implementation": "dist/chunk-2QSOQQPM.js",
112
- "line": 747
111
+ "implementation": "dist/chunk-SKRONGCV.js",
112
+ "line": 748
113
113
  },
114
114
  "wrapInObservationGroup": {
115
115
  "types": "dist/processors/index.d.ts",
116
- "implementation": "dist/chunk-2QSOQQPM.js",
117
- "line": 718
116
+ "implementation": "dist/chunk-SKRONGCV.js",
117
+ "line": 719
118
118
  },
119
119
  "OBSERVATIONAL_MEMORY_DEFAULTS": {
120
120
  "types": "dist/processors/index.d.ts",
@@ -161,7 +161,7 @@
161
161
  "processors": {
162
162
  "index": "dist/processors/index.js",
163
163
  "chunks": [
164
- "chunk-2QSOQQPM.js",
164
+ "chunk-SKRONGCV.js",
165
165
  "chunk-LSJJAJAF.js"
166
166
  ]
167
167
  }
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkCK4U3AYR_cjs = require('./chunk-CK4U3AYR.cjs');
4
4
  var chunkIDRQZVB4_cjs = require('./chunk-IDRQZVB4.cjs');
5
- var chunkNS47X3OB_cjs = require('./chunk-NS47X3OB.cjs');
5
+ var chunkDTAZSLVU_cjs = require('./chunk-DTAZSLVU.cjs');
6
6
  var v3 = require('zod/v3');
7
7
  var zod = require('zod');
8
8
  var z4 = require('zod/v4');
@@ -15503,7 +15503,7 @@ function formatTimestamp(date) {
15503
15503
  }
15504
15504
  function truncateByTokens(text4, maxTokens, hint) {
15505
15505
  if (tokenx.estimateTokenCount(text4) <= maxTokens) return { text: text4, wasTruncated: false };
15506
- const truncated = chunkNS47X3OB_cjs.truncateStringByTokens(text4, maxTokens);
15506
+ const truncated = chunkDTAZSLVU_cjs.truncateStringByTokens(text4, maxTokens);
15507
15507
  const suffix = hint ? ` [${hint} for more]` : "";
15508
15508
  return { text: truncated + suffix, wasTruncated: true };
15509
15509
  }
@@ -15536,11 +15536,11 @@ function formatMessageParts(msg, detail) {
15536
15536
  } else if (partType === "tool-invocation") {
15537
15537
  const inv = part.toolInvocation;
15538
15538
  if (inv.state === "result") {
15539
- const { value: resultValue } = chunkNS47X3OB_cjs.resolveToolResultValue(
15539
+ const { value: resultValue } = chunkDTAZSLVU_cjs.resolveToolResultValue(
15540
15540
  part,
15541
15541
  inv.result
15542
15542
  );
15543
- const resultStr = chunkNS47X3OB_cjs.formatToolResultForObserver(resultValue, { maxTokens: HIGH_DETAIL_TOOL_RESULT_TOKENS });
15543
+ const resultStr = chunkDTAZSLVU_cjs.formatToolResultForObserver(resultValue, { maxTokens: HIGH_DETAIL_TOOL_RESULT_TOKENS });
15544
15544
  const fullText = `[Tool Result: ${inv.toolName}]
15545
15545
  ${resultStr}`;
15546
15546
  parts.push(makePart(msg, i, "tool-result", fullText, detail));
@@ -15603,7 +15603,7 @@ function renderFormattedParts(parts, timestamps, options) {
15603
15603
  const text4 = buildRenderedText(parts, timestamps);
15604
15604
  let totalTokens = tokenx.estimateTokenCount(text4);
15605
15605
  if (totalTokens > options.maxTokens) {
15606
- const truncated = chunkNS47X3OB_cjs.truncateStringByTokens(text4, options.maxTokens);
15606
+ const truncated = chunkDTAZSLVU_cjs.truncateStringByTokens(text4, options.maxTokens);
15607
15607
  return { text: truncated, truncated: true, tokenOffset: totalTokens - options.maxTokens };
15608
15608
  }
15609
15609
  const truncatedIndices = parts.map((p, i) => ({ part: p, index: i })).filter(({ part }) => part.text !== part.fullText).sort((a, b) => expandPriority(a.part) - expandPriority(b.part));
@@ -15636,7 +15636,7 @@ function renderFormattedParts(parts, timestamps, options) {
15636
15636
  if (expandedTokens <= options.maxTokens) {
15637
15637
  return { text: expanded, truncated: false, tokenOffset: 0 };
15638
15638
  }
15639
- const hardTruncated = chunkNS47X3OB_cjs.truncateStringByTokens(expanded, options.maxTokens);
15639
+ const hardTruncated = chunkDTAZSLVU_cjs.truncateStringByTokens(expanded, options.maxTokens);
15640
15640
  return { text: hardTruncated, truncated: true, tokenOffset: expandedTokens - options.maxTokens };
15641
15641
  }
15642
15642
  async function recallPart({
@@ -15671,7 +15671,7 @@ async function recallPart({
15671
15671
  `Part index ${partIndex} not found in message ${cursor}. Available indices: ${allParts.map((p) => p.partIndex).join(", ")}`
15672
15672
  );
15673
15673
  }
15674
- const truncatedText = chunkNS47X3OB_cjs.truncateStringByTokens(target.text, maxTokens);
15674
+ const truncatedText = chunkDTAZSLVU_cjs.truncateStringByTokens(target.text, maxTokens);
15675
15675
  const wasTruncated = truncatedText !== target.text;
15676
15676
  return {
15677
15677
  text: truncatedText,
@@ -16882,7 +16882,7 @@ ${workingMemory}`;
16882
16882
  "Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
16883
16883
  );
16884
16884
  }
16885
- const { ObservationalMemory: OMClass } = await import('./observational-memory-I5UTOG63.cjs');
16885
+ const { ObservationalMemory: OMClass } = await import('./observational-memory-XIZTJN3S.cjs');
16886
16886
  return new OMClass({
16887
16887
  storage: memoryStore,
16888
16888
  scope: omConfig.scope,
@@ -17595,18 +17595,18 @@ Notes:
17595
17595
  if (!effectiveConfig) return null;
17596
17596
  const engine = await this.omEngine;
17597
17597
  if (!engine) return null;
17598
- const { ObservationalMemoryProcessor } = await import('./observational-memory-I5UTOG63.cjs');
17598
+ const { ObservationalMemoryProcessor } = await import('./observational-memory-XIZTJN3S.cjs');
17599
17599
  return new ObservationalMemoryProcessor(engine, this);
17600
17600
  }
17601
17601
  };
17602
17602
 
17603
17603
  Object.defineProperty(exports, "ModelByInputTokens", {
17604
17604
  enumerable: true,
17605
- get: function () { return chunkNS47X3OB_cjs.ModelByInputTokens; }
17605
+ get: function () { return chunkDTAZSLVU_cjs.ModelByInputTokens; }
17606
17606
  });
17607
17607
  Object.defineProperty(exports, "getObservationsAsOf", {
17608
17608
  enumerable: true,
17609
- get: function () { return chunkNS47X3OB_cjs.getObservationsAsOf; }
17609
+ get: function () { return chunkDTAZSLVU_cjs.getObservationsAsOf; }
17610
17610
  });
17611
17611
  Object.defineProperty(exports, "extractWorkingMemoryContent", {
17612
17612
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { __commonJS, require_token_error, __toESM } from './chunk-SVPZMV27.js';
2
2
  import { __commonJS as __commonJS$1, require_token_error as require_token_error$1, __toESM as __toESM$1 } from './chunk-RC6RZVYE.js';
3
- import { truncateStringByTokens, resolveToolResultValue, formatToolResultForObserver } from './chunk-2QSOQQPM.js';
4
- export { ModelByInputTokens, getObservationsAsOf } from './chunk-2QSOQQPM.js';
3
+ import { truncateStringByTokens, resolveToolResultValue, formatToolResultForObserver } from './chunk-SKRONGCV.js';
4
+ export { ModelByInputTokens, getObservationsAsOf } from './chunk-SKRONGCV.js';
5
5
  import { ZodFirstPartyTypeKind } from 'zod/v3';
6
6
  import { z } from 'zod';
7
7
  import * as z4 from 'zod/v4';
@@ -16860,7 +16860,7 @@ ${workingMemory}`;
16860
16860
  "Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
16861
16861
  );
16862
16862
  }
16863
- const { ObservationalMemory: OMClass } = await import('./observational-memory-WMCWT577.js');
16863
+ const { ObservationalMemory: OMClass } = await import('./observational-memory-UGDENJPE.js');
16864
16864
  return new OMClass({
16865
16865
  storage: memoryStore,
16866
16866
  scope: omConfig.scope,
@@ -17573,7 +17573,7 @@ Notes:
17573
17573
  if (!effectiveConfig) return null;
17574
17574
  const engine = await this.omEngine;
17575
17575
  if (!engine) return null;
17576
- const { ObservationalMemoryProcessor } = await import('./observational-memory-WMCWT577.js');
17576
+ const { ObservationalMemoryProcessor } = await import('./observational-memory-UGDENJPE.js');
17577
17577
  return new ObservationalMemoryProcessor(engine, this);
17578
17578
  }
17579
17579
  };
@@ -1,4 +1,4 @@
1
- export { ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from './chunk-2QSOQQPM.js';
1
+ export { ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from './chunk-SKRONGCV.js';
2
2
  export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from './chunk-LSJJAJAF.js';
3
- //# sourceMappingURL=observational-memory-WMCWT577.js.map
4
- //# sourceMappingURL=observational-memory-WMCWT577.js.map
3
+ //# sourceMappingURL=observational-memory-UGDENJPE.js.map
4
+ //# sourceMappingURL=observational-memory-UGDENJPE.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-WMCWT577.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-UGDENJPE.js"}
@@ -1,101 +1,101 @@
1
1
  'use strict';
2
2
 
3
- var chunkNS47X3OB_cjs = require('./chunk-NS47X3OB.cjs');
3
+ var chunkDTAZSLVU_cjs = require('./chunk-DTAZSLVU.cjs');
4
4
  var chunkD4J4XPGM_cjs = require('./chunk-D4J4XPGM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ModelByInputTokens", {
9
9
  enumerable: true,
10
- get: function () { return chunkNS47X3OB_cjs.ModelByInputTokens; }
10
+ get: function () { return chunkDTAZSLVU_cjs.ModelByInputTokens; }
11
11
  });
12
12
  Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", {
13
13
  enumerable: true,
14
- get: function () { return chunkNS47X3OB_cjs.OBSERVER_SYSTEM_PROMPT; }
14
+ get: function () { return chunkDTAZSLVU_cjs.OBSERVER_SYSTEM_PROMPT; }
15
15
  });
16
16
  Object.defineProperty(exports, "ObservationalMemory", {
17
17
  enumerable: true,
18
- get: function () { return chunkNS47X3OB_cjs.ObservationalMemory; }
18
+ get: function () { return chunkDTAZSLVU_cjs.ObservationalMemory; }
19
19
  });
20
20
  Object.defineProperty(exports, "ObservationalMemoryProcessor", {
21
21
  enumerable: true,
22
- get: function () { return chunkNS47X3OB_cjs.ObservationalMemoryProcessor; }
22
+ get: function () { return chunkDTAZSLVU_cjs.ObservationalMemoryProcessor; }
23
23
  });
24
24
  Object.defineProperty(exports, "TokenCounter", {
25
25
  enumerable: true,
26
- get: function () { return chunkNS47X3OB_cjs.TokenCounter; }
26
+ get: function () { return chunkDTAZSLVU_cjs.TokenCounter; }
27
27
  });
28
28
  Object.defineProperty(exports, "buildObserverPrompt", {
29
29
  enumerable: true,
30
- get: function () { return chunkNS47X3OB_cjs.buildObserverPrompt; }
30
+ get: function () { return chunkDTAZSLVU_cjs.buildObserverPrompt; }
31
31
  });
32
32
  Object.defineProperty(exports, "buildObserverSystemPrompt", {
33
33
  enumerable: true,
34
- get: function () { return chunkNS47X3OB_cjs.buildObserverSystemPrompt; }
34
+ get: function () { return chunkDTAZSLVU_cjs.buildObserverSystemPrompt; }
35
35
  });
36
36
  Object.defineProperty(exports, "combineObservationGroupRanges", {
37
37
  enumerable: true,
38
- get: function () { return chunkNS47X3OB_cjs.combineObservationGroupRanges; }
38
+ get: function () { return chunkDTAZSLVU_cjs.combineObservationGroupRanges; }
39
39
  });
40
40
  Object.defineProperty(exports, "deriveObservationGroupProvenance", {
41
41
  enumerable: true,
42
- get: function () { return chunkNS47X3OB_cjs.deriveObservationGroupProvenance; }
42
+ get: function () { return chunkDTAZSLVU_cjs.deriveObservationGroupProvenance; }
43
43
  });
44
44
  Object.defineProperty(exports, "extractCurrentTask", {
45
45
  enumerable: true,
46
- get: function () { return chunkNS47X3OB_cjs.extractCurrentTask; }
46
+ get: function () { return chunkDTAZSLVU_cjs.extractCurrentTask; }
47
47
  });
48
48
  Object.defineProperty(exports, "formatMessagesForObserver", {
49
49
  enumerable: true,
50
- get: function () { return chunkNS47X3OB_cjs.formatMessagesForObserver; }
50
+ get: function () { return chunkDTAZSLVU_cjs.formatMessagesForObserver; }
51
51
  });
52
52
  Object.defineProperty(exports, "getObservationsAsOf", {
53
53
  enumerable: true,
54
- get: function () { return chunkNS47X3OB_cjs.getObservationsAsOf; }
54
+ get: function () { return chunkDTAZSLVU_cjs.getObservationsAsOf; }
55
55
  });
56
56
  Object.defineProperty(exports, "hasCurrentTaskSection", {
57
57
  enumerable: true,
58
- get: function () { return chunkNS47X3OB_cjs.hasCurrentTaskSection; }
58
+ get: function () { return chunkDTAZSLVU_cjs.hasCurrentTaskSection; }
59
59
  });
60
60
  Object.defineProperty(exports, "injectAnchorIds", {
61
61
  enumerable: true,
62
- get: function () { return chunkNS47X3OB_cjs.injectAnchorIds; }
62
+ get: function () { return chunkDTAZSLVU_cjs.injectAnchorIds; }
63
63
  });
64
64
  Object.defineProperty(exports, "optimizeObservationsForContext", {
65
65
  enumerable: true,
66
- get: function () { return chunkNS47X3OB_cjs.optimizeObservationsForContext; }
66
+ get: function () { return chunkDTAZSLVU_cjs.optimizeObservationsForContext; }
67
67
  });
68
68
  Object.defineProperty(exports, "parseAnchorId", {
69
69
  enumerable: true,
70
- get: function () { return chunkNS47X3OB_cjs.parseAnchorId; }
70
+ get: function () { return chunkDTAZSLVU_cjs.parseAnchorId; }
71
71
  });
72
72
  Object.defineProperty(exports, "parseObservationGroups", {
73
73
  enumerable: true,
74
- get: function () { return chunkNS47X3OB_cjs.parseObservationGroups; }
74
+ get: function () { return chunkDTAZSLVU_cjs.parseObservationGroups; }
75
75
  });
76
76
  Object.defineProperty(exports, "parseObserverOutput", {
77
77
  enumerable: true,
78
- get: function () { return chunkNS47X3OB_cjs.parseObserverOutput; }
78
+ get: function () { return chunkDTAZSLVU_cjs.parseObserverOutput; }
79
79
  });
80
80
  Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", {
81
81
  enumerable: true,
82
- get: function () { return chunkNS47X3OB_cjs.reconcileObservationGroupsFromReflection; }
82
+ get: function () { return chunkDTAZSLVU_cjs.reconcileObservationGroupsFromReflection; }
83
83
  });
84
84
  Object.defineProperty(exports, "renderObservationGroupsForReflection", {
85
85
  enumerable: true,
86
- get: function () { return chunkNS47X3OB_cjs.renderObservationGroupsForReflection; }
86
+ get: function () { return chunkDTAZSLVU_cjs.renderObservationGroupsForReflection; }
87
87
  });
88
88
  Object.defineProperty(exports, "stripEphemeralAnchorIds", {
89
89
  enumerable: true,
90
- get: function () { return chunkNS47X3OB_cjs.stripEphemeralAnchorIds; }
90
+ get: function () { return chunkDTAZSLVU_cjs.stripEphemeralAnchorIds; }
91
91
  });
92
92
  Object.defineProperty(exports, "stripObservationGroups", {
93
93
  enumerable: true,
94
- get: function () { return chunkNS47X3OB_cjs.stripObservationGroups; }
94
+ get: function () { return chunkDTAZSLVU_cjs.stripObservationGroups; }
95
95
  });
96
96
  Object.defineProperty(exports, "wrapInObservationGroup", {
97
97
  enumerable: true,
98
- get: function () { return chunkNS47X3OB_cjs.wrapInObservationGroup; }
98
+ get: function () { return chunkDTAZSLVU_cjs.wrapInObservationGroup; }
99
99
  });
100
100
  Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", {
101
101
  enumerable: true,
@@ -113,5 +113,5 @@ Object.defineProperty(exports, "OBSERVATION_CONTINUATION_HINT", {
113
113
  enumerable: true,
114
114
  get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTINUATION_HINT; }
115
115
  });
116
- //# sourceMappingURL=observational-memory-I5UTOG63.cjs.map
117
- //# sourceMappingURL=observational-memory-I5UTOG63.cjs.map
116
+ //# sourceMappingURL=observational-memory-XIZTJN3S.cjs.map
117
+ //# sourceMappingURL=observational-memory-XIZTJN3S.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-I5UTOG63.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-XIZTJN3S.cjs"}
@@ -1,101 +1,101 @@
1
1
  'use strict';
2
2
 
3
- var chunkNS47X3OB_cjs = require('../chunk-NS47X3OB.cjs');
3
+ var chunkDTAZSLVU_cjs = require('../chunk-DTAZSLVU.cjs');
4
4
  var chunkD4J4XPGM_cjs = require('../chunk-D4J4XPGM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ModelByInputTokens", {
9
9
  enumerable: true,
10
- get: function () { return chunkNS47X3OB_cjs.ModelByInputTokens; }
10
+ get: function () { return chunkDTAZSLVU_cjs.ModelByInputTokens; }
11
11
  });
12
12
  Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", {
13
13
  enumerable: true,
14
- get: function () { return chunkNS47X3OB_cjs.OBSERVER_SYSTEM_PROMPT; }
14
+ get: function () { return chunkDTAZSLVU_cjs.OBSERVER_SYSTEM_PROMPT; }
15
15
  });
16
16
  Object.defineProperty(exports, "ObservationalMemory", {
17
17
  enumerable: true,
18
- get: function () { return chunkNS47X3OB_cjs.ObservationalMemory; }
18
+ get: function () { return chunkDTAZSLVU_cjs.ObservationalMemory; }
19
19
  });
20
20
  Object.defineProperty(exports, "ObservationalMemoryProcessor", {
21
21
  enumerable: true,
22
- get: function () { return chunkNS47X3OB_cjs.ObservationalMemoryProcessor; }
22
+ get: function () { return chunkDTAZSLVU_cjs.ObservationalMemoryProcessor; }
23
23
  });
24
24
  Object.defineProperty(exports, "TokenCounter", {
25
25
  enumerable: true,
26
- get: function () { return chunkNS47X3OB_cjs.TokenCounter; }
26
+ get: function () { return chunkDTAZSLVU_cjs.TokenCounter; }
27
27
  });
28
28
  Object.defineProperty(exports, "buildObserverPrompt", {
29
29
  enumerable: true,
30
- get: function () { return chunkNS47X3OB_cjs.buildObserverPrompt; }
30
+ get: function () { return chunkDTAZSLVU_cjs.buildObserverPrompt; }
31
31
  });
32
32
  Object.defineProperty(exports, "buildObserverSystemPrompt", {
33
33
  enumerable: true,
34
- get: function () { return chunkNS47X3OB_cjs.buildObserverSystemPrompt; }
34
+ get: function () { return chunkDTAZSLVU_cjs.buildObserverSystemPrompt; }
35
35
  });
36
36
  Object.defineProperty(exports, "combineObservationGroupRanges", {
37
37
  enumerable: true,
38
- get: function () { return chunkNS47X3OB_cjs.combineObservationGroupRanges; }
38
+ get: function () { return chunkDTAZSLVU_cjs.combineObservationGroupRanges; }
39
39
  });
40
40
  Object.defineProperty(exports, "deriveObservationGroupProvenance", {
41
41
  enumerable: true,
42
- get: function () { return chunkNS47X3OB_cjs.deriveObservationGroupProvenance; }
42
+ get: function () { return chunkDTAZSLVU_cjs.deriveObservationGroupProvenance; }
43
43
  });
44
44
  Object.defineProperty(exports, "extractCurrentTask", {
45
45
  enumerable: true,
46
- get: function () { return chunkNS47X3OB_cjs.extractCurrentTask; }
46
+ get: function () { return chunkDTAZSLVU_cjs.extractCurrentTask; }
47
47
  });
48
48
  Object.defineProperty(exports, "formatMessagesForObserver", {
49
49
  enumerable: true,
50
- get: function () { return chunkNS47X3OB_cjs.formatMessagesForObserver; }
50
+ get: function () { return chunkDTAZSLVU_cjs.formatMessagesForObserver; }
51
51
  });
52
52
  Object.defineProperty(exports, "getObservationsAsOf", {
53
53
  enumerable: true,
54
- get: function () { return chunkNS47X3OB_cjs.getObservationsAsOf; }
54
+ get: function () { return chunkDTAZSLVU_cjs.getObservationsAsOf; }
55
55
  });
56
56
  Object.defineProperty(exports, "hasCurrentTaskSection", {
57
57
  enumerable: true,
58
- get: function () { return chunkNS47X3OB_cjs.hasCurrentTaskSection; }
58
+ get: function () { return chunkDTAZSLVU_cjs.hasCurrentTaskSection; }
59
59
  });
60
60
  Object.defineProperty(exports, "injectAnchorIds", {
61
61
  enumerable: true,
62
- get: function () { return chunkNS47X3OB_cjs.injectAnchorIds; }
62
+ get: function () { return chunkDTAZSLVU_cjs.injectAnchorIds; }
63
63
  });
64
64
  Object.defineProperty(exports, "optimizeObservationsForContext", {
65
65
  enumerable: true,
66
- get: function () { return chunkNS47X3OB_cjs.optimizeObservationsForContext; }
66
+ get: function () { return chunkDTAZSLVU_cjs.optimizeObservationsForContext; }
67
67
  });
68
68
  Object.defineProperty(exports, "parseAnchorId", {
69
69
  enumerable: true,
70
- get: function () { return chunkNS47X3OB_cjs.parseAnchorId; }
70
+ get: function () { return chunkDTAZSLVU_cjs.parseAnchorId; }
71
71
  });
72
72
  Object.defineProperty(exports, "parseObservationGroups", {
73
73
  enumerable: true,
74
- get: function () { return chunkNS47X3OB_cjs.parseObservationGroups; }
74
+ get: function () { return chunkDTAZSLVU_cjs.parseObservationGroups; }
75
75
  });
76
76
  Object.defineProperty(exports, "parseObserverOutput", {
77
77
  enumerable: true,
78
- get: function () { return chunkNS47X3OB_cjs.parseObserverOutput; }
78
+ get: function () { return chunkDTAZSLVU_cjs.parseObserverOutput; }
79
79
  });
80
80
  Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", {
81
81
  enumerable: true,
82
- get: function () { return chunkNS47X3OB_cjs.reconcileObservationGroupsFromReflection; }
82
+ get: function () { return chunkDTAZSLVU_cjs.reconcileObservationGroupsFromReflection; }
83
83
  });
84
84
  Object.defineProperty(exports, "renderObservationGroupsForReflection", {
85
85
  enumerable: true,
86
- get: function () { return chunkNS47X3OB_cjs.renderObservationGroupsForReflection; }
86
+ get: function () { return chunkDTAZSLVU_cjs.renderObservationGroupsForReflection; }
87
87
  });
88
88
  Object.defineProperty(exports, "stripEphemeralAnchorIds", {
89
89
  enumerable: true,
90
- get: function () { return chunkNS47X3OB_cjs.stripEphemeralAnchorIds; }
90
+ get: function () { return chunkDTAZSLVU_cjs.stripEphemeralAnchorIds; }
91
91
  });
92
92
  Object.defineProperty(exports, "stripObservationGroups", {
93
93
  enumerable: true,
94
- get: function () { return chunkNS47X3OB_cjs.stripObservationGroups; }
94
+ get: function () { return chunkDTAZSLVU_cjs.stripObservationGroups; }
95
95
  });
96
96
  Object.defineProperty(exports, "wrapInObservationGroup", {
97
97
  enumerable: true,
98
- get: function () { return chunkNS47X3OB_cjs.wrapInObservationGroup; }
98
+ get: function () { return chunkDTAZSLVU_cjs.wrapInObservationGroup; }
99
99
  });
100
100
  Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", {
101
101
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from '../chunk-2QSOQQPM.js';
1
+ export { ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from '../chunk-SKRONGCV.js';
2
2
  export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from '../chunk-LSJJAJAF.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  export { ObservationTurn } from './turn.js';
2
2
  export { ObservationStep } from './step.js';
3
- export type { TurnContext, StepContext, TurnResult } from './types.js';
3
+ export type { ObservationTurnHooks, RotateResponseMessageId, TurnContext, StepContext, TurnResult } from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/processors/observational-memory/observation-turn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/processors/observational-memory/observation-turn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/processors/observational-memory/observation-turn/step.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,qBAAa,eAAe;IAKxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM;IAL7B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,CAAc;gBAGZ,IAAI,EAAE,eAAe,EAC7B,UAAU,EAAE,MAAM;IAG7B,2CAA2C;IAC3C,IAAI,QAAQ,YAEX;IAED,2EAA2E;IAC3E,IAAI,OAAO,IAAI,WAAW,CAGzB;IAED;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IAiNrC;;;OAGG;YACW,uBAAuB;CAkEtC"}
1
+ {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/processors/observational-memory/observation-turn/step.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,qBAAa,eAAe;IAKxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM;IAL7B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,CAAc;gBAGZ,IAAI,EAAE,eAAe,EAC7B,UAAU,EAAE,MAAM;IAG7B,2CAA2C;IAC3C,IAAI,QAAQ,YAEX;IAED,2EAA2E;IAC3E,IAAI,OAAO,IAAI,WAAW,CAGzB;IAED;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IA8NrC;;;OAGG;YACW,uBAAuB;CAkEtC"}