@mastra/mysql 0.1.0 → 0.1.2
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 +9 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/skills/index.d.ts.map +1 -1
- package/package.json +12 -11
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { createPool } from 'mysql2/promise';
|
|
|
4
4
|
import { parseSqlIdentifier } from '@mastra/core/utils';
|
|
5
5
|
import { randomUUID } from 'crypto';
|
|
6
6
|
import { MessageList } from '@mastra/core/agent';
|
|
7
|
+
import { skillSnapshotFieldValuesEqual } from '@mastra/core/storage/domains/skills';
|
|
7
8
|
|
|
8
9
|
// src/storage/index.ts
|
|
9
10
|
function quoteIdentifier(value, context) {
|
|
@@ -9061,7 +9062,10 @@ var SkillsMySQL = class _SkillsMySQL extends SkillsStorage {
|
|
|
9061
9062
|
} = latestVersion;
|
|
9062
9063
|
const newConfig = { ...latestConfig, ...configFields };
|
|
9063
9064
|
const changedFields = configFieldNames.filter(
|
|
9064
|
-
(field) => field in configFields &&
|
|
9065
|
+
(field) => field in configFields && !skillSnapshotFieldValuesEqual(
|
|
9066
|
+
configFields[field],
|
|
9067
|
+
latestConfig[field]
|
|
9068
|
+
)
|
|
9065
9069
|
);
|
|
9066
9070
|
if (changedFields.length > 0) {
|
|
9067
9071
|
const newVersionId = crypto.randomUUID();
|