@mastra/mssql 1.10.0 → 1.10.1-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/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
2
2
  import { AGENTS_SCHEMA, AGENT_VERSIONS_SCHEMA, AgentsStorage, BackgroundTasksStorage, MastraCompositeStore, MemoryStorage, ObservabilityStorage, SPAN_SCHEMA, ScoresStorage, TABLE_AGENTS, TABLE_AGENT_VERSIONS, TABLE_BACKGROUND_TASKS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_SPANS, TABLE_THREADS, TABLE_WORKFLOW_DEFINITIONS, TABLE_WORKFLOW_SNAPSHOT, TraceStatus, WORKFLOW_DEFINITIONS_SCHEMA, WorkflowDefinitionsStorage, WorkflowsStorage, calculatePagination, createStorageErrorId, executeRetentionPrune, getDefaultValue, listTracesArgsSchema, matchesExpectedWorkflowStatus, normalizePerPage, resolveRetentionTargets, retentionCutoffMs, toTraceSpans, transformScoreRow, validateStorageMetadataFilter } from "@mastra/core/storage";
3
3
  import sql from "mssql";
4
- import { randomUUID } from "crypto";
5
4
  import { parseSqlIdentifier } from "@mastra/core/utils";
6
5
  import { MastraBase } from "@mastra/core/base";
7
6
  import { MessageList } from "@mastra/core/agent";
@@ -1343,7 +1342,7 @@ var AgentsMSSQL = class AgentsMSSQL extends AgentsStorage {
1343
1342
  }
1344
1343
  });
1345
1344
  const { id: _id, authorId: _authorId, metadata: _metadata, ...snapshotConfig } = agent;
1346
- const versionId = randomUUID();
1345
+ const versionId = globalThis.crypto.randomUUID();
1347
1346
  await this.createVersion({
1348
1347
  id: versionId,
1349
1348
  agentId: agent.id,
@@ -3943,7 +3942,7 @@ var ScoresMSSQL = class ScoresMSSQL extends ScoresStorage {
3943
3942
  }, error);
3944
3943
  }
3945
3944
  try {
3946
- const scoreId = randomUUID();
3945
+ const scoreId = globalThis.crypto.randomUUID();
3947
3946
  const now = /* @__PURE__ */ new Date();
3948
3947
  const { scorer, preprocessStepResult, analyzeStepResult, metadata, input, output, additionalContext, requestContext, entity, ...rest } = validatedScore;
3949
3948
  await this.db.insert({