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:
Зарубин Филипп
2026-08-25 00:38:03 +03:00
parent 17fd8fef5f
commit 4c8213eacd
203 changed files with 24055 additions and 960 deletions
+24 -5
View File
@@ -12,12 +12,27 @@ DRY_RUN=0
[ -f "$REPO/.mnemazine/config.env" ] && . "$REPO/.mnemazine/config.env"
[ -f "$REPO/.mnemazine/config.local.sh" ] && . "$REPO/.mnemazine/config.local.sh"
CONFIG_VAULT=""
if [ -f "$REPO/.mnemazine/config.json" ] && command -v node >/dev/null 2>&1; then
CONFIG_VAULT="$(node -e 'const fs=require("fs"); const cfg=JSON.parse(fs.readFileSync(process.argv[1],"utf8")); process.stdout.write(typeof cfg.vault==="string" ? cfg.vault : "")' "$REPO/.mnemazine/config.json" 2>/dev/null || true)"
fi
DEFAULT_VAULT="$REPO/vault"
export MNEMAZINE_ROOT="$REPO"
BASE_INBOX="${ENV_INBOX:-${MNEMAZINE_INBOX:-$HOME/Desktop/Mnemazine Inbox}}"
export MNEMAZINE_VAULT="${ENV_VAULT:-${MNEMAZINE_VAULT:-$HOME/Мозг}}"
export MNEMAZINE_DEEP="${ENV_DEEP:-${MNEMAZINE_DEEP:-1}}"
export MNEMAZINE_VAULT="${ENV_VAULT:-${MNEMAZINE_VAULT:-${CONFIG_VAULT:-$DEFAULT_VAULT}}}"
if [ -n "$ENV_DEEP" ]; then
export MNEMAZINE_DEEP="$ENV_DEEP"
fi
export MNEMAZINE_REQUIRE_DEEP="${ENV_REQUIRE_DEEP:-${MNEMAZINE_REQUIRE_DEEP:-1}}"
# Draft mode writes nothing to the vault and never archives. Silent draft runs
# look like успешный прогон, so say it out loud before any work starts.
if [ "${MNEMAZINE_DRAFT_ONLY:-0}" = "1" ]; then
echo "WARNING: MNEMAZINE_DRAFT_ONLY=1 — draft only: заметки в vault НЕ пишутся, инбокс НЕ архивируется." >&2
echo " Снять в .mnemazine/config.local.sh или запустить: MNEMAZINE_DRAFT_ONLY=0 npm start" >&2
fi
active_count() {
find "$1" -maxdepth 1 -type f ! -name '.*' 2>/dev/null | wc -l | tr -d ' '
}
@@ -29,10 +44,13 @@ run_inbox() {
[ "$count" = "0" ] && return 0
echo "Mnemazine protocol: $inbox ($count files)" >&2
ran=1
MNEMAZINE_INBOX="${inbox%/}" npm run run -- --deep --require-deep
MNEMAZINE_INBOX="${inbox%/}" npm run run -- --require-deep
}
mkdir -p "$BASE_INBOX" "$MNEMAZINE_VAULT"
mkdir -p "$BASE_INBOX"
if [ "$MNEMAZINE_VAULT" = "$DEFAULT_VAULT" ]; then
mkdir -p "$MNEMAZINE_VAULT"
fi
if [ "$DRY_RUN" = "1" ]; then
tmp="$(mktemp -d "${TMPDIR:-/tmp}/mnemazine-desktop-dry-run.XXXXXX")"
@@ -66,9 +84,10 @@ if [ -d "$NESTED" ]; then
run_inbox "$NESTED"
fi
# An empty inbox is no reason to skip the final gates — that exact hole let 20.08
# close green with nothing verified. Say it, then still run completion.
if [ "$ran" = "0" ]; then
echo "Mnemazine protocol: no active inbox files" >&2
exit 0
fi
MNEMAZINE_INBOX="${BASE_INBOX%/}" npm run complete -- --require-deep