@larkup/cli 0.2.0 → 0.2.2
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/README.md +2 -2
- package/dist/{analytics-store-JIRW4PQQ.js → analytics-store-VOKLZYUM.js} +1 -1
- package/dist/{chunk-NH7TTMXS.js → chunk-SWHRNA3E.js} +2 -2
- package/dist/{chunk-6IFSA37D.js → chunk-ZJLA4SIG.js} +3 -3
- package/dist/index.js +4173 -4152
- package/dist/{lancedb-ZXGPDC7O.js → lancedb-ITW7V3K5.js} +11 -1
- package/dist/{tool-registry-OAONPCI5.js → tool-registry-Q6WGF5LL.js} +1 -1
- package/package.json +17 -17
|
@@ -3,7 +3,16 @@ import "./chunk-3RG5ZIWI.js";
|
|
|
3
3
|
// ../../packages/vector-stores/src/adapters/lancedb.ts
|
|
4
4
|
import path from "path";
|
|
5
5
|
import fs from "fs/promises";
|
|
6
|
-
|
|
6
|
+
var lancedbModule = null;
|
|
7
|
+
async function getLanceDB() {
|
|
8
|
+
if (!lancedbModule) {
|
|
9
|
+
lancedbModule = await import(
|
|
10
|
+
/* turbopackIgnore: true */
|
|
11
|
+
"@lancedb/lancedb"
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
return lancedbModule;
|
|
15
|
+
}
|
|
7
16
|
var LanceDBAdapter = class {
|
|
8
17
|
constructor(config) {
|
|
9
18
|
this.config = config;
|
|
@@ -15,6 +24,7 @@ var LanceDBAdapter = class {
|
|
|
15
24
|
tableName;
|
|
16
25
|
async connect() {
|
|
17
26
|
if (this.conn) return this.conn;
|
|
27
|
+
const lancedb = await getLanceDB();
|
|
18
28
|
if (this.config.mode === "cloud") {
|
|
19
29
|
if (!this.config.uri || !this.config.apiKey) {
|
|
20
30
|
throw new Error("LanceDB Cloud requires both a URI and an API key.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larkup/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ai-sdk/cohere": "^
|
|
16
|
-
"@ai-sdk/deepseek": "^
|
|
17
|
-
"@ai-sdk/gateway": "^
|
|
18
|
-
"@ai-sdk/google": "^
|
|
19
|
-
"@ai-sdk/mistral": "^
|
|
20
|
-
"@ai-sdk/openai": "^
|
|
21
|
-
"@ai-sdk/openai-compatible": "^
|
|
22
|
-
"@clack/prompts": "^
|
|
23
|
-
"@lancedb/lancedb": "^0.
|
|
24
|
-
"@pinecone-database/pinecone": "^
|
|
25
|
-
"ai": "^
|
|
15
|
+
"@ai-sdk/cohere": "^4.0.12",
|
|
16
|
+
"@ai-sdk/deepseek": "^3.0.13",
|
|
17
|
+
"@ai-sdk/gateway": "^4.0.28",
|
|
18
|
+
"@ai-sdk/google": "^4.0.24",
|
|
19
|
+
"@ai-sdk/mistral": "^4.0.14",
|
|
20
|
+
"@ai-sdk/openai": "^4.0.20",
|
|
21
|
+
"@ai-sdk/openai-compatible": "^3.0.14",
|
|
22
|
+
"@clack/prompts": "^1.7.0",
|
|
23
|
+
"@lancedb/lancedb": "^0.31.0",
|
|
24
|
+
"@pinecone-database/pinecone": "^8.1.0",
|
|
25
|
+
"ai": "^7.0.37",
|
|
26
26
|
"chalk": "^5.6.2",
|
|
27
|
-
"chromadb": "^
|
|
27
|
+
"chromadb": "^3.5.0",
|
|
28
28
|
"cli-table3": "^0.6.5",
|
|
29
|
-
"commander": "^
|
|
29
|
+
"commander": "^15.0.0",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@larkup/core": "0.2.
|
|
32
|
-
"@larkup/marketplace": "0.1.
|
|
33
|
-
"@larkup/vector-stores": "0.1.
|
|
31
|
+
"@larkup/core": "0.2.1",
|
|
32
|
+
"@larkup/marketplace": "0.1.2",
|
|
33
|
+
"@larkup/vector-stores": "0.1.22"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.0.0",
|