@bitcobblers/wod-wiki-lang 0.62.2260 → 0.62.2262

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.mjs CHANGED
@@ -13788,7 +13788,10 @@ var CalcEngine = class {
13788
13788
  }
13789
13789
  // ── Phase 1: segment scope ─────────────────────────────────────────────
13790
13790
  process(output) {
13791
- if (output.outputType !== "segment" || !output.isLeaf) return output;
13791
+ const blockKey = String(output.sourceBlockKey ?? "").toLowerCase();
13792
+ if (output.outputType !== "segment" || !output.isLeaf || blockKey === "session-root" || blockKey.startsWith("session-root:") || blockKey.startsWith("waiting-to-start")) {
13793
+ return output;
13794
+ }
13792
13795
  const effortData = extractEffortData(output.metrics.rawMetrics);
13793
13796
  if (effortData) this.lastSegmentEffort = effortData.resolved.slug;
13794
13797
  const appliedTags = this.appliedTags(output);
@@ -13871,9 +13874,10 @@ var CalcEngine = class {
13871
13874
  }
13872
13875
  appendAnnotation(output, type, value, origin, declaredUnit, metadata) {
13873
13876
  const unit = !declaredUnit || declaredUnit === "auto" ? value.unit : declaredUnit;
13877
+ const displayUnit = type === "metMinutes" ? "MET-min" : unit;
13874
13878
  output.metrics.add({
13875
13879
  type,
13876
- image: unit ? `${formatNumber(value.value)} ${unit}` : formatNumber(value.value),
13880
+ image: displayUnit ? `${formatNumber(value.value)} ${displayUnit}` : formatNumber(value.value),
13877
13881
  value: value.value,
13878
13882
  unit,
13879
13883
  origin,