@lark-apaas/openclaw-scripts-diagnose-cli 0.1.1-alpha.3 → 0.1.1-alpha.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/index.cjs +5 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1182,7 +1182,7 @@ function runReset(input, taskId, resultFile) {
1182
1182
  const zipPath = node_path.default.join(TMP_RESET_DIR, "template.zip");
1183
1183
  const zipSource = resetData.zipDownloadURL;
1184
1184
  if (zipSource.startsWith("http://") || zipSource.startsWith("https://")) shell(`curl -sSL -o '${zipPath}' '${zipSource}'`, 12e4);
1185
- else shell(`cp '${zipSource}' '${zipPath}'`, 1e4);
1185
+ else shell(`cp "${zipSource}" '${zipPath}'`, 1e4);
1186
1186
  shell(`unzip -o '${zipPath}' -d '${TMP_RESET_DIR}'`, 6e4);
1187
1187
  const srcDir = findSrcDir(TMP_RESET_DIR);
1188
1188
  currentStep = 3;
@@ -1202,8 +1202,9 @@ function runReset(input, taskId, resultFile) {
1202
1202
  updateProgress(resultFile, currentStep, STEPS[4], startedAt);
1203
1203
  const JSON5 = loadJSON5();
1204
1204
  const version = JSON5.parse(node_fs.default.readFileSync(srcConfigPath, "utf-8")).meta?.lastTouchedVersion;
1205
- if (version) shell(`npm install -g @anthropic-ai/openclaw@${version}`, 3e5);
1206
- else shell("npm install -g @anthropic-ai/openclaw@latest", 3e5);
1205
+ if (version) shell(`npm i -g openclaw@${version}`, 3e5);
1206
+ else shell("npm i -g openclaw@latest", 3e5);
1207
+ shell("openclaw doctor --fix", 6e4);
1207
1208
  currentStep = 6;
1208
1209
  updateProgress(resultFile, currentStep, STEPS[5], startedAt);
1209
1210
  if (fileExists(CORE_BACKUP_PATH)) {
@@ -1232,7 +1233,7 @@ function runReset(input, taskId, resultFile) {
1232
1233
  currentStep = 8;
1233
1234
  updateProgress(resultFile, currentStep, STEPS[7], startedAt);
1234
1235
  try {
1235
- shell("openclaw plugins install --all", 3e5);
1236
+ shell("openclaw plugins update --all", 3e5);
1236
1237
  } catch (e) {}
1237
1238
  currentStep = 9;
1238
1239
  updateProgress(resultFile, currentStep, STEPS[8], startedAt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/openclaw-scripts-diagnose-cli",
3
- "version": "0.1.1-alpha.3",
3
+ "version": "0.1.1-alpha.5",
4
4
  "description": "CLI for OpenClaw config diagnose and repair with JSON5 support",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {