@mastra/mssql 0.0.0-rag-chunk-extract-llm-option-20250926183645 → 0.0.0-roamin-openaivoice-speak-options-passing-20250926163614

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 CHANGED
@@ -1,15 +1,11 @@
1
1
  # @mastra/mssql
2
2
 
3
- ## 0.0.0-rag-chunk-extract-llm-option-20250926183645
3
+ ## 0.0.0-roamin-openaivoice-speak-options-passing-20250926163614
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Update peer deps ([#8154](https://github.com/mastra-ai/mastra/pull/8154))
8
-
9
- - MSSQL support fetch scores by trace and span id ([#8154](https://github.com/mastra-ai/mastra/pull/8154))
10
-
11
- - Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`b342a68`](https://github.com/mastra-ai/mastra/commit/b342a68e1399cf1ece9ba11bda112db89d21118c), [`303a9c0`](https://github.com/mastra-ai/mastra/commit/303a9c0d7dd58795915979f06a0512359e4532fb), [`370f8a6`](https://github.com/mastra-ai/mastra/commit/370f8a6480faec70fef18d72e5f7538f27004301), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`623ffaf`](https://github.com/mastra-ai/mastra/commit/623ffaf2d969e11e99a0224633cf7b5a0815c857), [`9fc1613`](https://github.com/mastra-ai/mastra/commit/9fc16136400186648880fd990119ac15f7c02ee4), [`61f62aa`](https://github.com/mastra-ai/mastra/commit/61f62aa31bc88fe4ddf8da6240dbcfbeb07358bd), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`3e292ba`](https://github.com/mastra-ai/mastra/commit/3e292ba00837886d5d68a34cbc0d9b703c991883), [`418c136`](https://github.com/mastra-ai/mastra/commit/418c1366843d88e491bca3f87763899ce855ca29), [`c84b7d0`](https://github.com/mastra-ai/mastra/commit/c84b7d093c4657772140cbfd2b15ef72f3315ed5)]:
12
- - @mastra/core@0.0.0-rag-chunk-extract-llm-option-20250926183645
7
+ - Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`b342a68`](https://github.com/mastra-ai/mastra/commit/b342a68e1399cf1ece9ba11bda112db89d21118c), [`303a9c0`](https://github.com/mastra-ai/mastra/commit/303a9c0d7dd58795915979f06a0512359e4532fb), [`370f8a6`](https://github.com/mastra-ai/mastra/commit/370f8a6480faec70fef18d72e5f7538f27004301), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`623ffaf`](https://github.com/mastra-ai/mastra/commit/623ffaf2d969e11e99a0224633cf7b5a0815c857), [`9fc1613`](https://github.com/mastra-ai/mastra/commit/9fc16136400186648880fd990119ac15f7c02ee4), [`61f62aa`](https://github.com/mastra-ai/mastra/commit/61f62aa31bc88fe4ddf8da6240dbcfbeb07358bd), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`3e292ba`](https://github.com/mastra-ai/mastra/commit/3e292ba00837886d5d68a34cbc0d9b703c991883), [`418c136`](https://github.com/mastra-ai/mastra/commit/418c1366843d88e491bca3f87763899ce855ca29), [`c84b7d0`](https://github.com/mastra-ai/mastra/commit/c84b7d093c4657772140cbfd2b15ef72f3315ed5)]:
8
+ - @mastra/core@0.0.0-roamin-openaivoice-speak-options-passing-20250926163614
13
9
 
14
10
  ## 0.4.2
15
11
 
package/dist/index.cjs CHANGED
@@ -5,7 +5,6 @@ var storage = require('@mastra/core/storage');
5
5
  var sql2 = require('mssql');
6
6
  var utils = require('@mastra/core/utils');
7
7
  var agent = require('@mastra/core/agent');
8
- var scores = require('@mastra/core/scores');
9
8
 
10
9
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
10
 
@@ -1480,19 +1479,6 @@ var ScoresMSSQL = class extends storage.ScoresStorage {
1480
1479
  }
1481
1480
  }
1482
1481
  async saveScore(score) {
1483
- let validatedScore;
1484
- try {
1485
- validatedScore = scores.saveScorePayloadSchema.parse(score);
1486
- } catch (error$1) {
1487
- throw new error.MastraError(
1488
- {
1489
- id: "MASTRA_STORAGE_MSSQL_STORE_SAVE_SCORE_VALIDATION_FAILED",
1490
- domain: error.ErrorDomain.STORAGE,
1491
- category: error.ErrorCategory.THIRD_PARTY
1492
- },
1493
- error$1
1494
- );
1495
- }
1496
1482
  try {
1497
1483
  const scoreId = crypto.randomUUID();
1498
1484
  const {
@@ -1506,7 +1492,7 @@ var ScoresMSSQL = class extends storage.ScoresStorage {
1506
1492
  runtimeContext,
1507
1493
  entity,
1508
1494
  ...rest
1509
- } = validatedScore;
1495
+ } = score;
1510
1496
  await this.operations.insert({
1511
1497
  tableName: storage.TABLE_SCORERS,
1512
1498
  record: {
@@ -1691,60 +1677,6 @@ var ScoresMSSQL = class extends storage.ScoresStorage {
1691
1677
  );
1692
1678
  }
1693
1679
  }
1694
- async getScoresBySpan({
1695
- traceId,
1696
- spanId,
1697
- pagination
1698
- }) {
1699
- try {
1700
- const request = this.pool.request();
1701
- request.input("p1", traceId);
1702
- request.input("p2", spanId);
1703
- const totalResult = await request.query(
1704
- `SELECT COUNT(*) as count FROM ${getTableName({ indexName: storage.TABLE_SCORERS, schemaName: getSchemaName(this.schema) })} WHERE [traceId] = @p1 AND [spanId] = @p2`
1705
- );
1706
- const total = totalResult.recordset[0]?.count || 0;
1707
- if (total === 0) {
1708
- return {
1709
- pagination: {
1710
- total: 0,
1711
- page: pagination.page,
1712
- perPage: pagination.perPage,
1713
- hasMore: false
1714
- },
1715
- scores: []
1716
- };
1717
- }
1718
- const limit = pagination.perPage + 1;
1719
- const dataRequest = this.pool.request();
1720
- dataRequest.input("p1", traceId);
1721
- dataRequest.input("p2", spanId);
1722
- dataRequest.input("p3", limit);
1723
- dataRequest.input("p4", pagination.page * pagination.perPage);
1724
- const result = await dataRequest.query(
1725
- `SELECT * FROM ${getTableName({ indexName: storage.TABLE_SCORERS, schemaName: getSchemaName(this.schema) })} WHERE [traceId] = @p1 AND [spanId] = @p2 ORDER BY [createdAt] DESC OFFSET @p4 ROWS FETCH NEXT @p3 ROWS ONLY`
1726
- );
1727
- return {
1728
- pagination: {
1729
- total: Number(total),
1730
- page: pagination.page,
1731
- perPage: pagination.perPage,
1732
- hasMore: result.recordset.length > pagination.perPage
1733
- },
1734
- scores: result.recordset.slice(0, pagination.perPage).map((row) => transformScoreRow(row))
1735
- };
1736
- } catch (error$1) {
1737
- throw new error.MastraError(
1738
- {
1739
- id: "MASTRA_STORAGE_MSSQL_STORE_GET_SCORES_BY_SPAN_FAILED",
1740
- domain: error.ErrorDomain.STORAGE,
1741
- category: error.ErrorCategory.THIRD_PARTY,
1742
- details: { traceId, spanId }
1743
- },
1744
- error$1
1745
- );
1746
- }
1747
- }
1748
1680
  };
1749
1681
  var TracesMSSQL = class extends storage.TracesStorage {
1750
1682
  pool;
@@ -2234,8 +2166,7 @@ var MSSQLStore = class extends storage.MastraStorage {
2234
2166
  resourceWorkingMemory: true,
2235
2167
  hasColumn: true,
2236
2168
  createTable: true,
2237
- deleteMessages: true,
2238
- getScoresBySpan: true
2169
+ deleteMessages: true
2239
2170
  };
2240
2171
  }
2241
2172
  /** @deprecated use getEvals instead */
@@ -2433,13 +2364,6 @@ var MSSQLStore = class extends storage.MastraStorage {
2433
2364
  pagination: _pagination
2434
2365
  });
2435
2366
  }
2436
- async getScoresBySpan({
2437
- traceId,
2438
- spanId,
2439
- pagination: _pagination
2440
- }) {
2441
- return this.stores.scores.getScoresBySpan({ traceId, spanId, pagination: _pagination });
2442
- }
2443
2367
  };
2444
2368
 
2445
2369
  exports.MSSQLStore = MSSQLStore;