baro-ai 0.74.3 → 0.74.4
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 +7 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/run-planner.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
|
@@ -48764,6 +48764,12 @@ var Supervisor = class extends BaseObserver {
|
|
|
48764
48764
|
}
|
|
48765
48765
|
};
|
|
48766
48766
|
|
|
48767
|
+
// ../baro-orchestrator/src/planning/mode-enforcement.ts
|
|
48768
|
+
function resolveEffectiveParallel(mode, configParallel) {
|
|
48769
|
+
const forcedSerial = mode?.mode === "focused" || mode?.mode === "sequential" && mode.source === "user";
|
|
48770
|
+
return forcedSerial ? 1 : configParallel ?? 0;
|
|
48771
|
+
}
|
|
48772
|
+
|
|
48767
48773
|
// ../baro-orchestrator/src/orchestrate.ts
|
|
48768
48774
|
function storyTimeoutSecs(configured, effort) {
|
|
48769
48775
|
if (typeof configured === "number" && configured > 0) return configured;
|
|
@@ -49030,12 +49036,7 @@ async function orchestrate(config) {
|
|
|
49030
49036
|
finalizer.join(env);
|
|
49031
49037
|
}
|
|
49032
49038
|
const executionMode = loadPrd(config.prdPath).executionMode;
|
|
49033
|
-
|
|
49034
|
-
if (executionMode?.mode === "focused" || executionMode?.mode === "sequential") {
|
|
49035
|
-
effectiveParallel = 1;
|
|
49036
|
-
} else if (executionMode?.parallelism) {
|
|
49037
|
-
effectiveParallel = effectiveParallel === 0 ? executionMode.parallelism : Math.min(effectiveParallel, executionMode.parallelism);
|
|
49038
|
-
}
|
|
49039
|
+
const effectiveParallel = resolveEffectiveParallel(executionMode, config.parallel);
|
|
49039
49040
|
if (executionMode) {
|
|
49040
49041
|
process.stderr.write(
|
|
49041
49042
|
`[orchestrate] execution mode: ${executionMode.mode} (${executionMode.source ?? "contract"}) \u2014 parallel cap ${effectiveParallel === 0 ? "none" : effectiveParallel}
|