chaimi-keep-mcp 3.3.0-beta.7 → 3.3.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/oauth.js +2 -2
- package/package.json +1 -1
package/oauth.js
CHANGED
|
@@ -497,7 +497,7 @@ class FileTokenStorage extends TokenStorage {
|
|
|
497
497
|
agentName: agentName || '柴米AI助手',
|
|
498
498
|
updatedAt: new Date().toISOString()
|
|
499
499
|
};
|
|
500
|
-
await this.fs.writeFile(agentNamePath, JSON.stringify(data, null, 2),
|
|
500
|
+
await this.fs.writeFile(agentNamePath, JSON.stringify(data, null, 2), 'utf8');
|
|
501
501
|
console.error('✅ Agent 名称已保存:', agentNamePath);
|
|
502
502
|
} catch (err) {
|
|
503
503
|
console.error('❌ 保存 Agent 名称失败:', err.message);
|
|
@@ -524,7 +524,7 @@ class FileTokenStorage extends TokenStorage {
|
|
|
524
524
|
deviceCode,
|
|
525
525
|
updatedAt: new Date().toISOString()
|
|
526
526
|
};
|
|
527
|
-
await this.fs.writeFile(deviceCodePath, JSON.stringify(data, null, 2),
|
|
527
|
+
await this.fs.writeFile(deviceCodePath, JSON.stringify(data, null, 2), 'utf8');
|
|
528
528
|
} catch (err) {
|
|
529
529
|
// 忽略错误
|
|
530
530
|
}
|