spawn-skill 1.2.1 → 1.2.3
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 +5 -4
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -514,8 +514,8 @@ async function askMoltbot(message) {
|
|
|
514
514
|
console.log('📨 Forwarding to Moltbot:', message);
|
|
515
515
|
updateStatus('thinking', 'Asking Moltbot...');
|
|
516
516
|
|
|
517
|
-
// Use
|
|
518
|
-
const moltbot = spawn('
|
|
517
|
+
// Use npx to find moltbot regardless of PATH
|
|
518
|
+
const moltbot = spawn('npx', ['moltbot', 'agent', '--message', message, '--thinking', 'high'], {
|
|
519
519
|
shell: true,
|
|
520
520
|
env: { ...process.env }
|
|
521
521
|
});
|
|
@@ -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 npx to find moltbot regardless of PATH
|
|
722
|
+
execSync('npx 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('');
|