voyageai-cli 1.30.1 → 1.30.3

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.
Files changed (41) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/src/cli.js +2 -0
  4. package/src/commands/about.js +3 -3
  5. package/src/commands/code-search.js +751 -0
  6. package/src/commands/doctor.js +1 -1
  7. package/src/commands/embed.js +121 -2
  8. package/src/commands/index-workspace.js +9 -5
  9. package/src/commands/playground.js +65 -4
  10. package/src/commands/quickstart.js +4 -4
  11. package/src/commands/workflow.js +132 -65
  12. package/src/lib/api.js +31 -0
  13. package/src/lib/catalog.js +4 -2
  14. package/src/lib/code-search.js +315 -0
  15. package/src/lib/codegen.js +1 -1
  16. package/src/lib/explanations.js +3 -3
  17. package/src/lib/github.js +226 -0
  18. package/src/lib/input.js +92 -1
  19. package/src/lib/template-engine.js +154 -20
  20. package/src/lib/workflow-builder.js +753 -0
  21. package/src/lib/workflow-formatters.js +454 -0
  22. package/src/lib/workflow-input-cache.js +111 -0
  23. package/src/lib/workflow-scaffold.js +1 -1
  24. package/src/lib/workflow.js +124 -8
  25. package/src/mcp/schemas/index.js +142 -0
  26. package/src/mcp/server.js +17 -4
  27. package/src/mcp/tools/authoring.js +662 -0
  28. package/src/mcp/tools/code-search.js +620 -0
  29. package/src/mcp/tools/embedding.js +72 -3
  30. package/src/mcp/tools/ingest.js +2 -5
  31. package/src/mcp/tools/retrieval.js +2 -15
  32. package/src/mcp/tools/workspace.js +1 -12
  33. package/src/mcp/utils.js +20 -0
  34. package/src/playground/help/workflow-nodes.js +127 -2
  35. package/src/playground/index.html +2013 -139
  36. package/src/workflows/code-review.json +110 -0
  37. package/src/workflows/cost-analysis.json +5 -0
  38. package/src/workflows/tests/code-review.fresh-index.test.json +83 -0
  39. package/src/workflows/tests/code-review.happy-path.test.json +121 -0
  40. package/src/workflows/tests/code-review.no-question.test.json +70 -0
  41. package/src/workflows/tests/smart-ingest.duplicate-detected.test.json +2 -2
package/README.md CHANGED
@@ -18,11 +18,11 @@ Voyage AI provides **state-of-the-art embedding models** with the best quality-t
18
18
 
19
19
  | Advantage | What It Means |
20
20
  |-----------|---------------|
21
- | **🎯 #1 on MTEB** | Voyage-3 ranks first on retrieval benchmarks, outperforming OpenAI, Cohere, and other providers |
22
- | **💰 Up to 83% Cost Savings** | Asymmetric retrieval: embed docs with `voyage-3-lite`, query with `voyage-3-large` same quality, fraction of the cost |
23
- | **🔗 Shared Embedding Space** | All Voyage-3 models produce compatible embeddings mix and match for optimal cost-quality tradeoffs |
21
+ | **🎯 #1 on RTEB** | Voyage 4 ranks first on retrieval benchmarks, outperforming OpenAI, Cohere, and other providers |
22
+ | **💰 Up to 83% Cost Savings** | Asymmetric retrieval: embed docs with `voyage-4-lite`, query with `voyage-4-large`, same quality, fraction of the cost |
23
+ | **🔗 Shared Embedding Space** | All Voyage 4 models produce compatible embeddings, so you can mix and match for optimal cost-quality tradeoffs |
24
24
  | **🏢 Domain-Specific Models** | Specialized models for code, finance, law, and multilingual content that beat general-purpose alternatives |
25
- | **⚡ Two-Stage Retrieval** | Rerank-2 boosts search precision by re-scoring candidates with a powerful cross-encoder |
25
+ | **⚡ Two-Stage Retrieval** | Rerank-2.5 boosts search precision by re-scoring candidates with a powerful cross-encoder |
26
26
 
27
27
  **Get started:**
28
28
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voyageai-cli",
3
- "version": "1.30.1",
3
+ "version": "1.30.3",
4
4
  "description": "CLI for Voyage AI embeddings, reranking, and MongoDB Atlas Vector Search",
5
5
  "bin": {
6
6
  "vai": "./src/cli.js"
package/src/cli.js CHANGED
@@ -41,6 +41,7 @@ const { registerWorkflow } = require('./commands/workflow');
41
41
  const { registerIndexWorkspace } = require('./commands/index-workspace');
42
42
  const { registerExport } = require('./commands/export');
43
43
  const { registerImport } = require('./commands/import');
44
+ const { registerCodeSearch } = require('./commands/code-search');
44
45
  const { showBanner, showQuickStart, getVersion } = require('./lib/banner');
45
46
 
46
47
  const version = getVersion();
@@ -86,6 +87,7 @@ registerWorkflow(program);
86
87
  registerIndexWorkspace(program);
87
88
  registerExport(program);
88
89
  registerImport(program);
90
+ registerCodeSearch(program);
89
91
 
90
92
  // Append disclaimer to all help output
91
93
  program.addHelpText('after', `
@@ -64,10 +64,10 @@ function registerAbout(program) {
64
64
  console.log('');
65
65
  console.log(` ${pc.cyan('💰 Best Value')}`);
66
66
  console.log(` Up to 83% cost reduction with asymmetric retrieval: embed`);
67
- console.log(` documents with voyage-3-lite, query with voyage-3-large.`);
67
+ console.log(` documents with voyage-4-lite, query with voyage-4-large.`);
68
68
  console.log('');
69
69
  console.log(` ${pc.cyan('🔗 Shared Embedding Space')}`);
70
- console.log(` All Voyage-3 models share the same embedding space mix`);
70
+ console.log(` All Voyage 4 models share the same embedding space, so you can mix`);
71
71
  console.log(` and match models for optimal cost-quality tradeoffs.`);
72
72
  console.log('');
73
73
  console.log(` ${pc.cyan('🏢 Domain-Specific Models')}`);
@@ -75,7 +75,7 @@ function registerAbout(program) {
75
75
  console.log(` content that outperform general-purpose alternatives.`);
76
76
  console.log('');
77
77
  console.log(` ${pc.cyan('⚡ Reranking')}`);
78
- console.log(` Two-stage retrieval with rerank-2 boosts precision by`);
78
+ console.log(` Two-stage retrieval with rerank-2.5 boosts precision by`);
79
79
  console.log(` re-scoring candidates with a powerful cross-encoder.`);
80
80
  console.log('');
81
81