@mastra/mssql 1.6.0 → 1.7.0-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 +27 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -15
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2340,13 +2340,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2340
2340
|
}, error);
|
|
2341
2341
|
this.logger?.error?.(mastraError.toString());
|
|
2342
2342
|
this.logger?.trackException?.(mastraError);
|
|
2343
|
-
|
|
2344
|
-
threads: [],
|
|
2345
|
-
total: 0,
|
|
2346
|
-
page,
|
|
2347
|
-
perPage: perPageForResponse,
|
|
2348
|
-
hasMore: false
|
|
2349
|
-
};
|
|
2343
|
+
throw mastraError;
|
|
2350
2344
|
}
|
|
2351
2345
|
}
|
|
2352
2346
|
async saveThread({ thread }) {
|
|
@@ -2600,7 +2594,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2600
2594
|
}, error);
|
|
2601
2595
|
this.logger?.error?.(mastraError.toString());
|
|
2602
2596
|
this.logger?.trackException?.(mastraError);
|
|
2603
|
-
|
|
2597
|
+
throw mastraError;
|
|
2604
2598
|
}
|
|
2605
2599
|
}
|
|
2606
2600
|
async listMessages(args) {
|
|
@@ -2719,6 +2713,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2719
2713
|
hasMore: metadataFilter ? perPageInput !== false && offset + primaryPageCount < total : perPageInput !== false && returnedThreadMessageCount < total && offset + perPage < total
|
|
2720
2714
|
};
|
|
2721
2715
|
} catch (error) {
|
|
2716
|
+
if (error instanceof MastraError && error.category === ErrorCategory.USER) throw error;
|
|
2722
2717
|
const mastraError = new MastraError({
|
|
2723
2718
|
id: createStorageErrorId("MSSQL", "LIST_MESSAGES", "FAILED"),
|
|
2724
2719
|
domain: ErrorDomain.STORAGE,
|
|
@@ -2730,13 +2725,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2730
2725
|
}, error);
|
|
2731
2726
|
this.logger?.error?.(mastraError.toString());
|
|
2732
2727
|
this.logger?.trackException?.(mastraError);
|
|
2733
|
-
|
|
2734
|
-
messages: [],
|
|
2735
|
-
total: 0,
|
|
2736
|
-
page,
|
|
2737
|
-
perPage: perPageForResponse,
|
|
2738
|
-
hasMore: false
|
|
2739
|
-
};
|
|
2728
|
+
throw mastraError;
|
|
2740
2729
|
}
|
|
2741
2730
|
}
|
|
2742
2731
|
async saveMessages({ messages }) {
|