voyageai-cli 1.28.0 → 1.29.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/package.json +2 -1
- package/src/commands/app.js +15 -0
- package/src/commands/playground.js +638 -7
- package/src/commands/workflow.js +417 -14
- package/src/lib/explanations.js +88 -0
- package/src/lib/npm-utils.js +265 -0
- package/src/lib/workflow-registry.js +416 -0
- package/src/lib/workflow-scaffold.js +319 -0
- package/src/lib/workflow.js +433 -7
- package/src/playground/announcements.md +71 -0
- package/src/playground/icons/V.png +0 -0
- package/src/playground/index.html +2204 -94
- package/src/workflows/consistency-check.json +4 -0
- package/src/workflows/cost-analysis.json +4 -0
- package/src/workflows/enrich-and-ingest.json +56 -0
- package/src/workflows/intelligent-ingest.json +66 -0
- package/src/workflows/kb-health-report.json +45 -0
- package/src/workflows/multi-collection-search.json +4 -0
- package/src/workflows/research-and-summarize.json +4 -0
- package/src/workflows/search-with-fallback.json +66 -0
- package/src/workflows/smart-ingest.json +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voyageai-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "CLI for Voyage AI embeddings, reranking, and MongoDB Atlas Vector Search",
|
|
5
5
|
"bin": {
|
|
6
6
|
"vai": "./src/cli.js"
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@clack/prompts": "^1.0.0",
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
45
|
+
"@vaicli/vai-workflow-model-shootout": "^1.0.0",
|
|
45
46
|
"commander": "^12.0.0",
|
|
46
47
|
"dotenv": "^17.2.3",
|
|
47
48
|
"mongodb": "^6.0.0",
|
package/src/commands/app.js
CHANGED
|
@@ -138,6 +138,21 @@ function registerApp(program) {
|
|
|
138
138
|
const electronPkg = path.join(electronDir, 'package.json');
|
|
139
139
|
|
|
140
140
|
if (!fs.existsSync(electronPkg)) {
|
|
141
|
+
// Check for system-installed Vai.app on macOS
|
|
142
|
+
if (process.platform === 'darwin') {
|
|
143
|
+
const appPaths = [
|
|
144
|
+
'/Applications/Vai.app',
|
|
145
|
+
path.join(process.env.HOME || '', 'Applications', 'Vai.app'),
|
|
146
|
+
];
|
|
147
|
+
const installed = appPaths.find((p) => fs.existsSync(p));
|
|
148
|
+
if (installed) {
|
|
149
|
+
console.log('🧭 Launching Vai desktop app...');
|
|
150
|
+
spawn('open', ['-a', installed], { stdio: 'ignore', detached: true }).unref();
|
|
151
|
+
setTimeout(() => process.exit(0), 500);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
141
156
|
console.log('');
|
|
142
157
|
console.log('🖥️ The Vai desktop app is not installed locally.');
|
|
143
158
|
console.log('');
|