@lark-apaas/openclaw-scripts-diagnose-cli 0.1.15-alpha.3 → 0.1.15-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 +9 -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.15-alpha.3";
55
+ return "0.1.15-alpha.5";
56
56
  }
57
57
  //#endregion
58
58
  //#region src/rule-engine/base.ts
@@ -10392,7 +10392,7 @@ function finalize(results, aborted) {
10392
10392
  //#endregion
10393
10393
  //#region src/channels-probe.ts
10394
10394
  const FEISHU_INVALID_CONFIG_MSG = "channels.feishu: invalid config: must NOT have additional properties";
10395
- const CHANNEL_LINE_RE = /^-\s+Feishu\s+([^:]+):\s+(.+)$/;
10395
+ const CHANNEL_LINE_RE = /^-\s+(?:Feishu|openclaw-lark|@larksuite\/openclaw-lark)\s+([^:]+):\s+(.+)$/i;
10396
10396
  /**
10397
10397
  * 判断单个飞书账号是否处于"可用"状态。
10398
10398
  * 移植自 feishu-channel-success-rate skill 的 Python `_account_is_working`。
@@ -10602,7 +10602,7 @@ async function reportCliRun(opts) {
10602
10602
  //#region src/help.ts
10603
10603
  const BIN = "mclaw-diagnose";
10604
10604
  function versionBanner() {
10605
- return `v0.1.15-alpha.3`;
10605
+ return `v0.1.15-alpha.5`;
10606
10606
  }
10607
10607
  const COMMANDS = [
10608
10608
  {
@@ -11268,9 +11268,11 @@ function backupFiles(opts) {
11268
11268
  }
11269
11269
  return { ok: true };
11270
11270
  } catch (e) {
11271
+ const msg = `backup failed: ${e.message}`;
11272
+ log(`ERROR: ${msg}`);
11271
11273
  return {
11272
11274
  ok: false,
11273
- error: `backup failed: ${e.message}`
11275
+ error: msg
11274
11276
  };
11275
11277
  }
11276
11278
  }
@@ -11399,7 +11401,7 @@ function runUpgradeLark(opts) {
11399
11401
  log("");
11400
11402
  log("── [Pre-check A] channels probe(升级前)────────────────");
11401
11403
  const t_preProbeStart = Date.now();
11402
- const beforeChannels = probeChannels("before", log, 6e4);
11404
+ const beforeChannels = probeChannels("before", log, 3e5);
11403
11405
  timing.preProbeMs = Date.now() - t_preProbeStart;
11404
11406
  log("");
11405
11407
  log("── [Pre-check B] 版本兼容预检 ───────────────────────────");
@@ -11515,7 +11517,7 @@ function runUpgradeLark(opts) {
11515
11517
  "pipe",
11516
11518
  "pipe"
11517
11519
  ],
11518
- timeout: 12e4
11520
+ timeout: 6e5
11519
11521
  });
11520
11522
  timing.npxInstallMs = Date.now() - t_npxStart;
11521
11523
  const npxStdout = npxResult.stdout?.trim() ?? "";
@@ -11566,7 +11568,7 @@ function runUpgradeLark(opts) {
11566
11568
  log(` version-compat post-check error: ${e.message} — version signal unavailable`);
11567
11569
  }
11568
11570
  const t_postProbeStart = Date.now();
11569
- const afterChannels = probeChannels("after", log, 6e4);
11571
+ const afterChannels = probeChannels("after", log, 3e5);
11570
11572
  timing.postProbeMs = Date.now() - t_postProbeStart;
11571
11573
  log(` feishu config invalid after: ${afterChannels.feishuConfigInvalid}`);
11572
11574
  const stillNeedsUpgrade = (afterVersionIncompatible || afterChannels.feishuConfigInvalid) && !afterChannels.anyAccountWorking;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/openclaw-scripts-diagnose-cli",
3
- "version": "0.1.15-alpha.3",
3
+ "version": "0.1.15-alpha.5",
4
4
  "description": "CLI for OpenClaw config diagnose and repair with JSON5 support",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {