@mastra/mysql 0.7.1-alpha.0 → 0.7.1-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/CHANGELOG.md +21 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @mastra/mysql
|
|
2
2
|
|
|
3
|
+
## 0.7.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added a `durable` option to stored agents so agents created through the Agents API can run with durable execution — no code deployment required. ([#21715](https://github.com/mastra-ai/mastra/pull/21715))
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
await mastraClient.createStoredAgent({
|
|
11
|
+
id: 'helper',
|
|
12
|
+
name: 'Helper',
|
|
13
|
+
instructions: 'You are a helpful assistant.',
|
|
14
|
+
model: { provider: 'openai', name: 'gpt-5' },
|
|
15
|
+
durable: true,
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Pass `true` for defaults, or `{ maxSteps, cleanupTimeoutMs }` to tune the durable loop. Cache and pubsub are inherited from the server's Mastra instance, so configure distributed backends there for durability across replicas. Automatic recovery is still configured in code via `recovery.durableAgents`.
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`6223446`](https://github.com/mastra-ai/mastra/commit/6223446ddce6166e96e0ba5e00d628b615dee8ca), [`583e235`](https://github.com/mastra-ai/mastra/commit/583e23519c13af16c1746f9c49722d011216611b), [`a77f8d4`](https://github.com/mastra-ai/mastra/commit/a77f8d4740d2178a74c41e4bf678b4fcd8fa0bb2), [`40d358e`](https://github.com/mastra-ai/mastra/commit/40d358e29d55543803e64b49241122f598ffabc7), [`e80cd7e`](https://github.com/mastra-ai/mastra/commit/e80cd7e7683e7d732e1cc6784bcac1d2640d2ce3), [`20504b2`](https://github.com/mastra-ai/mastra/commit/20504b2ecebd0e077acda3d457ab57480a98ed3e)]:
|
|
22
|
+
- @mastra/core@1.60.0-alpha.11
|
|
23
|
+
|
|
3
24
|
## 0.7.1-alpha.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -760,7 +760,8 @@ var AgentsMySQL = class AgentsMySQL extends _mastra_core_storage.AgentsStorage {
|
|
|
760
760
|
"requestContextSchema",
|
|
761
761
|
"workspace",
|
|
762
762
|
"skills",
|
|
763
|
-
"skillsFormat"
|
|
763
|
+
"skillsFormat",
|
|
764
|
+
"durable"
|
|
764
765
|
]
|
|
765
766
|
});
|
|
766
767
|
await this.createDefaultIndexes();
|
|
@@ -1052,6 +1053,7 @@ var AgentsMySQL = class AgentsMySQL extends _mastra_core_storage.AgentsStorage {
|
|
|
1052
1053
|
workspace: input.workspace ?? null,
|
|
1053
1054
|
skills: input.skills ?? null,
|
|
1054
1055
|
skillsFormat: input.skillsFormat ?? null,
|
|
1056
|
+
durable: input.durable ?? null,
|
|
1055
1057
|
changedFields: input.changedFields ?? null,
|
|
1056
1058
|
changeMessage: input.changeMessage ?? null,
|
|
1057
1059
|
createdAt: now
|
|
@@ -1267,6 +1269,7 @@ var AgentsMySQL = class AgentsMySQL extends _mastra_core_storage.AgentsStorage {
|
|
|
1267
1269
|
workspace: this.safeParseJSON(row.workspace),
|
|
1268
1270
|
skills: this.safeParseJSON(row.skills),
|
|
1269
1271
|
skillsFormat: row.skillsFormat,
|
|
1272
|
+
durable: this.safeParseJSON(row.durable),
|
|
1270
1273
|
changedFields: this.safeParseJSON(row.changedFields),
|
|
1271
1274
|
changeMessage: row.changeMessage ?? void 0,
|
|
1272
1275
|
createdAt: row.createdAt instanceof Date ? row.createdAt : new Date(row.createdAt)
|