@lark-apaas/openclaw-scripts-diagnose-cli 0.1.18-alpha.4 → 0.1.18-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 +8 -7
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -52,7 +52,7 @@ node_assert = __toESM(node_assert);
52
52
  * it terse and parseable.
53
53
  */
54
54
  function getVersion() {
55
- return "0.1.18-alpha.4";
55
+ return "0.1.18-alpha.5";
56
56
  }
57
57
  //#endregion
58
58
  //#region src/rule-engine/base.ts
@@ -5536,7 +5536,8 @@ async function installExtension(tag, ossFileMap, opts = {}) {
5536
5536
  configPath: opts.configPath ?? node_path.default.join(homeBase, DEFAULT_CONFIG_REL),
5537
5537
  workspaceDir: node_path.default.join(homeBase, "workspace", "agent"),
5538
5538
  ossFileMap,
5539
- downloadOpts: opts
5539
+ downloadOpts: opts,
5540
+ backupBaseDir: opts.backupBaseDir
5540
5541
  })) {
5541
5542
  targets = targets.filter((p) => p.name !== LARK_PLUGIN_NAME);
5542
5543
  if (targets.length === 0) {
@@ -5671,12 +5672,12 @@ async function installLarkPluginWithCompatCheck(opts) {
5671
5672
  return false;
5672
5673
  }
5673
5674
  const compatResult = checkPluginCompat(pkg.packageName, pkg.version, ocCur);
5674
- const compatible = compatResult.resolvedVersion ? compatResult.compatible : true;
5675
+ const compatible = compatResult.compatible;
5675
5676
  console.error(`[install-extension] ${pkg.packageName ?? pkg.name}@${pkg.version ?? "unknown"} (compat-as ${compatResult.resolvedVersion ?? "unknown"}) vs openclaw@${ocCur}: ${compatible}`);
5676
5677
  if (compatible) return false;
5677
5678
  console.error(`[install-extension] openclaw-lark@${pkg.version} incompatible with openclaw@${ocCur} — using openclaw-lark-tools update`);
5678
5679
  const log = (msg) => console.error(`[install-extension] ${msg}`);
5679
- const backupDir = node_path.default.join(homeBase, `.openclaw-lark-backup-${tag}`);
5680
+ const backupDir = node_path.default.join(opts.backupBaseDir ?? "/tmp/openclaw-diagnose", `openclaw-lark-backup-${tag}-${Date.now()}`);
5680
5681
  const backupOk = backupFeishuPlugins({
5681
5682
  workspaceDir,
5682
5683
  configPath,
@@ -10859,10 +10860,10 @@ async function runDoctor(rawCtx, opts) {
10859
10860
  continue;
10860
10861
  }
10861
10862
  if (rule.meta.repairMode !== "standard") {
10862
- console.error(`rule ${key}: validate -> failed (no auto-repair, repairMode=${rule.meta.repairMode}) durationMs=${Date.now() - tValidate} message=${v1.message ?? ""}`);
10863
+ console.error(`rule ${key}: validate -> failed, no auto-repair (repairMode=${rule.meta.repairMode}) -> skipped durationMs=${Date.now() - tValidate} message=${v1.message ?? ""}`);
10863
10864
  results.push({
10864
10865
  rule: key,
10865
- status: "failed",
10866
+ status: "skipped",
10866
10867
  message: v1.message,
10867
10868
  action: v1.action
10868
10869
  });
@@ -11220,7 +11221,7 @@ async function reportCliRun(opts) {
11220
11221
  //#region src/help.ts
11221
11222
  const BIN = "mclaw-diagnose";
11222
11223
  function versionBanner() {
11223
- return `v0.1.18-alpha.4`;
11224
+ return `v0.1.18-alpha.5`;
11224
11225
  }
11225
11226
  const COMMANDS = [
11226
11227
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/openclaw-scripts-diagnose-cli",
3
- "version": "0.1.18-alpha.4",
3
+ "version": "0.1.18-alpha.5",
4
4
  "description": "CLI for OpenClaw config diagnose and repair with JSON5 support",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {