@mastra/spanner 1.6.0 → 1.6.1-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 +21 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @mastra/spanner
|
|
2
2
|
|
|
3
|
+
## 1.6.1-alpha.0
|
|
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
|
## 1.6.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1166,7 +1166,8 @@ const VERSION_CONFIG_KEYS = [
|
|
|
1166
1166
|
"requestContextSchema",
|
|
1167
1167
|
"workspace",
|
|
1168
1168
|
"skills",
|
|
1169
|
-
"skillsFormat"
|
|
1169
|
+
"skillsFormat",
|
|
1170
|
+
"durable"
|
|
1170
1171
|
];
|
|
1171
1172
|
var AgentsSpanner = class AgentsSpanner extends _mastra_core_storage.AgentsStorage {
|
|
1172
1173
|
database;
|
|
@@ -1313,6 +1314,7 @@ var AgentsSpanner = class AgentsSpanner extends _mastra_core_storage.AgentsStora
|
|
|
1313
1314
|
workspace: transformed.workspace ?? void 0,
|
|
1314
1315
|
skills: transformed.skills ?? void 0,
|
|
1315
1316
|
skillsFormat: transformed.skillsFormat ?? void 0,
|
|
1317
|
+
durable: transformed.durable ?? void 0,
|
|
1316
1318
|
changedFields: transformed.changedFields ?? void 0,
|
|
1317
1319
|
changeMessage: transformed.changeMessage ?? void 0,
|
|
1318
1320
|
createdAt: transformed.createdAt
|