@vibe-checker/vibe-checker 0.0.2
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/bin/run.js +49 -0
- package/package.json +22 -0
package/bin/run.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require("child_process");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"linux-x64": "@vibe-checker/vibe-checker-linux-x64",
|
|
9
|
+
"linux-arm64": "@vibe-checker/vibe-checker-linux-arm64",
|
|
10
|
+
"darwin-x64": "@vibe-checker/vibe-checker-darwin-x64",
|
|
11
|
+
"darwin-arm64": "@vibe-checker/vibe-checker-darwin-arm64",
|
|
12
|
+
"win32-x64": "@vibe-checker/vibe-checker-win32-x64",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const platformKey = `${process.platform}-${process.arch}`;
|
|
16
|
+
const pkgName = PLATFORMS[platformKey];
|
|
17
|
+
|
|
18
|
+
if (!pkgName) {
|
|
19
|
+
console.error(
|
|
20
|
+
`vibe-checker: unsupported platform ${process.platform}-${process.arch}`
|
|
21
|
+
);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
let pkgDir;
|
|
26
|
+
try {
|
|
27
|
+
pkgDir = path.dirname(require.resolve(`${pkgName}/package.json`));
|
|
28
|
+
} catch {
|
|
29
|
+
console.error(
|
|
30
|
+
`vibe-checker: platform package ${pkgName} is not installed.\n` +
|
|
31
|
+
`This can happen if optional dependencies were skipped. Try reinstalling.`
|
|
32
|
+
);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const binaryName =
|
|
37
|
+
process.platform === "win32" ? "vibe-checker.exe" : "vibe-checker";
|
|
38
|
+
const binaryPath = path.join(pkgDir, "bin", binaryName);
|
|
39
|
+
|
|
40
|
+
const result = spawnSync(binaryPath, process.argv.slice(2), {
|
|
41
|
+
stdio: "inherit",
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
if (result.error) {
|
|
45
|
+
console.error(`vibe-checker: failed to start binary: ${result.error.message}`);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vibe-checker/vibe-checker",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Vibe Checker MCP server — NFR validation oracle for Claude Code and Cursor",
|
|
5
|
+
"bin": {
|
|
6
|
+
"vibe-checker": "bin/run.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin/"
|
|
10
|
+
],
|
|
11
|
+
"optionalDependencies": {
|
|
12
|
+
"@vibe-checker/vibe-checker-linux-x64": "0.0.2",
|
|
13
|
+
"@vibe-checker/vibe-checker-linux-arm64": "0.0.2",
|
|
14
|
+
"@vibe-checker/vibe-checker-darwin-x64": "0.0.2",
|
|
15
|
+
"@vibe-checker/vibe-checker-darwin-arm64": "0.0.2",
|
|
16
|
+
"@vibe-checker/vibe-checker-win32-x64": "0.0.2"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT"
|
|
22
|
+
}
|