@mastra/upstash 0.14.0-alpha.0 → 0.14.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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './storage';
2
- export * from './vector';
3
- export { UPSTASH_PROMPT } from './vector/prompt';
1
+ export * from './storage/index.js';
2
+ export * from './vector/index.js';
3
+ export { UPSTASH_PROMPT } from './vector/prompt.js';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { MastraStorage, StoreOperations, TracesStorage, TABLE_TRACES, ScoresStor
2
2
  import { Redis } from '@upstash/redis';
3
3
  import { MastraError, ErrorCategory, ErrorDomain } from '@mastra/core/error';
4
4
  import { MessageList } from '@mastra/core/agent';
5
+ import { randomUUID } from 'crypto';
5
6
  import { MastraVector } from '@mastra/core/vector';
6
7
  import { Index } from '@upstash/vector';
7
8
  import { BaseFilterTranslator } from '@mastra/core/vector/filter';
@@ -2060,7 +2061,7 @@ var UpstashVector = class extends MastraVector {
2060
2061
  ids,
2061
2062
  sparseVectors
2062
2063
  }) {
2063
- const generatedIds = ids || vectors.map(() => crypto.randomUUID());
2064
+ const generatedIds = ids || vectors.map(() => randomUUID());
2064
2065
  const points = vectors.map((vector, index) => ({
2065
2066
  id: generatedIds[index],
2066
2067
  vector,