@bitcobblers/wod-wiki-lang 0.62.2261 → 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.cjs CHANGED
@@ -14533,7 +14533,10 @@ var CalcEngine = class {
14533
14533
  }
14534
14534
  // ── Phase 1: segment scope ─────────────────────────────────────────────
14535
14535
  process(output) {
14536
- if (output.outputType !== "segment" || !output.isLeaf) return output;
14536
+ const blockKey = String(output.sourceBlockKey ?? "").toLowerCase();
14537
+ if (output.outputType !== "segment" || !output.isLeaf || blockKey === "session-root" || blockKey.startsWith("session-root:") || blockKey.startsWith("waiting-to-start")) {
14538
+ return output;
14539
+ }
14537
14540
  const effortData = extractEffortData(output.metrics.rawMetrics);
14538
14541
  if (effortData) this.lastSegmentEffort = effortData.resolved.slug;
14539
14542
  const appliedTags = this.appliedTags(output);
@@ -14616,9 +14619,10 @@ var CalcEngine = class {
14616
14619
  }
14617
14620
  appendAnnotation(output, type, value, origin, declaredUnit, metadata) {
14618
14621
  const unit = !declaredUnit || declaredUnit === "auto" ? value.unit : declaredUnit;
14622
+ const displayUnit = type === "metMinutes" ? "MET-min" : unit;
14619
14623
  output.metrics.add({
14620
14624
  type,
14621
- image: unit ? `${formatNumber(value.value)} ${unit}` : formatNumber(value.value),
14625
+ image: displayUnit ? `${formatNumber(value.value)} ${displayUnit}` : formatNumber(value.value),
14622
14626
  value: value.value,
14623
14627
  unit,
14624
14628
  origin,