baro-ai 0.70.4 → 0.70.6

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
@@ -40564,7 +40564,13 @@ function resolveEndpoint(ref, opts) {
40564
40564
  }
40565
40565
  function resolveStoryRoute(rawModel, opts) {
40566
40566
  const raw = (opts.override ?? rawModel ?? "").trim();
40567
- if (!raw) return defaultRoute(opts.fallbackBackend, opts.openaiDefaultModel);
40567
+ if (!raw) {
40568
+ const dflt = opts.tierMap?.["default"] ?? opts.tierMap?.["*"];
40569
+ if (dflt) {
40570
+ return resolveStoryRoute(dflt, { ...opts, override: void 0, tierMap: void 0 });
40571
+ }
40572
+ return defaultRoute(opts.fallbackBackend, opts.openaiDefaultModel);
40573
+ }
40568
40574
  const direct = splitBackendModel(raw);
40569
40575
  if (direct.backend === void 0 && opts.tierMap) {
40570
40576
  const mapped = opts.tierMap[raw.toLowerCase()] ?? opts.tierMap[raw];
@@ -40798,7 +40804,8 @@ function normalizePrd(input, source) {
40798
40804
  throw new Error(`PRD at ${source} is not a JSON object`);
40799
40805
  }
40800
40806
  const project = typeof input.project === "string" ? input.project : "";
40801
- const branchName = typeof input.branchName === "string" ? input.branchName : "";
40807
+ let branchName = typeof input.branchName === "string" ? input.branchName : "";
40808
+ while (branchName.startsWith("baro/baro/")) branchName = branchName.slice("baro/".length);
40802
40809
  const description = typeof input.description === "string" ? input.description : "";
40803
40810
  const stories = Array.isArray(input.userStories) ? input.userStories : [];
40804
40811
  const decisionDocument = typeof input.decisionDocument === "string" && input.decisionDocument.trim().length > 0 ? input.decisionDocument : void 0;
@@ -47792,7 +47799,7 @@ var Surgeon = class extends BaseObserver {
47792
47799
  this.opts = {
47793
47800
  useLlm: opts.useLlm ?? true,
47794
47801
  model: opts.model ?? "opus",
47795
- maxReplans: opts.maxReplans ?? 10,
47802
+ maxReplans: opts.maxReplans ?? Infinity,
47796
47803
  claudeBin: opts.claudeBin ?? "claude",
47797
47804
  timeoutMs: opts.timeoutMs ?? 9e4,
47798
47805
  snapshot: opts.snapshot,
@@ -47953,7 +47960,7 @@ var SurgeonCodex = class extends BaseObserver {
47953
47960
  this.opts = {
47954
47961
  useLlm: opts.useLlm ?? true,
47955
47962
  model: opts.model,
47956
- maxReplans: opts.maxReplans ?? 10,
47963
+ maxReplans: opts.maxReplans ?? Infinity,
47957
47964
  codexBin: opts.codexBin ?? "codex",
47958
47965
  timeoutMs: opts.timeoutMs ?? 3e5,
47959
47966
  snapshot: opts.snapshot,
@@ -48051,7 +48058,7 @@ var SurgeonOpenAI = class extends BaseObserver {
48051
48058
  constructor(opts) {
48052
48059
  super();
48053
48060
  this.opts = {
48054
- maxReplans: opts.maxReplans ?? 10,
48061
+ maxReplans: opts.maxReplans ?? Infinity,
48055
48062
  model: opts.model ?? "gpt-5.5",
48056
48063
  snapshot: opts.snapshot,
48057
48064
  resolveRoute: opts.resolveRoute
@@ -48140,7 +48147,7 @@ var SurgeonOpenCode = class extends BaseObserver {
48140
48147
  this.opts = {
48141
48148
  useLlm: opts.useLlm ?? true,
48142
48149
  model: opts.model,
48143
- maxReplans: opts.maxReplans ?? 10,
48150
+ maxReplans: opts.maxReplans ?? Infinity,
48144
48151
  opencodeBin: opts.opencodeBin ?? "opencode",
48145
48152
  timeoutMs: opts.timeoutMs ?? 3e5,
48146
48153
  snapshot: opts.snapshot,
@@ -48220,7 +48227,7 @@ var SurgeonPi = class extends BaseObserver {
48220
48227
  useLlm: opts.useLlm ?? true,
48221
48228
  provider: opts.provider,
48222
48229
  model: opts.model,
48223
- maxReplans: opts.maxReplans ?? 10,
48230
+ maxReplans: opts.maxReplans ?? Infinity,
48224
48231
  piBin: opts.piBin ?? "pi",
48225
48232
  timeoutMs: opts.timeoutMs ?? 3e5,
48226
48233
  snapshot: opts.snapshot,