@mastra/mysql 0.3.2 → 0.3.3-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 +11 -0
- package/dist/index.cjs +20 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/experiments/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3114,7 +3114,7 @@ var ExperimentsMySQL = class _ExperimentsMySQL extends ExperimentsStorage {
|
|
|
3114
3114
|
await this.operations.alterTable({
|
|
3115
3115
|
tableName: TABLE_EXPERIMENTS,
|
|
3116
3116
|
schema: EXPERIMENTS_SCHEMA,
|
|
3117
|
-
ifNotExists: ["organizationId", "projectId"]
|
|
3117
|
+
ifNotExists: ["agentVersion", "organizationId", "projectId"]
|
|
3118
3118
|
});
|
|
3119
3119
|
await this.operations.alterTable({
|
|
3120
3120
|
tableName: TABLE_EXPERIMENT_RESULTS,
|
|
@@ -3133,6 +3133,7 @@ var ExperimentsMySQL = class _ExperimentsMySQL extends ExperimentsStorage {
|
|
|
3133
3133
|
id: row.id,
|
|
3134
3134
|
datasetId: row.datasetId ?? null,
|
|
3135
3135
|
datasetVersion: row.datasetVersion ?? null,
|
|
3136
|
+
agentVersion: row.agentVersion ?? null,
|
|
3136
3137
|
organizationId: row.organizationId ?? null,
|
|
3137
3138
|
projectId: row.projectId ?? null,
|
|
3138
3139
|
targetType: row.targetType,
|
|
@@ -3182,6 +3183,7 @@ var ExperimentsMySQL = class _ExperimentsMySQL extends ExperimentsStorage {
|
|
|
3182
3183
|
id,
|
|
3183
3184
|
datasetId: input.datasetId ?? null,
|
|
3184
3185
|
datasetVersion: input.datasetVersion ?? null,
|
|
3186
|
+
agentVersion: input.agentVersion ?? null,
|
|
3185
3187
|
organizationId: input.organizationId ?? null,
|
|
3186
3188
|
projectId: input.projectId ?? null,
|
|
3187
3189
|
targetType: input.targetType,
|
|
@@ -3204,6 +3206,7 @@ var ExperimentsMySQL = class _ExperimentsMySQL extends ExperimentsStorage {
|
|
|
3204
3206
|
id,
|
|
3205
3207
|
datasetId: input.datasetId,
|
|
3206
3208
|
datasetVersion: input.datasetVersion,
|
|
3209
|
+
agentVersion: input.agentVersion ?? null,
|
|
3207
3210
|
organizationId: input.organizationId ?? null,
|
|
3208
3211
|
projectId: input.projectId ?? null,
|
|
3209
3212
|
targetType: input.targetType,
|
|
@@ -3300,6 +3303,22 @@ var ExperimentsMySQL = class _ExperimentsMySQL extends ExperimentsStorage {
|
|
|
3300
3303
|
conditions.push(`${quoteIdentifier("datasetId", "column name")} = ?`);
|
|
3301
3304
|
params.push(args.datasetId);
|
|
3302
3305
|
}
|
|
3306
|
+
if (args.targetType) {
|
|
3307
|
+
conditions.push(`${quoteIdentifier("targetType", "column name")} = ?`);
|
|
3308
|
+
params.push(args.targetType);
|
|
3309
|
+
}
|
|
3310
|
+
if (args.targetId) {
|
|
3311
|
+
conditions.push(`${quoteIdentifier("targetId", "column name")} = ?`);
|
|
3312
|
+
params.push(args.targetId);
|
|
3313
|
+
}
|
|
3314
|
+
if (args.agentVersion) {
|
|
3315
|
+
conditions.push(`${quoteIdentifier("agentVersion", "column name")} = ?`);
|
|
3316
|
+
params.push(args.agentVersion);
|
|
3317
|
+
}
|
|
3318
|
+
if (args.status) {
|
|
3319
|
+
conditions.push(`${quoteIdentifier("status", "column name")} = ?`);
|
|
3320
|
+
params.push(args.status);
|
|
3321
|
+
}
|
|
3303
3322
|
if (args.filters) {
|
|
3304
3323
|
const { organizationId, projectId } = args.filters;
|
|
3305
3324
|
if (organizationId !== void 0) {
|