@mastra/redis 1.4.7 → 1.4.8
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/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MessageList } from "@mastra/core/agent";
|
|
2
2
|
import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
|
|
3
3
|
import { MastraStorage, MemoryStorage, ScoresStorage, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCORERS, TABLE_THREADS, TABLE_WORKFLOW_SNAPSHOT, WorkflowsStorage, calculatePagination, createStorageErrorId, ensureDate, filterByDateRange, jsonValueEquals, matchesExpectedWorkflowStatus, normalizePerPage, serializeDate, storageMessageMatchesMetadataFilter, transformScoreRow, validateStorageMetadataFilter } from "@mastra/core/storage";
|
|
4
|
-
import crypto$1 from "crypto";
|
|
5
4
|
import { saveScorePayloadSchema } from "@mastra/core/evals";
|
|
6
5
|
import { createClient } from "redis";
|
|
7
6
|
import { MastraServerCache } from "@mastra/core/cache";
|
|
@@ -1070,7 +1069,7 @@ var ScoresRedis = class extends ScoresStorage {
|
|
|
1070
1069
|
}, error);
|
|
1071
1070
|
}
|
|
1072
1071
|
const now = /* @__PURE__ */ new Date();
|
|
1073
|
-
const id = crypto
|
|
1072
|
+
const id = crypto.randomUUID();
|
|
1074
1073
|
const { key, processedRecord } = processRecord(TABLE_SCORERS, {
|
|
1075
1074
|
...validatedScore,
|
|
1076
1075
|
id,
|