@vera-ai/cli 0.12.5 → 0.12.7
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 +1 -1
- package/bin/vera.js +13 -8
- 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
|
-
- **
|
|
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
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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-"));
|