@mastra/mssql 1.7.0-alpha.1 → 1.7.0-alpha.3
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 +30 -0
- package/dist/docs/SKILL.md +3 -3
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/{reference-storage-mssql.md → integrations-databases-mssql.md} +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +3 -2
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2090,6 +2090,7 @@ function buildMssqlMessageMetadataFilter(metadataFilter) {
|
|
|
2090
2090
|
};
|
|
2091
2091
|
}
|
|
2092
2092
|
var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
2093
|
+
supportsPartialThreadUpdate = true;
|
|
2093
2094
|
pool;
|
|
2094
2095
|
schema;
|
|
2095
2096
|
db;
|
|
@@ -2392,7 +2393,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2392
2393
|
text: `Thread ${id} not found`,
|
|
2393
2394
|
details: {
|
|
2394
2395
|
threadId: id,
|
|
2395
|
-
title
|
|
2396
|
+
title: title ?? null
|
|
2396
2397
|
}
|
|
2397
2398
|
});
|
|
2398
2399
|
const mergedMetadata = {
|
|
@@ -2411,7 +2412,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2411
2412
|
WHERE id = @id`;
|
|
2412
2413
|
const req = this.pool.request();
|
|
2413
2414
|
req.input("id", id);
|
|
2414
|
-
req.input("title", title);
|
|
2415
|
+
req.input("title", title ?? existingThread.title);
|
|
2415
2416
|
req.input("metadata", JSON.stringify(mergedMetadata));
|
|
2416
2417
|
req.input("updatedAt", /* @__PURE__ */ new Date());
|
|
2417
2418
|
const result = await req.query(sql);
|
|
@@ -2427,7 +2428,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2427
2428
|
text: `Thread ${id} not found after update`,
|
|
2428
2429
|
details: {
|
|
2429
2430
|
threadId: id,
|
|
2430
|
-
title
|
|
2431
|
+
title: title ?? null
|
|
2431
2432
|
}
|
|
2432
2433
|
});
|
|
2433
2434
|
return {
|
|
@@ -2443,7 +2444,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2443
2444
|
category: ErrorCategory.THIRD_PARTY,
|
|
2444
2445
|
details: {
|
|
2445
2446
|
threadId: id,
|
|
2446
|
-
title
|
|
2447
|
+
title: title ?? null
|
|
2447
2448
|
}
|
|
2448
2449
|
}, error);
|
|
2449
2450
|
}
|