stigmergy 1.3.21-beta.0 ā 1.3.22-beta.0
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,4 +1,65 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { handleInstallCommand } from './install.js';
|
|
3
3
|
import { handleDeployCommand } from './project.js';
|
|
4
|
-
import BuiltinSkillsDeployer from '
|
|
4
|
+
import BuiltinSkillsDeployer from '../../core/skills/BuiltinSkillsDeployer.js';
|
|
5
|
+
|
|
6
|
+
export async function handleAutoInstallCommand(options) {
|
|
7
|
+
console.log(chalk.blue('š Stigmergy Auto-Installation'));
|
|
8
|
+
console.log(chalk.gray('=====================================\n'));
|
|
9
|
+
|
|
10
|
+
// Step 1: Install CLI tools
|
|
11
|
+
console.log(chalk.blue('š¦ Step 1/3: Installing CLI tools...'));
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
await handleInstallCommand({
|
|
15
|
+
verbose: options.verbose || process.env.DEBUG === 'true',
|
|
16
|
+
force: options.force || false
|
|
17
|
+
});
|
|
18
|
+
} catch (error) {
|
|
19
|
+
console.error(chalk.red('ā CLI tools installation failed:'), error.message);
|
|
20
|
+
// Continue with next step even if CLI tools installation fails
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Step 2: Deploy hooks and ResumeSession
|
|
24
|
+
console.log(chalk.blue('\nš Step 2/3: Deploying hooks and ResumeSession integration...'));
|
|
25
|
+
|
|
26
|
+
try {
|
|
27
|
+
const deployResult = await handleDeployCommand({
|
|
28
|
+
verbose: options.verbose || process.env.DEBUG === 'true',
|
|
29
|
+
force: options.force || false
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
if (deployResult.success) {
|
|
33
|
+
console.log(chalk.green('ā Hooks deployed successfully'));
|
|
34
|
+
} else {
|
|
35
|
+
console.warn(chalk.yellow('ā Hooks deployment completed with warnings'));
|
|
36
|
+
}
|
|
37
|
+
} catch (error) {
|
|
38
|
+
console.error(chalk.red('ā Hooks deployment failed:'), error.message);
|
|
39
|
+
// Continue with next step even if hooks deployment fails
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Step 3: Deploy built-in skills
|
|
43
|
+
console.log(chalk.blue('\nš Step 3/3: Deploying built-in skills...'));
|
|
44
|
+
|
|
45
|
+
try {
|
|
46
|
+
const skillsDeployer = new BuiltinSkillsDeployer();
|
|
47
|
+
const skillsResult = await skillsDeployer.deployAll();
|
|
48
|
+
|
|
49
|
+
if (skillsResult.success) {
|
|
50
|
+
console.log(chalk.green('ā Built-in skills deployed successfully'));
|
|
51
|
+
} else {
|
|
52
|
+
console.warn(chalk.yellow('ā Built-in skills deployment completed with warnings'));
|
|
53
|
+
}
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error(chalk.red('ā Built-in skills deployment failed:'), error.message);
|
|
56
|
+
// Continue even if skills deployment fails
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
console.log(chalk.green('\nš Auto-installation completed successfully!'));
|
|
60
|
+
console.log(chalk.cyan('\nNext steps:'));
|
|
61
|
+
console.log(' ⢠Run: stigmergy --help');
|
|
62
|
+
console.log(' ⢠Try: stigmergy claude "Hello World"');
|
|
63
|
+
console.log(' ⢠Check: stigmergy status');
|
|
64
|
+
console.log(' ⢠Resume sessions: stigmergy resume --limit 10');
|
|
65
|
+
}
|