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.
Files changed (2) hide show
  1. package/oauth.js +4 -1
  2. 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
- { mode: 0o600 }
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, '字节');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaimi-keep-mcp",
3
- "version": "3.3.0-beta.5",
3
+ "version": "3.3.0-beta.6",
4
4
  "description": "柴米记账 MCP Server - 支持 Claude、Cursor、OpenClaw、WorkBuddy 等 AI 工具直接记账",
5
5
  "main": "server.js",
6
6
  "bin": {