baro-ai 0.70.5 → 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 +9 -2
- 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
|
@@ -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)
|
|
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
|
-
|
|
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;
|