@mastra/evals 0.1.0-alpha.51 → 0.1.0-alpha.52

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,5 +1,11 @@
1
1
  # @mastra/evals
2
2
 
3
+ ## 0.1.0-alpha.52
4
+
5
+ ### Patch Changes
6
+
7
+ - b9c7047: Move to non deprecated table name for eval insertion
8
+
3
9
  ## 0.1.0-alpha.51
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import './chunk-4VNS5WPM.js';
2
2
  import { evaluate as evaluate$1 } from '@mastra/core';
3
3
  import '@mastra/core/agent';
4
4
  import { registerHook, AvailableHooks } from '@mastra/core/hooks';
5
- import { MastraStorage } from '@mastra/core/storage';
5
+ import { TABLE_EVALS } from '@mastra/core/storage';
6
6
 
7
7
  // src/constants.ts
8
8
  var GLOBAL_RUN_ID_ENV_KEY = "_MASTRA_GLOBAL_RUN_ID_";
@@ -59,7 +59,7 @@ async function attachListeners(mastra) {
59
59
  registerHook(AvailableHooks.ON_EVALUATION, async (traceObject) => {
60
60
  if (mastra?.storage) {
61
61
  await mastra.storage.insert({
62
- tableName: MastraStorage.TABLE_EVALS,
62
+ tableName: TABLE_EVALS,
63
63
  record: {
64
64
  input: traceObject.input,
65
65
  output: traceObject.output,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/evals",
3
- "version": "0.1.0-alpha.51",
3
+ "version": "0.1.0-alpha.52",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  import type { Mastra } from '@mastra/core';
2
2
  import { AvailableHooks, registerHook } from '@mastra/core/hooks';
3
- import { MastraStorage } from '@mastra/core/storage';
3
+ import { TABLE_EVALS } from '@mastra/core/storage';
4
4
 
5
5
  import { GLOBAL_RUN_ID_ENV_KEY } from './constants';
6
6
 
@@ -12,7 +12,7 @@ export async function attachListeners(mastra?: Mastra) {
12
12
  registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
13
13
  if (mastra?.storage) {
14
14
  await mastra.storage.insert({
15
- tableName: MastraStorage.TABLE_EVALS,
15
+ tableName: TABLE_EVALS,
16
16
  record: {
17
17
  input: traceObject.input,
18
18
  output: traceObject.output,