@bitcobblers/wod-wiki-engine 0.45.2167 → 0.47.2169

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.2167";
621
- var GIT_SHA = "d9859fd";
622
- var BUILD_TIME = "2026-10-26T20:26:47.975Z";
620
+ var VERSION = "0.47.2169";
621
+ var GIT_SHA = "388d659";
622
+ var BUILD_TIME = "2026-10-26T23:06:14.030Z";
623
623
  var SEMVER = {
624
- version: "0.45.2167",
625
- gitSha: "d9859fd",
626
- buildTime: "2026-10-26T20:26:47.975Z"
624
+ version: "0.47.2169",
625
+ gitSha: "388d659",
626
+ buildTime: "2026-10-26T23:06:14.030Z"
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,18 +1685,22 @@ 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; }
1680
1699
  });
1700
+ Object.defineProperty(exports, "extractTagPropertyRules", {
1701
+ enumerable: true,
1702
+ get: function () { return wodWikiLang.extractTagPropertyRules; }
1703
+ });
1681
1704
  Object.defineProperty(exports, "findBestFuzzyMatch", {
1682
1705
  enumerable: true,
1683
1706
  get: function () { return wodWikiLang.findBestFuzzyMatch; }
@@ -1766,10 +1789,6 @@ Object.defineProperty(exports, "parseCalcLine", {
1766
1789
  enumerable: true,
1767
1790
  get: function () { return wodWikiLang.parseCalcLine; }
1768
1791
  });
1769
- Object.defineProperty(exports, "parseCalculateBlock", {
1770
- enumerable: true,
1771
- get: function () { return wodWikiLang.parseCalculateBlock; }
1772
- });
1773
1792
  Object.defineProperty(exports, "parseExpression", {
1774
1793
  enumerable: true,
1775
1794
  get: function () { return wodWikiLang.parseExpression; }
@@ -1822,6 +1841,10 @@ Object.defineProperty(exports, "resolveTagContributions", {
1822
1841
  enumerable: true,
1823
1842
  get: function () { return wodWikiLang.resolveTagContributions; }
1824
1843
  });
1844
+ Object.defineProperty(exports, "runMetricShakeOutQueue", {
1845
+ enumerable: true,
1846
+ get: function () { return wodWikiLang.runMetricShakeOutQueue; }
1847
+ });
1825
1848
  Object.defineProperty(exports, "strategyRegistry", {
1826
1849
  enumerable: true,
1827
1850
  get: function () { return wodWikiLang.strategyRegistry; }
@@ -2113,6 +2136,7 @@ exports.SEMVER = SEMVER;
2113
2136
  exports.SESSION_CSV_HEADER = SESSION_CSV_HEADER;
2114
2137
  exports.VERSION = VERSION;
2115
2138
  exports.applySeedChunk = applySeedChunk;
2139
+ exports.assertNotebookIndex = assertNotebookIndex;
2116
2140
  exports.assertSeedManifest = assertSeedManifest;
2117
2141
  exports.assertSeedRow = assertSeedRow;
2118
2142
  exports.assertSeedRows = assertSeedRows;