@nk070281sjv/cli 2.3.17 → 2.3.18
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 +4 -0
- package/dist/index.js +12 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -86,6 +86,9 @@ the round stops instead of continuing with a partial team or fabricated output.
|
|
|
86
86
|
For normal OpenCode use, run `ocr review run-agents --fresh` without
|
|
87
87
|
`--background`; the command keeps the shell call active, prints progress, and
|
|
88
88
|
returns only when the review is completed or failed.
|
|
89
|
+
If a parent tool regains control while the review is still running, use
|
|
90
|
+
`ocr review wait --session-id <id>` to block until completion instead of
|
|
91
|
+
returning a mid-run summary.
|
|
89
92
|
|
|
90
93
|
## Commands
|
|
91
94
|
|
|
@@ -170,6 +173,7 @@ by the dashboard or installed `/ocr-review` command, not typed by hand.
|
|
|
170
173
|
```bash
|
|
171
174
|
ocr review run-agents --session-id <session-id> --round <n>
|
|
172
175
|
ocr review run-agents [target] --fresh --requirements <text-or-path> --team <json>
|
|
176
|
+
ocr review wait --session-id <session-id>
|
|
173
177
|
```
|
|
174
178
|
|
|
175
179
|
This path owns process spawning and artifact writing. Agents return stdout and
|
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.18" : createRequire(import.meta.url)("../../package.json").version;
|
|
30783
30783
|
|
|
30784
30784
|
// src/lib/deps.ts
|
|
30785
30785
|
init_src();
|
|
@@ -39184,6 +39184,16 @@ var watchSubcommand = new Command("watch").description("Watch process-agent revi
|
|
|
39184
39184
|
renderReviewStatus(session.session_dir, round);
|
|
39185
39185
|
}, Math.max(1, options.interval) * 1e3);
|
|
39186
39186
|
});
|
|
39187
|
+
var waitSubcommand = new Command("wait").description("Block until a process-agent review completes or fails").requiredOption("--session-id <workflow-session-id>", "Workflow session id").option("--round <n>", "Round number", (value) => Number.parseInt(value, 10)).action(async (options) => {
|
|
39188
|
+
const targetDir = process.cwd();
|
|
39189
|
+
requireOcrSetup(targetDir);
|
|
39190
|
+
const ocrDir = join28(targetDir, ".ocr");
|
|
39191
|
+
const db = await ensureDatabase(ocrDir);
|
|
39192
|
+
const session = getSession(db, options.sessionId);
|
|
39193
|
+
if (!session) fail3(`Workflow session not found: ${options.sessionId}`);
|
|
39194
|
+
const exitCode = await waitForDetachedRun(session.session_dir, options.round ?? session.current_round);
|
|
39195
|
+
process.exit(exitCode);
|
|
39196
|
+
});
|
|
39187
39197
|
function spawnDetachedRunAgents(input) {
|
|
39188
39198
|
const roundDir = join28(input.sessionDir, "rounds", `round-${input.round}`);
|
|
39189
39199
|
mkdirSync8(join28(roundDir, "process-logs"), { recursive: true });
|
|
@@ -39541,6 +39551,7 @@ var reviewCommand = new Command("review").description("Run or resume an OCR revi
|
|
|
39541
39551
|
reviewCommand.addCommand(runAgentsSubcommand);
|
|
39542
39552
|
reviewCommand.addCommand(statusSubcommand2);
|
|
39543
39553
|
reviewCommand.addCommand(watchSubcommand);
|
|
39554
|
+
reviewCommand.addCommand(waitSubcommand);
|
|
39544
39555
|
|
|
39545
39556
|
// src/commands/update.ts
|
|
39546
39557
|
import { existsSync as existsSync24 } from "node:fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nk070281sjv/cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.18",
|
|
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.18",
|
|
41
41
|
"chalk": "^5.4.1",
|
|
42
42
|
"chokidar": "^4.0.3",
|
|
43
43
|
"commander": "^13.0.0",
|