apexbot 1.0.0 → 1.0.1

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/dist/cli/index.js CHANGED
@@ -690,14 +690,14 @@ program
690
690
  console.log('');
691
691
  console.log(chalk.cyan('🚀 Starting ApexBot daemon...'));
692
692
  // Spawn detached process (cross-platform)
693
+ // Use 'apexbot gateway' command directly - works with global npm install
693
694
  const { spawn } = require('child_process');
694
695
  const out = fs.openSync(logFile, 'a');
695
696
  const err = fs.openSync(logFile, 'a');
696
697
  const isWindows = process.platform === 'win32';
697
- const child = spawn(isWindows ? 'cmd.exe' : 'npx', isWindows
698
- ? ['/c', 'npx', 'ts-node', 'src/cli/index.ts', 'gateway']
699
- : ['ts-node', 'src/cli/index.ts', 'gateway'], {
700
- cwd: process.cwd(),
698
+ const child = spawn(isWindows ? 'cmd.exe' : '/bin/sh', isWindows
699
+ ? ['/c', 'apexbot', 'gateway']
700
+ : ['-c', 'apexbot gateway'], {
701
701
  detached: true,
702
702
  stdio: ['ignore', out, err],
703
703
  shell: false,
@@ -761,10 +761,9 @@ program
761
761
  const out = fs.openSync(logFile, 'a');
762
762
  const err = fs.openSync(logFile, 'a');
763
763
  const isWindows = process.platform === 'win32';
764
- const child = spawn(isWindows ? 'cmd.exe' : 'npx', isWindows
765
- ? ['/c', 'npx', 'ts-node', 'src/cli/index.ts', 'gateway']
766
- : ['ts-node', 'src/cli/index.ts', 'gateway'], {
767
- cwd: process.cwd(),
764
+ const child = spawn(isWindows ? 'cmd.exe' : '/bin/sh', isWindows
765
+ ? ['/c', 'apexbot', 'gateway']
766
+ : ['-c', 'apexbot gateway'], {
768
767
  detached: true,
769
768
  stdio: ['ignore', out, err],
770
769
  shell: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apexbot",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "ApexBot - Your free, private AI assistant. 100% free with Ollama (local AI). Multi-channel: Telegram, Discord, WebChat. Like Clawdbot but open-source!",
5
5
  "main": "dist/index.js",
6
6
  "bin": {