@aiyiran/myclaw 1.0.51 → 1.0.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -143,6 +143,10 @@ if (apiKey) {
143
143
  fs.appendFileSync(rcFile, '\n# MiniMax API Key\n' + exportLine + '\n');
144
144
  console.log(' ✅ 已追加: ' + rcFile);
145
145
  }
146
+
147
+ // 同时设到当前进程,确保重启的 gateway 能继承
148
+ process.env.MINIMAX_API_KEY = apiKey;
149
+ console.log(' ✅ 当前进程已设置');
146
150
  }
147
151
  } else {
148
152
  console.log('');