@bitcobblers/wod-wiki-engine 0.45.2166 → 0.46.2168

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
@@ -617,13 +617,13 @@ function csvToSessionRows(csv) {
617
617
  }
618
618
 
619
619
  // src/version.ts
620
- var VERSION = "0.45.2166";
621
- var GIT_SHA = "32bda10";
622
- var BUILD_TIME = "2026-10-26T20:01:09.868Z";
620
+ var VERSION = "0.46.2168";
621
+ var GIT_SHA = "109e0ec";
622
+ var BUILD_TIME = "2026-10-26T22:17:26.224Z";
623
623
  var SEMVER = {
624
- version: "0.45.2166",
625
- gitSha: "32bda10",
626
- buildTime: "2026-10-26T20:01:09.868Z"
624
+ version: "0.46.2168",
625
+ gitSha: "109e0ec",
626
+ buildTime: "2026-10-26T22:17:26.224Z"
627
627
  };
628
628
  var SEED_SCHEMA = 9;
629
629
  var SEED_REGISTERED_WIDGETS = wodWikiCore.KNOWN_SECTION_WIDGETS;
@@ -707,9 +707,24 @@ function assertSeedManifest(value) {
707
707
  if (value.notebooks !== void 0) {
708
708
  if (!Array.isArray(value.notebooks)) throw new Error("seed manifest failed shape validation");
709
709
  for (const nb of value.notebooks) {
710
- if (!object(nb) || typeof nb.notebookId !== "string" || typeof nb.label !== "string" || !nonnegative(nb.count) || !Array.isArray(nb.records)) {
710
+ if (!object(nb) || typeof nb.notebookId !== "string" || !nb.notebookId || typeof nb.label !== "string" || !nonnegative(nb.count) || typeof nb.indexPath !== "string" || !nb.indexPath || !nonnegative(nb.version) || typeof nb.commit !== "string" || typeof nb.builtAt !== "string" || typeof nb.sha256 !== "string" || !nonnegative(nb.bytes)) {
711
711
  throw new Error("seed manifest failed shape validation");
712
712
  }
713
+ if ("records" in nb && Array.isArray(nb.records)) {
714
+ throw new Error("seed manifest failed shape validation: manifest.notebooks must not contain inline records");
715
+ }
716
+ }
717
+ }
718
+ return value;
719
+ }
720
+ function assertNotebookIndex(value) {
721
+ if (!object(value)) throw new Error("notebook index failed shape validation");
722
+ if (typeof value.notebookId !== "string" || !value.notebookId || typeof value.label !== "string" || typeof value.indexPath !== "string" || !value.indexPath || !nonnegative(value.version) || typeof value.commit !== "string" || typeof value.builtAt !== "string" || typeof value.sha256 !== "string" || !nonnegative(value.bytes) || !nonnegative(value.count) || !Array.isArray(value.records)) {
723
+ throw new Error("notebook index failed shape validation: missing required index summary or records");
724
+ }
725
+ for (const r of value.records) {
726
+ if (!object(r) || typeof r.uuid !== "string" || typeof r.path !== "string" || typeof r.recordPath !== "string" || typeof r.commit !== "string" || !nonnegative(r.version) || typeof r.sha256 !== "string") {
727
+ throw new Error("notebook index failed shape validation: invalid record ref");
713
728
  }
714
729
  }
715
730
  return value;
@@ -1606,6 +1621,10 @@ Object.defineProperty(exports, "compileLineForm", {
1606
1621
  enumerable: true,
1607
1622
  get: function () { return wodWikiLang.compileLineForm; }
1608
1623
  });
1624
+ Object.defineProperty(exports, "compilePropertySummaryCalcs", {
1625
+ enumerable: true,
1626
+ get: function () { return wodWikiLang.compilePropertySummaryCalcs; }
1627
+ });
1609
1628
  Object.defineProperty(exports, "compoundName", {
1610
1629
  enumerable: true,
1611
1630
  get: function () { return wodWikiLang.compoundName; }
@@ -1666,14 +1685,14 @@ Object.defineProperty(exports, "evaluate", {
1666
1685
  enumerable: true,
1667
1686
  get: function () { return wodWikiLang.evaluate; }
1668
1687
  });
1669
- Object.defineProperty(exports, "evaluateCalculateDefinitions", {
1670
- enumerable: true,
1671
- get: function () { return wodWikiLang.evaluateCalculateDefinitions; }
1672
- });
1673
1688
  Object.defineProperty(exports, "extractMetrics", {
1674
1689
  enumerable: true,
1675
1690
  get: function () { return wodWikiLang.extractMetrics; }
1676
1691
  });
1692
+ Object.defineProperty(exports, "extractPropertyRulesFromMeta", {
1693
+ enumerable: true,
1694
+ get: function () { return wodWikiLang.extractPropertyRulesFromMeta; }
1695
+ });
1677
1696
  Object.defineProperty(exports, "extractStatements", {
1678
1697
  enumerable: true,
1679
1698
  get: function () { return wodWikiLang.extractStatements; }
@@ -1766,10 +1785,6 @@ Object.defineProperty(exports, "parseCalcLine", {
1766
1785
  enumerable: true,
1767
1786
  get: function () { return wodWikiLang.parseCalcLine; }
1768
1787
  });
1769
- Object.defineProperty(exports, "parseCalculateBlock", {
1770
- enumerable: true,
1771
- get: function () { return wodWikiLang.parseCalculateBlock; }
1772
- });
1773
1788
  Object.defineProperty(exports, "parseExpression", {
1774
1789
  enumerable: true,
1775
1790
  get: function () { return wodWikiLang.parseExpression; }
@@ -1822,6 +1837,10 @@ Object.defineProperty(exports, "resolveTagContributions", {
1822
1837
  enumerable: true,
1823
1838
  get: function () { return wodWikiLang.resolveTagContributions; }
1824
1839
  });
1840
+ Object.defineProperty(exports, "runMetricShakeOutQueue", {
1841
+ enumerable: true,
1842
+ get: function () { return wodWikiLang.runMetricShakeOutQueue; }
1843
+ });
1825
1844
  Object.defineProperty(exports, "strategyRegistry", {
1826
1845
  enumerable: true,
1827
1846
  get: function () { return wodWikiLang.strategyRegistry; }
@@ -2113,6 +2132,7 @@ exports.SEMVER = SEMVER;
2113
2132
  exports.SESSION_CSV_HEADER = SESSION_CSV_HEADER;
2114
2133
  exports.VERSION = VERSION;
2115
2134
  exports.applySeedChunk = applySeedChunk;
2135
+ exports.assertNotebookIndex = assertNotebookIndex;
2116
2136
  exports.assertSeedManifest = assertSeedManifest;
2117
2137
  exports.assertSeedRow = assertSeedRow;
2118
2138
  exports.assertSeedRows = assertSeedRows;