fix: isolate release hooks and refresh docs
This commit is contained in:
@@ -152,25 +152,47 @@ Tools и [Claude Code](https://claude.com/claude-code).
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/zarubinvibe/themis.git
|
git clone https://github.com/zarubinvibe/themis.git
|
||||||
cd themis
|
cd themis
|
||||||
bash install.sh
|
claude
|
||||||
```
|
```
|
||||||
|
|
||||||
Дальше я всё объясню сама и спрошу разрешения, прежде чем что-то ставить.
|
В открывшемся Claude Code запусти `/themis-setup`. Я задам вопросы по одному,
|
||||||
|
проверю окружение и перед установкой попрошу разрешение.
|
||||||
|
|
||||||
|
Опытный пользователь может запустить технический установщик напрямую:
|
||||||
|
`bash install.sh`. Он ставит зависимости после общего подтверждения, но не
|
||||||
|
проводит интервью о практике.
|
||||||
|
|
||||||
Панель, где видно ход работы: `python3 cockpit/app.py` → http://localhost:8800
|
Панель, где видно ход работы: `python3 cockpit/app.py` → http://localhost:8800
|
||||||
Обновиться до свежей версии: `bash scripts/update.sh` — данные дел не трогаются.
|
Обновиться до свежей версии: `bash scripts/update.sh` — данные дел не трогаются.
|
||||||
|
|
||||||
### Приватность
|
### Приватность
|
||||||
|
|
||||||
Материалы дел не покидают твой компьютер. Папки доверителей закрыты от
|
Основное чтение и распознавание идут на твоем компьютере. Папки доверителей
|
||||||
публикации на уровне репозитория, наружу уходят только шаблоны и один
|
закрыты от публикации на уровне репозитория, наружу уходят только шаблоны и один
|
||||||
вымышленный пример. Распознавание и чтение — локальные.
|
вымышленный пример. Для поиска практики система отправляет обезличенный запрос.
|
||||||
|
Облачная проверка страницы допускается точечно: если локальное распознавание
|
||||||
|
вернуло пустой результат, нужно сверить критичный реквизит или прочитать
|
||||||
|
рукопись, печать либо угасший текст. Молчаливого переключения в облако нет.
|
||||||
|
|
||||||
Напоминания в Telegram — твой личный бот, не мой и не общий. Наружу уходят
|
Напоминания в Telegram — твой личный бот, не мой и не общий. Наружу уходят
|
||||||
только даты и слово «готово»: ни фамилий, ни номеров дел, ни сумм. За этим
|
только даты и слово «готово»: ни фамилий, ни номеров дел, ни сумм. За этим
|
||||||
следит отдельная проверка, а не добрая воля. Не нужен бот — я работаю без него
|
следит отдельная проверка, а не добрая воля. Не нужен бот — я работаю без него
|
||||||
точно так же.
|
точно так же.
|
||||||
|
|
||||||
|
### Статус, roadmap и ограничения
|
||||||
|
|
||||||
|
Фемида находится в активной разработке и рассчитана на работу под контролем
|
||||||
|
юриста. Основной workflow работает в Claude Code. Текстовые PDF, DOCX и XLSX
|
||||||
|
читаются на macOS, Windows и Linux, но локальное распознавание сканов зависит от
|
||||||
|
Apple Vision и доступно только на macOS. Поиск практики зависит от внешнего
|
||||||
|
источника и иногда недоступен. Красный гейт или отсутствующий агент останавливает
|
||||||
|
workflow.
|
||||||
|
|
||||||
|
- Сейчас: локальное извлечение, карта дела, проверяемый workflow документов,
|
||||||
|
механические расчеты и локальная панель.
|
||||||
|
- Дальше: проверить чистую установку на Windows и Linux, упростить развертывание
|
||||||
|
панели и проверить необязательные интеграции. Дат релиза у этих работ пока нет.
|
||||||
|
|
||||||
### Лицензия
|
### Лицензия
|
||||||
|
|
||||||
**Частному юристу — бесплатно. Организации — по договору.**
|
**Частному юристу — бесплатно. Организации — по договору.**
|
||||||
@@ -311,24 +333,43 @@ and [Claude Code](https://claude.com/claude-code).
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/zarubinvibe/themis.git
|
git clone https://github.com/zarubinvibe/themis.git
|
||||||
cd themis
|
cd themis
|
||||||
bash install.sh
|
claude
|
||||||
```
|
```
|
||||||
|
|
||||||
From there I explain everything myself and ask before installing anything.
|
Inside Claude Code, run `/themis-setup`. It asks about your practice one question
|
||||||
|
at a time, checks the environment, and asks before installing anything.
|
||||||
|
|
||||||
|
Experienced users can run `bash install.sh` directly. That installs dependencies
|
||||||
|
after one confirmation, but it skips the practice interview.
|
||||||
|
|
||||||
Panel: `python3 cockpit/app.py` → http://localhost:8800
|
Panel: `python3 cockpit/app.py` → http://localhost:8800
|
||||||
Update: `bash scripts/update.sh` — your case data is untouched.
|
Update: `bash scripts/update.sh` — your case data is untouched.
|
||||||
|
|
||||||
### Privacy
|
### Privacy
|
||||||
|
|
||||||
Case material never leaves your computer. Client folders are excluded from
|
Most extraction and recognition run on your computer. Client folders are excluded
|
||||||
publication at the repository level; only templates and one fictional example go
|
from publication at the repository level; only templates and one fictional example
|
||||||
out. Extraction and recognition are local.
|
are tracked. Case law search sends a masked query to an external source. Cloud vision
|
||||||
|
is reserved for an empty local OCR result, a disputed critical detail, handwriting,
|
||||||
|
stamps, or faded text. The system does not switch to it silently.
|
||||||
|
|
||||||
Telegram reminders use your own bot, never mine. What goes out is dates and the
|
Telegram reminders use your own bot, never mine. What goes out is dates and the
|
||||||
word "done": no names, no case numbers, no amounts. A separate check enforces
|
word "done": no names, no case numbers, no amounts. A separate check enforces
|
||||||
that. No bot, no problem — I work the same without it.
|
that. No bot, no problem — I work the same without it.
|
||||||
|
|
||||||
|
### Status, roadmap and limits
|
||||||
|
|
||||||
|
Themis is under active development and expects a lawyer to supervise every case.
|
||||||
|
The main workflow runs in Claude Code. Text PDFs, DOCX, and XLSX work on macOS,
|
||||||
|
Windows, and Linux, but local scan OCR depends on Apple Vision and is available only
|
||||||
|
on macOS. Case law search depends on an external source and sometimes fails. A red
|
||||||
|
gate or a missing agent stops the workflow.
|
||||||
|
|
||||||
|
- Current: local extraction, case mapping, a checked document workflow,
|
||||||
|
deterministic calculators, and a local cockpit.
|
||||||
|
- Next: test clean installs on Windows and Linux, simplify cockpit deployment, and
|
||||||
|
check optional integrations. These items have no promised release date.
|
||||||
|
|
||||||
### Licence
|
### Licence
|
||||||
|
|
||||||
**Free for an individual lawyer. Paid for organisations.**
|
**Free for an individual lawyer. Paid for organisations.**
|
||||||
@@ -357,19 +398,15 @@ And if I was useful, leave a star. A few seconds for you; rather more than that
|
|||||||
for the project.
|
for the project.
|
||||||
|
|
||||||
<!-- pantheon-family:start -->
|
<!-- pantheon-family:start -->
|
||||||
## Pantheon family
|
## Olympuz family
|
||||||
|
|
||||||
Part of the [Pantheon project family](https://github.com/zarubinvibe?tab=repositories). Every public project links directly to its repository and source ZIP.
|
This is one of the public [Olympuz projects](https://github.com/zarubinvibe/athena#olympuz-family). Each row opens the repository or downloads its source as a ZIP.
|
||||||
|
|
||||||
| Type | Name | What it does | Source |
|
| Type | Name | What it does | Source |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| project | Athena | Portable agent OS that restores a complete Claude and Codex setup on a new Mac. | [Repository](https://github.com/zarubinvibe/athena) · [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) |
|
| project | Athena | Portable agent OS that restores a complete Claude and Codex setup on a new Mac. | [Repository](https://github.com/zarubinvibe/athena) · [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) |
|
||||||
| project | Claude Code Setup OS | Bootstrap skill for a token-efficient Claude Code workspace and a local LLM wiki. | [Repository](https://github.com/zarubinvibe/claude-code-setup-os) · [ZIP](https://github.com/zarubinvibe/claude-code-setup-os/archive/refs/heads/main.zip) |
|
|
||||||
| project | Helioz | 24/7 agent work conveyor with verified completion markers and goal-based overnight decisions. | [Repository](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) |
|
| project | Helioz | 24/7 agent work conveyor with verified completion markers and goal-based overnight decisions. | [Repository](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) |
|
||||||
| project | Humanizer | Agent skill that removes common AI writing patterns from English text. | [Repository](https://github.com/zarubinvibe/humanizer) · [ZIP](https://github.com/zarubinvibe/humanizer/archive/refs/heads/main.zip) |
|
|
||||||
| project | Humanizer RU | Russian writing skill that detects and removes 58 common AI text patterns. | [Repository](https://github.com/zarubinvibe/humanizer-ru) · [ZIP](https://github.com/zarubinvibe/humanizer-ru/archive/refs/heads/main.zip) |
|
|
||||||
| project | Mnemazine | Local-first memory system that turns raw inputs into verified reusable knowledge. | [Repository](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) |
|
| project | Mnemazine | Local-first memory system that turns raw inputs into verified reusable knowledge. | [Repository](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) |
|
||||||
| project | Smltlk | macOS menu bar app for keyboard-layout repair, offline dictation, and speech-to-prompt. | [Repository](https://github.com/zarubinvibe/smltlk) · [ZIP](https://github.com/zarubinvibe/smltlk/archive/refs/heads/main.zip) |
|
|
||||||
| project | Themis | Multi-agent assistant for Russian litigation with local OCR and review by a five-jurist council. | [Repository](https://github.com/zarubinvibe/themis) · [ZIP](https://github.com/zarubinvibe/themis/archive/refs/heads/main.zip) |
|
| project | Themis | Multi-agent assistant for Russian litigation with local OCR and review by a five-jurist council. | [Repository](https://github.com/zarubinvibe/themis) · [ZIP](https://github.com/zarubinvibe/themis/archive/refs/heads/main.zip) |
|
||||||
| project | Zeuz | Factory that turns an idea into a governed multi-agent workflow with gates, observability, and replay. | [Repository](https://github.com/zarubinvibe/zeuz) · [ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) |
|
| project | Zeuz | Factory that turns an idea into a governed multi-agent workflow with gates, observability, and replay. | [Repository](https://github.com/zarubinvibe/zeuz) · [ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) |
|
||||||
<!-- pantheon-family:end -->
|
<!-- pantheon-family:end -->
|
||||||
|
|||||||
+28
-12
@@ -23,11 +23,15 @@
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/zarubinvibe/themis.git
|
git clone https://github.com/zarubinvibe/themis.git
|
||||||
cd themis
|
cd themis
|
||||||
bash install.sh
|
claude
|
||||||
python3 cockpit/app.py
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Панель откроется на `http://localhost:8800`. Обновление существующего клона:
|
В Claude Code запусти `/themis-setup`. Скилл задаст вопросы по одному, проверит
|
||||||
|
окружение и попросит разрешение перед установкой. Технический путь без интервью:
|
||||||
|
`bash install.sh`.
|
||||||
|
|
||||||
|
После установки панель запускается командой `python3 cockpit/app.py` и открывается
|
||||||
|
на `http://localhost:8800`. Обновление существующего клона:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash scripts/update.sh
|
bash scripts/update.sh
|
||||||
@@ -47,26 +51,38 @@ bash scripts/update.sh
|
|||||||
|
|
||||||
## Безопасность и приватность
|
## Безопасность и приватность
|
||||||
|
|
||||||
Материалы дел не публикуются. Папки доверителей, локальные секреты, токены, runtime-состояние и персональные данные должны оставаться вне git. Перед публикацией запускается `scripts/pd_guard.py`, а публичный релиз проверяется `public-repo-gate`.
|
Материалы дел не публикуются. Основное извлечение и распознавание идут локально.
|
||||||
|
Поиск практики отправляет наружу обезличенный запрос. Облачная проверка страницы
|
||||||
|
допускается только для пустого локального OCR, спорного критичного реквизита,
|
||||||
|
рукописи, печати или угасшего текста; молчаливого переключения нет. Папки
|
||||||
|
доверителей, секреты, токены, runtime-состояние и персональные данные должны
|
||||||
|
оставаться вне git. Перед публикацией запускается `scripts/pd_guard.py`, а
|
||||||
|
публичный релиз проверяется `public-repo-gate`.
|
||||||
|
|
||||||
## Статус
|
## Статус, roadmap и ограничения
|
||||||
|
|
||||||
Проект предназначен для работы вместе с юристом. Он не заменяет юридическое решение, не отправляет документы без проверки человека и не должен использоваться как единственный источник правовой позиции.
|
Фемида находится в активной разработке и работает под контролем юриста. Основной
|
||||||
|
workflow рассчитан на Claude Code. Текстовые PDF, DOCX и XLSX читаются на macOS,
|
||||||
|
Windows и Linux, но локальный OCR сканов зависит от Apple Vision и доступен только
|
||||||
|
на macOS. Поиск практики зависит от внешнего источника и иногда недоступен. Красный
|
||||||
|
гейт или отсутствующий агент останавливает workflow. Подготовленный документ
|
||||||
|
остается черновиком, пока его не проверит юрист.
|
||||||
|
|
||||||
|
- Сейчас: локальное извлечение, карта дела, проверяемый workflow документов,
|
||||||
|
механические расчеты и локальная панель.
|
||||||
|
- Дальше: проверить чистую установку на Windows и Linux, упростить развертывание
|
||||||
|
панели и проверить необязательные интеграции. Дат релиза у этих работ пока нет.
|
||||||
|
|
||||||
<!-- pantheon-family:start -->
|
<!-- pantheon-family:start -->
|
||||||
## Семья Pantheon
|
## Семья Olympuz
|
||||||
|
|
||||||
Этот репозиторий входит в [семью проектов Pantheon](https://github.com/zarubinvibe?tab=repositories). Для каждого публичного проекта даны прямые ссылки на репозиторий и ZIP с исходниками.
|
Это один из публичных [проектов семьи Olympuz](https://github.com/zarubinvibe/athena#olympuz-family). Из таблицы можно открыть репозиторий или сразу скачать исходники в ZIP.
|
||||||
|
|
||||||
| Тип | Название | Что внутри | Скачать |
|
| Тип | Название | Что внутри | Скачать |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| проект | Athena | Переносимая агентная ОС: разворачивает рабочую среду Claude и Codex на новом Mac. | [Репозиторий](https://github.com/zarubinvibe/athena) · [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) |
|
| проект | Athena | Переносимая агентная ОС: разворачивает рабочую среду Claude и Codex на новом Mac. | [Репозиторий](https://github.com/zarubinvibe/athena) · [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) |
|
||||||
| проект | Claude Code Setup OS | Bootstrap-скилл для экономной среды Claude Code и локальной LLM-вики. | [Репозиторий](https://github.com/zarubinvibe/claude-code-setup-os) · [ZIP](https://github.com/zarubinvibe/claude-code-setup-os/archive/refs/heads/main.zip) |
|
|
||||||
| проект | Helioz | Конвейер работы агентов 24/7 с проверяемыми отметками готовности и ночными решениями по цели владельца. | [Репозиторий](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) |
|
| проект | Helioz | Конвейер работы агентов 24/7 с проверяемыми отметками готовности и ночными решениями по цели владельца. | [Репозиторий](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) |
|
||||||
| проект | Humanizer | Агентный скилл, который убирает типичные следы AI из английского текста. | [Репозиторий](https://github.com/zarubinvibe/humanizer) · [ZIP](https://github.com/zarubinvibe/humanizer/archive/refs/heads/main.zip) |
|
|
||||||
| проект | Humanizer RU | Русский редакторский скилл: находит и убирает 58 типичных следов AI-текста. | [Репозиторий](https://github.com/zarubinvibe/humanizer-ru) · [ZIP](https://github.com/zarubinvibe/humanizer-ru/archive/refs/heads/main.zip) |
|
|
||||||
| проект | Mnemazine | Локальная система памяти: превращает сырьё в проверенные знания для повторного использования. | [Репозиторий](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) |
|
| проект | Mnemazine | Локальная система памяти: превращает сырьё в проверенные знания для повторного использования. | [Репозиторий](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) |
|
||||||
| проект | Smltlk | Приложение для строки меню macOS: чинит раскладку, распознаёт речь офлайн и превращает голос в промпт. | [Репозиторий](https://github.com/zarubinvibe/smltlk) · [ZIP](https://github.com/zarubinvibe/smltlk/archive/refs/heads/main.zip) |
|
|
||||||
| проект | Themis | Многоагентный помощник по российским судебным делам с локальным OCR и советом из пяти юристов. | [Репозиторий](https://github.com/zarubinvibe/themis) · [ZIP](https://github.com/zarubinvibe/themis/archive/refs/heads/main.zip) |
|
| проект | Themis | Многоагентный помощник по российским судебным делам с локальным OCR и советом из пяти юристов. | [Репозиторий](https://github.com/zarubinvibe/themis) · [ZIP](https://github.com/zarubinvibe/themis/archive/refs/heads/main.zip) |
|
||||||
| проект | Zeuz | Фабрика многоагентных workflow: собирает систему с правилами, гейтами, наблюдаемостью и replay. | [Репозиторий](https://github.com/zarubinvibe/zeuz) · [ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) |
|
| проект | Zeuz | Фабрика многоагентных workflow: собирает систему с правилами, гейтами, наблюдаемостью и replay. | [Репозиторий](https://github.com/zarubinvibe/zeuz) · [ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) |
|
||||||
<!-- pantheon-family:end -->
|
<!-- pantheon-family:end -->
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ Surya, MinerU.
|
|||||||
|
|
||||||
**Что произошло.** Документируя починку `registry_check`, я записал имена двух
|
**Что произошло.** Документируя починку `registry_check`, я записал имена двух
|
||||||
папок дел в комментарии кода и в тело сообщения коммита. Фоновый auto-sync
|
папок дел в комментарии кода и в тело сообщения коммита. Фоновый auto-sync
|
||||||
опубликовал это на github.com/zarubinphil/themis (репозиторий публичный).
|
опубликовал это в публичном репозитории Themis.
|
||||||
|
|
||||||
**Почему это не мелочь.** Имя папки дела — фамилия человека. Фамилия рядом с
|
**Почему это не мелочь.** Имя папки дела — фамилия человека. Фамилия рядом с
|
||||||
предметом дела («раздел имущества», «алименты», «банкротство») — сведения о
|
предметом дела («раздел имущества», «алименты», «банкротство») — сведения о
|
||||||
|
|||||||
+15
-2
@@ -621,8 +621,21 @@ exec python3 "$(git rev-parse --show-toplevel)/scripts/pd_guard.py" %s
|
|||||||
|
|
||||||
|
|
||||||
def install() -> int:
|
def install() -> int:
|
||||||
hooks = git("rev-parse", "--git-path", "hooks").strip() or ".git/hooks"
|
common_dir = git("rev-parse", "--git-common-dir").strip()
|
||||||
hooks = hooks if os.path.isabs(hooks) else os.path.join(ROOT, hooks)
|
if not common_dir:
|
||||||
|
print("не удалось найти git common dir", file=sys.stderr)
|
||||||
|
return 1
|
||||||
|
common_dir = common_dir if os.path.isabs(common_dir) else os.path.join(ROOT, common_dir)
|
||||||
|
hooks = os.path.join(os.path.abspath(common_dir), "hooks")
|
||||||
|
configured = subprocess.run(
|
||||||
|
["git", "config", "--local", "core.hooksPath", hooks],
|
||||||
|
cwd=ROOT,
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
)
|
||||||
|
if configured.returncode != 0:
|
||||||
|
print(f"не удалось включить локальные git-хуки: {configured.stderr.strip()}", file=sys.stderr)
|
||||||
|
return 1
|
||||||
os.makedirs(hooks, exist_ok=True)
|
os.makedirs(hooks, exist_ok=True)
|
||||||
for name, arg in (("pre-commit", "--staged"),
|
for name, arg in (("pre-commit", "--staged"),
|
||||||
("commit-msg", '--msg "$1"'),
|
("commit-msg", '--msg "$1"'),
|
||||||
|
|||||||
Reference in New Issue
Block a user