Add User Model Service and Temporal Recall for MeMind V0.1.

Introduce UMS ingest/snapshot pipeline, Context Planner with multi-source recall, runtime context injection, canonical user mapping, and session snapshot loading on auth/me.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-03 23:25:18 +08:00
parent bf66fdf493
commit 212ff3ff80
47 changed files with 4534 additions and 6 deletions
+15
View File
@@ -571,3 +571,18 @@ MEMIND_RUNTIME_PROFILE=local
# MEMIND_CURSOR_CHAT_BRIDGE_ENTRYPOINT=1
# CURSOR_API_KEY=your-cursor-api-key
# memindadm 选择「Cursor Chat Bridge (实验)」后 sync 到 goosed
# User Model Service (UMS) — Evidence → Signals → Candidates → Snapshot
# 独立库 memind_user_model,与 goose / meinput 分离
# UMS_DATABASE_URL=mysql://boot:888888@localhost:3306/memind_user_model
# UMS_INGEST_TOKEN=local-dev-ums-ingest-token
# tang19821002 → 微信「唐」:同一人的多账号归并到 canonical user_id
# MEMIND_CANONICAL_USER_MAP=d0678bbc-2a50-4e08-8bf0-6b6c9301e2d6=a70ff537-8908-486e-9b6c-042e07cc25db
# 迁移:node user-model-service/migrate.mjs
# Temporal Recall — 时间回忆域(Context Planner + Multi-source Retrieval
# MEINPUT_DATABASE_URL=mysql://boot:888888@localhost:3306/meinput
# MEINPUT_BASE_URL=http://127.0.0.1:8090
# 测试:node scripts/smoke-temporal-recall.mjs "我这周有什么重要的事?"
# MEMIND_RUNTIME_CONTEXT_ENABLED=1
# MEMIND_TEMPORAL_RECALL_CALENDAR_ENABLED=1 # scheduleService → Calendar adapter