@ps-neko/nekowork 0.2.0-alpha.2 → 0.2.0-alpha.3
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/package.json +1 -1
- package/scripts/cli.js +23 -15
- package/scripts/orchestrators/verify-pr.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ps-neko/nekowork",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.3",
|
|
4
4
|
"description": "Local verification gate for AI-written code diffs. Deterministic rules decide the verdict, never the LLM. No auto-commit, push, or deploy — you decide at the Human Gate.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-code-review",
|
package/scripts/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// All 4 public verbs run LOCALLY in this package. No delegation to any other package.
|
|
5
5
|
//
|
|
6
6
|
// Public verbs: check, verify-pr, report, apply
|
|
7
|
-
// Anything else → error
|
|
7
|
+
// Anything else → error: harness verbs live in the internal (unpublished) @ps-neko/nekowork-harness; use a source checkout.
|
|
8
8
|
|
|
9
9
|
import fs from 'node:fs';
|
|
10
10
|
import path from 'node:path';
|
|
@@ -25,14 +25,7 @@ const META_FLAGS = new Set(['--version', '-v', '--help', '-h']);
|
|
|
25
25
|
const args = process.argv.slice(2);
|
|
26
26
|
const verb = args[0];
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
if (verb === '--version' || verb === '-v') {
|
|
30
|
-
const pkgPath = path.resolve(__dirname, '..', 'package.json');
|
|
31
|
-
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
32
|
-
console.log(pkg.version);
|
|
33
|
-
process.exit(0);
|
|
34
|
-
}
|
|
35
|
-
console.log(`@ps-neko/nekowork — local verification gate for AI-written code
|
|
28
|
+
const USAGE = `@ps-neko/nekowork — local verification gate for AI-written code
|
|
36
29
|
|
|
37
30
|
Usage:
|
|
38
31
|
nekowork check Probe environment readiness
|
|
@@ -52,13 +45,23 @@ verify-pr options:
|
|
|
52
45
|
--no-write don't write REPORT.md / decision.json
|
|
53
46
|
|
|
54
47
|
Need legacy / harness commands (ask / plan / team / work / ship / build / auto / ...)?
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
They live in the internal @ps-neko/nekowork-harness runtime, which is NOT
|
|
49
|
+
published to npm. Run them from a source checkout:
|
|
50
|
+
https://github.com/Ps-Neko/NEKOWORK
|
|
57
51
|
|
|
58
52
|
Docs:
|
|
59
53
|
https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/QUICKSTART.md
|
|
60
54
|
https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/SCOPE-1.0.md
|
|
61
|
-
https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/BENCHMARK.md
|
|
55
|
+
https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/BENCHMARK.md`;
|
|
56
|
+
|
|
57
|
+
if (args.length === 0 || META_FLAGS.has(verb)) {
|
|
58
|
+
if (verb === '--version' || verb === '-v') {
|
|
59
|
+
const pkgPath = path.resolve(__dirname, '..', 'package.json');
|
|
60
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
61
|
+
console.log(pkg.version);
|
|
62
|
+
process.exit(0);
|
|
63
|
+
}
|
|
64
|
+
console.log(USAGE);
|
|
62
65
|
process.exit(0);
|
|
63
66
|
}
|
|
64
67
|
|
|
@@ -70,13 +73,18 @@ if (VERBS_INTERNAL.has(verb)) {
|
|
|
70
73
|
The slim @ps-neko/nekowork supports:
|
|
71
74
|
check, verify-pr, report, apply
|
|
72
75
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
\`${verb}\` is a harness command. The harness runtime (@ps-neko/nekowork-harness)
|
|
77
|
+
is internal and NOT published to npm — run harness verbs from a source checkout:
|
|
78
|
+
https://github.com/Ps-Neko/NEKOWORK`);
|
|
76
79
|
process.exit(1);
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
async function runInternal(verb, rest) {
|
|
83
|
+
if (rest.includes('--help') || rest.includes('-h')) {
|
|
84
|
+
console.log(USAGE);
|
|
85
|
+
process.exit(0);
|
|
86
|
+
}
|
|
87
|
+
|
|
80
88
|
if (verb === 'check') {
|
|
81
89
|
const { spawnSync } = await import('node:child_process');
|
|
82
90
|
const r = spawnSync(process.execPath, [path.resolve(__dirname, 'check.js'), ...rest], { stdio: 'inherit' });
|
|
@@ -441,7 +441,7 @@ export function parseVerifyPrArgs(rest = []) {
|
|
|
441
441
|
else if (a === '--no-write') opts.write = false;
|
|
442
442
|
else if (a === '--comment-file') { opts.commentFile = nextArg(rest, ++i, '--comment-file'); }
|
|
443
443
|
else if (a === '--ci-exit-soft') opts.ciExitSoft = true;
|
|
444
|
-
else if (a === '--run-checks') process.stderr.write('warning: --run-checks is not supported in the slim @ps-neko/nekowork gate;
|
|
444
|
+
else if (a === '--run-checks') process.stderr.write('warning: --run-checks is not supported in the slim @ps-neko/nekowork gate; use the @ps-neko/nekowork-harness runtime from a source checkout for this feature\n');
|
|
445
445
|
else if (a === '--include') { (opts.includePaths = opts.includePaths || []).push(nextArg(rest, ++i, '--include')); }
|
|
446
446
|
}
|
|
447
447
|
return opts;
|