Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
refactor([setup-data-import-drift-tables-from-migrations]): tidy drift-table merge per /simplify
[._.]/ Adam Eivyd5f943775a81
diff --git a/scripts/migrations/_lib.js b/scripts/migrations/_lib.jsindex 9462d6dc99..5884d6b705 100644--- a/scripts/migrations/_lib.js+++ b/scripts/migrations/_lib.js@@ -254,6 +254,9 @@ export async function writeLayoutsDoc(path, doc) {* imported — this skips the heavier split/seed migrations (which pull in* server-side modules) and keeps the sweep a cheap, side-effect-free read.* `_`-prefixed files (this module) are excluded by the numeric-prefix filter.+ * Specialist prompt lineages that manage their own drift inline without+ * exporting these constants (e.g. the importer-stage migrations 015/016/020)+ * are intentionally not swept — they were never in setup-data.js's tables.** Returns `{ [subdir]: { oldMap, newMap, files } }` keyed by `'stages'` /* `'_partials'`, matching the shape `collectDrift` in setup-data.js consumes.@@ -291,8 +294,7 @@ export async function buildPromptDriftTables(migrationsDir) {// to update *to* — skip it rather than emit a half table.if (newSeq.length === 0) continue;const current = newSeq[newSeq.length - 1];- const olds = new Set(old);- for (const intermediate of newSeq.slice(0, -1)) olds.add(intermediate);+ const olds = new Set([...old, ...newSeq.slice(0, -1)]);olds.delete(current);const table = (tables[subdir] ||= { oldMap: {}, newMap: {}, files: [] });table.oldMap[name] = [...olds];