@zweer/dev 1.1.0 → 1.1.1
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.
|
@@ -32,12 +32,13 @@ export const installCommand = new Command()
|
|
|
32
32
|
// Install CAO
|
|
33
33
|
if (!installAgentsOnly) {
|
|
34
34
|
const spinner = ora('Installing CAO prerequisites...').start();
|
|
35
|
+
spinner.stop();
|
|
35
36
|
try {
|
|
36
37
|
await executeInstallCao();
|
|
37
|
-
|
|
38
|
+
console.log(chalk.green('✔ CAO installed successfully'));
|
|
38
39
|
}
|
|
39
40
|
catch (error) {
|
|
40
|
-
|
|
41
|
+
console.error(chalk.red('✖ Failed to install CAO'));
|
|
41
42
|
console.error(error);
|
|
42
43
|
process.exit(1);
|
|
43
44
|
}
|
|
@@ -45,13 +46,13 @@ export const installCommand = new Command()
|
|
|
45
46
|
// Install agents
|
|
46
47
|
if (!installCaoOnly) {
|
|
47
48
|
const agents = await getAllAgents();
|
|
48
|
-
|
|
49
|
+
console.log(chalk.cyan(`Installing ${agents.length} agents...`));
|
|
49
50
|
const { installed, failed } = await executeInstallAgents();
|
|
50
51
|
if (failed === 0) {
|
|
51
|
-
|
|
52
|
+
console.log(chalk.green(`✔ All ${installed} agents installed successfully`));
|
|
52
53
|
}
|
|
53
54
|
else {
|
|
54
|
-
|
|
55
|
+
console.log(chalk.yellow(`⚠ Installed ${installed} agents, ${failed} failed`));
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
console.log(chalk.bold.green('\n✅ Installation complete!\n'));
|