@mastra/couchbase 0.1.0-alpha.1 → 0.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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/couchbase@0.1.0-alpha.1 build /home/runner/work/mastra/mastra/stores/couchbase
2
+ > @mastra/couchbase@0.10.1-alpha.0 build /home/runner/work/mastra/mastra/stores/couchbase
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 8118ms
9
+ TSC ⚡️ Build success in 5897ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/couchbase/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/couchbase/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 9975ms
16
+ DTS ⚡️ Build success in 8767ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 10.74 KB
21
- ESM ⚡️ Build success in 497ms
22
- CJS dist/index.cjs 10.80 KB
23
- CJS ⚡️ Build success in 499ms
20
+ CJS dist/index.cjs 10.90 KB
21
+ CJS ⚡️ Build success in 618ms
22
+ ESM dist/index.js 10.84 KB
23
+ ESM ⚡️ Build success in 618ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @mastra/couchbase
2
2
 
3
+ ## 0.10.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 915ca1a: Added disconnect function for couchbase and added docs
8
+ Added prompt for OpenSearchVector
9
+ - Updated dependencies [ee77e78]
10
+ - Updated dependencies [2901125]
11
+ - @mastra/core@0.10.2-alpha.1
12
+
13
+ ## 0.10.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 83da932: Move @mastra/core to peerdeps
18
+
19
+ ### Patch Changes
20
+
21
+ - d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
22
+ - a7292b0: BREAKING(@mastra/core, all vector stores): Vector store breaking changes (remove deprecated functions and positional arguments)
23
+ - Updated dependencies [b3a3d63]
24
+ - Updated dependencies [344f453]
25
+ - Updated dependencies [0a3ae6d]
26
+ - Updated dependencies [95911be]
27
+ - Updated dependencies [f53a6ac]
28
+ - Updated dependencies [5eb5a99]
29
+ - Updated dependencies [7e632c5]
30
+ - Updated dependencies [1e9fbfa]
31
+ - Updated dependencies [eabdcd9]
32
+ - Updated dependencies [90be034]
33
+ - Updated dependencies [99f050a]
34
+ - Updated dependencies [d0ee3c6]
35
+ - Updated dependencies [b2ae5aa]
36
+ - Updated dependencies [23f258c]
37
+ - Updated dependencies [a7292b0]
38
+ - Updated dependencies [0dcb9f0]
39
+ - Updated dependencies [2672a05]
40
+ - @mastra/core@0.10.0
41
+
3
42
  ## 0.1.0-alpha.1
4
43
 
5
44
  ### Minor Changes
package/README.md CHANGED
@@ -51,7 +51,14 @@ const bucketName = 'your_vector_bucket';
51
51
  const scopeName = '_default'; // Or your custom scope name
52
52
  const collectionName = 'vector_data'; // Or your custom collection name
53
53
 
54
- const vectorStore = new CouchbaseVector(connectionString, username, password, bucketName, scopeName, collectionName);
54
+ const vectorStore = new CouchbaseVector({
55
+ connectionString,
56
+ username,
57
+ password,
58
+ bucketName,
59
+ scopeName,
60
+ collectionName,
61
+ });
55
62
 
56
63
  console.log('CouchbaseVector instance created. Connecting...');
57
64
  ```
@@ -214,6 +221,9 @@ _Note_: Deleting Index does NOT delete the vectors in the associated Couchbase C
214
221
  - `listIndexes()`: Lists the names of all Search Indexes in the cluster. Returns fully qualified names (e.g., `bucket.scope.index`).
215
222
  - `describeIndex(indexName)`: Gets the configured dimension, metric (Mastra name), and document count (currently returns -1) for a specific Search Index (using its short name).
216
223
  - `deleteIndex(indexName)`: Deletes a Search Index (using its short name).
224
+ - `deleteVector(indexName, id)`: Deletes a specific vector entry from an index by its ID.
225
+ - `updateVector(indexName, id, update)`: Updates a specific vector entry by its ID with new vector data and/or metadata.
226
+ - `disconnect()`: Closes the Couchbase client connection. Should be called when done using the store.
217
227
 
218
228
  ## Configuration Details
219
229
 
@@ -55,6 +55,7 @@ declare class CouchbaseVector extends MastraVector {
55
55
  * @throws Will throw an error if the deletion operation fails.
56
56
  */
57
57
  deleteVector({ id }: DeleteVectorParams): Promise<void>;
58
+ disconnect(): Promise<void>;
58
59
  }
59
60
  export { CouchbaseVector }
60
61
  export { CouchbaseVector as CouchbaseVector_alias_1 }
@@ -55,6 +55,7 @@ declare class CouchbaseVector extends MastraVector {
55
55
  * @throws Will throw an error if the deletion operation fails.
56
56
  */
57
57
  deleteVector({ id }: DeleteVectorParams): Promise<void>;
58
+ disconnect(): Promise<void>;
58
59
  }
59
60
  export { CouchbaseVector }
60
61
  export { CouchbaseVector as CouchbaseVector_alias_1 }
package/dist/index.cjs CHANGED
@@ -299,6 +299,12 @@ var CouchbaseVector = class extends vector.MastraVector {
299
299
  }
300
300
  await collection.remove(id);
301
301
  }
302
+ async disconnect() {
303
+ if (!this.cluster) {
304
+ return;
305
+ }
306
+ await this.cluster.close();
307
+ }
302
308
  };
303
309
 
304
310
  exports.CouchbaseVector = CouchbaseVector;
package/dist/index.js CHANGED
@@ -297,6 +297,12 @@ var CouchbaseVector = class extends MastraVector {
297
297
  }
298
298
  await collection.remove(id);
299
299
  }
300
+ async disconnect() {
301
+ if (!this.cluster) {
302
+ return;
303
+ }
304
+ await this.cluster.close();
305
+ }
300
306
  };
301
307
 
302
308
  export { CouchbaseVector, DISTANCE_MAPPING };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/couchbase",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.10.1-alpha.0",
4
4
  "description": "Couchbase vector store provider for Mastra",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,11 +31,11 @@
31
31
  "tsup": "^8.4.0",
32
32
  "typescript": "^5.8.2",
33
33
  "vitest": "^3.0.9",
34
- "@mastra/core": "0.10.0-alpha.1",
35
- "@internal/lint": "0.0.5"
34
+ "@internal/lint": "0.0.7",
35
+ "@mastra/core": "0.10.2-alpha.1"
36
36
  },
37
37
  "peerDependencies": {
38
- "@mastra/core": "^0.9.4"
38
+ "@mastra/core": "^0.10.0"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
@@ -351,4 +351,11 @@ export class CouchbaseVector extends MastraVector {
351
351
 
352
352
  await collection.remove(id);
353
353
  }
354
+
355
+ async disconnect() {
356
+ if (!this.cluster) {
357
+ return;
358
+ }
359
+ await this.cluster.close();
360
+ }
354
361
  }