spawn-skill 1.2.1 → 1.2.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/bin/cli.js +3 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -718,10 +718,11 @@ async function main() {
|
|
|
718
718
|
const moltbotCheck = ora('Checking for Moltbot...').start();
|
|
719
719
|
try {
|
|
720
720
|
const { execSync } = await import('child_process');
|
|
721
|
-
|
|
721
|
+
// Use moltbot --version instead of 'which' for cross-platform support
|
|
722
|
+
execSync('moltbot --version', { stdio: 'pipe', shell: true });
|
|
722
723
|
moltbotCheck.succeed('Moltbot found');
|
|
723
724
|
} catch {
|
|
724
|
-
moltbotCheck.warn('Moltbot not
|
|
725
|
+
moltbotCheck.warn('Moltbot not found in PATH');
|
|
725
726
|
console.log(dim(' Install with: npm install -g moltbot@latest'));
|
|
726
727
|
console.log(dim(' Then run: moltbot onboard'));
|
|
727
728
|
console.log('');
|