@mastra/memory 1.28.3-alpha.0 → 1.28.3-alpha.1
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- 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/observation-strategies/async-buffer.d.ts.map +1 -1
- package/dist/{src-UuzfQeGH.cjs → src-CIhnLM0F.cjs} +5 -2
- package/dist/{src-UuzfQeGH.cjs.map → src-CIhnLM0F.cjs.map} +1 -1
- package/dist/{src-DG_pqwPQ.js → src-QH80Zc0y.js} +5 -2
- package/dist/{src-DG_pqwPQ.js.map → src-QH80Zc0y.js.map} +1 -1
- package/package.json +4 -4
|
@@ -24586,7 +24586,7 @@ var AsyncBufferObservationStrategy = class extends ObservationStrategy {
|
|
|
24586
24586
|
if (!processed.observations) return;
|
|
24587
24587
|
const { record, threadId, resourceId, messages } = this.opts;
|
|
24588
24588
|
const messageTokens = await this.tokenCounter.countMessagesAsync(messages);
|
|
24589
|
-
await this.storage.updateBufferedObservations({
|
|
24589
|
+
await withRetry(() => this.storage.updateBufferedObservations({
|
|
24590
24590
|
id: record.id,
|
|
24591
24591
|
chunk: {
|
|
24592
24592
|
cycleId: this.cycleId,
|
|
@@ -24602,6 +24602,9 @@ var AsyncBufferObservationStrategy = class extends ObservationStrategy {
|
|
|
24602
24602
|
extractionFailures: processed.extractionFailures
|
|
24603
24603
|
},
|
|
24604
24604
|
lastBufferedAtTime: processed.lastObservedAt
|
|
24605
|
+
}), {
|
|
24606
|
+
label: "persist-buffered-observations",
|
|
24607
|
+
abortSignal: this.opts.abortSignal
|
|
24605
24608
|
});
|
|
24606
24609
|
await this.indexObservationGroups(processed.observations, threadId, resourceId, processed.lastObservedAt);
|
|
24607
24610
|
const newTitle = processed.threadTitle?.trim();
|
|
@@ -31952,4 +31955,4 @@ Notes:
|
|
|
31952
31955
|
//#endregion
|
|
31953
31956
|
export { formatMessagesForObserver as A, OBSERVATION_CONTINUATION_HINT as B, SUMMARIZE_THREAD_DEFAULTS as C, buildObserverPrompt as D, OBSERVER_SYSTEM_PROMPT as E, parseAnchorId as F, ModelByInputTokens as G, KnowledgeSemanticIndexCoordinator as H, stripEphemeralAnchorIds as I, publishSubconsciousActivity as J, SUBCONSCIOUS_ACTIVITY_STATE_ID as K, OBSERVATIONAL_MEMORY_DEFAULTS as L, optimizeObservationsForContext as M, parseObserverOutput as N, buildObserverSystemPrompt as O, injectAnchorIds as P, OBSERVATION_CONTEXT_INSTRUCTIONS as R, WorkingMemoryExtractor as S, TokenCounter as T, StaleKnowledgeSemanticIndexError as U, Subconscious as V, SubconsciousRemindExtractor as W, Extractor as X, renderSubconsciousActivity as Y, wrapInObservationGroup as _, extractWorkingMemoryContent as a, WorkingMemoryStateProcessor as b, getObservationsAsOf as c, combineObservationGroupRanges as d, deriveObservationGroupProvenance as f, stripObservationGroups as g, renderObservationGroupsForReflection as h, WorkingMemory as i, hasCurrentTaskSection as j, extractCurrentTask as k, ObservationalMemoryProcessor as l, reconcileObservationGroupsFromReflection as m, MessageHistory$1 as n, extractWorkingMemoryTags as o, parseObservationGroups as p, buildSubconsciousActivitySnapshot as q, SemanticRecall as r, removeWorkingMemoryTags as s, Memory as t, ObservationalMemory as u, WORKING_MEMORY_STATE_ID as v, summarizeConversation as w, deepMergeWorkingMemory as x, WORKING_MEMORY_STATE_PROCESSOR_ID as y, OBSERVATION_CONTEXT_PROMPT as z };
|
|
31954
31957
|
|
|
31955
|
-
//# sourceMappingURL=src-
|
|
31958
|
+
//# sourceMappingURL=src-QH80Zc0y.js.map
|