@mastra/rag 2.6.5-alpha.2 → 2.6.6-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,6 +1,6 @@
1
1
  import { SpanType, createObservabilityContext } from "@mastra/core/observability";
2
2
  import { Agent, isSupportedLanguageModel } from "@mastra/core/agent";
3
- import { createHash, randomUUID } from "node:crypto";
3
+ import { createHash } from "node:crypto";
4
4
  import { z } from "zod";
5
5
  import { parse } from "node-html-better-parser";
6
6
  import { encodingForModel, getEncoding } from "js-tiktoken";
@@ -244,7 +244,7 @@ var BaseNode = class {
244
244
  __publicField(this, "relationships");
245
245
  __privateAdd(this, _hash, __runInitializers(_init, 8, this, "")), __runInitializers(_init, 11, this);
246
246
  const { id_, metadata, relationships } = init || {};
247
- this.id_ = id_ ?? randomUUID();
247
+ this.id_ = id_ ?? globalThis.crypto.randomUUID();
248
248
  this.metadata = metadata ?? {};
249
249
  this.relationships = relationships ?? {};
250
250
  }