@mastra/dsql 1.3.0 → 1.3.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @mastra/dsql
2
2
 
3
+ ## 1.3.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.3.0
4
25
 
5
26
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1568,9 +1568,10 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
1568
1568
  "defaultOptions", workflows, agents, "integrationTools",
1569
1569
  "inputProcessors", "outputProcessors", memory, scorers,
1570
1570
  "mcpClients", "requestContextSchema", workspace, skills, "skillsFormat",
1571
+ durable,
1571
1572
  "changedFields", "changeMessage",
1572
1573
  "createdAt", "createdAtZ"
1573
- ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25)`, [
1574
+ ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26)`, [
1574
1575
  input.id,
1575
1576
  input.agentId,
1576
1577
  input.versionNumber,
@@ -1592,6 +1593,7 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
1592
1593
  input.workspace ? JSON.stringify(input.workspace) : null,
1593
1594
  input.skills ? JSON.stringify(input.skills) : null,
1594
1595
  input.skillsFormat ?? null,
1596
+ input.durable !== void 0 ? JSON.stringify(input.durable) : null,
1595
1597
  input.changedFields ? JSON.stringify(input.changedFields) : null,
1596
1598
  input.changeMessage ?? null,
1597
1599
  nowIso,
@@ -1803,6 +1805,7 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
1803
1805
  workspace: this.parseJson(row.workspace, "workspace"),
1804
1806
  skills: this.parseJson(row.skills, "skills"),
1805
1807
  skillsFormat: row.skillsFormat,
1808
+ durable: this.parseJson(row.durable, "durable"),
1806
1809
  changedFields: this.parseJson(row.changedFields, "changedFields"),
1807
1810
  changeMessage: row.changeMessage,
1808
1811
  createdAt: row.createdAtZ || row.createdAt