@vera-ai/cli 0.12.4 → 0.12.6

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 (3) hide show
  1. package/README.md +1 -1
  2. package/bin/vera.js +13 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -49,7 +49,7 @@ On GPU backends, Vera uses a free-VRAM-aware batch ceiling and sequence-aware lo
49
49
 
50
50
  ## What you get
51
51
 
52
- - **60+ languages** via tree-sitter AST parsing
52
+ - **61+ languages** via tree-sitter AST parsing
53
53
  - **Hybrid search**: BM25 keyword + vector similarity, fused with Reciprocal Rank Fusion
54
54
  - **Cross-encoder reranking** for precision
55
55
  - **Markdown codeblock output** by default with file paths, line ranges, and optional symbol info (use `--json` for compact JSON, `--raw` for verbose output, `--timing` for step durations)
package/bin/vera.js CHANGED
@@ -320,14 +320,19 @@ async function ensureBinaryInstalled() {
320
320
  const installDir = path.join(defaultVeraHome(), "bin", version, target);
321
321
  const binaryPath = path.join(installDir, binaryName());
322
322
  if (fs.existsSync(binaryPath)) {
323
- await createShim(binaryPath);
324
- await writeInstallMetadata({
325
- installMethod: currentInstallMethod(),
326
- version,
327
- binaryPath,
328
- target,
329
- });
330
- return { binaryPath, version };
323
+ const stat = await fsp.stat(binaryPath);
324
+ if (stat.size > 1_000_000) {
325
+ await createShim(binaryPath);
326
+ await writeInstallMetadata({
327
+ installMethod: currentInstallMethod(),
328
+ version,
329
+ binaryPath,
330
+ target,
331
+ });
332
+ return { binaryPath, version };
333
+ }
334
+ // Stale or broken file (e.g. leftover shim from interrupted install).
335
+ await fsp.rm(binaryPath);
331
336
  }
332
337
 
333
338
  const tempRoot = await fsp.mkdtemp(path.join(os.tmpdir(), "vera-install-"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vera-ai/cli",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
4
4
  "description": "Bootstrap installer and wrapper for the Vera CLI",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/lemon07r/Vera#readme",