@aiyiran/myclaw 1.1.58 → 1.1.60

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/index.js +11 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1395,6 +1395,17 @@ function runMain() {
1395
1395
  }
1396
1396
 
1397
1397
  writeConfig(config, configPath);
1398
+ console.log('');
1399
+
1400
+ // 发送初始化消息激活 main agent
1401
+ const { execSync } = require('child_process');
1402
+ console.log('[mc main] 发送激活消息...');
1403
+ try {
1404
+ execSync('openclaw agent --agent main --message "你好!"', { stdio: 'inherit' });
1405
+ } catch (err) {
1406
+ console.error('[警告] 发送消息失败: ' + err.message);
1407
+ }
1408
+
1398
1409
  console.log('');
1399
1410
  console.log('[mc main] 完成');
1400
1411
  console.log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {