@mastra/memory 1.20.2-alpha.0 → 1.20.3-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 +33 -0
- package/dist/{chunk-PTCSCRB6.cjs → chunk-4TZ5SRFX.cjs} +9 -2
- package/dist/chunk-4TZ5SRFX.cjs.map +1 -0
- package/dist/{chunk-SXFOZU7K.js → chunk-YJJXL5KY.js} +9 -2
- package/dist/chunk-YJJXL5KY.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +26 -26
- package/dist/docs/references/docs-agents-agent-approval.md +2 -2
- package/dist/docs/references/docs-agents-background-tasks.md +1 -1
- package/dist/docs/references/docs-agents-supervisor-agents.md +40 -2
- package/dist/docs/references/docs-evals-evals-with-memory.md +8 -8
- package/dist/docs/references/docs-memory-observational-memory.md +1 -1
- package/dist/docs/references/docs-memory-working-memory.md +2 -2
- package/dist/docs/references/reference-storage-dsql.md +7 -7
- package/dist/docs/references/reference-storage-libsql.md +1 -1
- package/dist/docs/references/reference-storage-postgresql.md +1 -1
- package/dist/docs/references/reference-storage-redis.md +3 -3
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/{observational-memory-SZF7GKTS.cjs → observational-memory-6SHFQDPT.cjs} +26 -26
- package/dist/{observational-memory-SZF7GKTS.cjs.map → observational-memory-6SHFQDPT.cjs.map} +1 -1
- package/dist/{observational-memory-G52HNRHE.js → observational-memory-NIGWGBLT.js} +3 -3
- package/dist/{observational-memory-G52HNRHE.js.map → observational-memory-NIGWGBLT.js.map} +1 -1
- package/dist/processors/index.cjs +24 -24
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/processor.d.ts.map +1 -1
- package/package.json +9 -8
- package/dist/chunk-PTCSCRB6.cjs.map +0 -1
- package/dist/chunk-SXFOZU7K.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 1.20.3-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix final assistant text being lost after tool-approval resume when Observational Memory is enabled. During resume, input processors are skipped so no OM turn is created. The OM processor now directly persists new response messages in `processOutputResult` when no active turn exists. ([#17757](https://github.com/mastra-ai/mastra/pull/17757))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`575f815`](https://github.com/mastra-ai/mastra/commit/575f815c5c3567b71c0b83cbb7fa98c8253a9d9c), [`306909a`](https://github.com/mastra-ai/mastra/commit/306909a693de77d709b38706e2673c9547d24a28), [`5191af8`](https://github.com/mastra-ai/mastra/commit/5191af80c799eea25357c545fc05d91b3883531d), [`43bd3d4`](https://github.com/mastra-ai/mastra/commit/43bd3d421987463fdf35386a45199c49499ed069), [`e6fa79e`](https://github.com/mastra-ai/mastra/commit/e6fa79ec72a2ddffdd25e85270398951e9d552a4), [`904bcdf`](https://github.com/mastra-ai/mastra/commit/904bcdf7b8004aa7be823f9f70ca63580e47e470), [`7f5ee1d`](https://github.com/mastra-ai/mastra/commit/7f5ee1dca46daee8d2817f2ebe49e6335da81956), [`1e9aab5`](https://github.com/mastra-ai/mastra/commit/1e9aab50ff11e6e88fde4d7cbf512c44a9fe8d61), [`bf8eb6d`](https://github.com/mastra-ai/mastra/commit/bf8eb6d0ec213a403eb9265a594ad283c44ab3dc), [`493a328`](https://github.com/mastra-ai/mastra/commit/493a328f4346a1deeb9f1e2e44c8f2a3a4d7591b), [`029a414`](https://github.com/mastra-ai/mastra/commit/029a4141719793bd3e898a39eb5a0466a55f5f3a), [`b147b29`](https://github.com/mastra-ai/mastra/commit/b147b2907f0cd1aa812efe6d6e3f58d22e66fc88), [`d371ac1`](https://github.com/mastra-ai/mastra/commit/d371ac1d9820afaaf7cfdbc380a475946a994d8f), [`cf182b7`](https://github.com/mastra-ai/mastra/commit/cf182b7fb495767946d9840ef29f19cfa906f31f), [`a049c2a`](https://github.com/mastra-ai/mastra/commit/a049c2a9dfb41d0ee2e7a28874a88cd64fd5669f), [`b147b29`](https://github.com/mastra-ai/mastra/commit/b147b2907f0cd1aa812efe6d6e3f58d22e66fc88), [`2a96528`](https://github.com/mastra-ai/mastra/commit/2a9652848dfa3c5a2426f952e9d93554c26fd90f), [`2656d9c`](https://github.com/mastra-ai/mastra/commit/2656d9c2976d4f3354253bfbbbf9b88a1b2bbf34), [`63e3fe1`](https://github.com/mastra-ai/mastra/commit/63e3fe13cc1ea96f91d7c68aea92f400faf9e4da), [`1d4ce8d`](https://github.com/mastra-ai/mastra/commit/1d4ce8daaa54511f325c1b609d31b8e54009d677), [`8c68372`](https://github.com/mastra-ai/mastra/commit/8c68372e85fe0b066ec12c58bd29ffb93e54c552)]:
|
|
10
|
+
- @mastra/core@1.42.0-alpha.4
|
|
11
|
+
|
|
12
|
+
## 1.20.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Improved agent message, stream, and observational-memory type handling across the client SDKs and playground UI. ([#17208](https://github.com/mastra-ai/mastra/pull/17208))
|
|
17
|
+
|
|
18
|
+
- Added experimental `workingMemory.useStateSignals` opt-in. When set to `true`, working memory is delivered to the model as a `state` signal (via the new state-signals API) instead of being folded into the system message. `Memory` auto-attaches a `WorkingMemoryStateProcessor` that emits a signal with `stateId: 'working-memory'` and dedups via `cacheKey`. Subsequent turns emit unified-diff deltas against the prior snapshot when the diff is smaller than the snapshot (markdown mode only); schema mode and the fallback path always emit a full snapshot. The working-memory tool is registered as `setWorkingMemory` instead of `updateWorkingMemory` under this opt-in so legacy persistence/prompt strip filters naturally bypass it. The default (`false`) preserves the existing system-message behavior. `useStateSignals` is not supported with template working memory `version: 'vnext'`. ([#17497](https://github.com/mastra-ai/mastra/pull/17497))
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { Memory } from '@mastra/memory';
|
|
22
|
+
|
|
23
|
+
const memory = new Memory({
|
|
24
|
+
options: {
|
|
25
|
+
workingMemory: {
|
|
26
|
+
enabled: true,
|
|
27
|
+
useStateSignals: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`c973db4`](https://github.com/mastra-ai/mastra/commit/c973db428df1b564ff0c35d4b2a90e8f4f1e13fd), [`552285e`](https://github.com/mastra-ai/mastra/commit/552285e5af43cfc680a0972032cab8de8776c6a0), [`77e686c`](https://github.com/mastra-ai/mastra/commit/77e686c264e493e99ae5024e4dfe3ea5d5a09718), [`ece8dba`](https://github.com/mastra-ai/mastra/commit/ece8dba7ec1a5089eee8c33167cd762bfa91e509), [`e751af2`](https://github.com/mastra-ai/mastra/commit/e751af219433fbf4c7035b2d771b4c9ec8813b05), [`e2a8380`](https://github.com/mastra-ai/mastra/commit/e2a838017a7657850404c1e94c70d79ffdc6f14a), [`be3f1cd`](https://github.com/mastra-ai/mastra/commit/be3f1cd81f0e2a649e8eac15a024d542d814aef8), [`a34d9db`](https://github.com/mastra-ai/mastra/commit/a34d9dbc39fedb722f271318e9355ecee70489ab)]:
|
|
34
|
+
- @mastra/core@1.39.0
|
|
35
|
+
|
|
3
36
|
## 1.20.2-alpha.0
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
@@ -9946,6 +9946,13 @@ var ObservationalMemoryProcessor = class {
|
|
|
9946
9946
|
await turn.end();
|
|
9947
9947
|
this.turn = void 0;
|
|
9948
9948
|
state.__omTurn = void 0;
|
|
9949
|
+
} else {
|
|
9950
|
+
const newOutput = messageList.get.response.db();
|
|
9951
|
+
const newInput = messageList.get.input.db();
|
|
9952
|
+
const messagesToSave = [...newInput, ...newOutput];
|
|
9953
|
+
if (messagesToSave.length > 0 && context.threadId) {
|
|
9954
|
+
await this.engine.persistMessages(messagesToSave, context.threadId, context.resourceId);
|
|
9955
|
+
}
|
|
9949
9956
|
}
|
|
9950
9957
|
return messageList;
|
|
9951
9958
|
});
|
|
@@ -10012,5 +10019,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
|
|
|
10012
10019
|
exports.stripObservationGroups = stripObservationGroups;
|
|
10013
10020
|
exports.truncateStringByTokens = truncateStringByTokens;
|
|
10014
10021
|
exports.wrapInObservationGroup = wrapInObservationGroup;
|
|
10015
|
-
//# sourceMappingURL=chunk-
|
|
10016
|
-
//# sourceMappingURL=chunk-
|
|
10022
|
+
//# sourceMappingURL=chunk-4TZ5SRFX.cjs.map
|
|
10023
|
+
//# sourceMappingURL=chunk-4TZ5SRFX.cjs.map
|