@chrysb/alphaclaw 0.9.19 → 0.9.21

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/alphaclaw.js CHANGED
@@ -4,7 +4,7 @@
4
4
  const fs = require("fs");
5
5
  const os = require("os");
6
6
  const path = require("path");
7
- const { execSync } = require("child_process");
7
+ const { execFileSync, execSync } = require("child_process");
8
8
  const {
9
9
  shouldSkipSystemCronInstall,
10
10
  resolveGitAskPassPath,
@@ -733,6 +733,20 @@ if (fs.existsSync(path.join(openclawDir, ".git"))) {
733
733
  }
734
734
  }
735
735
 
736
+ if (fs.existsSync(configPath)) {
737
+ try {
738
+ execFileSync(process.execPath, [
739
+ path.join(__dirname, "..", "lib", "scripts", "migrate-openclaw-codex.js"),
740
+ ], {
741
+ env: process.env,
742
+ stdio: "inherit",
743
+ timeout: 60_000,
744
+ });
745
+ } catch (error) {
746
+ console.error(`[alphaclaw] Codex migration process failed: ${error.message}`);
747
+ }
748
+ }
749
+
736
750
  if (fs.existsSync(configPath)) {
737
751
  console.log("[alphaclaw] Config exists, reconciling channels...");
738
752