Files
2dph/docs/chat-import-plan.md
T
eSlider 4f17b8e5ab
Tests / Test (push) Skipped
Tests / Release (semver) (push) Skipped
Tests / Test (pull_request) Failing after 5s
Tests / Release (semver) (pull_request) Skipped
feat: index facts extract and chats markdown on rebuild.
--with-facts / --facts-json write root=facts leafs; --with-chats
picks up var/chats/md as info. WhatsApp sync stays out of v1 (Gitea #18).
2026-08-14 10:54:46 +01:00

618 B

Chat Import Pipeline

Plan: eSlider/brain-chats-import#1

Env vars (set in shell, never committed)

TELEGRAM_MCP_DIR
TELEGRAM_API_ID / TELEGRAM_API_HASH / TELEGRAM_PHONE
TELEGRAM_SESSION_STRING
ONLYOFFICE_URL / ONLYOFFICE_USER / ONLYOFFICE_PASS
OO_CLI                     (default: $HOME/go/bin/oo)

Quick reference

./bin/chats/sync.go telegram --limit 100
./bin/chats/import.go
./bin/chats/facts.go
./bin/chats/apply.go --dry-run

JSONL → markdown only. Brain ingest is bin/brain/index.go --with-chats (default var/chats/md). WhatsApp sync is out of v1.