@mastra/astra 0.2.4-alpha.0 → 0.2.5-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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/astra@0.2.4-alpha.0 build /home/runner/work/mastra/mastra/stores/astra
2
+ > @mastra/astra@0.2.5-alpha.0 build /home/runner/work/mastra/mastra/stores/astra
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 6920ms
9
+ TSC ⚡️ Build success in 5609ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.2
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/astra/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.2
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/astra/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 9460ms
16
+ DTS ⚡️ Build success in 8733ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
20
  CJS dist/index.cjs 7.16 KB
21
- CJS ⚡️ Build success in 528ms
21
+ CJS ⚡️ Build success in 555ms
22
22
  ESM dist/index.js 7.13 KB
23
- ESM ⚡️ Build success in 533ms
23
+ ESM ⚡️ Build success in 555ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @mastra/astra
2
2
 
3
+ ## 0.2.5-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - b56a681: Update README and some tests for vector stores
8
+ - Updated dependencies [fb68a80]
9
+ - Updated dependencies [b56a681]
10
+ - Updated dependencies [248cb07]
11
+ - @mastra/core@0.6.4-alpha.0
12
+
13
+ ## 0.2.4
14
+
15
+ ### Patch Changes
16
+
17
+ - 404640e: AgentNetwork changeset
18
+ - Updated dependencies [404640e]
19
+ - Updated dependencies [3bce733]
20
+ - @mastra/core@0.6.3
21
+
22
+ ## 0.2.4-alpha.1
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [3bce733]
27
+ - @mastra/core@0.6.3-alpha.1
28
+
3
29
  ## 0.2.4-alpha.0
4
30
 
5
31
  ### Patch Changes
package/README.md CHANGED
@@ -20,16 +20,16 @@ const vectorStore = new AstraVector({
20
20
  });
21
21
 
22
22
  // Create a new collection
23
- await vectorStore.createIndex({ indexName: 'my-collection', dimension: 1536, metric: 'cosine' });
23
+ await vectorStore.createIndex({ indexName: 'myCollection', dimension: 1536, metric: 'cosine' });
24
24
 
25
25
  // Add vectors
26
26
  const vectors = [[0.1, 0.2, ...], [0.3, 0.4, ...]];
27
27
  const metadata = [{ text: 'doc1' }, { text: 'doc2' }];
28
- const ids = await vectorStore.upsert({ indexName: 'my-collection', vectors, metadata });
28
+ const ids = await vectorStore.upsert({ indexName: 'myCollection', vectors, metadata });
29
29
 
30
30
  // Query vectors
31
31
  const results = await vectorStore.query({
32
- indexName: 'my-collection',
32
+ indexName: 'myCollection',
33
33
  queryVector: [0.1, 0.2, ...],
34
34
  topK: 10, // topK
35
35
  filter: { text: { $eq: 'doc1' } }, // optional filter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/astra",
3
- "version": "0.2.4-alpha.0",
3
+ "version": "0.2.5-alpha.0",
4
4
  "description": "Astra DB provider for Mastra - includes vector store capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@datastax/astra-db-ts": "^1.5.0",
23
- "@mastra/core": "^0.6.3-alpha.0"
23
+ "@mastra/core": "^0.6.4-alpha.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@microsoft/api-extractor": "^7.52.1",