diff --git a/.github/readme.json b/.github/readme.json index 9cb69a5..9bb7bd7 100644 --- a/.github/readme.json +++ b/.github/readme.json @@ -9,7 +9,7 @@ "ru", "zh" ], - "quick_code": "git clone https://github.com/zarubinvibe/mnemazine.git \"$HOME/Desktop/Mnemazine\"\ncd \"$HOME/Desktop/Mnemazine\"\nbash setup.sh\nbash install.sh", + "quick_code": "git clone https://github.com/zarubinvibe/mnemazine.git \"$HOME/Desktop/Mnemazine\"\ncd \"$HOME/Desktop/Mnemazine\"\nbash setup.sh", "text": { "en": { "title": "Mnemazine", @@ -22,7 +22,7 @@ "better": "Apple Vision recognition, parsing, transcription, and hashing run on your machine. A file that was already processed is recognised by its hash and never reaches a paid model again.", "how": "One run walks the whole pipeline. Every stage leaves evidence, and the run does not close while a file is still unaccounted for.", "quick_intro": "You need Node.js 20 or newer, Python 3.11 or newer, and Git. macOS is recommended, because Apple Vision recognition is macOS only; on Linux everything else still runs.", - "quick_extra": "No Git? Download [the ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) or [the tarball](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz), unpack it, and run the same two scripts inside. `setup.sh` asks where the inbox goes; `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` previews it without touching anything.", + "quick_extra": "`setup.sh` is the guided path: it checks the prerequisites, asks where the inbox goes, and can deploy the Telegram bot. `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` previews it without touching anything, and `bash install.sh` is the non-interactive skeleton if you already know what you want. No Git? Download [the ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) or [the tarball](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz) and run the same script inside.", "quick_result": "the folders are ready, the local engines report what is installed and what is degraded, and `vault/` opens as an Obsidian vault.", "compare": [ [ @@ -90,7 +90,7 @@ "better": "Распознавание Apple Vision, разбор, расшифровка и хеширование идут на вашей машине. Уже обработанный файл узнаётся по хешу и больше не доходит до платной модели.", "how": "Один прогон проходит весь конвейер. Каждая стадия оставляет доказательство, и прогон не закрывается, пока хоть один файл не учтён.", "quick_intro": "Нужны Node.js 20 или новее, Python 3.11 или новее и Git. Лучше macOS, потому что распознавание Apple Vision есть только там; на Linux работает всё остальное.", - "quick_extra": "Нет Git? Скачайте [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) или [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz), распакуйте и запустите внутри те же два скрипта. `setup.sh` спрашивает, где будут входящие, а `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` показывает план, ничего не трогая.", + "quick_extra": "`setup.sh` это ведомый путь: он проверяет предпосылки, спрашивает, где будут входящие, и умеет развернуть Telegram-бота. `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` показывает план, ничего не трогая, а `bash install.sh` это неинтерактивный скелет, если вы уже знаете, что хотите. Нет Git? Скачайте [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) или [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz) и запустите тот же скрипт внутри.", "quick_result": "папки готовы, локальные движки честно сообщают, что установлено и что работает урезанно, а `vault/` открывается как база Obsidian.", "compare": [ [ @@ -158,7 +158,7 @@ "better": "Apple Vision 识别、文档解析、语音转写和哈希都在你的机器上跑。已经处理过的文件靠哈希就能认出来,不会再送到付费模型那里。", "how": "一次运行走完整条流水线。每个阶段都留下证据,只要还有文件没有交代清楚,这次运行就不会结束。", "quick_intro": "你需要 Node.js 20 以上、Python 3.11 以上和 Git。建议用 macOS,因为 Apple Vision 识别只在那里可用;在 Linux 上其余部分照常工作。", - "quick_extra": "没有 Git?下载 [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) 或者 [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz),解压后在里面执行同样的两个脚本。`setup.sh` 会问收件箱放在哪里;`MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` 只看计划,不动任何文件。", + "quick_extra": "`setup.sh` 是带引导的路径:它检查前置条件,问你收件箱放在哪里,还能部署 Telegram 机器人。`MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` 只看计划,不动任何文件;`bash install.sh` 是非交互的骨架安装,适合你已经清楚要什么的时候。没有 Git?下载 [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) 或 [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz),在里面跑同样的脚本。", "quick_result": "目录准备好了,本地引擎如实报告哪些可用、哪些降级,`vault/` 可以直接作为 Obsidian 知识库打开。", "compare": [ [ diff --git a/README.md b/README.md index 25f59e7..5c7848b 100644 --- a/README.md +++ b/README.md @@ -119,10 +119,9 @@ You need Node.js 20 or newer, Python 3.11 or newer, and Git. macOS is recommende git clone https://github.com/zarubinvibe/mnemazine.git "$HOME/Desktop/Mnemazine" cd "$HOME/Desktop/Mnemazine" bash setup.sh -bash install.sh ``` -No Git? Download [the ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) or [the tarball](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz), unpack it, and run the same two scripts inside. `setup.sh` asks where the inbox goes; `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` previews it without touching anything. +`setup.sh` is the guided path: it checks the prerequisites, asks where the inbox goes, and can deploy the Telegram bot. `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` previews it without touching anything, and `bash install.sh` is the non-interactive skeleton if you already know what you want. No Git? Download [the ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) or [the tarball](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz) and run the same script inside. **You get:** the folders are ready, the local engines report what is installed and what is degraded, and `vault/` opens as an Obsidian vault. diff --git a/README.ru.md b/README.ru.md index 92fbf8f..a34b069 100644 --- a/README.ru.md +++ b/README.ru.md @@ -119,10 +119,9 @@ Mnemazine это локальная фабрика знания. Сырьё кл git clone https://github.com/zarubinvibe/mnemazine.git "$HOME/Desktop/Mnemazine" cd "$HOME/Desktop/Mnemazine" bash setup.sh -bash install.sh ``` -Нет Git? Скачайте [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) или [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz), распакуйте и запустите внутри те же два скрипта. `setup.sh` спрашивает, где будут входящие, а `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` показывает план, ничего не трогая. +`setup.sh` это ведомый путь: он проверяет предпосылки, спрашивает, где будут входящие, и умеет развернуть Telegram-бота. `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` показывает план, ничего не трогая, а `bash install.sh` это неинтерактивный скелет, если вы уже знаете, что хотите. Нет Git? Скачайте [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) или [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz) и запустите тот же скрипт внутри. **Что получится:** папки готовы, локальные движки честно сообщают, что установлено и что работает урезанно, а `vault/` открывается как база Obsidian. diff --git a/README.zh.md b/README.zh.md index 752e979..9ce79af 100644 --- a/README.zh.md +++ b/README.zh.md @@ -119,10 +119,9 @@ Mnemazine 是一座本地的知识精炼厂。原始材料进入收件箱,出 git clone https://github.com/zarubinvibe/mnemazine.git "$HOME/Desktop/Mnemazine" cd "$HOME/Desktop/Mnemazine" bash setup.sh -bash install.sh ``` -没有 Git?下载 [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) 或者 [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz),解压后在里面执行同样的两个脚本。`setup.sh` 会问收件箱放在哪里;`MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` 只看计划,不动任何文件。 +`setup.sh` 是带引导的路径:它检查前置条件,问你收件箱放在哪里,还能部署 Telegram 机器人。`MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh` 只看计划,不动任何文件;`bash install.sh` 是非交互的骨架安装,适合你已经清楚要什么的时候。没有 Git?下载 [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) 或 [tar.gz](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.tar.gz),在里面跑同样的脚本。 **你会得到:** 目录准备好了,本地引擎如实报告哪些可用、哪些降级,`vault/` 可以直接作为 Obsidian 知识库打开。 diff --git a/docs/DETAILS.md b/docs/DETAILS.md index 3579440..0d97fd2 100644 --- a/docs/DETAILS.md +++ b/docs/DETAILS.md @@ -2,12 +2,12 @@ # Mnemazine -🇬🇧 **English** · [🇷🇺 Русский](README.ru.md) +🇬🇧 **English** · [🇷🇺 Русский](../README.ru.md)

- Mnemazine — Mnemosyne, goddess of memory, beside her marble column, distilling raw fragments into a layered knowledge system + Mnemazine — Mnemosyne, goddess of memory, beside her marble column, distilling raw fragments into a layered knowledge system
- Mnemazine emblem — Mnemosyne and the Pantheon column + Mnemazine emblem — Mnemosyne and the Pantheon column

**Mnemazine** is a source-available personal memory system, named after **Mnemosyne**, the Greek goddess of memory and mother of the Muses. @@ -21,7 +21,7 @@ In practice, Mnemazine takes screenshots, PDFs, web pages, YouTube videos, notes > Memory, not a dump.

- Synthesis on write: many raw fragments are squeezed through to a single durable note + Synthesis on write: many raw fragments are squeezed through to a single durable note

## What It Is @@ -85,7 +85,7 @@ Bypass the prompt in automation with `MNEMAZINE_YES=1 bash install.sh`. Mnemazine saves tokens by moving work out of repeated LLM context and into durable local structure: parse locally, cache aggressively, store refined atoms, retrieve narrowly.

- Token economics: parse locally, hash cache, store atoms, retrieve narrowly + Token economics: parse locally, hash cache, store atoms, retrieve narrowly

Typical savings come from: @@ -206,7 +206,7 @@ The run performs: 11. action brief at `.mnemazine/state/last-action-brief.md`; 12. visual post-run knowledge report in `reports/`. -Under `--deep` only, a final humanize stage rewrites notes into readable Russian and is held by a preservation gate: no number, URL, path, wikilink, code block, frontmatter, or `## Достоверность` line may be lost in the rewrite, or the run fails (`scripts/mnemazine-humanize-gate.mjs`; details in [docs/deep-mode.md](docs/deep-mode.md)). A non-deep run has no digest and no humanize gate — by decision, not accident. +Under `--deep` only, a final humanize stage rewrites notes into readable Russian and is held by a preservation gate: no number, URL, path, wikilink, code block, frontmatter, or `## Достоверность` line may be lost in the rewrite, or the run fails (`scripts/mnemazine-humanize-gate.mjs`; details in [docs/deep-mode.md](../docs/deep-mode.md)). A non-deep run has no digest and no humanize gate — by decision, not accident. `Mnemazine` / `npm start` is the safe default for real inbox work. The lower-level `npm run run` command is for development and demos. @@ -320,7 +320,7 @@ python3 scripts/kb-yt-harvest.py "https://www.youtube.com/@SomeChannel" --all -- It pulls subtitles first (near-zero cost) and falls back to local whisper when a video has no usable captions. Each video becomes one inbox note named `yt___.md`. A subscribed channel is then polled by `scripts/kb-yt-watch.py` over RSS, harvesting only new uploads, optionally on a daily launchd schedule. -It fetches public videos only and uses no cookies or account sessions by default. See [YouTube Ingestion](docs/youtube-ingestion.md). +It fetches public videos only and uses no cookies or account sessions by default. See [YouTube Ingestion](../docs/youtube-ingestion.md). ## Knowledge Quality Contract @@ -462,7 +462,7 @@ raw input -> extraction -> understanding -> research -> verification -> atomizat ``` <p align="center"> - <img src="docs/assets/hero/mnemazine-pipeline.png" width="820" alt="The Mnemazine pipeline: raw input, extract, verify, synthesize, vault, graph, reuse"> + <img src="../docs/assets/hero/mnemazine-pipeline.png" width="820" alt="The Mnemazine pipeline: raw input, extract, verify, synthesize, vault, graph, reuse"> </p> That matters because a real memory must be reproducible. A note should be able to become: @@ -513,7 +513,7 @@ and processes it locally; the finished knowledge lives only in your vault. Lock the bot to yourself. On the first message it logs your `chat_id`; set `ALLOWED_CHAT_IDS=<your_chat_id>` and restart. An empty allowlist rejects everyone (fail-closed), so an unconfigured bot ignoring you is expected, not broken. Full -setup: [docs/telegram-intake.md](docs/telegram-intake.md). +setup: [docs/telegram-intake.md](../docs/telegram-intake.md). ## VPS: What It Does and Living Without It @@ -604,21 +604,21 @@ ready-to-use knowledge, and I read every suggestion. - If it helped, star it on GitHub; it genuinely matters: <https://github.com/zarubinvibe/Mnemazine> - Got an idea to make it better? Open an issue or a PR. Contribution guidance is in - [CONTRIBUTING.md](CONTRIBUTING.md); the security policy is in [SECURITY.md](SECURITY.md). + [CONTRIBUTING.md](../CONTRIBUTING.md); the security policy is in [SECURITY.md](../SECURITY.md). ## Documentation -- [Installation](docs/installation.md) -- [Architecture](docs/architecture.md) -- [Token Economics](docs/token-economics.md) -- [Website Ingestion](docs/site-ingestion.md) -- [YouTube Ingestion](docs/youtube-ingestion.md) -- [Telegram Intake (bot + Mini App)](docs/telegram-intake.md) -- [Obsidian Vault](docs/obsidian.md) -- [Apple Vision OCR](docs/apple-vision.md) -- [Graphify](docs/graphify.md) -- [Weekly HTML Brief](docs/weekly-html.md) -- [Deep Mode (atomization + verification)](docs/deep-mode.md) +- [Installation](../docs/installation.md) +- [Architecture](../docs/architecture.md) +- [Token Economics](../docs/token-economics.md) +- [Website Ingestion](../docs/site-ingestion.md) +- [YouTube Ingestion](../docs/youtube-ingestion.md) +- [Telegram Intake (bot + Mini App)](../docs/telegram-intake.md) +- [Obsidian Vault](../docs/obsidian.md) +- [Apple Vision OCR](../docs/apple-vision.md) +- [Graphify](../docs/graphify.md) +- [Weekly HTML Brief](../docs/weekly-html.md) +- [Deep Mode (atomization + verification)](../docs/deep-mode.md) ## Safety diff --git a/docs/DETAILS.ru.md b/docs/DETAILS.ru.md index fb4310c..cbb5341 100644 --- a/docs/DETAILS.ru.md +++ b/docs/DETAILS.ru.md @@ -2,12 +2,12 @@ # Mnemazine -🇷🇺 **Русский** · [🇬🇧 English](README.md) +🇷🇺 **Русский** · [🇬🇧 English](../README.md) <p align="center"> - <img src="docs/assets/pantheon/hero.png" width="820" alt="Mnemazine — Мнемозина, богиня памяти, у своей мраморной колонны, перегоняет сырые фрагменты в слоистую систему знаний"> + <img src="../docs/assets/pantheon/hero.png" width="820" alt="Mnemazine — Мнемозина, богиня памяти, у своей мраморной колонны, перегоняет сырые фрагменты в слоистую систему знаний"> <br> - <img src="docs/assets/pantheon/emblem.png" width="220" alt="Эмблема Mnemazine — Мнемозина и колонна Pantheon"> + <img src="../docs/assets/pantheon/emblem.png" width="220" alt="Эмблема Mnemazine — Мнемозина и колонна Pantheon"> </p> **Mnemazine**: локальная персональная система памяти, названная в честь **Мнемозины**, греческой богини памяти и матери муз. @@ -21,7 +21,7 @@ > Память, не свалка. <p align="center"> - <img src="docs/assets/hero/mnemazine-synthesis.png" width="760" alt="Синтез на записи: множество сырых фрагментов отжимается в одну долговечную заметку"> + <img src="../docs/assets/hero/mnemazine-synthesis.png" width="760" alt="Синтез на записи: множество сырых фрагментов отжимается в одну долговечную заметку"> </p> ## Что это @@ -84,7 +84,7 @@ MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh Mnemazine экономит токены, вынося работу из повторяющегося LLM-контекста в долговечную локальную структуру: парсить локально, агрессивно кэшировать, хранить очищенные атомы, извлекать узко. <p align="center"> - <img src="docs/assets/hero/mnemazine-token.png" width="760" alt="Экономика токенов: парсинг локально, hash-кэш, хранение атомов, узкое извлечение"> + <img src="../docs/assets/hero/mnemazine-token.png" width="760" alt="Экономика токенов: парсинг локально, hash-кэш, хранение атомов, узкое извлечение"> </p> Типичная экономия складывается из: @@ -308,7 +308,7 @@ python3 scripts/kb-yt-harvest.py "https://www.youtube.com/@SomeChannel" --all -- Сначала он берёт субтитры (почти нулевая стоимость) и откатывается на локальный whisper, когда у видео нет пригодных субтитров. Каждое видео становится одной заметкой в inbox с именем `yt_<date>_<id>_<title>.md`. Подписанный канал затем опрашивается `scripts/kb-yt-watch.py` по RSS, забирая только новые загрузки, опционально по ежедневному расписанию launchd. -Он забирает только публичные видео и по умолчанию не использует cookie или сессии аккаунта. См. [Парсинг YouTube](docs/youtube-ingestion.ru.md). +Он забирает только публичные видео и по умолчанию не использует cookie или сессии аккаунта. См. [Парсинг YouTube](../docs/youtube-ingestion.ru.md). ## Контракт качества знаний @@ -450,7 +450,7 @@ Mnemazine: это не «второй мозг» как лозунг про хр ``` <p align="center"> - <img src="docs/assets/hero/mnemazine-pipeline.png" width="820" alt="Конвейер Mnemazine: сырьё, извлечение, проверка, синтез, vault, граф, переиспользование"> + <img src="../docs/assets/hero/mnemazine-pipeline.png" width="820" alt="Конвейер Mnemazine: сырьё, извлечение, проверка, синтез, vault, граф, переиспользование"> </p> Это важно, потому что настоящая память должна быть воспроизводимой. Заметка должна уметь стать: @@ -501,7 +501,7 @@ Mnemazine: это не «второй мозг» как лозунг про хр Закрой бота на себя. На первом сообщении он логирует твой `chat_id`; поставь `ALLOWED_CHAT_IDS=<твой_chat_id>` и перезапусти. Пустой список отвергает всех (fail-closed), поэтому ненастроенный бот, который тебя игнорирует, это ожидаемо, -а не поломка. Полная настройка: [docs/telegram-intake.ru.md](docs/telegram-intake.ru.md). +а не поломка. Полная настройка: [docs/telegram-intake.ru.md](../docs/telegram-intake.ru.md). ## VPS: что он делает и как жить без него @@ -593,21 +593,21 @@ inbox. Не переноси их руками, почини причину и - Если зашло, поставь звезду на GitHub, мне это правда важно: <https://github.com/zarubinvibe/Mnemazine> - Есть идея, как сделать лучше? Открой issue или PR. Как контрибьютить, смотри - [CONTRIBUTING.md](CONTRIBUTING.md); политика безопасности расписана в [SECURITY.md](SECURITY.md). + [CONTRIBUTING.md](../CONTRIBUTING.md); политика безопасности расписана в [SECURITY.md](../SECURITY.md). ## Документация -- [Установка](docs/installation.ru.md) -- [Архитектура](docs/architecture.ru.md) -- [Экономика токенов](docs/token-economics.ru.md) -- [Парсинг сайтов](docs/site-ingestion.ru.md) -- [Парсинг YouTube](docs/youtube-ingestion.ru.md) -- [Приём через Telegram (бот + Mini App)](docs/telegram-intake.ru.md) -- [Obsidian-vault](docs/obsidian.ru.md) -- [Apple Vision OCR](docs/apple-vision.ru.md) -- [Graphify](docs/graphify.ru.md) -- [Еженедельный HTML-брифинг](docs/weekly-html.ru.md) -- [Deep-режим (атомизация + проверка)](docs/deep-mode.ru.md) +- [Установка](../docs/installation.ru.md) +- [Архитектура](../docs/architecture.ru.md) +- [Экономика токенов](../docs/token-economics.ru.md) +- [Парсинг сайтов](../docs/site-ingestion.ru.md) +- [Парсинг YouTube](../docs/youtube-ingestion.ru.md) +- [Приём через Telegram (бот + Mini App)](../docs/telegram-intake.ru.md) +- [Obsidian-vault](../docs/obsidian.ru.md) +- [Apple Vision OCR](../docs/apple-vision.ru.md) +- [Graphify](../docs/graphify.ru.md) +- [Еженедельный HTML-брифинг](../docs/weekly-html.ru.md) +- [Deep-режим (атомизация + проверка)](../docs/deep-mode.ru.md) ## Безопасность