Add full Cursor chat archive for Documents/repos workspaces.
Includes global state.vscdb, per-repo transcripts, workspace storage, composer exports, and restore scripts for a new machine. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# cursor-chat-archive
|
||||
|
||||
Личный архив истории чатов Cursor для репозиториев из `~/Documents/repos` (экспорт с ноутбука перед увольнением).
|
||||
|
||||
**Gitea:** `git@91.108.237.249:komehdaht/cursor-chat-archive.git`
|
||||
|
||||
## Восстановление на новом ноутбуке
|
||||
|
||||
1. Клонировать репозитории в `~/Documents/repos` (те же имена папок).
|
||||
2. Скопировать `restore-config.example.json` → `restore-config.json`, указать свой `$HOME`.
|
||||
3. **Закрыть Cursor.**
|
||||
4. Выполнить:
|
||||
```bash
|
||||
python3 scripts/restore-archive.py
|
||||
```
|
||||
5. Открыть Cursor и папки репозиториев.
|
||||
|
||||
Подробная инструкция для AI в новом чате: **[RESTORE_FOR_AI.md](RESTORE_FOR_AI.md)** — откройте этот файл в Composer и попросите агента выполнить восстановление.
|
||||
|
||||
## Повторный экспорт (если понадобится)
|
||||
|
||||
```bash
|
||||
python3 scripts/export-archive.py
|
||||
git add -A && git commit -m "Update chat archive" && git push
|
||||
```
|
||||
|
||||
## Состав
|
||||
|
||||
- `global/state.vscdb` — все Composer-чаты (~400+ MB)
|
||||
- `repos/*` — agent-transcripts, workspace-storage, composers per repo
|
||||
- `manifest.json` — метаданные для remap путей
|
||||
|
||||
## Безопасность
|
||||
|
||||
Репозиторий **private** на личной Gitea. В чатах могут быть внутренние URL и секреты — не публиковать.
|
||||
Reference in New Issue
Block a user