@mastra/lance 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/lance
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
- - Lance db support to 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.3.2
15
11
 
package/dist/index.cjs CHANGED
@@ -5,7 +5,6 @@ var error = require('@mastra/core/error');
5
5
  var storage = require('@mastra/core/storage');
6
6
  var agent = require('@mastra/core/agent');
7
7
  var apacheArrow = require('apache-arrow');
8
- var scores = require('@mastra/core/scores');
9
8
  var vector = require('@mastra/core/vector');
10
9
  var filter = require('@mastra/core/vector/filter');
11
10
 
@@ -1399,27 +1398,13 @@ var StoreScoresLance = class extends storage.ScoresStorage {
1399
1398
  this.client = client;
1400
1399
  }
1401
1400
  async saveScore(score) {
1402
- let validatedScore;
1403
- try {
1404
- validatedScore = scores.saveScorePayloadSchema.parse(score);
1405
- } catch (error$1) {
1406
- throw new error.MastraError(
1407
- {
1408
- id: "LANCE_STORAGE_SAVE_SCORE_FAILED",
1409
- text: "Failed to save score in LanceStorage",
1410
- domain: error.ErrorDomain.STORAGE,
1411
- category: error.ErrorCategory.THIRD_PARTY
1412
- },
1413
- error$1
1414
- );
1415
- }
1416
1401
  try {
1417
1402
  const id = crypto.randomUUID();
1418
1403
  const table = await this.client.openTable(storage.TABLE_SCORERS);
1419
1404
  const schema = await getTableSchema({ tableName: storage.TABLE_SCORERS, client: this.client });
1420
1405
  const allowedFields = new Set(schema.fields.map((f) => f.name));
1421
1406
  const filteredScore = {};
1422
- Object.keys(validatedScore).forEach((key) => {
1407
+ Object.keys(score).forEach((key) => {
1423
1408
  if (allowedFields.has(key)) {
1424
1409
  filteredScore[key] = score[key];
1425
1410
  }
@@ -1595,44 +1580,6 @@ var StoreScoresLance = class extends storage.ScoresStorage {
1595
1580
  );
1596
1581
  }
1597
1582
  }
1598
- async getScoresBySpan({
1599
- traceId,
1600
- spanId,
1601
- pagination
1602
- }) {
1603
- try {
1604
- const table = await this.client.openTable(storage.TABLE_SCORERS);
1605
- const { page = 0, perPage = 10 } = pagination || {};
1606
- const offset = page * perPage;
1607
- const query = table.query().where(`\`traceId\` = '${traceId}' AND \`spanId\` = '${spanId}'`).limit(perPage);
1608
- if (offset > 0) query.offset(offset);
1609
- const records = await query.toArray();
1610
- const schema = await getTableSchema({ tableName: storage.TABLE_SCORERS, client: this.client });
1611
- const scores = processResultWithTypeConversion(records, schema);
1612
- const allRecords = await table.query().where(`\`traceId\` = '${traceId}' AND \`spanId\` = '${spanId}'`).toArray();
1613
- const total = allRecords.length;
1614
- return {
1615
- pagination: {
1616
- page,
1617
- perPage,
1618
- total,
1619
- hasMore: offset + scores.length < total
1620
- },
1621
- scores
1622
- };
1623
- } catch (error$1) {
1624
- throw new error.MastraError(
1625
- {
1626
- id: "LANCE_STORAGE_GET_SCORES_BY_SPAN_FAILED",
1627
- text: "Failed to get scores by traceId and spanId in LanceStorage",
1628
- domain: error.ErrorDomain.STORAGE,
1629
- category: error.ErrorCategory.THIRD_PARTY,
1630
- details: { error: error$1?.message }
1631
- },
1632
- error$1
1633
- );
1634
- }
1635
- }
1636
1583
  };
1637
1584
  var StoreTracesLance = class extends storage.TracesStorage {
1638
1585
  client;
@@ -2125,8 +2072,7 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
2125
2072
  resourceWorkingMemory: true,
2126
2073
  hasColumn: true,
2127
2074
  createTable: true,
2128
- deleteMessages: false,
2129
- getScoresBySpan: true
2075
+ deleteMessages: false
2130
2076
  };
2131
2077
  }
2132
2078
  async getResourceById({ resourceId }) {
@@ -2296,13 +2242,6 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
2296
2242
  }) {
2297
2243
  return this.stores.scores.getScoresByEntityId({ entityId, entityType, pagination });
2298
2244
  }
2299
- async getScoresBySpan({
2300
- traceId,
2301
- spanId,
2302
- pagination
2303
- }) {
2304
- return this.stores.scores.getScoresBySpan({ traceId, spanId, pagination });
2305
- }
2306
2245
  };
2307
2246
  var LanceFilterTranslator = class extends filter.BaseFilterTranslator {
2308
2247
  translate(filter) {