spawn-skill 1.2.2 → 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 +4 -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,8 +718,8 @@ async function main() {
718
718
  const moltbotCheck = ora('Checking for Moltbot...').start();
719
719
  try {
720
720
  const { execSync } = await import('child_process');
721
- // Use moltbot --version instead of 'which' for cross-platform support
722
- execSync('moltbot --version', { stdio: 'pipe', shell: true });
721
+ // Use npx to find moltbot regardless of PATH
722
+ execSync('npx moltbot --version', { stdio: 'pipe', shell: true });
723
723
  moltbotCheck.succeed('Moltbot found');
724
724
  } catch {
725
725
  moltbotCheck.warn('Moltbot not found in PATH');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spawn-skill",
3
- "version": "1.2.2",
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"