Add one-word Mnemazine entrypoint

This commit is contained in:
Зарубин Филипп
2026-06-23 18:32:56 +03:00
parent 4c5ed5f8f5
commit 419482c6ee
11 changed files with 93 additions and 28 deletions
+3 -1
View File
@@ -12,6 +12,8 @@ Deep mode is **off unless you ask for it**. Nothing in the default pipeline reac
```bash
# real Desktop Inbox run, strict full protocol:
npm start
# after setup.sh, if ~/.local/bin is in PATH:
mnemazine
# whole run, deep:
node scripts/mnemazine-run.mjs --deep
@@ -22,7 +24,7 @@ MNEMAZINE_DEEP=1 node scripts/mnemazine-run.mjs
npm run synthesize -- --deep
```
For live Desktop Inbox work, use `npm start`. It reads local config, enables deep mode, requires atomization + enrichment, and then runs the completion gate.
For live Desktop Inbox work, use `npm start` or `mnemazine`. It reads local config, enables deep mode, requires atomization + enrichment, and then runs the completion gate.
If deep mode is requested directly but no LLM engine is available, plain `node scripts/mnemazine-run.mjs --deep` falls back to local template synthesis and reports `degraded: true` in JSON. Strict runs (`--require-deep` or `npm start`) fail before archive.
+3 -1
View File
@@ -12,6 +12,8 @@ Deep-режим **выключен, пока вы его не попросите
```bash
# рабочий запуск Desktop Inbox, строгий полный протокол:
npm start
# после setup.sh, если ~/.local/bin есть в PATH:
mnemazine
# весь прогон, deep:
node scripts/mnemazine-run.mjs --deep
@@ -22,7 +24,7 @@ MNEMAZINE_DEEP=1 node scripts/mnemazine-run.mjs
npm run synthesize -- --deep
```
Для рабочего Desktop Inbox используй `npm start`. Он сам читает `.mnemazine/config.local.sh`, берёт inbox с рабочего стола, пишет в `~/Мозг`, включает `--deep`, требует атомизацию + обогащение и после этого запускает `complete-check`.
Для рабочего Desktop Inbox используй `npm start` или `mnemazine`. Он сам читает `.mnemazine/config.local.sh`, берёт inbox с рабочего стола, пишет в `~/Мозг`, включает `--deep`, требует атомизацию + обогащение и после этого запускает `complete-check`.
Если deep-режим запрошен напрямую, но движок LLM недоступен, обычный `node scripts/mnemazine-run.mjs --deep` откатывается на локальный шаблонный синтез и сообщает `degraded: true` в JSON-выводе. Строгий запуск (`--require-deep` или `npm start`) в такой ситуации падает до архива.
+2 -2
View File
@@ -25,7 +25,7 @@ only a transit buffer, never a second store.
▼
rsync --remove-source-files (move; host stays thin)
▼
local inbox/ ──▶ npm run run (the protocol)
local inbox/ ──▶ npm start (the strict protocol)
▼
vault/ ──writes .last-run──▶ Mini App status
```
@@ -42,7 +42,7 @@ that flag; the next poll consumes it.
| `scripts/mnemazine-webapp-server.mjs` | host | Mini App API (`/api/status`, `/api/send`, `/api/run`). Verifies Telegram `initData`, enforces an allowlist. Zero deps. |
| `webapp/index.html` | host (static) | The Mini App UI. Theme-aware, single file. |
| `scripts/mnemazine-telegram-poll.sh` | your machine | ~5-min tick: consume run-now flag / daily window → pull + run. |
| `scripts/mnemazine-telegram-sync.sh` | your machine | rsync pull (move) + `npm run run`. |
| `scripts/mnemazine-telegram-sync.sh` | your machine | rsync pull (move) + `npm start`. |
| `scripts/com.mnemazine.telegram-sync.plist.template` | your machine | launchd agent (macOS) for the poll tick. |
## Setup
+2 -2
View File
@@ -25,7 +25,7 @@ LLM-бинарь). Бот живёт на всегда-онлайн хосте,
▼
rsync --remove-source-files (move; хост остаётся тонким)
▼
локальный inbox/ ──▶ npm run run (протокол)
локальный inbox/ ──▶ npm start (строгий протокол)
▼
vault/ ──пишет .last-run──▶ статус Mini App
```
@@ -42,7 +42,7 @@ LLM-бинарь). Бот живёт на всегда-онлайн хосте,
| `scripts/mnemazine-webapp-server.mjs` | хост | API Mini App (`/api/status`, `/api/send`, `/api/run`). Верифицирует `initData`, держит allowlist. Ноль зависимостей. |
| `webapp/index.html` | хост (статика) | UI Mini App. Тема-aware, один файл. |
| `scripts/mnemazine-telegram-poll.sh` | твоя машина | Тик ~5 мин: флаг run-now / дневное окно → pull + прогон. |
| `scripts/mnemazine-telegram-sync.sh` | твоя машина | rsync pull (move) + `npm run run`. |
| `scripts/mnemazine-telegram-sync.sh` | твоя машина | rsync pull (move) + `npm start`. |
| `scripts/com.mnemazine.telegram-sync.plist.template` | твоя машина | launchd-агент (macOS) для тика. |
## Установка