@mastra/memory
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup } from './chunk-XOCZP6LJ.js'; | ||
| export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from './chunk-LSJJAJAF.js'; | ||
| //# sourceMappingURL=observational-memory-HQ4AP566.js.map | ||
| //# sourceMappingURL=observational-memory-HQ4AP566.js.map |
| {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-HQ4AP566.js"} |
| 'use strict'; | ||
| var chunkTSABI3S4_cjs = require('./chunk-TSABI3S4.cjs'); | ||
| var chunkD4J4XPGM_cjs = require('./chunk-D4J4XPGM.cjs'); | ||
| Object.defineProperty(exports, "Extractor", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.Extractor; } | ||
| }); | ||
| Object.defineProperty(exports, "ModelByInputTokens", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.ModelByInputTokens; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.OBSERVER_SYSTEM_PROMPT; } | ||
| }); | ||
| Object.defineProperty(exports, "ObservationalMemory", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.ObservationalMemory; } | ||
| }); | ||
| Object.defineProperty(exports, "ObservationalMemoryProcessor", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.ObservationalMemoryProcessor; } | ||
| }); | ||
| Object.defineProperty(exports, "TokenCounter", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.TokenCounter; } | ||
| }); | ||
| Object.defineProperty(exports, "WorkingMemoryExtractor", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.WorkingMemoryExtractor; } | ||
| }); | ||
| Object.defineProperty(exports, "buildObserverPrompt", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.buildObserverPrompt; } | ||
| }); | ||
| Object.defineProperty(exports, "buildObserverSystemPrompt", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.buildObserverSystemPrompt; } | ||
| }); | ||
| Object.defineProperty(exports, "combineObservationGroupRanges", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.combineObservationGroupRanges; } | ||
| }); | ||
| Object.defineProperty(exports, "deriveObservationGroupProvenance", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.deriveObservationGroupProvenance; } | ||
| }); | ||
| Object.defineProperty(exports, "extractCurrentTask", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.extractCurrentTask; } | ||
| }); | ||
| Object.defineProperty(exports, "formatMessagesForObserver", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.formatMessagesForObserver; } | ||
| }); | ||
| Object.defineProperty(exports, "getObservationsAsOf", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.getObservationsAsOf; } | ||
| }); | ||
| Object.defineProperty(exports, "hasCurrentTaskSection", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.hasCurrentTaskSection; } | ||
| }); | ||
| Object.defineProperty(exports, "injectAnchorIds", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.injectAnchorIds; } | ||
| }); | ||
| Object.defineProperty(exports, "optimizeObservationsForContext", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.optimizeObservationsForContext; } | ||
| }); | ||
| Object.defineProperty(exports, "parseAnchorId", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.parseAnchorId; } | ||
| }); | ||
| Object.defineProperty(exports, "parseObservationGroups", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.parseObservationGroups; } | ||
| }); | ||
| Object.defineProperty(exports, "parseObserverOutput", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.parseObserverOutput; } | ||
| }); | ||
| Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.reconcileObservationGroupsFromReflection; } | ||
| }); | ||
| Object.defineProperty(exports, "renderObservationGroupsForReflection", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.renderObservationGroupsForReflection; } | ||
| }); | ||
| Object.defineProperty(exports, "stripEphemeralAnchorIds", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.stripEphemeralAnchorIds; } | ||
| }); | ||
| Object.defineProperty(exports, "stripObservationGroups", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.stripObservationGroups; } | ||
| }); | ||
| Object.defineProperty(exports, "summarizeConversation", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.summarizeConversation; } | ||
| }); | ||
| Object.defineProperty(exports, "wrapInObservationGroup", { | ||
| enumerable: true, | ||
| get: function () { return chunkTSABI3S4_cjs.wrapInObservationGroup; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATIONAL_MEMORY_DEFAULTS; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATION_CONTEXT_INSTRUCTIONS", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTEXT_INSTRUCTIONS; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATION_CONTEXT_PROMPT", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTEXT_PROMPT; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATION_CONTINUATION_HINT", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTINUATION_HINT; } | ||
| }); | ||
| //# sourceMappingURL=observational-memory-NZSUTGPH.cjs.map | ||
| //# sourceMappingURL=observational-memory-NZSUTGPH.cjs.map |
| {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-NZSUTGPH.cjs"} |
| { | ||
| "version": "1.23.1-alpha.1", | ||
| "version": "1.23.1", | ||
| "package": "@mastra/memory", | ||
@@ -7,3 +7,3 @@ "exports": { | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 316 | ||
@@ -13,3 +13,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1354 | ||
@@ -19,7 +19,7 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js" | ||
| "implementation": "dist/chunk-XOCZP6LJ.js" | ||
| }, | ||
| "ObservationalMemory": { | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 28549 | ||
@@ -29,3 +29,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 31183 | ||
@@ -35,3 +35,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 22331 | ||
@@ -41,3 +41,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 22998 | ||
@@ -47,3 +47,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 4504 | ||
@@ -53,3 +53,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 3771 | ||
@@ -59,3 +59,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1446 | ||
@@ -65,3 +65,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1480 | ||
@@ -71,3 +71,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 4627 | ||
@@ -77,3 +77,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 4226 | ||
@@ -83,3 +83,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 31405 | ||
@@ -89,3 +89,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 4615 | ||
@@ -95,3 +95,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 3326 | ||
@@ -101,3 +101,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 4638 | ||
@@ -107,3 +107,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 3299 | ||
@@ -113,3 +113,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1415 | ||
@@ -119,3 +119,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 4518 | ||
@@ -125,3 +125,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1504 | ||
@@ -131,3 +131,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1460 | ||
@@ -137,3 +137,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 3356 | ||
@@ -143,3 +143,3 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1437 | ||
@@ -149,7 +149,7 @@ }, | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js" | ||
| "implementation": "dist/chunk-XOCZP6LJ.js" | ||
| }, | ||
| "wrapInObservationGroup": { | ||
| "types": "dist/processors/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 1408 | ||
@@ -175,3 +175,3 @@ }, | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 24423 | ||
@@ -181,19 +181,19 @@ }, | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js" | ||
| "implementation": "dist/chunk-XOCZP6LJ.js" | ||
| }, | ||
| "SUMMARIZE_THREAD_DEFAULTS": { | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js" | ||
| "implementation": "dist/chunk-XOCZP6LJ.js" | ||
| }, | ||
| "SemanticRecall": { | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js" | ||
| "implementation": "dist/chunk-XOCZP6LJ.js" | ||
| }, | ||
| "WorkingMemory": { | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js" | ||
| "implementation": "dist/chunk-XOCZP6LJ.js" | ||
| }, | ||
| "deepMergeWorkingMemory": { | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 24062 | ||
@@ -203,3 +203,3 @@ }, | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 24378 | ||
@@ -209,3 +209,3 @@ }, | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 24346 | ||
@@ -215,3 +215,3 @@ }, | ||
| "types": "dist/index.d.ts", | ||
| "implementation": "dist/chunk-YXN553WT.js", | ||
| "implementation": "dist/chunk-XOCZP6LJ.js", | ||
| "line": 24359 | ||
@@ -237,3 +237,3 @@ }, | ||
| "chunks": [ | ||
| "chunk-YXN553WT.js", | ||
| "chunk-XOCZP6LJ.js", | ||
| "chunk-LSJJAJAF.js" | ||
@@ -240,0 +240,0 @@ ] |
@@ -62,3 +62,3 @@ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt | ||
| - **Satisfied** → the loop stops and the objective is marked `done`. | ||
| - **Budget exhausted** (`runsUsed >= maxRuns`) → the loop stops but the objective stays `active`, so raising `maxRuns` later can resume it. | ||
| - **Budget exhausted** (`runsUsed >= maxRuns`) → the loop stops and the objective is marked `paused`. Raise `maxRuns`, then resume the objective to continue. | ||
@@ -107,2 +107,4 @@ The step is a no-op for background-task, mid-tool-loop, and working-memory-only iterations — the same gating as `isTaskComplete`. | ||
| Objective records include an optional `activeDurationMs` value for user interfaces that display active pursuit time. Mastra advances this value while an agent runs toward an active objective and checkpoints it when the run ends or waits for tool approval. Missing values represent zero, and the duration measures agent execution rather than the goal's wall-clock age. | ||
| Per-objective values written by `setObjective` / `updateObjectiveOptions` take precedence over the agent's `goal` config, and that precedence is remembered in thread state. See the [`GoalEvaluationPayload` in the ChunkType reference](https://mastra.ai/reference/streaming/ChunkType) for the full goal chunk shape. | ||
@@ -109,0 +111,0 @@ |
@@ -6,3 +6,3 @@ --- | ||
| package: "@mastra/memory" | ||
| version: "1.23.1-alpha.1" | ||
| version: "1.23.1" | ||
| --- | ||
@@ -9,0 +9,0 @@ |
+15
-15
| 'use strict'; | ||
| var chunkYNTQFC3L_cjs = require('./chunk-YNTQFC3L.cjs'); | ||
| var chunkTSABI3S4_cjs = require('./chunk-TSABI3S4.cjs'); | ||
| var chunk43FJOLKM_cjs = require('./chunk-43FJOLKM.cjs'); | ||
@@ -10,55 +10,55 @@ | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.Extractor; } | ||
| get: function () { return chunkTSABI3S4_cjs.Extractor; } | ||
| }); | ||
| Object.defineProperty(exports, "Memory", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.Memory; } | ||
| get: function () { return chunkTSABI3S4_cjs.Memory; } | ||
| }); | ||
| Object.defineProperty(exports, "MessageHistory", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.MessageHistory; } | ||
| get: function () { return chunkTSABI3S4_cjs.MessageHistory; } | ||
| }); | ||
| Object.defineProperty(exports, "ModelByInputTokens", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ModelByInputTokens; } | ||
| get: function () { return chunkTSABI3S4_cjs.ModelByInputTokens; } | ||
| }); | ||
| Object.defineProperty(exports, "SUMMARIZE_THREAD_DEFAULTS", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.SUMMARIZE_THREAD_DEFAULTS; } | ||
| get: function () { return chunkTSABI3S4_cjs.SUMMARIZE_THREAD_DEFAULTS; } | ||
| }); | ||
| Object.defineProperty(exports, "SemanticRecall", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.SemanticRecall; } | ||
| get: function () { return chunkTSABI3S4_cjs.SemanticRecall; } | ||
| }); | ||
| Object.defineProperty(exports, "WorkingMemory", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.WorkingMemory; } | ||
| get: function () { return chunkTSABI3S4_cjs.WorkingMemory; } | ||
| }); | ||
| Object.defineProperty(exports, "WorkingMemoryExtractor", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.WorkingMemoryExtractor; } | ||
| get: function () { return chunkTSABI3S4_cjs.WorkingMemoryExtractor; } | ||
| }); | ||
| Object.defineProperty(exports, "deepMergeWorkingMemory", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.deepMergeWorkingMemory; } | ||
| get: function () { return chunkTSABI3S4_cjs.deepMergeWorkingMemory; } | ||
| }); | ||
| Object.defineProperty(exports, "extractWorkingMemoryContent", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.extractWorkingMemoryContent; } | ||
| get: function () { return chunkTSABI3S4_cjs.extractWorkingMemoryContent; } | ||
| }); | ||
| Object.defineProperty(exports, "extractWorkingMemoryTags", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.extractWorkingMemoryTags; } | ||
| get: function () { return chunkTSABI3S4_cjs.extractWorkingMemoryTags; } | ||
| }); | ||
| Object.defineProperty(exports, "getObservationsAsOf", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.getObservationsAsOf; } | ||
| get: function () { return chunkTSABI3S4_cjs.getObservationsAsOf; } | ||
| }); | ||
| Object.defineProperty(exports, "removeWorkingMemoryTags", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.removeWorkingMemoryTags; } | ||
| get: function () { return chunkTSABI3S4_cjs.removeWorkingMemoryTags; } | ||
| }); | ||
| Object.defineProperty(exports, "summarizeConversation", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.summarizeConversation; } | ||
| get: function () { return chunkTSABI3S4_cjs.summarizeConversation; } | ||
| }); | ||
@@ -65,0 +65,0 @@ Object.defineProperty(exports, "WORKING_MEMORY_STATE_ID", { |
+1
-1
@@ -1,4 +0,4 @@ | ||
| export { Extractor, Memory, MessageHistory, ModelByInputTokens, SUMMARIZE_THREAD_DEFAULTS, SemanticRecall, WorkingMemory, WorkingMemoryExtractor, deepMergeWorkingMemory, extractWorkingMemoryContent, extractWorkingMemoryTags, getObservationsAsOf, removeWorkingMemoryTags, summarizeConversation } from './chunk-YXN553WT.js'; | ||
| export { Extractor, Memory, MessageHistory, ModelByInputTokens, SUMMARIZE_THREAD_DEFAULTS, SemanticRecall, WorkingMemory, WorkingMemoryExtractor, deepMergeWorkingMemory, extractWorkingMemoryContent, extractWorkingMemoryTags, getObservationsAsOf, removeWorkingMemoryTags, summarizeConversation } from './chunk-XOCZP6LJ.js'; | ||
| export { WORKING_MEMORY_STATE_ID, WORKING_MEMORY_STATE_PROCESSOR_ID, WorkingMemoryStateProcessor } from './chunk-WCGXQIEN.js'; | ||
| //# sourceMappingURL=index.js.map | ||
| //# sourceMappingURL=index.js.map |
| 'use strict'; | ||
| var chunkYNTQFC3L_cjs = require('../chunk-YNTQFC3L.cjs'); | ||
| var chunkTSABI3S4_cjs = require('../chunk-TSABI3S4.cjs'); | ||
| var chunkD4J4XPGM_cjs = require('../chunk-D4J4XPGM.cjs'); | ||
@@ -10,103 +10,103 @@ | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.Extractor; } | ||
| get: function () { return chunkTSABI3S4_cjs.Extractor; } | ||
| }); | ||
| Object.defineProperty(exports, "ModelByInputTokens", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ModelByInputTokens; } | ||
| get: function () { return chunkTSABI3S4_cjs.ModelByInputTokens; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.OBSERVER_SYSTEM_PROMPT; } | ||
| get: function () { return chunkTSABI3S4_cjs.OBSERVER_SYSTEM_PROMPT; } | ||
| }); | ||
| Object.defineProperty(exports, "ObservationalMemory", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ObservationalMemory; } | ||
| get: function () { return chunkTSABI3S4_cjs.ObservationalMemory; } | ||
| }); | ||
| Object.defineProperty(exports, "ObservationalMemoryProcessor", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ObservationalMemoryProcessor; } | ||
| get: function () { return chunkTSABI3S4_cjs.ObservationalMemoryProcessor; } | ||
| }); | ||
| Object.defineProperty(exports, "TokenCounter", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.TokenCounter; } | ||
| get: function () { return chunkTSABI3S4_cjs.TokenCounter; } | ||
| }); | ||
| Object.defineProperty(exports, "WorkingMemoryExtractor", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.WorkingMemoryExtractor; } | ||
| get: function () { return chunkTSABI3S4_cjs.WorkingMemoryExtractor; } | ||
| }); | ||
| Object.defineProperty(exports, "buildObserverPrompt", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.buildObserverPrompt; } | ||
| get: function () { return chunkTSABI3S4_cjs.buildObserverPrompt; } | ||
| }); | ||
| Object.defineProperty(exports, "buildObserverSystemPrompt", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.buildObserverSystemPrompt; } | ||
| get: function () { return chunkTSABI3S4_cjs.buildObserverSystemPrompt; } | ||
| }); | ||
| Object.defineProperty(exports, "combineObservationGroupRanges", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.combineObservationGroupRanges; } | ||
| get: function () { return chunkTSABI3S4_cjs.combineObservationGroupRanges; } | ||
| }); | ||
| Object.defineProperty(exports, "deriveObservationGroupProvenance", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.deriveObservationGroupProvenance; } | ||
| get: function () { return chunkTSABI3S4_cjs.deriveObservationGroupProvenance; } | ||
| }); | ||
| Object.defineProperty(exports, "extractCurrentTask", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.extractCurrentTask; } | ||
| get: function () { return chunkTSABI3S4_cjs.extractCurrentTask; } | ||
| }); | ||
| Object.defineProperty(exports, "formatMessagesForObserver", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.formatMessagesForObserver; } | ||
| get: function () { return chunkTSABI3S4_cjs.formatMessagesForObserver; } | ||
| }); | ||
| Object.defineProperty(exports, "getObservationsAsOf", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.getObservationsAsOf; } | ||
| get: function () { return chunkTSABI3S4_cjs.getObservationsAsOf; } | ||
| }); | ||
| Object.defineProperty(exports, "hasCurrentTaskSection", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.hasCurrentTaskSection; } | ||
| get: function () { return chunkTSABI3S4_cjs.hasCurrentTaskSection; } | ||
| }); | ||
| Object.defineProperty(exports, "injectAnchorIds", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.injectAnchorIds; } | ||
| get: function () { return chunkTSABI3S4_cjs.injectAnchorIds; } | ||
| }); | ||
| Object.defineProperty(exports, "optimizeObservationsForContext", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.optimizeObservationsForContext; } | ||
| get: function () { return chunkTSABI3S4_cjs.optimizeObservationsForContext; } | ||
| }); | ||
| Object.defineProperty(exports, "parseAnchorId", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.parseAnchorId; } | ||
| get: function () { return chunkTSABI3S4_cjs.parseAnchorId; } | ||
| }); | ||
| Object.defineProperty(exports, "parseObservationGroups", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.parseObservationGroups; } | ||
| get: function () { return chunkTSABI3S4_cjs.parseObservationGroups; } | ||
| }); | ||
| Object.defineProperty(exports, "parseObserverOutput", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.parseObserverOutput; } | ||
| get: function () { return chunkTSABI3S4_cjs.parseObserverOutput; } | ||
| }); | ||
| Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.reconcileObservationGroupsFromReflection; } | ||
| get: function () { return chunkTSABI3S4_cjs.reconcileObservationGroupsFromReflection; } | ||
| }); | ||
| Object.defineProperty(exports, "renderObservationGroupsForReflection", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.renderObservationGroupsForReflection; } | ||
| get: function () { return chunkTSABI3S4_cjs.renderObservationGroupsForReflection; } | ||
| }); | ||
| Object.defineProperty(exports, "stripEphemeralAnchorIds", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.stripEphemeralAnchorIds; } | ||
| get: function () { return chunkTSABI3S4_cjs.stripEphemeralAnchorIds; } | ||
| }); | ||
| Object.defineProperty(exports, "stripObservationGroups", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.stripObservationGroups; } | ||
| get: function () { return chunkTSABI3S4_cjs.stripObservationGroups; } | ||
| }); | ||
| Object.defineProperty(exports, "summarizeConversation", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.summarizeConversation; } | ||
| get: function () { return chunkTSABI3S4_cjs.summarizeConversation; } | ||
| }); | ||
| Object.defineProperty(exports, "wrapInObservationGroup", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.wrapInObservationGroup; } | ||
| get: function () { return chunkTSABI3S4_cjs.wrapInObservationGroup; } | ||
| }); | ||
@@ -113,0 +113,0 @@ Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", { |
@@ -1,4 +0,4 @@ | ||
| export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup } from '../chunk-YXN553WT.js'; | ||
| export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup } from '../chunk-XOCZP6LJ.js'; | ||
| export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from '../chunk-LSJJAJAF.js'; | ||
| //# sourceMappingURL=index.js.map | ||
| //# sourceMappingURL=index.js.map |
+9
-9
| { | ||
| "name": "@mastra/memory", | ||
| "version": "1.23.1-alpha.1", | ||
| "version": "1.23.1", | ||
| "description": "", | ||
@@ -52,3 +52,3 @@ "type": "module", | ||
| "@ai-sdk/openai": "^1.3.24", | ||
| "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.111", | ||
| "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.114", | ||
| "@types/json-schema": "^7.0.15", | ||
@@ -61,12 +61,12 @@ "@types/lru-cache": "^7.10.10", | ||
| "tsup": "^8.5.1", | ||
| "tsx": "^4.22.4", | ||
| "tsx": "^4.23.1", | ||
| "typescript": "^6.0.3", | ||
| "typescript-eslint": "^8.57.0", | ||
| "vitest": "4.1.10", | ||
| "@internal/ai-sdk-v4": "0.0.61", | ||
| "@internal/ai-v6": "0.0.61", | ||
| "@internal/lint": "0.0.114", | ||
| "@mastra/core": "1.52.0-alpha.8", | ||
| "@internal/ai-sdk-v5": "0.0.61", | ||
| "@internal/types-builder": "0.0.89" | ||
| "@internal/ai-sdk-v5": "0.0.62", | ||
| "@internal/ai-sdk-v4": "0.0.62", | ||
| "@internal/ai-v6": "0.0.62", | ||
| "@internal/types-builder": "0.0.90", | ||
| "@mastra/core": "1.52.0", | ||
| "@internal/lint": "0.0.115" | ||
| }, | ||
@@ -73,0 +73,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| 'use strict'; | ||
| var chunkYNTQFC3L_cjs = require('./chunk-YNTQFC3L.cjs'); | ||
| var chunkD4J4XPGM_cjs = require('./chunk-D4J4XPGM.cjs'); | ||
| Object.defineProperty(exports, "Extractor", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.Extractor; } | ||
| }); | ||
| Object.defineProperty(exports, "ModelByInputTokens", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ModelByInputTokens; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.OBSERVER_SYSTEM_PROMPT; } | ||
| }); | ||
| Object.defineProperty(exports, "ObservationalMemory", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ObservationalMemory; } | ||
| }); | ||
| Object.defineProperty(exports, "ObservationalMemoryProcessor", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.ObservationalMemoryProcessor; } | ||
| }); | ||
| Object.defineProperty(exports, "TokenCounter", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.TokenCounter; } | ||
| }); | ||
| Object.defineProperty(exports, "WorkingMemoryExtractor", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.WorkingMemoryExtractor; } | ||
| }); | ||
| Object.defineProperty(exports, "buildObserverPrompt", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.buildObserverPrompt; } | ||
| }); | ||
| Object.defineProperty(exports, "buildObserverSystemPrompt", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.buildObserverSystemPrompt; } | ||
| }); | ||
| Object.defineProperty(exports, "combineObservationGroupRanges", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.combineObservationGroupRanges; } | ||
| }); | ||
| Object.defineProperty(exports, "deriveObservationGroupProvenance", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.deriveObservationGroupProvenance; } | ||
| }); | ||
| Object.defineProperty(exports, "extractCurrentTask", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.extractCurrentTask; } | ||
| }); | ||
| Object.defineProperty(exports, "formatMessagesForObserver", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.formatMessagesForObserver; } | ||
| }); | ||
| Object.defineProperty(exports, "getObservationsAsOf", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.getObservationsAsOf; } | ||
| }); | ||
| Object.defineProperty(exports, "hasCurrentTaskSection", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.hasCurrentTaskSection; } | ||
| }); | ||
| Object.defineProperty(exports, "injectAnchorIds", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.injectAnchorIds; } | ||
| }); | ||
| Object.defineProperty(exports, "optimizeObservationsForContext", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.optimizeObservationsForContext; } | ||
| }); | ||
| Object.defineProperty(exports, "parseAnchorId", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.parseAnchorId; } | ||
| }); | ||
| Object.defineProperty(exports, "parseObservationGroups", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.parseObservationGroups; } | ||
| }); | ||
| Object.defineProperty(exports, "parseObserverOutput", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.parseObserverOutput; } | ||
| }); | ||
| Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.reconcileObservationGroupsFromReflection; } | ||
| }); | ||
| Object.defineProperty(exports, "renderObservationGroupsForReflection", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.renderObservationGroupsForReflection; } | ||
| }); | ||
| Object.defineProperty(exports, "stripEphemeralAnchorIds", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.stripEphemeralAnchorIds; } | ||
| }); | ||
| Object.defineProperty(exports, "stripObservationGroups", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.stripObservationGroups; } | ||
| }); | ||
| Object.defineProperty(exports, "summarizeConversation", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.summarizeConversation; } | ||
| }); | ||
| Object.defineProperty(exports, "wrapInObservationGroup", { | ||
| enumerable: true, | ||
| get: function () { return chunkYNTQFC3L_cjs.wrapInObservationGroup; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATIONAL_MEMORY_DEFAULTS; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATION_CONTEXT_INSTRUCTIONS", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTEXT_INSTRUCTIONS; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATION_CONTEXT_PROMPT", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTEXT_PROMPT; } | ||
| }); | ||
| Object.defineProperty(exports, "OBSERVATION_CONTINUATION_HINT", { | ||
| enumerable: true, | ||
| get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTINUATION_HINT; } | ||
| }); | ||
| //# sourceMappingURL=observational-memory-OD3W7JXC.cjs.map | ||
| //# sourceMappingURL=observational-memory-OD3W7JXC.cjs.map |
| {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-OD3W7JXC.cjs"} |
| export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup } from './chunk-YXN553WT.js'; | ||
| export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from './chunk-LSJJAJAF.js'; | ||
| //# sourceMappingURL=observational-memory-ZYY4KPCN.js.map | ||
| //# sourceMappingURL=observational-memory-ZYY4KPCN.js.map |
| {"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-ZYY4KPCN.js"} |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
10583750
0.08%0
-100%