feat: 批量导入支持记录三方 id,实现增量更新,存量覆盖

This commit is contained in:
richarjiang
2026-05-12 10:26:08 +08:00
parent e2fd091b4e
commit e0b88e68e9
5 changed files with 127 additions and 53 deletions

View File

@@ -104,7 +104,21 @@ COS_APPID=
<claude-mem-context>
# Memory Context
# $CMEM MemeStudio 2026-05-01 9:31am GMT+8
# [MemeStudio] recent context, 2026-05-12 10:21am GMT+8
No previous sessions found.
Legend: 🎯session 🔴bugfix 🟣feature 🔄refactor ✅change 🔵discovery ⚖decision 🚨security_alert 🔐security_note
Format: ID TIME TYPE TITLE
Fetch details: get_observations([IDs]) | Search: mem-search skill
Stats: 6 obs (1,857t read) | 145,103t work | 99% savings
### May 12, 2026
1517 10:14a 🟣 Batch import logic upgraded to upsert
1518 " 🔵 MemeStudio project context loaded
1519 10:15a 🔵 Level schema lacks riddle_id for upsert deduplication
1520 " 🔵 Batch import always POSTs, never checks for existing riddle_id
1521 10:16a 🔵 API route patch failed - upsert logic not applied
1522 10:17a ✅ Schema, types, and UI updated for riddle_id upsert
Access 145k tokens of past work via get_observations([IDs]) or mem-search skill.
</claude-mem-context>