baro-ai 0.67.0 → 0.69.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/runner.mjs +11 -2
- package/dist/runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/runner.mjs
CHANGED
|
@@ -3734,7 +3734,7 @@ var url = process.env.CONTROL_URL ?? "wss://api.baro.jigjoy.ai";
|
|
|
3734
3734
|
var token = process.env.RUNNER_TOKEN;
|
|
3735
3735
|
var httpBase = url.replace(/^ws/, "http").replace(/\/+$/, "");
|
|
3736
3736
|
var credsPath = join(homedir(), ".baro", "credentials.json");
|
|
3737
|
-
var VERSION = "0.
|
|
3737
|
+
var VERSION = "0.69.0";
|
|
3738
3738
|
var updateCachePath = join(homedir(), ".baro", "update-check.json");
|
|
3739
3739
|
function semverLt(a, b) {
|
|
3740
3740
|
const pa = a.split(".").map(Number);
|
|
@@ -3864,6 +3864,15 @@ async function runGoal(d, emit, signal) {
|
|
|
3864
3864
|
} else {
|
|
3865
3865
|
env.GH_TOKEN = d.githubToken;
|
|
3866
3866
|
env.GITHUB_TOKEN = d.githubToken;
|
|
3867
|
+
if (d.followUp?.prNumber) {
|
|
3868
|
+
try {
|
|
3869
|
+
execFileSync("gh", ["pr", "checkout", String(d.followUp.prNumber)], { cwd, env });
|
|
3870
|
+
emit({ type: "story_log", agentId: "_git", data: { type: "story_log", id: "_git", line: `continuing on PR #${d.followUp.prNumber}\u2026` } });
|
|
3871
|
+
} catch {
|
|
3872
|
+
emit({ type: "story_log", agentId: "_git", data: { type: "story_log", id: "_git", line: `PR #${d.followUp.prNumber} not checkout-able (closed?) \u2014 opening a fresh PR` } });
|
|
3873
|
+
d.followUp = void 0;
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
3867
3876
|
}
|
|
3868
3877
|
cleanup = () => {
|
|
3869
3878
|
try {
|
|
@@ -3892,7 +3901,7 @@ async function runGoal(d, emit, signal) {
|
|
|
3892
3901
|
const outcome = await new Promise((resolve) => {
|
|
3893
3902
|
const child = spawn(
|
|
3894
3903
|
baroBin,
|
|
3895
|
-
["--headless", d.goal, "--cwd", cwd, "--llm", d.route?.backend ?? "claude", "--parallel", String(d.parallel), "--timeout", String(d.timeoutSecs), ...d.quick ? ["--quick"] : []],
|
|
3904
|
+
["--headless", d.goal, "--cwd", cwd, "--llm", d.route?.backend ?? "claude", "--parallel", String(d.parallel), "--timeout", String(d.timeoutSecs), ...d.quick ? ["--quick"] : [], ...d.followUp ? ["--continue"] : []],
|
|
3896
3905
|
{ cwd, env, stdio: ["ignore", "pipe", "pipe"] }
|
|
3897
3906
|
);
|
|
3898
3907
|
const started = Date.now();
|