meetsoma 0.25.0 → 0.26.0
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/thin-cli.js +21 -0
- package/package.json +1 -1
package/dist/thin-cli.js
CHANGED
|
@@ -1996,6 +1996,27 @@ async function projectDoctor() {
|
|
|
1996
1996
|
return false;
|
|
1997
1997
|
}
|
|
1998
1998
|
});
|
|
1999
|
+
applyOnceAlways("memory-section-rename-v0.26.0", () => {
|
|
2000
|
+
try {
|
|
2001
|
+
const preloadDir = join3(somaDir, "memory", "preloads");
|
|
2002
|
+
if (!existsSync3(preloadDir)) return false;
|
|
2003
|
+
const files = readdirSync(preloadDir).filter((f) => f.startsWith("preload-next-") && f.endsWith(".md"));
|
|
2004
|
+
let touched = 0;
|
|
2005
|
+
for (const f of files) {
|
|
2006
|
+
const path = join3(preloadDir, f);
|
|
2007
|
+
const content = readFileSync3(path, "utf-8");
|
|
2008
|
+
if (!/^## Next Session\s*$/m.test(content)) continue;
|
|
2009
|
+
writeFileSync2(path, content.replace(/^## Next Session\s*$/m, "## Start Here"));
|
|
2010
|
+
touched++;
|
|
2011
|
+
}
|
|
2012
|
+
if (touched > 0) {
|
|
2013
|
+
console.log(` ${green("\u2713")} migration memory-section-rename-v0.26.0: renamed in ${touched} preload(s)`);
|
|
2014
|
+
}
|
|
2015
|
+
return touched > 0;
|
|
2016
|
+
} catch {
|
|
2017
|
+
return false;
|
|
2018
|
+
}
|
|
2019
|
+
});
|
|
1999
2020
|
if (migrationsChanged) writeFileSync2(settingsPath, JSON.stringify(current, null, " ") + "\n");
|
|
2000
2021
|
} catch {
|
|
2001
2022
|
}
|