@codihaus/claude-skills 1.6.1 → 1.6.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@codihaus/claude-skills",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Claude Code skills for software development workflow",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -79,16 +79,22 @@ export async function init(options) {
79
79
 
80
80
  // Offer to install missing Python packages (only if Python is installed)
81
81
  const missingPython = globalDeps.python?.filter(p => !p.installed) || [];
82
- if (hasPython && hasPip && missingPython.length > 0 && !options.yes) {
83
- const { installPython } = await inquirer.prompt([{
84
- type: 'confirm',
85
- name: 'installPython',
86
- message: `Install missing Python packages (${missingPython.map(p => p.name).join(', ')})? (will try --user first, then sudo if needed)`,
87
- default: true
88
- }]);
89
-
90
- if (installPython) {
82
+ if (hasPython && hasPip && missingPython.length > 0) {
83
+ if (options.yes) {
84
+ // Auto-install when --yes flag is used
85
+ console.log(chalk.cyan(`\nAuto-installing Python packages: ${missingPython.map(p => p.name).join(', ')}`));
91
86
  await installPythonDeps(missingPython);
87
+ } else {
88
+ const { installPython } = await inquirer.prompt([{
89
+ type: 'confirm',
90
+ name: 'installPython',
91
+ message: `Install missing Python packages (${missingPython.map(p => p.name).join(', ')})? (will try --user first, then sudo if needed)`,
92
+ default: true
93
+ }]);
94
+
95
+ if (installPython) {
96
+ await installPythonDeps(missingPython);
97
+ }
92
98
  }
93
99
  } else if (missingPython.length > 0 && (!hasPython || !hasPip)) {
94
100
  console.log(chalk.yellow('\n⚠️ Python packages are needed but Python/pip is not available.'));