baro-ai 0.74.6 → 0.74.7

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 CHANGED
@@ -3755,7 +3755,7 @@ var url = process.env.CONTROL_URL ?? "wss://api.baro.jigjoy.ai";
3755
3755
  var token = process.env.RUNNER_TOKEN;
3756
3756
  var httpBase = url.replace(/^ws/, "http").replace(/\/+$/, "");
3757
3757
  var credsPath = join(homedir(), ".baro", "credentials.json");
3758
- var VERSION = "0.74.6";
3758
+ var VERSION = "0.74.7";
3759
3759
  var updateCachePath = join(homedir(), ".baro", "update-check.json");
3760
3760
  async function getLatest(force = false) {
3761
3761
  if (!force) {
@@ -4053,7 +4053,7 @@ async function runGoal(d, emit, signal) {
4053
4053
  const outcome = await new Promise((resolve) => {
4054
4054
  const child = spawn(
4055
4055
  baroBin,
4056
- ["--headless", d.goal, "--cwd", cwd, "--llm", d.route?.backend ?? "claude", "--parallel", String(d.parallel), "--timeout", String(d.timeoutSecs), ...d.quick ? ["--quick"] : [], ...d.followUp ? ["--continue"] : []],
4056
+ ["--headless", d.goal, "--cwd", cwd, "--llm", d.route?.backend ?? "claude", "--parallel", String(d.parallel), "--timeout", String(d.timeoutSecs), ...d.quick ? ["--quick"] : [], ...d.confirmMode ? ["--confirm-mode"] : [], ...d.followUp ? ["--continue"] : []],
4057
4057
  // stdin is piped: baro --headless forwards JSON command lines
4058
4058
  // (agent_message) into the orchestrator's stdin lane.
4059
4059
  { cwd, env, stdio: ["pipe", "pipe", "pipe"] }
@@ -4189,6 +4189,13 @@ function handleMessage(m) {
4189
4189
  const stdin = activeChild?.stdin;
4190
4190
  if (stdin && stdin.writable && !stdin.destroyed) {
4191
4191
  stdin.write(`${JSON.stringify({ type: "agent_message", id: storyId, text })}
4192
+ `);
4193
+ }
4194
+ } else if (m.t === "confirm_mode") {
4195
+ const { mode } = m;
4196
+ const stdin = activeChild?.stdin;
4197
+ if (stdin && stdin.writable && !stdin.destroyed) {
4198
+ stdin.write(`${JSON.stringify({ kind: "confirm_mode", mode })}
4192
4199
  `);
4193
4200
  }
4194
4201
  } else if (m.t === "dispatch_run") {