chaimi-keep-mcp 3.3.0-beta.5 → 3.3.0-beta.6
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 +4 -1
- package/package.json +1 -1
package/oauth.js
CHANGED
|
@@ -456,9 +456,12 @@ class FileTokenStorage extends TokenStorage {
|
|
|
456
456
|
await this.fs.writeFile(
|
|
457
457
|
tempFilePath,
|
|
458
458
|
content,
|
|
459
|
-
|
|
459
|
+
'utf8'
|
|
460
460
|
);
|
|
461
461
|
|
|
462
|
+
// 设置文件权限(仅所有者可读写)
|
|
463
|
+
await this.fs.chmod(tempFilePath, 0o600);
|
|
464
|
+
|
|
462
465
|
// 验证临时文件写入是否成功
|
|
463
466
|
const tempStats = await this.fs.stat(tempFilePath);
|
|
464
467
|
console.error('🔍 [DEBUG] 临时文件写入成功,大小:', tempStats.size, '字节');
|