@larkup/cli 0.2.17 → 0.2.19
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/{analytics-store-VOKLZYUM.js → analytics-store-JGHJTMOB.js} +1 -1
- package/dist/{chunk-ZJLA4SIG.js → chunk-PDVC2XOG.js} +5 -0
- package/dist/{chunk-7HVIRRTX.js → chunk-RM2IB56F.js} +3 -3
- package/dist/{chunk-STUKQORW.js → chunk-RNY5632E.js} +4 -3
- package/dist/index.js +17 -17
- package/dist/{tool-loader-K33ISDZP.js → tool-loader-JW7XXTCM.js} +2 -2
- package/dist/{tool-registry-XQVQ6KQF.js → tool-registry-WNSCTC3Y.js} +1 -1
- package/package.json +15 -15
|
@@ -209,6 +209,11 @@ function defaultConfigFor(id, name, prevConfig = {}) {
|
|
|
209
209
|
chatApiKey: prevConfig.chatApiKey ?? DEFAULT_CONFIG.chatApiKey,
|
|
210
210
|
customChatModels: prevConfig.customChatModels ?? DEFAULT_CONFIG.customChatModels,
|
|
211
211
|
serperApiKey: prevConfig.serperApiKey ?? DEFAULT_CONFIG.serperApiKey,
|
|
212
|
+
scraperProxyServer: prevConfig.scraperProxyServer ?? DEFAULT_CONFIG.scraperProxyServer,
|
|
213
|
+
scraperProxyUsername: prevConfig.scraperProxyUsername ?? DEFAULT_CONFIG.scraperProxyUsername,
|
|
214
|
+
scraperProxyPassword: prevConfig.scraperProxyPassword ?? DEFAULT_CONFIG.scraperProxyPassword,
|
|
215
|
+
useScraperProxy: prevConfig.useScraperProxy ?? DEFAULT_CONFIG.useScraperProxy,
|
|
216
|
+
webCrawlerProvider: prevConfig.webCrawlerProvider ?? DEFAULT_CONFIG.webCrawlerProvider,
|
|
212
217
|
firecrawlApiKey: prevConfig.firecrawlApiKey ?? DEFAULT_CONFIG.firecrawlApiKey,
|
|
213
218
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
214
219
|
};
|
|
@@ -90,7 +90,7 @@ var FALLBACK_REGISTRY = {
|
|
|
90
90
|
name: "Video & Audio",
|
|
91
91
|
description: "Index video and audio files with transcription and frame analysis.",
|
|
92
92
|
category: "media",
|
|
93
|
-
version: "0.3.
|
|
93
|
+
version: "0.3.2",
|
|
94
94
|
pricing: "free",
|
|
95
95
|
emoji: "\u{1F3AC}",
|
|
96
96
|
icon: "Film",
|
|
@@ -189,12 +189,12 @@ var FALLBACK_REGISTRY = {
|
|
|
189
189
|
async function buildRegistry(opts) {
|
|
190
190
|
if (cachedRegistry) return cachedRegistry;
|
|
191
191
|
const registry = { ...FALLBACK_REGISTRY };
|
|
192
|
-
const localManifests = await discoverLocalManifests();
|
|
193
|
-
Object.assign(registry, localManifests);
|
|
194
192
|
if (!opts?.skipHub) {
|
|
195
193
|
const hubCatalog = await fetchHubCatalog(opts?.hubUrl);
|
|
196
194
|
Object.assign(registry, hubCatalog);
|
|
197
195
|
}
|
|
196
|
+
const localManifests = await discoverLocalManifests();
|
|
197
|
+
Object.assign(registry, localManifests);
|
|
198
198
|
cachedRegistry = registry;
|
|
199
199
|
return registry;
|
|
200
200
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getToolById,
|
|
3
3
|
invalidateRegistryCache
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RM2IB56F.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
7
|
} from "./chunk-3RG5ZIWI.js";
|
|
@@ -154,6 +154,7 @@ async function checkSystemDeps(toolId) {
|
|
|
154
154
|
const target = detectDeploymentTarget();
|
|
155
155
|
const missing = [];
|
|
156
156
|
for (const dep of descriptor.systemDeps) {
|
|
157
|
+
if (toolId === "video-audio" && dep === "ffmpeg") continue;
|
|
157
158
|
if (target === "docker" && dep === "docker") continue;
|
|
158
159
|
try {
|
|
159
160
|
await execAsync(`which ${dep}`);
|
|
@@ -414,7 +415,7 @@ async function uninstallTool(toolId) {
|
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
417
|
invalidateRegistryCache();
|
|
417
|
-
const { unloadTool: unloadTool2 } = await import("./tool-loader-
|
|
418
|
+
const { unloadTool: unloadTool2 } = await import("./tool-loader-JW7XXTCM.js");
|
|
418
419
|
unloadTool2(toolId);
|
|
419
420
|
}
|
|
420
421
|
async function notifyHubInstall(toolId) {
|
|
@@ -485,7 +486,7 @@ function unloadTool(toolId) {
|
|
|
485
486
|
moduleCache.delete(toolId);
|
|
486
487
|
}
|
|
487
488
|
async function hasCapability(capability) {
|
|
488
|
-
const { getToolsWithCapability } = await import("./tool-registry-
|
|
489
|
+
const { getToolsWithCapability } = await import("./tool-registry-WNSCTC3Y.js");
|
|
489
490
|
const tools = await getToolsWithCapability(capability);
|
|
490
491
|
for (const t of tools) {
|
|
491
492
|
const installed = await getInstalledTool(t.id);
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
runWithServer,
|
|
12
12
|
setActiveServer,
|
|
13
13
|
trackUsageEvent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PDVC2XOG.js";
|
|
15
15
|
import {
|
|
16
16
|
getInstalledTool,
|
|
17
17
|
getInstalledTools,
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
isToolInstalled,
|
|
20
20
|
loadTool,
|
|
21
21
|
uninstallTool
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RNY5632E.js";
|
|
23
23
|
import {
|
|
24
24
|
getAllTools,
|
|
25
25
|
getToolById
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RM2IB56F.js";
|
|
27
27
|
import {
|
|
28
28
|
__require
|
|
29
29
|
} from "./chunk-3RG5ZIWI.js";
|
|
@@ -34,7 +34,7 @@ import { Command } from "commander";
|
|
|
34
34
|
// package.json
|
|
35
35
|
var package_default = {
|
|
36
36
|
name: "@larkup/cli",
|
|
37
|
-
version: "0.2.
|
|
37
|
+
version: "0.2.19",
|
|
38
38
|
publishConfig: {
|
|
39
39
|
access: "public"
|
|
40
40
|
},
|
|
@@ -51,22 +51,22 @@ var package_default = {
|
|
|
51
51
|
larkup: "tsx src/index.ts"
|
|
52
52
|
},
|
|
53
53
|
dependencies: {
|
|
54
|
-
"@ai-sdk/cohere": "^4.0.
|
|
55
|
-
"@ai-sdk/deepseek": "^3.0.
|
|
56
|
-
"@ai-sdk/gateway": "^4.0.
|
|
57
|
-
"@ai-sdk/google": "^4.0.
|
|
58
|
-
"@ai-sdk/mistral": "^4.0.
|
|
59
|
-
"@ai-sdk/openai": "^4.0.
|
|
60
|
-
"@ai-sdk/openai-compatible": "^3.0.
|
|
54
|
+
"@ai-sdk/cohere": "^4.0.15",
|
|
55
|
+
"@ai-sdk/deepseek": "^3.0.16",
|
|
56
|
+
"@ai-sdk/gateway": "^4.0.32",
|
|
57
|
+
"@ai-sdk/google": "^4.0.28",
|
|
58
|
+
"@ai-sdk/mistral": "^4.0.17",
|
|
59
|
+
"@ai-sdk/openai": "^4.0.24",
|
|
60
|
+
"@ai-sdk/openai-compatible": "^3.0.17",
|
|
61
61
|
"@clack/prompts": "^1.7.0",
|
|
62
|
-
"@lancedb/lancedb": "^0.
|
|
62
|
+
"@lancedb/lancedb": "^0.33.0",
|
|
63
63
|
"@larkup/core": "workspace:*",
|
|
64
64
|
"@larkup/marketplace": "workspace:*",
|
|
65
65
|
"@larkup/vector-stores": "workspace:*",
|
|
66
66
|
"@pinecone-database/pinecone": "^8.1.0",
|
|
67
|
-
ai: "^7.0.
|
|
68
|
-
"apache-arrow": "^
|
|
69
|
-
chalk: "^
|
|
67
|
+
ai: "^7.0.42",
|
|
68
|
+
"apache-arrow": "^21.2.0",
|
|
69
|
+
chalk: "^6.0.0",
|
|
70
70
|
chromadb: "^3.5.0",
|
|
71
71
|
"cli-table3": "^0.6.5",
|
|
72
72
|
commander: "^15.0.0",
|
|
@@ -75,7 +75,7 @@ var package_default = {
|
|
|
75
75
|
devDependencies: {
|
|
76
76
|
tsup: "^8.0.0",
|
|
77
77
|
tsx: "^4.22.4",
|
|
78
|
-
typescript: "
|
|
78
|
+
typescript: "^6.0.3"
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
|
|
@@ -4251,7 +4251,7 @@ async function embedTexts(config, texts) {
|
|
|
4251
4251
|
values: texts
|
|
4252
4252
|
});
|
|
4253
4253
|
const totalTokens = texts.reduce((acc, t) => acc + Math.ceil(t.length / 4), 0);
|
|
4254
|
-
const { trackUsageEvent: trackUsageEvent2, estimateCost: estimateCost2 } = await import("./analytics-store-
|
|
4254
|
+
const { trackUsageEvent: trackUsageEvent2, estimateCost: estimateCost2 } = await import("./analytics-store-JGHJTMOB.js");
|
|
4255
4255
|
void trackUsageEvent2({
|
|
4256
4256
|
type: "embedding",
|
|
4257
4257
|
embeddingModelId: config.embeddingModelId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larkup/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ai-sdk/cohere": "^4.0.
|
|
16
|
-
"@ai-sdk/deepseek": "^3.0.
|
|
17
|
-
"@ai-sdk/gateway": "^4.0.
|
|
18
|
-
"@ai-sdk/google": "^4.0.
|
|
19
|
-
"@ai-sdk/mistral": "^4.0.
|
|
20
|
-
"@ai-sdk/openai": "^4.0.
|
|
21
|
-
"@ai-sdk/openai-compatible": "^3.0.
|
|
15
|
+
"@ai-sdk/cohere": "^4.0.15",
|
|
16
|
+
"@ai-sdk/deepseek": "^3.0.16",
|
|
17
|
+
"@ai-sdk/gateway": "^4.0.32",
|
|
18
|
+
"@ai-sdk/google": "^4.0.28",
|
|
19
|
+
"@ai-sdk/mistral": "^4.0.17",
|
|
20
|
+
"@ai-sdk/openai": "^4.0.24",
|
|
21
|
+
"@ai-sdk/openai-compatible": "^3.0.17",
|
|
22
22
|
"@clack/prompts": "^1.7.0",
|
|
23
|
-
"@lancedb/lancedb": "^0.
|
|
23
|
+
"@lancedb/lancedb": "^0.33.0",
|
|
24
24
|
"@pinecone-database/pinecone": "^8.1.0",
|
|
25
|
-
"ai": "^7.0.
|
|
26
|
-
"apache-arrow": "^
|
|
27
|
-
"chalk": "^
|
|
25
|
+
"ai": "^7.0.42",
|
|
26
|
+
"apache-arrow": "^21.2.0",
|
|
27
|
+
"chalk": "^6.0.0",
|
|
28
28
|
"chromadb": "^3.5.0",
|
|
29
29
|
"cli-table3": "^0.6.5",
|
|
30
30
|
"commander": "^15.0.0",
|
|
31
31
|
"zod": "^4.4.3",
|
|
32
|
-
"@larkup/core": "0.3.2",
|
|
33
32
|
"@larkup/vector-stores": "0.1.24",
|
|
34
|
-
"@larkup/
|
|
33
|
+
"@larkup/core": "0.3.4",
|
|
34
|
+
"@larkup/marketplace": "0.1.19"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"tsup": "^8.0.0",
|
|
38
38
|
"tsx": "^4.22.4",
|
|
39
|
-
"typescript": "
|
|
39
|
+
"typescript": "^6.0.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsup",
|