baro-ai 0.66.0 → 0.67.0
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/cli.mjs +17 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/runner.mjs +1 -1
- package/dist/runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -48266,6 +48266,18 @@ async function orchestrate(config) {
|
|
|
48266
48266
|
const useGit = config.withGit ?? await isInsideGitRepo(config.cwd);
|
|
48267
48267
|
const gitGate = new GitGate();
|
|
48268
48268
|
let baseSha = null;
|
|
48269
|
+
if (config.continueRun && useGit) {
|
|
48270
|
+
const cur = await getCurrentBranch(config.cwd);
|
|
48271
|
+
if (cur) {
|
|
48272
|
+
const prd = loadPrd(config.prdPath);
|
|
48273
|
+
if (prd.branchName !== cur) {
|
|
48274
|
+
prd.branchName = cur;
|
|
48275
|
+
savePrd(config.prdPath, prd);
|
|
48276
|
+
}
|
|
48277
|
+
process.stderr.write(`[orchestrate] continue mode \u2014 staying on branch '${cur}' (updates the existing PR)
|
|
48278
|
+
`);
|
|
48279
|
+
}
|
|
48280
|
+
}
|
|
48269
48281
|
const runId = `run-${Date.now()}-${process.pid}`;
|
|
48270
48282
|
const worktreesEnabled = config.withWorktrees ?? !("BARO_NO_WORKTREES" in process.env);
|
|
48271
48283
|
const worktrees = useGit && worktreesEnabled ? new WorktreeManager(config.cwd, gitGate, runId, {
|
|
@@ -48575,6 +48587,7 @@ function parseArgs(argv) {
|
|
|
48575
48587
|
timeout: 0,
|
|
48576
48588
|
// 0 = auto (effort-scaled in storyTimeoutSecs); --timeout N overrides absolutely
|
|
48577
48589
|
noGit: false,
|
|
48590
|
+
continueRun: false,
|
|
48578
48591
|
noTuiEvents: false,
|
|
48579
48592
|
withCritic: false,
|
|
48580
48593
|
noLibrarian: false,
|
|
@@ -48611,6 +48624,9 @@ function parseArgs(argv) {
|
|
|
48611
48624
|
case "--no-git":
|
|
48612
48625
|
args.noGit = true;
|
|
48613
48626
|
break;
|
|
48627
|
+
case "--continue":
|
|
48628
|
+
args.continueRun = true;
|
|
48629
|
+
break;
|
|
48614
48630
|
case "--no-tui-events":
|
|
48615
48631
|
args.noTuiEvents = true;
|
|
48616
48632
|
break;
|
|
@@ -48815,6 +48831,7 @@ async function main() {
|
|
|
48815
48831
|
defaultModel: args.model ?? "sonnet",
|
|
48816
48832
|
emitTuiEvents: !args.noTuiEvents,
|
|
48817
48833
|
withGit: args.noGit ? false : void 0,
|
|
48834
|
+
continueRun: args.continueRun || process.env.BARO_CONTINUE === "1",
|
|
48818
48835
|
auditLogPath: args.auditLog,
|
|
48819
48836
|
withCritic: args.withCritic,
|
|
48820
48837
|
criticModel: args.criticModel,
|