改用数据库存储 token 并支持 AppId/Secret 变更时自动清空,替代内存缓存并增加无效 token 重试。 Co-authored-by: Cursor <cursoragent@cursor.com>