@bitcobblers/wod-wiki-engine 0.36.2135 → 0.37.2137

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.d.cts CHANGED
@@ -215,13 +215,13 @@ declare function csvToSessionRows(csv: string): SessionImportRows;
215
215
  * Auto-generated build version metadata.
216
216
  * Do not edit directly; updated by scripts/stamp-version.ts
217
217
  */
218
- declare const VERSION = "0.36.2135";
219
- declare const GIT_SHA = "6ca4956";
220
- declare const BUILD_TIME = "2026-10-16T00:56:41.034Z";
218
+ declare const VERSION = "0.37.2137";
219
+ declare const GIT_SHA = "b82a721";
220
+ declare const BUILD_TIME = "2026-10-16T20:56:02.597Z";
221
221
  declare const SEMVER: {
222
- readonly version: "0.36.2135";
223
- readonly gitSha: "6ca4956";
224
- readonly buildTime: "2026-10-16T00:56:41.034Z";
222
+ readonly version: "0.37.2137";
223
+ readonly gitSha: "b82a721";
224
+ readonly buildTime: "2026-10-16T20:56:02.597Z";
225
225
  };
226
226
 
227
227
  declare const SEED_SCHEMA = 8;
@@ -244,6 +244,9 @@ interface ManifestChunk {
244
244
  kind?: ChunkKind;
245
245
  }
246
246
  interface SeedManifest {
247
+ name?: string;
248
+ description?: string;
249
+ repositoryUrl?: string;
247
250
  schema: number;
248
251
  version: number;
249
252
  versionLabel?: string;
package/dist/index.d.ts CHANGED
@@ -215,13 +215,13 @@ declare function csvToSessionRows(csv: string): SessionImportRows;
215
215
  * Auto-generated build version metadata.
216
216
  * Do not edit directly; updated by scripts/stamp-version.ts
217
217
  */
218
- declare const VERSION = "0.36.2135";
219
- declare const GIT_SHA = "6ca4956";
220
- declare const BUILD_TIME = "2026-10-16T00:56:41.034Z";
218
+ declare const VERSION = "0.37.2137";
219
+ declare const GIT_SHA = "b82a721";
220
+ declare const BUILD_TIME = "2026-10-16T20:56:02.597Z";
221
221
  declare const SEMVER: {
222
- readonly version: "0.36.2135";
223
- readonly gitSha: "6ca4956";
224
- readonly buildTime: "2026-10-16T00:56:41.034Z";
222
+ readonly version: "0.37.2137";
223
+ readonly gitSha: "b82a721";
224
+ readonly buildTime: "2026-10-16T20:56:02.597Z";
225
225
  };
226
226
 
227
227
  declare const SEED_SCHEMA = 8;
@@ -244,6 +244,9 @@ interface ManifestChunk {
244
244
  kind?: ChunkKind;
245
245
  }
246
246
  interface SeedManifest {
247
+ name?: string;
248
+ description?: string;
249
+ repositoryUrl?: string;
247
250
  schema: number;
248
251
  version: number;
249
252
  versionLabel?: string;
package/dist/index.mjs CHANGED
@@ -648,13 +648,13 @@ function csvToSessionRows(csv) {
648
648
  }
649
649
 
650
650
  // src/version.ts
651
- var VERSION = "0.36.2135";
652
- var GIT_SHA = "6ca4956";
653
- var BUILD_TIME = "2026-10-16T00:56:41.034Z";
651
+ var VERSION = "0.37.2137";
652
+ var GIT_SHA = "b82a721";
653
+ var BUILD_TIME = "2026-10-16T20:56:02.597Z";
654
654
  var SEMVER = {
655
- version: "0.36.2135",
656
- gitSha: "6ca4956",
657
- buildTime: "2026-10-16T00:56:41.034Z"
655
+ version: "0.37.2137",
656
+ gitSha: "b82a721",
657
+ buildTime: "2026-10-16T20:56:02.597Z"
658
658
  };
659
659
  var SEED_SCHEMA = 8;
660
660
  var SEED_REGISTERED_WIDGETS = KNOWN_SECTION_WIDGETS;
@@ -840,7 +840,8 @@ function nonnegative(value) {
840
840
  function assertSeedManifest(value) {
841
841
  if (!object(value) || value.schema !== SEED_SCHEMA) throw new Error("Incompatible seed schema; rebuild seed artifacts");
842
842
  if (!nonnegative(value.version) || typeof value.builtAt !== "string" || !Number.isFinite(Date.parse(value.builtAt)) || !Array.isArray(value.chunks)) throw new Error("seed manifest failed shape validation");
843
- for (const key of ["versionLabel", "commit"]) if (value[key] !== void 0 && typeof value[key] !== "string") throw new Error("invalid seed manifest metadata");
843
+ for (const key of ["versionLabel", "commit", "name", "description"]) if (value[key] !== void 0 && typeof value[key] !== "string") throw new Error("invalid seed manifest metadata");
844
+ if (value.repositoryUrl !== void 0 && (typeof value.repositoryUrl !== "string" || !/^https:\/\//.test(value.repositoryUrl) || new URL(value.repositoryUrl).username || new URL(value.repositoryUrl).password)) throw new Error("invalid seed repository URL");
844
845
  if (value.dirty !== void 0 && typeof value.dirty !== "boolean") throw new Error("invalid seed manifest metadata");
845
846
  const ids = /* @__PURE__ */ new Set(), paths = /* @__PURE__ */ new Set();
846
847
  for (const chunk of value.chunks) {
@@ -1006,7 +1007,14 @@ async function applySeedChunk(storage, write) {
1006
1007
  const title = typeof fm["title"] === "string" && fm["title"].trim() ? fm["title"].trim() : titleFromPath(row.path);
1007
1008
  const sourceId = write.chunkId ? seedNoteSourceId(row.path, row.content, write.chunkId) : void 0;
1008
1009
  if (!sourceId) throw new Error(`Unknown seed source family ${write.chunkId}`);
1009
- const date = typeof fm["date"] === "string" && /^\d{4}-\d{2}-\d{2}$/.test(fm["date"]) ? Date.parse(`${fm["date"]}T12:00:00Z`) : void 0;
1010
+ const dateMatch = typeof fm["date"] === "string" ? fm["date"].match(/^(\d{4})-(\d{2})-(\d{2})$/) : null;
1011
+ let date;
1012
+ if (dateMatch) {
1013
+ const ts = Date.parse(`${fm["date"]}T12:00:00Z`);
1014
+ const real = Number.isFinite(ts) && new Date(ts).getUTCMonth() === Number(dateMatch[2]) - 1 && new Date(ts).getUTCDate() === Number(dateMatch[3]);
1015
+ if (!real) throw new Error(`invalid frontmatter date '${fm["date"]}' in '${row.path}' \u2014 expected a real calendar day (YYYY-MM-DD)`);
1016
+ date = ts;
1017
+ }
1010
1018
  const note = { ...existing, id, title, rawContent: row.content, sourceRevision, blocks: map, createdAt: write.manifest.version, ...date === void 0 ? {} : { date }, type: write.chunkId === DASHBOARDS_CHUNK_ID ? "dashboard" : "note", sourceId, catalog: catalogForChunkId(write.chunkId ?? ""), seedOrigin: "seed", seedVersion: write.manifest.version, seedChunkId: write.chunkId ?? void 0, sourcePath: row.path };
1011
1019
  if (date === void 0) delete note.date;
1012
1020
  if (!equal(note, existing)) changedNotes.push(note);