@mastra/memory 1.34.0 → 1.36.0-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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-memory-observational-memory.md +25 -1
- package/dist/docs/references/reference-memory-observational-memory.md +38 -10
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +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/activation-ttl.d.ts +4 -2
- package/dist/processors/observational-memory/activation-ttl.d.ts.map +1 -1
- package/dist/processors/observational-memory/constants.d.ts +4 -2
- package/dist/processors/observational-memory/constants.d.ts.map +1 -1
- package/dist/processors/observational-memory/date-utils.d.ts +2 -0
- package/dist/processors/observational-memory/date-utils.d.ts.map +1 -1
- package/dist/processors/observational-memory/message-utils.d.ts +1 -1
- package/dist/processors/observational-memory/message-utils.d.ts.map +1 -1
- package/dist/processors/observational-memory/observation-groups.d.ts +3 -1
- package/dist/processors/observational-memory/observation-groups.d.ts.map +1 -1
- package/dist/processors/observational-memory/observation-strategies/async-buffer.d.ts.map +1 -1
- package/dist/processors/observational-memory/observation-strategies/base.d.ts +2 -1
- package/dist/processors/observational-memory/observation-strategies/base.d.ts.map +1 -1
- package/dist/processors/observational-memory/observation-strategies/resource-scoped.d.ts.map +1 -1
- package/dist/processors/observational-memory/observation-strategies/sync.d.ts.map +1 -1
- package/dist/processors/observational-memory/observational-memory.d.ts +5 -3
- 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/processors/observational-memory/reflector-runner.d.ts.map +1 -1
- package/dist/processors/observational-memory/types.d.ts +24 -4
- package/dist/processors/observational-memory/types.d.ts.map +1 -1
- package/dist/{src-BYAwbfUo.js → src-BV9eXuMM.js} +2633 -2085
- package/dist/src-BV9eXuMM.js.map +1 -0
- package/dist/{src-Cm4sUXMu.cjs → src-DhCg-LqR.cjs} +2632 -2084
- package/dist/src-DhCg-LqR.cjs.map +1 -0
- package/dist/tools/om-observations.d.ts +41 -0
- package/dist/tools/om-observations.d.ts.map +1 -0
- package/dist/tools/om-search-context.d.ts +10 -0
- package/dist/tools/om-search-context.d.ts.map +1 -0
- package/dist/tools/om-tools.d.ts +12 -3
- package/dist/tools/om-tools.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/src-BYAwbfUo.js.map +0 -1
- package/dist/src-Cm4sUXMu.cjs.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ObservationalMemoryHistoryOptions, ObservationalMemoryRecord } from '@mastra/core/storage';
|
|
2
|
+
import type { ObservationGroup } from '../processors/observational-memory/observation-groups.js';
|
|
3
|
+
export type OMGenerationRecord = Pick<ObservationalMemoryRecord, 'id' | 'generationCount' | 'activeObservations' | 'bufferedObservationChunks' | 'observedTimezone' | 'threadId'>;
|
|
4
|
+
export interface OMTimelineEngine {
|
|
5
|
+
getHistory(threadId: string, resourceId: string, limit?: number, options?: ObservationalMemoryHistoryOptions): Promise<OMGenerationRecord[]>;
|
|
6
|
+
}
|
|
7
|
+
export interface GroupTimeline {
|
|
8
|
+
record: OMGenerationRecord;
|
|
9
|
+
groups: ObservationGroup[];
|
|
10
|
+
indexById: Map<string, number>;
|
|
11
|
+
}
|
|
12
|
+
export declare function findGroupTimeline(om: OMTimelineEngine, threadId: string, resourceId: string, groupId: string, recordId?: string): Promise<GroupTimeline | null>;
|
|
13
|
+
/** Group IDs shown to the agent carry the record holding the group, so paging can read it by ID. */
|
|
14
|
+
export declare function groupCursor(groupId: string, recordId?: string): string;
|
|
15
|
+
export declare function parseGroupCursor(cursor: string): {
|
|
16
|
+
groupId: string;
|
|
17
|
+
recordId?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function pagingCall(groupId: string, direction: 'before' | 'after', threadId?: string, recordId?: string): string;
|
|
20
|
+
type PageOptions = {
|
|
21
|
+
om: OMTimelineEngine;
|
|
22
|
+
threadId: string;
|
|
23
|
+
resourceId: string;
|
|
24
|
+
groupId: string;
|
|
25
|
+
/** Record that holds the group, parsed from the group ID the agent copied. */
|
|
26
|
+
recordId?: string;
|
|
27
|
+
direction?: 'before' | 'after';
|
|
28
|
+
limit: number;
|
|
29
|
+
threadTitle?: string;
|
|
30
|
+
includeThreadId?: boolean;
|
|
31
|
+
/** Counts the thread's messages created after the given message ID. */
|
|
32
|
+
countNewerMessages?: (cursor: string) => Promise<number>;
|
|
33
|
+
};
|
|
34
|
+
type PageResult = {
|
|
35
|
+
results: string;
|
|
36
|
+
count: number;
|
|
37
|
+
hasMore?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare function pageObservationGroups(options: PageOptions): Promise<PageResult>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=om-observations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"om-observations.d.ts","sourceRoot":"","sources":["../../src/tools/om-observations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAKzG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,yBAAyB,EACzB,IAAI,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,2BAA2B,GAAG,kBAAkB,GAAG,UAAU,CAChH,CAAC;AACF,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAClC;AACD,MAAM,WAAW,aAAa;IAC5B,MAAM,E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O,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExE,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAOrF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MastraDBMessage } from '@mastra/core/agent';
|
|
2
|
+
import type { RecallSearchResult } from './om-tools.js';
|
|
3
|
+
export declare function searchContextKey(match: Pick<RecallSearchResult, 'threadId' | 'groupId'>): string;
|
|
4
|
+
/** Read only real recall results, not quoted tool output in user or assistant text. */
|
|
5
|
+
export declare function getVisibleSearchExcerpts(messages: readonly MastraDBMessage[]): Map<string, string[]>;
|
|
6
|
+
export declare function sourceRangeOverlapsContext({ match, messages, }: {
|
|
7
|
+
match: RecallSearchResult;
|
|
8
|
+
messages: readonly MastraDBMessage[];
|
|
9
|
+
}): boolean;
|
|
10
|
+
//# sourceMappingURL=om-search-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"om-search-context.d.ts","sourceRoot":"","sources":["../../src/tools/om-search-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG,MAAM,CAEhG;AAED,uFAAuF;AACvF,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAgCpG;AAED,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;CACtC,GAAG,OAAO,CAQV"}
|
package/dist/tools/om-tools.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MastraDBMessage } from '@mastra/core/agent';
|
|
2
2
|
import type { MemoryConfigInternal } from '@mastra/core/memory';
|
|
3
|
+
import type { OMTimelineEngine } from './om-observations.js';
|
|
3
4
|
export type RecallDetail = 'low' | 'high';
|
|
4
5
|
type RecallThread = {
|
|
5
6
|
id: string;
|
|
@@ -8,15 +9,16 @@ type RecallThread = {
|
|
|
8
9
|
createdAt: Date;
|
|
9
10
|
updatedAt: Date;
|
|
10
11
|
};
|
|
11
|
-
type RecallSearchResult = {
|
|
12
|
+
export type RecallSearchResult = {
|
|
12
13
|
threadId: string;
|
|
13
14
|
score: number;
|
|
14
15
|
groupId?: string;
|
|
16
|
+
recordId?: string;
|
|
15
17
|
range?: string;
|
|
16
18
|
text?: string;
|
|
17
19
|
observedAt?: Date;
|
|
18
20
|
};
|
|
19
|
-
type RecallMemory = {
|
|
21
|
+
export type RecallMemory = {
|
|
20
22
|
getMemoryStore: () => Promise<{
|
|
21
23
|
listMessagesById: (args: {
|
|
22
24
|
messageIds: string[];
|
|
@@ -96,8 +98,9 @@ export declare function listThreadsForResource({ memory, resourceId, currentThre
|
|
|
96
98
|
hasMore: boolean;
|
|
97
99
|
}>;
|
|
98
100
|
export declare const SEARCH_NOT_CONFIGURED_MESSAGE = "Search is not configured. Enable it with `retrieval: { vector: true }` and configure a vector store and embedder on your Memory instance.";
|
|
99
|
-
export declare function searchMessagesForResource({ memory, resourceId, currentThreadId, query, topK, maxTokens, before, after, threadScope, }: {
|
|
101
|
+
export declare function searchMessagesForResource({ memory, om, resourceId, currentThreadId, query, topK, maxTokens, before, after, threadScope, includeThreadId, currentMessages, }: {
|
|
100
102
|
memory: RecallMemory;
|
|
103
|
+
om?: OMTimelineEngine | null;
|
|
101
104
|
resourceId: string;
|
|
102
105
|
currentThreadId?: string;
|
|
103
106
|
query: string;
|
|
@@ -107,6 +110,10 @@ export declare function searchMessagesForResource({ memory, resourceId, currentT
|
|
|
107
110
|
after?: string;
|
|
108
111
|
/** When set, restrict search results to only this thread */
|
|
109
112
|
threadScope?: string;
|
|
113
|
+
/** Whether paging calls name the thread; thread-scope retrieval can only page its own thread. */
|
|
114
|
+
includeThreadId?: boolean;
|
|
115
|
+
/** Current conversation at tool execution time, not an ever-seen history. */
|
|
116
|
+
currentMessages?: readonly MastraDBMessage[];
|
|
110
117
|
}): Promise<{
|
|
111
118
|
results: string;
|
|
112
119
|
count: number;
|
|
@@ -195,6 +202,8 @@ export declare function recallThreadFromStart({ memory, threadId, resourceId, pa
|
|
|
195
202
|
export declare const recallTool: (_memoryConfig?: MemoryConfigInternal, options?: {
|
|
196
203
|
retrievalScope?: "thread" | "resource";
|
|
197
204
|
searchEnabled?: boolean;
|
|
205
|
+
/** Resolves the observational memory engine so search hits can be dated and paged by observation group. */
|
|
206
|
+
getOMEngine?: () => Promise<OMTimelineEngine | null> | OMTimelineEngine | null;
|
|
198
207
|
}) => import("@mastra/core/tools").Tool<unknown, unknown, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "recall", unknown>;
|
|
199
208
|
export {};
|
|
200
209
|
//# sourceMappingURL=om-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"om-tools.d.ts","sourceRoot":"","sources":["../../src/tools/om-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"om-tools.d.ts","sourceRoot":"","sources":["../../src/tools/om-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAoBhE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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/memory",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"typescript": "^6.0.3",
|
|
70
70
|
"typescript-eslint": "^8.57.0",
|
|
71
71
|
"vitest": "4.1.11",
|
|
72
|
-
"@internal/ai-sdk-v4": "0.0.
|
|
73
|
-
"@internal/ai-
|
|
74
|
-
"@internal/
|
|
75
|
-
"@internal/
|
|
76
|
-
"@internal/
|
|
77
|
-
"@mastra/core": "1.
|
|
72
|
+
"@internal/ai-sdk-v4": "0.0.87",
|
|
73
|
+
"@internal/ai-sdk-v5": "0.0.87",
|
|
74
|
+
"@internal/ai-v6": "0.0.87",
|
|
75
|
+
"@internal/lint": "0.0.140",
|
|
76
|
+
"@internal/types-builder": "0.0.115",
|
|
77
|
+
"@mastra/core": "1.75.0-alpha.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@mastra/core": ">=1.4.1-0 <2.0.0-0"
|