@mastra/memory 1.25.0 → 1.25.1-alpha.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/CHANGELOG.md +10 -0
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-agent-approval.md +1 -1
- package/dist/docs/references/docs-agents-networks.md +2 -2
- package/dist/docs/references/{docs-agents-supervisor-agents.md → docs-capabilities-subagents.md} +58 -58
- package/dist/docs/references/docs-long-running-agents-background-tasks.md +1 -1
- package/dist/docs/references/docs-long-running-agents-goals.md +3 -3
- package/dist/docs/references/docs-memory-overview.md +2 -2
- package/dist/docs/references/docs-storage-overview.md +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/processors/index.cjs +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
- package/dist/processors/observational-memory/processor.d.ts.map +1 -1
- package/dist/{src-DQO6B1AU.cjs → src-Bz9Fg416.cjs} +9 -2
- package/dist/src-Bz9Fg416.cjs.map +1 -0
- package/dist/{src-BgdYYHLc.js → src-DvQWV6nH.js} +9 -2
- package/dist/{src-BgdYYHLc.js.map → src-DvQWV6nH.js.map} +1 -1
- package/package.json +4 -4
- package/dist/src-DQO6B1AU.cjs.map +0 -1
|
@@ -22,6 +22,7 @@ import { AsyncLocalStorage } from "async_hooks";
|
|
|
22
22
|
import imageSize from "image-size";
|
|
23
23
|
import { createTool } from "@mastra/core/tools";
|
|
24
24
|
import { isStandardSchemaWithJSON as isStandardSchemaWithJSON$1, toStandardSchema as toStandardSchema$1 } from "@mastra/core/schema";
|
|
25
|
+
import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
|
|
25
26
|
import { MessageHistory, MessageHistory as MessageHistory$1, SemanticRecall, WorkingMemory } from "@mastra/core/processors";
|
|
26
27
|
import { inspect } from "util";
|
|
27
28
|
import { structuredPatch } from "diff";
|
|
@@ -24510,7 +24511,13 @@ var ObservationalMemory = class ObservationalMemory {
|
|
|
24510
24511
|
threadId: serialized.memoryInfo.threadId,
|
|
24511
24512
|
resourceId: serialized.memoryInfo.resourceId
|
|
24512
24513
|
};
|
|
24513
|
-
if (this.scope === "thread") throw new
|
|
24514
|
+
if (this.scope === "thread") throw new MastraError({
|
|
24515
|
+
id: "OBSERVATIONAL_MEMORY_THREAD_ID_REQUIRED",
|
|
24516
|
+
domain: ErrorDomain.MASTRA_MEMORY,
|
|
24517
|
+
category: ErrorCategory.USER,
|
|
24518
|
+
details: { status: 400 },
|
|
24519
|
+
text: "ObservationalMemory (scope: 'thread') requires a threadId, but none was found in RequestContext or MessageList. Ensure the agent is configured with Memory and a valid threadId is provided."
|
|
24520
|
+
});
|
|
24514
24521
|
return null;
|
|
24515
24522
|
}
|
|
24516
24523
|
/**
|
|
@@ -28306,4 +28313,4 @@ Notes:
|
|
|
28306
28313
|
//#endregion
|
|
28307
28314
|
export { extractCurrentTask as A, OBSERVATION_CONTEXT_INSTRUCTIONS as B, WorkingMemoryExtractor as C, OBSERVER_SYSTEM_PROMPT as D, TokenCounter as E, injectAnchorIds as F, OBSERVATION_CONTINUATION_HINT as H, parseAnchorId as I, stripEphemeralAnchorIds as L, hasCurrentTaskSection as M, optimizeObservationsForContext as N, buildObserverPrompt as O, parseObserverOutput as P, Extractor as R, deepMergeWorkingMemory as S, summarizeConversation as T, OBSERVATION_CONTEXT_PROMPT as V, reconcileObservationGroupsFromReflection as _, extractWorkingMemoryContent as a, wrapInObservationGroup as b, WORKING_MEMORY_STATE_ID as c, getObservationsAsOf as d, ObservationalMemoryProcessor as f, parseObservationGroups as g, deriveObservationGroupProvenance as h, WorkingMemory as i, formatMessagesForObserver as j, buildObserverSystemPrompt as k, WORKING_MEMORY_STATE_PROCESSOR_ID as l, combineObservationGroupRanges as m, MessageHistory$1 as n, extractWorkingMemoryTags as o, ObservationalMemory as p, SemanticRecall as r, removeWorkingMemoryTags as s, Memory as t, WorkingMemoryStateProcessor as u, renderObservationGroupsForReflection as v, SUMMARIZE_THREAD_DEFAULTS as w, ModelByInputTokens as x, stripObservationGroups as y, OBSERVATIONAL_MEMORY_DEFAULTS as z };
|
|
28308
28315
|
|
|
28309
|
-
//# sourceMappingURL=src-
|
|
28316
|
+
//# sourceMappingURL=src-DvQWV6nH.js.map
|