@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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +39 -0
- package/README.md +11 -1
- package/dist/_tsup-dts-rollup.d.cts +1 -0
- package/dist/_tsup-dts-rollup.d.ts +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +4 -4
- package/src/vector/index.ts +7 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/couchbase@0.1
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 5897ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/couchbase/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/couchbase/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 8767ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m10.90 KB[39m
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 618ms
|
|
22
|
+
[32mESM[39m [1mdist/index.js [22m[32m10.84 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ 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(
|
|
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
|
|
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
|
-
"@
|
|
35
|
-
"@
|
|
34
|
+
"@internal/lint": "0.0.7",
|
|
35
|
+
"@mastra/core": "0.10.2-alpha.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mastra/core": "^0.
|
|
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",
|