@nk070281sjv/cli 2.3.21 → 2.3.22
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/dist/index.js +26 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30779,7 +30779,7 @@ ${hint}
|
|
|
30779
30779
|
}
|
|
30780
30780
|
|
|
30781
30781
|
// src/lib/version.ts
|
|
30782
|
-
var CLI_VERSION = true ? "2.3.
|
|
30782
|
+
var CLI_VERSION = true ? "2.3.22" : createRequire(import.meta.url)("../../package.json").version;
|
|
30783
30783
|
|
|
30784
30784
|
// src/lib/deps.ts
|
|
30785
30785
|
init_src();
|
|
@@ -35028,8 +35028,11 @@ function validateAggregationJson(value) {
|
|
|
35028
35028
|
expectStringArray(f.source_findings, `findings[${index}].source_findings`, errors);
|
|
35029
35029
|
expectEnum(f.signal, VALID_SIGNALS, `findings[${index}].signal`, errors);
|
|
35030
35030
|
expectEnum(f.severity, VALID_SEVERITIES2, `findings[${index}].severity`, errors);
|
|
35031
|
-
|
|
35032
|
-
expectString(f.
|
|
35031
|
+
expectStringArray(f.file_refs, `findings[${index}].file_refs`, errors);
|
|
35032
|
+
expectString(f.claim, `findings[${index}].claim`, errors);
|
|
35033
|
+
expectString(f.evidence, `findings[${index}].evidence`, errors);
|
|
35034
|
+
expectString(f.developer_impact, `findings[${index}].developer_impact`, errors);
|
|
35035
|
+
expectStringArray(f.validation_steps, `findings[${index}].validation_steps`, errors);
|
|
35033
35036
|
expectString(f.fix_direction, `findings[${index}].fix_direction`, errors);
|
|
35034
35037
|
});
|
|
35035
35038
|
}
|
|
@@ -38151,6 +38154,10 @@ function pipelinePrompt(context, stage, agent, promptPath, artifactPath) {
|
|
|
38151
38154
|
"- Preserve markdown structure, headings, bullets, code spans, file paths, line numbers, and the fenced ```ocr-json block exactly as data.",
|
|
38152
38155
|
"- Do not translate JSON field names, enum values, file paths, code identifiers, stack traces, commands, or model names.",
|
|
38153
38156
|
"- Do not add new findings, remove findings, change severity/category/verdict, or change counts."
|
|
38157
|
+
] : stage === "aggregation" ? [
|
|
38158
|
+
"- Return only one fenced ```ocr-json block and no prose outside it.",
|
|
38159
|
+
"- Keep the output compact: at most 8 findings and at most 12 dropped entries.",
|
|
38160
|
+
"- Do not include code snippets, long quotes, markdown tables, or reviewer narrative."
|
|
38154
38161
|
] : ["- Include exactly one fenced ```ocr-json block."],
|
|
38155
38162
|
"- Do not write files directly.",
|
|
38156
38163
|
"",
|
|
@@ -38173,8 +38180,10 @@ function schemaHint(stage) {
|
|
|
38173
38180
|
if (stage === "aggregation") {
|
|
38174
38181
|
return [
|
|
38175
38182
|
"AggregationJson:",
|
|
38176
|
-
"- Output exactly this JSON shape inside one fenced ```ocr-json block.",
|
|
38183
|
+
"- Output exactly this compact JSON shape inside one fenced ```ocr-json block.",
|
|
38177
38184
|
"- Do not rename fields. Do not use markdown tables inside the JSON block.",
|
|
38185
|
+
"- Keep only high-signal findings that a developer or validation agent can act on.",
|
|
38186
|
+
"- Merge duplicates across reviewers into one finding with multiple `source_findings`.",
|
|
38178
38187
|
"",
|
|
38179
38188
|
"```json",
|
|
38180
38189
|
"{",
|
|
@@ -38185,8 +38194,11 @@ function schemaHint(stage) {
|
|
|
38185
38194
|
' "source_findings": ["architect-1:finding-or-heading"],',
|
|
38186
38195
|
' "signal": "keep",',
|
|
38187
38196
|
' "severity": "high",',
|
|
38188
|
-
' "
|
|
38189
|
-
' "
|
|
38197
|
+
' "file_refs": ["src/main/java/example/File.java:42"],',
|
|
38198
|
+
' "claim": "What may be wrong, stated as a verifiable hypothesis.",',
|
|
38199
|
+
' "evidence": "Why reviewers believe this may be wrong.",',
|
|
38200
|
+
' "developer_impact": "What user/system behavior would be affected if confirmed.",',
|
|
38201
|
+
' "validation_steps": ["Check the write path for a uniqueness boundary."],',
|
|
38190
38202
|
' "fix_direction": "Concrete direction for the fix."',
|
|
38191
38203
|
" }",
|
|
38192
38204
|
" ],",
|
|
@@ -38201,7 +38213,9 @@ function schemaHint(stage) {
|
|
|
38201
38213
|
"",
|
|
38202
38214
|
'- `signal` must be one of: "keep", "merge", "needs_validation", "likely_noise", "false_positive_candidate".',
|
|
38203
38215
|
'- `severity` must be one of: "critical", "high", "medium", "low", "info".',
|
|
38204
|
-
"- `source_findings` must always be
|
|
38216
|
+
"- `source_findings`, `file_refs`, and `validation_steps` must always be arrays of non-empty strings.",
|
|
38217
|
+
"- Limit each string field to roughly 320 characters. Limit arrays to the most relevant entries.",
|
|
38218
|
+
"- Prefer dropping low/info/style-only noise over producing an overlong aggregation."
|
|
38205
38219
|
].join("\n");
|
|
38206
38220
|
}
|
|
38207
38221
|
if (stage === "validation") {
|
|
@@ -38209,6 +38223,9 @@ function schemaHint(stage) {
|
|
|
38209
38223
|
"ValidationJson:",
|
|
38210
38224
|
"- Output exactly this JSON shape inside one fenced ```ocr-json block.",
|
|
38211
38225
|
"- Do not rename fields. Do not use markdown tables inside the JSON block.",
|
|
38226
|
+
"- Use aggregation `claim`, `evidence`, `file_refs`, and `validation_steps` as the checklist for each finding.",
|
|
38227
|
+
"- Verify claims against the actual code before confirming. Do not trust reviewer text without code evidence.",
|
|
38228
|
+
"- Put every aggregation finding into exactly one of `confirmed`, `downgraded`, or `rejected`.",
|
|
38212
38229
|
"",
|
|
38213
38230
|
"```json",
|
|
38214
38231
|
"{",
|
|
@@ -38249,6 +38266,8 @@ function schemaHint(stage) {
|
|
|
38249
38266
|
"SynthesisJson:",
|
|
38250
38267
|
"- Output exactly this JSON shape inside one fenced ```ocr-json block.",
|
|
38251
38268
|
"- Do not rename fields. Do not use markdown tables inside the JSON block.",
|
|
38269
|
+
"- Write developer-facing findings from validation results, not from unvalidated reviewer claims.",
|
|
38270
|
+
"- Include only confirmed and downgraded issues that a developer can act on.",
|
|
38252
38271
|
"",
|
|
38253
38272
|
"```json",
|
|
38254
38273
|
"{",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nk070281sjv/cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.22",
|
|
4
4
|
"description": "CLI for Open Code Review - Multi-environment setup and progress tracking",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@inquirer/prompts": "^7.2.0",
|
|
40
|
-
"@nk070281sjv/agents": "2.3.
|
|
40
|
+
"@nk070281sjv/agents": "2.3.22",
|
|
41
41
|
"chalk": "^5.4.1",
|
|
42
42
|
"chokidar": "^4.0.3",
|
|
43
43
|
"commander": "^13.0.0",
|