@aiyiran/myclaw 1.1.6 → 1.1.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/index.js CHANGED
@@ -1077,7 +1077,7 @@ function runNuke(cliArgs) {
1077
1077
  console.log(' 此命令将执行以下操作:');
1078
1078
  console.log(' 1. ' + colors.red + 'rm -rf /root/.openclaw' + colors.nc);
1079
1079
  console.log(' 2. ' + colors.red + 'rm -rf ~/.openclaw' + colors.nc);
1080
- console.log(' 3. openclaw onboard --non-interactive --accept-risk --skip-health --install-daemon');
1080
+ console.log(' 3. openclaw onboard --non-interactive --accept-risk --skip-health');
1081
1081
  console.log(' 4. mc up');
1082
1082
  console.log(' 5. mc patch');
1083
1083
  console.log(' 6. mc restart');
@@ -1119,9 +1119,9 @@ function runNuke(cliArgs) {
1119
1119
  console.log('');
1120
1120
 
1121
1121
  // Step 3: openclaw onboard
1122
- console.log('[3/6] openclaw onboard --non-interactive --accept-risk --skip-health --install-daemon');
1122
+ console.log('[3/6] openclaw onboard --non-interactive --accept-risk --skip-health');
1123
1123
  try {
1124
- execSync('openclaw onboard --non-interactive --accept-risk --skip-health --install-daemon', { stdio: 'inherit' });
1124
+ execSync('openclaw onboard --non-interactive --accept-risk --skip-health', { stdio: 'inherit' });
1125
1125
  console.log(' ' + colors.green + '✓ 完成' + colors.nc);
1126
1126
  } catch (err) {
1127
1127
  console.log(' ' + colors.red + '✗ 失败: ' + err.message + colors.nc);
@@ -66,6 +66,7 @@ function run(cliArgs) {
66
66
  baseUrl: "https://api.minimaxi.com/anthropic",
67
67
  api: "anthropic-messages",
68
68
  authHeader: true,
69
+ apiKey: apiKey,
69
70
  models: [
70
71
  {
71
72
  id: "MiniMax-M2.7-highspeed",
@@ -145,6 +146,24 @@ function run(cliArgs) {
145
146
  fs.mkdirSync(agentDir, { recursive: true });
146
147
  }
147
148
  fs.writeFileSync(profilesPath, JSON.stringify(profiles, null, 2) + '\n', 'utf8');
149
+
150
+ // 同时更新 models.json 里的 minimax.apiKey 占位符
151
+ const modelsPath = path.join(agentDir, 'models.json');
152
+ if (fs.existsSync(modelsPath)) {
153
+ try {
154
+ const models = JSON.parse(fs.readFileSync(modelsPath, 'utf8'));
155
+ if (models.providers && models.providers.minimax) {
156
+ models.providers.minimax.apiKey = apiKey;
157
+ }
158
+ if (models.providers && models.providers['minimax-portal']) {
159
+ models.providers['minimax-portal'].apiKey = apiKey;
160
+ }
161
+ fs.writeFileSync(modelsPath, JSON.stringify(models, null, 2) + '\n', 'utf8');
162
+ } catch {
163
+ // models.json 解析失败则跳过
164
+ }
165
+ }
166
+
148
167
  console.log(' ✅ ' + agent.id);
149
168
  okCount++;
150
169
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {