mrvn-cli 0.5.19 → 0.5.20

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/index.js CHANGED
@@ -26720,11 +26720,8 @@ async function _assessArtifactRecursive(store, client, host, options, visited, d
26720
26720
  children.push(childReport);
26721
26721
  }
26722
26722
  if (children.length > 0) {
26723
- const rolledUpProgress = computeWeightedProgress(
26724
- children.map((c) => ({
26725
- weight: resolveWeight(void 0).weight,
26726
- progress: c.marvinProgress
26727
- }))
26723
+ const rolledUpProgress = Math.round(
26724
+ children.reduce((s, c) => s + c.marvinProgress, 0) / children.length
26728
26725
  );
26729
26726
  if (rolledUpProgress !== currentProgress) {
26730
26727
  proposedUpdates.push({
@@ -26732,7 +26729,7 @@ async function _assessArtifactRecursive(store, client, host, options, visited, d
26732
26729
  field: "progress",
26733
26730
  currentValue: currentProgress,
26734
26731
  proposedValue: rolledUpProgress,
26735
- reason: `Rolled up from ${children.length} children (weighted average ${rolledUpProgress}%)`
26732
+ reason: `Rolled up from ${children.length} children (average ${rolledUpProgress}%)`
26736
26733
  });
26737
26734
  }
26738
26735
  }
@@ -26984,11 +26981,9 @@ function formatArtifactReport(report) {
26984
26981
  }
26985
26982
  if (report.children.length > 0) {
26986
26983
  const doneCount = report.children.filter((c) => DONE_STATUSES15.has(c.marvinStatus)).length;
26987
- const childWeights = report.children.map((c) => {
26988
- const { weight } = resolveWeight(void 0);
26989
- return { weight, progress: c.marvinProgress };
26990
- });
26991
- const childProgress = childWeights.length > 0 ? Math.round(childWeights.reduce((s, c) => s + c.weight * c.progress, 0) / childWeights.reduce((s, c) => s + c.weight, 0)) : 0;
26984
+ const childProgress = Math.round(
26985
+ report.children.reduce((s, c) => s + c.marvinProgress, 0) / report.children.length
26986
+ );
26992
26987
  const bar = progressBar6(childProgress);
26993
26988
  parts.push(`## Children (${doneCount}/${report.children.length} done) ${bar} ${childProgress}%`);
26994
26989
  for (const child of report.children) {
@@ -33559,7 +33554,7 @@ function createProgram() {
33559
33554
  const program = new Command();
33560
33555
  program.name("marvin").description(
33561
33556
  "AI-powered product development assistant with Product Owner, Delivery Manager, and Technical Lead personas"
33562
- ).version("0.5.19");
33557
+ ).version("0.5.20");
33563
33558
  program.command("init").description("Initialize a new Marvin project in the current directory").action(async () => {
33564
33559
  await initCommand();
33565
33560
  });