@mastra/mssql 1.11.0 → 1.11.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/dist/index.js
CHANGED
|
@@ -1191,6 +1191,11 @@ var AgentsMSSQL = class AgentsMSSQL extends AgentsStorage {
|
|
|
1191
1191
|
tableName: TABLE_AGENT_VERSIONS,
|
|
1192
1192
|
schema: AGENT_VERSIONS_SCHEMA
|
|
1193
1193
|
});
|
|
1194
|
+
await this.db.alterTable({
|
|
1195
|
+
tableName: TABLE_AGENT_VERSIONS,
|
|
1196
|
+
schema: AGENT_VERSIONS_SCHEMA,
|
|
1197
|
+
ifNotExists: ["modelList"]
|
|
1198
|
+
});
|
|
1194
1199
|
await this.createDefaultIndexes();
|
|
1195
1200
|
await this.createCustomIndexes();
|
|
1196
1201
|
}
|
|
@@ -1286,6 +1291,7 @@ var AgentsMSSQL = class AgentsMSSQL extends AgentsStorage {
|
|
|
1286
1291
|
description: row.description ?? void 0,
|
|
1287
1292
|
instructions: this.deserializeInstructions(row.instructions),
|
|
1288
1293
|
model: this.parseJson(row.model, "model"),
|
|
1294
|
+
modelList: this.parseJson(row.modelList, "modelList"),
|
|
1289
1295
|
tools: this.parseJson(row.tools, "tools"),
|
|
1290
1296
|
defaultOptions: this.parseJson(row.defaultOptions, "defaultOptions"),
|
|
1291
1297
|
workflows: this.parseJson(row.workflows, "workflows"),
|
|
@@ -1531,8 +1537,9 @@ var AgentsMSSQL = class AgentsMSSQL extends AgentsStorage {
|
|
|
1531
1537
|
versionNumber: input.versionNumber,
|
|
1532
1538
|
name: input.name ?? null,
|
|
1533
1539
|
description: input.description ?? null,
|
|
1534
|
-
instructions: this.serializeInstructions(input.instructions) ??
|
|
1535
|
-
model: input.model,
|
|
1540
|
+
instructions: this.serializeInstructions(input.instructions) ?? "",
|
|
1541
|
+
model: input.model ?? {},
|
|
1542
|
+
modelList: input.modelList ?? null,
|
|
1536
1543
|
tools: input.tools ?? null,
|
|
1537
1544
|
defaultOptions: input.defaultOptions ?? null,
|
|
1538
1545
|
workflows: input.workflows ?? null,
|