mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-29 00:36:22 +00:00
Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before starting the server-client architecture migration and domain features described in docs/agent-guide and the approved implementation plan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
commit
40631362b3
2016 files changed
+543898
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const renderPath = path.join(__dirname, "..", "src", "logseq", "publish", "render.cljs");
|
||||
const source = fs.readFileSync(renderPath, "utf8");
|
||||
const timestamp = Date.now();
|
||||
|
||||
const next = source.replace(
|
||||
/\(defonce version [^)]+\)/,
|
||||
`(defonce version ${timestamp})`
|
||||
);
|
||||
|
||||
if (next === source) {
|
||||
throw new Error("Failed to update logseq.publish.render/version.");
|
||||
}
|
||||
|
||||
fs.writeFileSync(renderPath, next);
|
||||
Reference in new issue
Block a user