@shledery/vetto 0.5.13 → 0.5.15
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/vetto-bench.js +47 -0
- package/native/darwin-arm64/vetto +0 -0
- package/native/darwin-x64/vetto +0 -0
- package/native/linux-arm64/vetto +0 -0
- package/native/linux-x64/vetto +0 -0
- package/native/win32-x64/vetto.exe +0 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ not run an install script, download code at install time, or require a Rust
|
|
|
20
20
|
toolchain. The small launcher runs on the Node.js installation that provides
|
|
21
21
|
npm.
|
|
22
22
|
|
|
23
|
-
Prebuilt targets in `0.5.
|
|
23
|
+
Prebuilt targets in `0.5.15`:
|
|
24
24
|
|
|
25
25
|
| Platform | Architecture | Native path |
|
|
26
26
|
| --- | --- | --- |
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const path = require("path");
|
|
7
|
+
const { spawn } = require("child_process");
|
|
8
|
+
|
|
9
|
+
const platform = process.platform;
|
|
10
|
+
const arch = process.arch;
|
|
11
|
+
const target = `${platform}-${arch}`;
|
|
12
|
+
const executable = platform === "win32" ? "vetto.exe" : "vetto";
|
|
13
|
+
const binary = path.join(__dirname, "..", "native", target, executable);
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(binary)) {
|
|
16
|
+
const supported = [
|
|
17
|
+
"linux-x64",
|
|
18
|
+
"linux-arm64",
|
|
19
|
+
"darwin-x64",
|
|
20
|
+
"darwin-arm64",
|
|
21
|
+
"win32-x64",
|
|
22
|
+
];
|
|
23
|
+
console.error(
|
|
24
|
+
`vetto does not include a native binary for ${target}. ` +
|
|
25
|
+
`Supported targets: ${supported.join(", ")}.`,
|
|
26
|
+
);
|
|
27
|
+
process.exitCode = 1;
|
|
28
|
+
} else {
|
|
29
|
+
const child = spawn(binary, ["bench", ...process.argv.slice(2)], {
|
|
30
|
+
stdio: "inherit",
|
|
31
|
+
windowsHide: false,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
child.on("error", (error) => {
|
|
35
|
+
console.error(`Unable to start vetto-bench: ${error.message}`);
|
|
36
|
+
process.exitCode = 1;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
child.on("close", (code, signal) => {
|
|
40
|
+
if (signal) {
|
|
41
|
+
console.error(`vetto-bench terminated by signal ${signal}`);
|
|
42
|
+
process.exitCode = 1;
|
|
43
|
+
} else {
|
|
44
|
+
process.exitCode = code === null ? 1 : code;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
Binary file
|
package/native/darwin-x64/vetto
CHANGED
|
Binary file
|
package/native/linux-arm64/vetto
CHANGED
|
Binary file
|
package/native/linux-x64/vetto
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shledery/vetto",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
4
4
|
|
|
5
5
|
"description": "Cross-platform vetto sandbox and security layer for AI coding agents",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
"url": "https://github.com/shleder/vetto/issues"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
|
-
"vetto": "bin/vetto.js"
|
|
24
|
+
"vetto": "bin/vetto.js",
|
|
25
|
+
"vetto-bench": "bin/vetto-bench.js"
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
|
-
"test": "node --check bin/vetto.js"
|
|
28
|
+
"test": "node --check bin/vetto.js && node --check bin/vetto-bench.js"
|
|
28
29
|
},
|
|
29
30
|
"files": [
|
|
30
31
|
"bin",
|