baro-ai 0.47.3 → 0.47.5

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 CHANGED
@@ -44323,6 +44323,19 @@ var SurgeonOpenAI = class extends BaseObserver {
44323
44323
  };
44324
44324
 
44325
44325
  // ../baro-orchestrator/src/orchestrate.ts
44326
+ function storyTimeoutSecs(configured, effort) {
44327
+ if (typeof configured === "number" && configured > 0) return configured;
44328
+ switch (effort) {
44329
+ case "max":
44330
+ return 1500;
44331
+ case "xhigh":
44332
+ return 1200;
44333
+ case "high":
44334
+ return 900;
44335
+ default:
44336
+ return 600;
44337
+ }
44338
+ }
44326
44339
  async function orchestrate(config) {
44327
44340
  const env = new AgenticEnvironment();
44328
44341
  const emitTui = config.emitTuiEvents ?? true;
@@ -44444,7 +44457,7 @@ async function orchestrate(config) {
44444
44457
  prdPath: config.prdPath,
44445
44458
  cwd: config.cwd,
44446
44459
  parallel: config.parallel ?? 0,
44447
- timeoutSecs: config.timeoutSecs ?? 600,
44460
+ timeoutSecs: storyTimeoutSecs(config.timeoutSecs, config.effort),
44448
44461
  overrideModel: config.overrideModel ?? void 0,
44449
44462
  defaultModel: config.defaultModel ?? "opus",
44450
44463
  intraLevelDelaySecs: config.intraLevelDelaySecs,
@@ -44577,7 +44590,8 @@ function parseArgs(argv) {
44577
44590
  prd: "prd.json",
44578
44591
  cwd: ".",
44579
44592
  parallel: 0,
44580
- timeout: 600,
44593
+ timeout: 0,
44594
+ // 0 = auto (effort-scaled in storyTimeoutSecs); --timeout N overrides absolutely
44581
44595
  noGit: false,
44582
44596
  noTuiEvents: false,
44583
44597
  withCritic: false,
@@ -44709,7 +44723,7 @@ function printHelp() {
44709
44723
  " --prd <path> Path to prd.json (default: ./prd.json)",
44710
44724
  " --cwd <path> Working directory (default: .)",
44711
44725
  " --parallel <N> Max parallel stories per level (0 = unlimited)",
44712
- " --timeout <secs> Per-story timeout (default: 600)",
44726
+ " --timeout <secs> Per-story timeout (default: auto \u2014 effort-scaled; any value overrides)",
44713
44727
  " --model <name> Override model (opus, sonnet, haiku)",
44714
44728
  " --no-git Skip git lifecycle (branch / push)",
44715
44729
  " --no-tui-events Skip BaroEvent JSON emission",