@ps-neko/nekowork 0.2.0-alpha.2 → 0.2.0-alpha.4
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 +12 -11
- package/package.json +1 -1
- package/scripts/cli.js +23 -15
- package/scripts/orchestrators/verify-pr.js +1 -1
package/README.md
CHANGED
|
@@ -10,23 +10,24 @@ pushes, or deploys on its own.
|
|
|
10
10
|
|
|
11
11
|
## Status
|
|
12
12
|
|
|
13
|
-
**Published alpha** (`@ps-neko/nekowork`, alpha dist-tag). This package is the
|
|
14
|
-
published slim verification gate.
|
|
13
|
+
**Published alpha** (`@ps-neko/nekowork`, `@alpha` dist-tag). This package is the
|
|
14
|
+
published slim verification gate. Always install with the **`@alpha`** tag —
|
|
15
|
+
`latest` is pinned to an old `0.2.0-alpha.0` and is not the alpha line:
|
|
15
16
|
|
|
16
17
|
```bash
|
|
17
|
-
npm i -g @ps-neko/nekowork
|
|
18
|
+
npm i -g @ps-neko/nekowork@alpha
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
The fuller legacy and power-user surface lives in the internal
|
|
21
22
|
`@ps-neko/nekowork-harness` package (not separately published). See
|
|
22
|
-
[HANDOFF-PACKAGE-SPLIT.md](
|
|
23
|
+
[HANDOFF-PACKAGE-SPLIT.md](https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork/HANDOFF-PACKAGE-SPLIT.md) for the split history.
|
|
23
24
|
|
|
24
25
|
## Quickstart
|
|
25
26
|
|
|
26
27
|
```bash
|
|
27
28
|
# right after your AI tool changes some files:
|
|
28
|
-
npx -y @ps-neko/nekowork check # 30-sec environment check
|
|
29
|
-
npx -y @ps-neko/nekowork verify-pr # scan the diff → get a verdict
|
|
29
|
+
npx -y @ps-neko/nekowork@alpha check # 30-sec environment check
|
|
30
|
+
npx -y @ps-neko/nekowork@alpha verify-pr # scan the diff → get a verdict
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
`verify-pr` reads the diff, writes a plain-English `REPORT.md`, and tells you
|
|
@@ -39,7 +40,7 @@ whether the change is safe to merge.
|
|
|
39
40
|
| `check` | Probe environment readiness (Node version, git repo, etc.) |
|
|
40
41
|
| `verify-pr` | Scan working-tree diff. Produce REPORT.md + .nekowork/decision.json |
|
|
41
42
|
| `report` | Render an existing decision.json to a human-readable REPORT.md |
|
|
42
|
-
| `apply` | Session-based compatibility apply. Requires a completed work cycle (SHIP_READY marker + cleared Human Gate). NOT driven by verify-pr's decision.json. See [ADVANCED.md](
|
|
43
|
+
| `apply` | Session-based compatibility apply. Requires a completed work cycle (SHIP_READY marker + cleared Human Gate). NOT driven by verify-pr's decision.json. See [ADVANCED.md](https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/ADVANCED.md). |
|
|
43
44
|
|
|
44
45
|
Anything else (`ask`, `plan`, `team`, `work`, `ship`, `build`, `auto`,
|
|
45
46
|
`pr-prep`, `review`, ...) belongs to `@ps-neko/nekowork-harness` (legacy and
|
|
@@ -63,10 +64,10 @@ step — it is not triggered by `decision.json`.
|
|
|
63
64
|
|
|
64
65
|
## Docs
|
|
65
66
|
|
|
66
|
-
- [Quickstart](
|
|
67
|
-
- [How verification works](
|
|
68
|
-
- [Benchmark](
|
|
69
|
-
- [Integration](
|
|
67
|
+
- [Quickstart](https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/QUICKSTART.md)
|
|
68
|
+
- [How verification works](https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/SCOPE-1.0.md)
|
|
69
|
+
- [Benchmark](https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/BENCHMARK.md) — 85/86 (99%) recall, 0/47 FP, 30 real OSS positives (secret-fallback)
|
|
70
|
+
- [Integration](https://github.com/Ps-Neko/NEKOWORK/blob/main/packages/nekowork-cli/docs/INTEGRATION.md)
|
|
70
71
|
|
|
71
72
|
## License
|
|
72
73
|
|
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.4",
|
|
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;
|