@bitcobblers/wod-wiki-engine 0.55.2206 → 0.56.2210

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
@@ -940,13 +940,13 @@ function csvToTelemetryBundle(csv) {
940
940
  }
941
941
 
942
942
  // src/version.ts
943
- var VERSION = "0.55.2206";
944
- var GIT_SHA = "5735d1c";
945
- var BUILD_TIME = "2026-11-12T04:20:12.798Z";
943
+ var VERSION = "0.56.2210";
944
+ var GIT_SHA = "92d64b5";
945
+ var BUILD_TIME = "2026-11-12T20:56:12.928Z";
946
946
  var SEMVER = {
947
- version: "0.55.2206",
948
- gitSha: "5735d1c",
949
- buildTime: "2026-11-12T04:20:12.798Z"
947
+ version: "0.56.2210",
948
+ gitSha: "92d64b5",
949
+ buildTime: "2026-11-12T20:56:12.928Z"
950
950
  };
951
951
  var SEED_SCHEMA = 9;
952
952
  var SEED_REGISTERED_WIDGETS = wodWikiCore.KNOWN_SECTION_WIDGETS;
@@ -1789,10 +1789,15 @@ async function applySeedChunk(storage, write) {
1789
1789
  if (!prior || prior.isStatic === true) blocks.push(projection);
1790
1790
  }
1791
1791
  const resolvedSessions = /* @__PURE__ */ new Map();
1792
+ const userRecordedSessions = /* @__PURE__ */ new Set();
1792
1793
  for (const compiled of row.telemetry?.sessions ?? []) {
1793
1794
  if (compiledById.get(compiled.blockId)?.dataType !== "wod") throw new Error("Orphan seed session pin");
1794
1795
  const prior = existingTelemetrySessions.get(compiled.id);
1795
1796
  if (prior && prior.noteId !== id) throw new Error(`Seed session ${compiled.id} belongs to another note`);
1797
+ if (prior?.origin) {
1798
+ userRecordedSessions.add(compiled.id);
1799
+ continue;
1800
+ }
1796
1801
  const blockId = prior?.blockId ?? remap.get(compiled.blockId);
1797
1802
  if (!blockId) throw new Error("Orphan seed session pin");
1798
1803
  const block = map[blockId];
@@ -1808,6 +1813,7 @@ async function applySeedChunk(storage, write) {
1808
1813
  resolvedSessions.set(session.id, session);
1809
1814
  }
1810
1815
  for (const compiled of row.telemetry?.events ?? []) {
1816
+ if (userRecordedSessions.has(compiled.resultId)) continue;
1811
1817
  const session = resolvedSessions.get(compiled.resultId);
1812
1818
  if (!session) throw new Error("Orphan seed event result");
1813
1819
  events.push({