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.
Files changed (2) hide show
  1. package/bin/cli.js +5 -4
  2. 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 shell: true to inherit PATH and find globally installed moltbot
518
- const moltbot = spawn('moltbot', ['agent', '--message', message, '--thinking', 'high'], {
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
- execSync('which moltbot', { stdio: 'pipe' });
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 installed');
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('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spawn-skill",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Connect your AI agent to Spawn.wtf",
5
5
  "bin": {
6
6
  "spawn-skill": "./bin/cli.js"