release: Mnemazine
Local-first memory system: raw material in, finished notes out. Synthesis on write. This release brings a guided install that explains itself and ends with a live demo pass, eleven fixes to the knowledge pipeline found by running it against a real archive of 216 sources, and a documentation pass in the project's own voice.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { promises as fs } from 'node:fs'
|
||||
import { existsSync, readFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { SPEC_TYPES } from './mnemazine-note-spec.mjs'
|
||||
import { resolveVault } from './mnemazine-paths.mjs'
|
||||
|
||||
const ROOT = process.env.MNEMAZINE_ROOT || path.resolve(process.cwd())
|
||||
@@ -63,6 +64,11 @@ function titleOf(text, file) {
|
||||
path.basename(file, '.md')
|
||||
}
|
||||
|
||||
function frontmatterType(text) {
|
||||
const match = String(text || '').match(/^type:\s*["']?([^"'\n#]+)["']?\s*(?:#.*)?$/m)
|
||||
return match ? match[1].trim() : ''
|
||||
}
|
||||
|
||||
async function walk(dir) {
|
||||
const out = []
|
||||
async function visit(folder) {
|
||||
@@ -158,7 +164,7 @@ async function collectTools() {
|
||||
const stat = await fs.stat(file)
|
||||
if (SINCE_MS && stat.mtimeMs < SINCE_MS) continue
|
||||
const text = await fs.readFile(file, 'utf8').catch(() => '')
|
||||
if (!/type:\s*"knowledge-note"/.test(text)) continue
|
||||
if (!SPEC_TYPES.has(frontmatterType(text))) continue
|
||||
if (!/github\.com\//i.test(text)) continue
|
||||
if (!/verified:\s*true/.test(text)) continue
|
||||
const repos = reposFrom(text)
|
||||
|
||||
Reference in New Issue
Block a user