| db.ts | SQLite via libSQL. Schema migrations, FTS5 triggers, getDb() singleton | | memory.ts | All memory operations: add, search, list, forget, update, getContext, getRules, streaming | | embeddings.ts | Local embeddings via Xenova/Transformers. generateEmbedding(), cosine similarity | | git.ts | getProjectId() — derives project ID from git remote URL |
| auth.ts | Cloud auth token storage, device code flow helpers | | turso.ts | Turso embedded replica sync (cloud ↔ local) | | config.ts | YAML config read/write (/.config/memories/) | | setup.ts | Tool detection (Cursor, Claude, Windsurf, VS Code), MCP config setup | | templates.ts | Built-in memory templates (decision, error-fix, api-endpoint, etc.) |
| ui.ts | Terminal styling: chalk, figlet, gradient, boxen |
Memories.sh 코드베이스에 기여하고 확장하기 위한 개발자 가이드입니다. 사용 시기: (1) Memories.sh 아키텍처 및 패키지 연결 방법 이해, (2) 새로운 CLI 명령 또는 MCP 도구 추가, (3) 메모리 저장 계층 수정(SQLite/libSQL), (4) 웹 대시보드 작업(Next.js/Supabase), (5) AI 도구에 대한 차세대 대상 추가, (6) 클라우드 동기화 또는 임베딩 기능 확장, (7) 모노레포에서 빌드, 테스트 또는 배포 문제 디버깅. 출처: webrenew/memories.