@aiyiran/myclaw 1.0.7 → 1.0.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 +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
|
|
26
26
|
const { execSync } = require('child_process');
|
|
27
27
|
const os = require('os');
|
|
28
|
+
const path = require('path');
|
|
28
29
|
const { createAgent } = require('./create_agent');
|
|
30
|
+
const { version } = require(path.join(__dirname, 'package.json'));
|
|
29
31
|
|
|
30
32
|
const args = process.argv.slice(2);
|
|
31
33
|
const command = args[0];
|
|
@@ -276,6 +278,8 @@ function showHelp() {
|
|
|
276
278
|
// 主逻辑
|
|
277
279
|
// ============================================================================
|
|
278
280
|
|
|
281
|
+
console.log(colors.blue + 'MyClaw v' + version + colors.nc);
|
|
282
|
+
|
|
279
283
|
if (!command || command === 'help' || command === '--help' || command === '-h') {
|
|
280
284
|
showHelp();
|
|
281
285
|
} else if (command === 'install') {
|