@zeyue0329/xiaoma-cli 1.0.2 → 1.0.4
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeyue0329/xiaoma-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "XiaoMa Cli: Universal AI Agent Framework",
|
|
5
5
|
"main": "tools/cli.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"xiaoma": "tools/xiaoma-npx-wrapper.js",
|
|
8
|
-
"xiaoma-
|
|
8
|
+
"xiaoma-cli": "tools/xiaoma-npx-wrapper.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "node tools/cli.js build",
|
|
@@ -33,12 +33,12 @@ try {
|
|
|
33
33
|
|
|
34
34
|
program
|
|
35
35
|
.version(version)
|
|
36
|
-
.description('XiaoMa
|
|
36
|
+
.description('XiaoMa CLI installer - Universal AI agent framework for any domain');
|
|
37
37
|
|
|
38
38
|
program
|
|
39
39
|
.command('install')
|
|
40
|
-
.description('Install XiaoMa
|
|
41
|
-
.option('-f, --full', 'Install complete XiaoMa
|
|
40
|
+
.description('Install XiaoMa CLI agents and tools')
|
|
41
|
+
.option('-f, --full', 'Install complete XiaoMa CLI')
|
|
42
42
|
.option('-x, --expansion-only', 'Install only expansion packs (no xiaoma-core)')
|
|
43
43
|
.option('-d, --directory <path>', 'Installation directory')
|
|
44
44
|
.option('-i, --ide <ide...>', 'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, trae, roo, kilo, cline, gemini, qwen-code, github-copilot, other)')
|
|
@@ -78,7 +78,7 @@ program
|
|
|
78
78
|
|
|
79
79
|
program
|
|
80
80
|
.command('update')
|
|
81
|
-
.description('Update existing XiaoMa
|
|
81
|
+
.description('Update existing XiaoMa CLI installation')
|
|
82
82
|
.option('--force', 'Force update, overwriting modified files')
|
|
83
83
|
.option('--dry-run', 'Show what would be updated without making changes')
|
|
84
84
|
.action(async () => {
|
|
@@ -150,7 +150,7 @@ async function promptInstallation() {
|
|
|
150
150
|
{
|
|
151
151
|
type: 'input',
|
|
152
152
|
name: 'directory',
|
|
153
|
-
message: 'Enter the full path to your project directory where XiaoMa
|
|
153
|
+
message: 'Enter the full path to your project directory where XiaoMa CLI should be installed:',
|
|
154
154
|
default: process.cwd(),
|
|
155
155
|
validate: (input) => {
|
|
156
156
|
if (!input.trim()) {
|
|
@@ -223,7 +223,7 @@ class Installer {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
async performFreshInstall(config, installDir, spinner, options = {}) {
|
|
226
|
-
spinner.text = "Installing XiaoMa
|
|
226
|
+
spinner.text = "Installing XiaoMa CLI...";
|
|
227
227
|
|
|
228
228
|
let files = [];
|
|
229
229
|
|
|
@@ -795,7 +795,7 @@ class Installer {
|
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
async performReinstall(config, installDir, spinner) {
|
|
798
|
-
spinner.start("Preparing to reinstall XiaoMa
|
|
798
|
+
spinner.start("Preparing to reinstall XiaoMa CLI...");
|
|
799
799
|
|
|
800
800
|
// Remove existing .xiaoma-core
|
|
801
801
|
const bmadCorePath = path.join(installDir, ".xiaoma-core");
|
|
@@ -815,7 +815,7 @@ class Installer {
|
|
|
815
815
|
}
|
|
816
816
|
|
|
817
817
|
showSuccessMessage(config, installDir, options = {}) {
|
|
818
|
-
console.log(chalk.green("\n✓ XiaoMa
|
|
818
|
+
console.log(chalk.green("\n✓ XiaoMa CLI installed successfully!\n"));
|
|
819
819
|
|
|
820
820
|
const ides = config.ides || (config.ide ? [config.ide] : []);
|
|
821
821
|
if (ides.length > 0) {
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"author": "XiaoMa Team",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"chalk": "^
|
|
25
|
+
"chalk": "^4.1.2",
|
|
26
26
|
"commander": "^14.0.0",
|
|
27
27
|
"fs-extra": "^11.3.0",
|
|
28
|
-
"inquirer": "^
|
|
28
|
+
"inquirer": "^8.2.6",
|
|
29
29
|
"js-yaml": "^4.1.0",
|
|
30
|
-
"ora": "^
|
|
30
|
+
"ora": "^5.4.1"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=20.0.0"
|