@mastra/dsql 1.5.5 → 1.5.6-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/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1300,6 +1300,11 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
|
|
|
1300
1300
|
tableName: _mastra_core_storage.TABLE_AGENT_VERSIONS,
|
|
1301
1301
|
schema: _mastra_core_storage.TABLE_SCHEMAS[_mastra_core_storage.TABLE_AGENT_VERSIONS]
|
|
1302
1302
|
});
|
|
1303
|
+
await this.#db.alterTable({
|
|
1304
|
+
tableName: _mastra_core_storage.TABLE_AGENT_VERSIONS,
|
|
1305
|
+
schema: _mastra_core_storage.TABLE_SCHEMAS[_mastra_core_storage.TABLE_AGENT_VERSIONS],
|
|
1306
|
+
ifNotExists: ["modelList"]
|
|
1307
|
+
});
|
|
1303
1308
|
await this.createDefaultIndexes();
|
|
1304
1309
|
await this.createCustomIndexes();
|
|
1305
1310
|
}
|
|
@@ -1573,21 +1578,22 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
|
|
|
1573
1578
|
const nowIso = now.toISOString();
|
|
1574
1579
|
await withRetry(() => this.#db.client.none(`INSERT INTO ${tableName} (
|
|
1575
1580
|
id, "agentId", "versionNumber",
|
|
1576
|
-
name, description, instructions, model, tools,
|
|
1581
|
+
name, description, instructions, model, "modelList", tools,
|
|
1577
1582
|
"defaultOptions", workflows, agents, "integrationTools",
|
|
1578
1583
|
"inputProcessors", "outputProcessors", memory, scorers,
|
|
1579
1584
|
"mcpClients", "requestContextSchema", workspace, skills, "skillsFormat",
|
|
1580
1585
|
durable,
|
|
1581
1586
|
"changedFields", "changeMessage",
|
|
1582
1587
|
"createdAt", "createdAtZ"
|
|
1583
|
-
) 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)`, [
|
|
1588
|
+
) 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, $27)`, [
|
|
1584
1589
|
input.id,
|
|
1585
1590
|
input.agentId,
|
|
1586
1591
|
input.versionNumber,
|
|
1587
1592
|
input.name,
|
|
1588
1593
|
input.description ?? null,
|
|
1589
|
-
this.serializeInstructions(input.instructions),
|
|
1590
|
-
JSON.stringify(input.model),
|
|
1594
|
+
this.serializeInstructions(input.instructions) ?? "",
|
|
1595
|
+
JSON.stringify(input.model ?? {}),
|
|
1596
|
+
input.modelList ? JSON.stringify(input.modelList) : null,
|
|
1591
1597
|
input.tools ? JSON.stringify(input.tools) : null,
|
|
1592
1598
|
input.defaultOptions ? JSON.stringify(input.defaultOptions) : null,
|
|
1593
1599
|
input.workflows ? JSON.stringify(input.workflows) : null,
|
|
@@ -1800,6 +1806,7 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
|
|
|
1800
1806
|
description: row.description,
|
|
1801
1807
|
instructions: this.deserializeInstructions(row.instructions),
|
|
1802
1808
|
model: this.parseJson(row.model, "model"),
|
|
1809
|
+
modelList: this.parseJson(row.modelList, "modelList"),
|
|
1803
1810
|
tools: this.parseJson(row.tools, "tools"),
|
|
1804
1811
|
defaultOptions: this.parseJson(row.defaultOptions, "defaultOptions"),
|
|
1805
1812
|
workflows: this.parseJson(row.workflows, "workflows"),
|