@mastra/mongodb 0.13.3-alpha.0 → 0.13.5
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +27 -0
- package/dist/index.cjs +32 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +19 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +19 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/storage/domains/workflows/index.ts +38 -1
- package/src/storage/index.ts +35 -1
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.13.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @mastra/core@0.15.2
|
|
11
|
+
|
|
12
|
+
## 0.13.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
|
|
17
|
+
|
|
18
|
+
- Updated dependencies []:
|
|
19
|
+
- @mastra/core@0.15.1
|
|
20
|
+
|
|
21
|
+
## 0.13.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
28
|
+
- @mastra/core@0.14.1
|
|
29
|
+
|
|
3
30
|
## 0.13.3-alpha.0
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1976,6 +1976,22 @@ var WorkflowsStorageMongoDB = class extends storage.WorkflowsStorage {
|
|
|
1976
1976
|
super();
|
|
1977
1977
|
this.operations = operations;
|
|
1978
1978
|
}
|
|
1979
|
+
updateWorkflowResults({
|
|
1980
|
+
// workflowName,
|
|
1981
|
+
// runId,
|
|
1982
|
+
// stepId,
|
|
1983
|
+
// result,
|
|
1984
|
+
// runtimeContext,
|
|
1985
|
+
}) {
|
|
1986
|
+
throw new Error("Method not implemented.");
|
|
1987
|
+
}
|
|
1988
|
+
updateWorkflowState({
|
|
1989
|
+
// workflowName,
|
|
1990
|
+
// runId,
|
|
1991
|
+
// opts,
|
|
1992
|
+
}) {
|
|
1993
|
+
throw new Error("Method not implemented.");
|
|
1994
|
+
}
|
|
1979
1995
|
async persistWorkflowSnapshot({
|
|
1980
1996
|
workflowName,
|
|
1981
1997
|
runId,
|
|
@@ -2291,6 +2307,22 @@ var MongoDBStore = class extends storage.MastraStorage {
|
|
|
2291
2307
|
async getEvalsByAgentName(agentName, type) {
|
|
2292
2308
|
return this.stores.legacyEvals.getEvalsByAgentName(agentName, type);
|
|
2293
2309
|
}
|
|
2310
|
+
async updateWorkflowResults({
|
|
2311
|
+
workflowName,
|
|
2312
|
+
runId,
|
|
2313
|
+
stepId,
|
|
2314
|
+
result,
|
|
2315
|
+
runtimeContext
|
|
2316
|
+
}) {
|
|
2317
|
+
return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
|
|
2318
|
+
}
|
|
2319
|
+
async updateWorkflowState({
|
|
2320
|
+
workflowName,
|
|
2321
|
+
runId,
|
|
2322
|
+
opts
|
|
2323
|
+
}) {
|
|
2324
|
+
return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
|
|
2325
|
+
}
|
|
2294
2326
|
async persistWorkflowSnapshot({
|
|
2295
2327
|
workflowName,
|
|
2296
2328
|
runId,
|