From dca12e59bdd4908a1e76da7c529ef04c6e4d3a3f Mon Sep 17 00:00:00 2001 From: callumalpass Date: Mon, 28 Sep 2026 14:13:44 +1000 Subject: [PATCH] Generate TaskNotes packs from the model's published starter The sync used the model's plugin defaults, which omit the cancelled status; that is how rc.15 regressed. It now uses buildTaskNotesStarterResources (tasknotes-model rc.14), which reproduces rc.16 byte for byte. Co-Authored-By: Claude --- scripts/sync-tasknotes-pack.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/sync-tasknotes-pack.mjs b/scripts/sync-tasknotes-pack.mjs index 7dd37c7..006e45d 100644 --- a/scripts/sync-tasknotes-pack.mjs +++ b/scripts/sync-tasknotes-pack.mjs @@ -4,8 +4,11 @@ import { pathToFileURL, fileURLToPath } from "node:url"; const root = resolve(dirname(fileURLToPath(import.meta.url)), ".."); const model = resolve(process.env.TASKNOTES_MODEL_DIR ?? join(root, "..", "tasknotes-model")); -const { buildTaskNotesMdbaseResources, buildTaskNotesMdbaseTypePack, TASKNOTES_TASK_CONTRACT_VERSION } = await import(pathToFileURL(join(model, "dist/esm/mdbase.js")).href); -const resources = buildTaskNotesMdbaseResources(); +const { buildTaskNotesMdbaseTypePack, TASKNOTES_TASK_CONTRACT_VERSION } = await import(pathToFileURL(join(model, "dist/esm/mdbase.js")).href); +// The published starter, not the model's plugin defaults: those omit the +// cancelled status and declare profiles the starter does not implement. +const { buildTaskNotesStarterResources } = await import(pathToFileURL(join(model, "dist/esm/starter.js")).href); +const resources = buildTaskNotesStarterResources(); // Also verifies the model's pinned semantic digest before importing anything. await buildTaskNotesMdbaseTypePack(resources); const version = TASKNOTES_TASK_CONTRACT_VERSION;