feat: add controlled worktree creation

This commit is contained in:
Codex
2026-07-09 11:48:35 +02:00
parent 9d86263992
commit 14b290d718
6 changed files with 369 additions and 9 deletions
+5
View File
@@ -326,6 +326,11 @@ async function main(): Promise<void> {
if (top === "dev-env") {
const result = runDevEnvCommand(args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;