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.
Files changed (2) hide show
  1. package/oauth.js +2 -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), { mode: 0o600 });
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), { mode: 0o600 });
527
+ await this.fs.writeFile(deviceCodePath, JSON.stringify(data, null, 2), 'utf8');
528
528
  } catch (err) {
529
529
  // 忽略错误
530
530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaimi-keep-mcp",
3
- "version": "3.3.0-beta.7",
3
+ "version": "3.3.0-beta.8",
4
4
  "description": "柴米记账 MCP Server - 支持 Claude、Cursor、OpenClaw、WorkBuddy 等 AI 工具直接记账",
5
5
  "main": "server.js",
6
6
  "bin": {