reviewgate 0.1.0-alpha.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/reviewgate.cjs +30 -0
- package/package.json +41 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
// Reviewgate npm launcher. Resolves the prebuilt platform package and execs its
|
|
4
|
+
// self-contained binary, forwarding argv + stdio. Pure CJS, zero dependencies.
|
|
5
|
+
const { spawnSync } = require("node:child_process");
|
|
6
|
+
const path = require("node:path");
|
|
7
|
+
|
|
8
|
+
const PKG = `@codevena/reviewgate-${process.platform}-${process.arch}`;
|
|
9
|
+
|
|
10
|
+
let pkgRoot;
|
|
11
|
+
try {
|
|
12
|
+
// Resolve the package.json (always present) and take its directory; avoids any
|
|
13
|
+
// dependence on an `exports` map for the binary subpath.
|
|
14
|
+
pkgRoot = path.dirname(require.resolve(`${PKG}/package.json`));
|
|
15
|
+
} catch {
|
|
16
|
+
process.stderr.write(
|
|
17
|
+
`reviewgate: no prebuilt binary for ${process.platform}-${process.arch}.\nSupported platforms: darwin-arm64, darwin-x64, linux-x64, linux-arm64 (glibc).\nIf you installed with --no-optional or --ignore-scripts, reinstall without them.\nOr install from a GitHub release: https://github.com/Codevena/reviewgate#install\n`,
|
|
18
|
+
);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const bin = path.join(pkgRoot, "reviewgate");
|
|
23
|
+
const res = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
24
|
+
if (res.error) {
|
|
25
|
+
process.stderr.write(
|
|
26
|
+
`reviewgate: failed to run the platform binary (${bin}): ${res.error.message}\n`,
|
|
27
|
+
);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
process.exit(res.status === null ? 1 : res.status);
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "reviewgate",
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
|
+
"description": "Multi-agent code review gate for Claude Code's agent loop — blocks the agent from ending its turn until an independent LLM reviewer panel signs off.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Markus Wiesecke (https://github.com/Codevena)",
|
|
7
|
+
"homepage": "https://github.com/Codevena/reviewgate#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Codevena/reviewgate.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Codevena/reviewgate/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"claude-code",
|
|
17
|
+
"code-review",
|
|
18
|
+
"ai-agent",
|
|
19
|
+
"llm",
|
|
20
|
+
"codex",
|
|
21
|
+
"gemini",
|
|
22
|
+
"openrouter",
|
|
23
|
+
"developer-tools",
|
|
24
|
+
"cli"
|
|
25
|
+
],
|
|
26
|
+
"bin": {
|
|
27
|
+
"reviewgate": "bin/reviewgate.cjs"
|
|
28
|
+
},
|
|
29
|
+
"optionalDependencies": {
|
|
30
|
+
"@codevena/reviewgate-darwin-arm64": "0.1.0-alpha.2",
|
|
31
|
+
"@codevena/reviewgate-darwin-x64": "0.1.0-alpha.2",
|
|
32
|
+
"@codevena/reviewgate-linux-x64": "0.1.0-alpha.2",
|
|
33
|
+
"@codevena/reviewgate-linux-arm64": "0.1.0-alpha.2"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=20"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"bin"
|
|
40
|
+
]
|
|
41
|
+
}
|