@mastra/server 0.20.0 → 0.20.1-alpha.2
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 +23 -0
- package/dist/{chunk-JOXMWFM6.cjs → chunk-C6YR7DEL.cjs} +43 -6
- package/dist/chunk-C6YR7DEL.cjs.map +1 -0
- package/dist/{chunk-QDPOVUS4.js → chunk-GENJTHTZ.js} +43 -6
- package/dist/chunk-GENJTHTZ.js.map +1 -0
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.d.ts +4 -4
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/workflows.d.ts +5 -5
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers.cjs +2 -2
- package/dist/server/handlers.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-JOXMWFM6.cjs.map +0 -1
- package/dist/chunk-QDPOVUS4.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 0.20.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c)]:
|
|
8
|
+
- @mastra/core@0.20.1-alpha.2
|
|
9
|
+
|
|
10
|
+
## 0.20.1-alpha.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`c621613`](https://github.com/mastra-ai/mastra/commit/c621613069173c69eb2c3ef19a5308894c6549f0), [`12b1189`](https://github.com/mastra-ai/mastra/commit/12b118942445e4de0dd916c593e33ec78dc3bc73), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`076b092`](https://github.com/mastra-ai/mastra/commit/076b0924902ff0f49d5712d2df24c4cca683713f), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa), [`c582906`](https://github.com/mastra-ai/mastra/commit/c5829065a346260f96c4beb8af131b94804ae3ad), [`fa2eb96`](https://github.com/mastra-ai/mastra/commit/fa2eb96af16c7d433891a73932764960d3235c1d), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`a739d0c`](https://github.com/mastra-ai/mastra/commit/a739d0c8b37cd89569e04a6ca0827083c6167e19), [`603e927`](https://github.com/mastra-ai/mastra/commit/603e9279db8bf8a46caf83881c6b7389ccffff7e), [`cd45982`](https://github.com/mastra-ai/mastra/commit/cd4598291cda128a88738734ae6cbef076ebdebd), [`874f74d`](https://github.com/mastra-ai/mastra/commit/874f74da4b1acf6517f18132d035612c3ecc394a), [`0baf2ba`](https://github.com/mastra-ai/mastra/commit/0baf2bab8420277072ef1f95df5ea7b0a2f61fe7), [`26e968d`](https://github.com/mastra-ai/mastra/commit/26e968db2171ded9e4d47aa1b4f19e1e771158d0), [`cbd3fb6`](https://github.com/mastra-ai/mastra/commit/cbd3fb65adb03a7c0df193cb998aed5ac56675ee)]:
|
|
17
|
+
- @mastra/core@0.20.1-alpha.1
|
|
18
|
+
|
|
19
|
+
## 0.20.1-alpha.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0)]:
|
|
24
|
+
- @mastra/core@0.20.1-alpha.0
|
|
25
|
+
|
|
3
26
|
## 0.20.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -8753,19 +8753,56 @@ var Memory = class extends memory.MastraMemory {
|
|
|
8753
8753
|
sortDirection
|
|
8754
8754
|
});
|
|
8755
8755
|
}
|
|
8756
|
-
async
|
|
8757
|
-
|
|
8756
|
+
async handleWorkingMemoryFromMetadata({
|
|
8757
|
+
workingMemory,
|
|
8758
|
+
resourceId,
|
|
8759
|
+
memoryConfig
|
|
8760
|
+
}) {
|
|
8761
|
+
const config = this.getMergedThreadConfig(memoryConfig || {});
|
|
8762
|
+
if (config.workingMemory?.enabled) {
|
|
8763
|
+
this.checkStorageFeatureSupport(config);
|
|
8764
|
+
const scope = config.workingMemory.scope || "thread";
|
|
8765
|
+
if (scope === "resource" && resourceId) {
|
|
8766
|
+
await this.storage.updateResource({
|
|
8767
|
+
resourceId,
|
|
8768
|
+
workingMemory
|
|
8769
|
+
});
|
|
8770
|
+
}
|
|
8771
|
+
}
|
|
8772
|
+
}
|
|
8773
|
+
async saveThread({
|
|
8774
|
+
thread,
|
|
8775
|
+
memoryConfig
|
|
8776
|
+
}) {
|
|
8777
|
+
const savedThread = await this.storage.saveThread({ thread });
|
|
8778
|
+
if (thread.metadata?.workingMemory && typeof thread.metadata.workingMemory === "string" && thread.resourceId) {
|
|
8779
|
+
await this.handleWorkingMemoryFromMetadata({
|
|
8780
|
+
workingMemory: thread.metadata.workingMemory,
|
|
8781
|
+
resourceId: thread.resourceId,
|
|
8782
|
+
memoryConfig
|
|
8783
|
+
});
|
|
8784
|
+
}
|
|
8785
|
+
return savedThread;
|
|
8758
8786
|
}
|
|
8759
8787
|
async updateThread({
|
|
8760
8788
|
id,
|
|
8761
8789
|
title,
|
|
8762
|
-
metadata
|
|
8790
|
+
metadata,
|
|
8791
|
+
memoryConfig
|
|
8763
8792
|
}) {
|
|
8764
|
-
|
|
8793
|
+
const updatedThread = await this.storage.updateThread({
|
|
8765
8794
|
id,
|
|
8766
8795
|
title,
|
|
8767
8796
|
metadata
|
|
8768
8797
|
});
|
|
8798
|
+
if (metadata?.workingMemory && typeof metadata.workingMemory === "string" && updatedThread.resourceId) {
|
|
8799
|
+
await this.handleWorkingMemoryFromMetadata({
|
|
8800
|
+
workingMemory: metadata.workingMemory,
|
|
8801
|
+
resourceId: updatedThread.resourceId,
|
|
8802
|
+
memoryConfig
|
|
8803
|
+
});
|
|
8804
|
+
}
|
|
8805
|
+
return updatedThread;
|
|
8769
8806
|
}
|
|
8770
8807
|
async deleteThread(threadId) {
|
|
8771
8808
|
await this.storage.deleteThread({ threadId });
|
|
@@ -18019,5 +18056,5 @@ exports.startAsyncAgentBuilderActionHandler = startAsyncAgentBuilderActionHandle
|
|
|
18019
18056
|
exports.streamAgentBuilderActionHandler = streamAgentBuilderActionHandler;
|
|
18020
18057
|
exports.streamVNextAgentBuilderActionHandler = streamVNextAgentBuilderActionHandler;
|
|
18021
18058
|
exports.watchAgentBuilderActionHandler = watchAgentBuilderActionHandler;
|
|
18022
|
-
//# sourceMappingURL=chunk-
|
|
18023
|
-
//# sourceMappingURL=chunk-
|
|
18059
|
+
//# sourceMappingURL=chunk-C6YR7DEL.cjs.map
|
|
18060
|
+
//# sourceMappingURL=chunk-C6YR7DEL.cjs.map
|