create-openclaw-bot 5.6.4 → 5.6.5

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/dist/cli.js +29 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -865,14 +865,23 @@ async function runUpgradeCommand() {
865
865
  }
866
866
  }
867
867
 
868
- function startNative9RouterPm2({ isVi, projectDir, appName, syncScriptPath }) {
869
- const routerAppName = `${appName}-9router`;
870
- const routerLaunch = resolveNative9RouterDesktopLaunch();
871
- const normalizedProjectDir = projectDir.replace(/\\/g, '/');
872
- const normalizedSyncScriptPath = syncScriptPath ? syncScriptPath.replace(/\\/g, '/') : '';
873
- execFileSync('pm2', [
874
- 'start',
875
- routerLaunch.command,
868
+ function startNative9RouterPm2({ isVi, projectDir, appName, syncScriptPath }) {
869
+ const routerAppName = `${appName}-9router`;
870
+ const routerLaunch = resolveNative9RouterDesktopLaunch();
871
+ const normalizedProjectDir = projectDir.replace(/\\/g, '/');
872
+ const normalizedSyncScriptPath = syncScriptPath ? syncScriptPath.replace(/\\/g, '/') : '';
873
+ try {
874
+ execSync(`pm2 delete ${routerAppName}`, {
875
+ cwd: projectDir,
876
+ stdio: 'ignore',
877
+ shell: true
878
+ });
879
+ } catch {
880
+ // ignore missing app
881
+ }
882
+ execFileSync('pm2', [
883
+ 'start',
884
+ routerLaunch.command,
876
885
  '--name',
877
886
  routerAppName,
878
887
  '--cwd',
@@ -888,15 +897,24 @@ function startNative9RouterPm2({ isVi, projectDir, appName, syncScriptPath }) {
888
897
  });
889
898
  if (syncScriptPath) {
890
899
  const syncAppName = `${appName}-9router-sync`;
900
+ try {
901
+ execSync(`pm2 delete ${syncAppName}`, {
902
+ cwd: projectDir,
903
+ stdio: 'ignore',
904
+ shell: true
905
+ });
906
+ } catch {
907
+ // ignore missing app
908
+ }
891
909
  execFileSync('pm2', [
892
910
  'start',
893
- process.execPath,
911
+ normalizedSyncScriptPath,
894
912
  '--name',
895
913
  syncAppName,
896
914
  '--cwd',
897
915
  normalizedProjectDir,
898
- '--',
899
- normalizedSyncScriptPath
916
+ '--interpreter',
917
+ process.execPath
900
918
  ], {
901
919
  cwd: projectDir,
902
920
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-openclaw-bot",
3
- "version": "5.6.4",
3
+ "version": "5.6.5",
4
4
  "description": "Interactive CLI installer for OpenClaw Bot",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {