Add short desktop protocol entrypoint
This commit is contained in:
@@ -97,7 +97,7 @@ Everything lives under `~/Desktop/Mnemazine` by default:
|
||||
|
||||
The installer checks what exists and installs what it can safely install locally. It does not require private credentials.
|
||||
|
||||
## One-Command Local Run
|
||||
## One-Command Run
|
||||
|
||||
Put files into:
|
||||
|
||||
@@ -108,7 +108,13 @@ Put files into:
|
||||
Then run:
|
||||
|
||||
```bash
|
||||
node scripts/mnemazine-run.mjs
|
||||
npm start
|
||||
```
|
||||
|
||||
Agent shortcut:
|
||||
|
||||
```text
|
||||
Mnemazine inbox
|
||||
```
|
||||
|
||||
The run performs:
|
||||
@@ -116,16 +122,17 @@ The run performs:
|
||||
1. file census;
|
||||
2. SHA-256 duplicate detection;
|
||||
3. local extraction when possible;
|
||||
4. final note creation with `source_ref` and `source_hash`;
|
||||
5. vault quality gate;
|
||||
6. archive move only after the quality gate passes;
|
||||
7. guarded Graphify refresh attempt;
|
||||
8. weekly HTML report regeneration;
|
||||
9. report quality gate for the regenerated weekly HTML;
|
||||
10. action brief at `.mnemazine/state/last-action-brief.md`;
|
||||
11. visual post-run knowledge report in `reports/`.
|
||||
4. deep atomization and source expansion;
|
||||
5. final note creation with `source_ref` and `source_hash`;
|
||||
6. vault quality gate;
|
||||
7. archive move only after atomization/enrichment and quality gates pass;
|
||||
8. guarded Graphify refresh attempt;
|
||||
9. weekly HTML report regeneration;
|
||||
10. report quality gate for the regenerated weekly HTML;
|
||||
11. action brief at `.mnemazine/state/last-action-brief.md`;
|
||||
12. visual post-run knowledge report in `reports/`.
|
||||
|
||||
The default runner is intentionally conservative. It does not publish data, use private cookies, or send local files to external services. It writes local notes and archives processed source files under `.mnemazine/archive/`.
|
||||
`npm start` is the safe default for real inbox work. The lower-level `npm run run` command is for development and demos.
|
||||
|
||||
## Website Ingestion
|
||||
|
||||
|
||||
+17
-10
@@ -107,7 +107,13 @@ bash setup.sh # пошагово, с вопросами (куда кла
|
||||
Затем запустите:
|
||||
|
||||
```bash
|
||||
node scripts/mnemazine-run.mjs
|
||||
npm start
|
||||
```
|
||||
|
||||
Короткая команда для агента в чате:
|
||||
|
||||
```text
|
||||
Мнемозина, inbox
|
||||
```
|
||||
|
||||
Прогон делает:
|
||||
@@ -115,16 +121,17 @@ node scripts/mnemazine-run.mjs
|
||||
1. перепись файлов;
|
||||
2. SHA-256 дедупликацию;
|
||||
3. локальное извлечение текста, когда возможно;
|
||||
4. создание финальной заметки с `source_ref` и `source_hash`;
|
||||
5. gate качества vault;
|
||||
6. перенос исходников в архив только после зелёного gate;
|
||||
7. guarded-попытка обновить Graphify;
|
||||
8. обновление weekly HTML-отчёта;
|
||||
9. report quality gate для обновлённого weekly HTML;
|
||||
10. action brief в `.mnemazine/state/last-action-brief.md`;
|
||||
11. визуальный post-run отчёт по знаниям в `reports/`.
|
||||
4. deep-атомизацию и расширение источниками;
|
||||
5. создание финальной заметки с `source_ref` и `source_hash`;
|
||||
6. gate качества vault;
|
||||
7. перенос исходников в архив только после атомизации/обогащения и зелёных gate;
|
||||
8. guarded-попытку обновить Graphify;
|
||||
9. обновление weekly HTML-отчёта;
|
||||
10. report quality gate для обновлённого weekly HTML;
|
||||
11. action brief в `.mnemazine/state/last-action-brief.md`;
|
||||
12. визуальный post-run отчёт по знаниям в `reports/`.
|
||||
|
||||
Раннер по умолчанию намеренно консервативен. Он не публикует данные, не использует приватные cookie и не отправляет локальные файлы во внешние сервисы. Он пишет локальные заметки и архивирует обработанные исходники под `.mnemazine/archive/`.
|
||||
`npm start` — безопасный дефолт для настоящего inbox. Низкоуровневый `npm run run` оставлен для разработки и демо.
|
||||
|
||||
## Парсинг сайтов
|
||||
|
||||
|
||||
+6
-1
@@ -10,6 +10,9 @@ Deep mode is **off unless you ask for it**. Nothing in the default pipeline reac
|
||||
## Enabling deep mode
|
||||
|
||||
```bash
|
||||
# real Desktop Inbox run, strict full protocol:
|
||||
npm start
|
||||
|
||||
# whole run, deep:
|
||||
node scripts/mnemazine-run.mjs --deep
|
||||
# or via env (forwarded to synthesize):
|
||||
@@ -19,7 +22,9 @@ MNEMAZINE_DEEP=1 node scripts/mnemazine-run.mjs
|
||||
npm run synthesize -- --deep
|
||||
```
|
||||
|
||||
If deep mode is requested but no LLM engine is available, the run **falls back to local template synthesis** and reports `degraded: true` in its JSON output. It never fails silently.
|
||||
For live Desktop Inbox work, use `npm start`. 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.
|
||||
|
||||
## The LLM bridge
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Deep-режим **выключен, пока вы его не попросите
|
||||
|
||||
```bash
|
||||
# рабочий запуск Desktop Inbox, строгий полный протокол:
|
||||
npm run protocol:desktop
|
||||
npm start
|
||||
|
||||
# весь прогон, deep:
|
||||
node scripts/mnemazine-run.mjs --deep
|
||||
@@ -22,9 +22,9 @@ MNEMAZINE_DEEP=1 node scripts/mnemazine-run.mjs
|
||||
npm run synthesize -- --deep
|
||||
```
|
||||
|
||||
Для рабочего Desktop Inbox используй `npm run protocol:desktop`. Он сам читает `.mnemazine/config.local.sh`, берёт inbox с рабочего стола, пишет в `~/Мозг`, включает `--deep`, требует атомизацию + обогащение и после этого запускает `complete-check`.
|
||||
Для рабочего Desktop Inbox используй `npm start`. Он сам читает `.mnemazine/config.local.sh`, берёт inbox с рабочего стола, пишет в `~/Мозг`, включает `--deep`, требует атомизацию + обогащение и после этого запускает `complete-check`.
|
||||
|
||||
Если deep-режим запрошен напрямую, но движок LLM недоступен, обычный `node scripts/mnemazine-run.mjs --deep` откатывается на локальный шаблонный синтез и сообщает `degraded: true` в JSON-выводе. Строгий запуск (`--require-deep` или `npm run protocol:desktop`) в такой ситуации падает до архива.
|
||||
Если deep-режим запрошен напрямую, но движок LLM недоступен, обычный `node scripts/mnemazine-run.mjs --deep` откатывается на локальный шаблонный синтез и сообщает `degraded: true` в JSON-выводе. Строгий запуск (`--require-deep` или `npm start`) в такой ситуации падает до архива.
|
||||
|
||||
## Мост LLM
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
"description": "Local-first memory system for turning raw inputs into verified reusable knowledge / Локальная система памяти из сырья в проверяемые знания.",
|
||||
"scripts": {
|
||||
"install:local": "bash install.sh",
|
||||
"start": "bash scripts/mnemazine-desktop-protocol.sh",
|
||||
"desktop": "bash scripts/mnemazine-desktop-protocol.sh",
|
||||
"run": "node scripts/mnemazine-run.mjs",
|
||||
"protocol:desktop": "bash scripts/mnemazine-desktop-protocol.sh",
|
||||
"graph:refresh": "node scripts/mnemazine-refresh-graphify.mjs --json",
|
||||
|
||||
@@ -9,6 +9,16 @@ Mnemazine is a knowledge refinery skill.
|
||||
|
||||
Use it when the user gives raw material and wants it preserved as durable knowledge, not as a dump.
|
||||
|
||||
## Chat Shortcut
|
||||
|
||||
If the user says `Mnemazine inbox`, `Мнемозина, inbox`, or `запусти Мнемозину`, run:
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
For live inbox work, do not use `npm run run`. `npm start` runs the strict desktop protocol and fails before archive if deep atomization/enrichment did not happen.
|
||||
|
||||
## Contract
|
||||
|
||||
The vault stores final knowledge only.
|
||||
|
||||
Reference in New Issue
Block a user