@lark-apaas/openclaw-scripts-diagnose-cli 0.1.14-alpha.12 → 0.1.14-alpha.14
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/dist/index.cjs +14 -14
- 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.14-alpha.
|
|
55
|
+
return "0.1.14-alpha.14";
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/rule-engine/base.ts
|
|
@@ -3531,11 +3531,16 @@ function extractScopedNameFromSpec$1(spec) {
|
|
|
3531
3531
|
* Used by the upgrade_lark_needed rule and the upgrade-lark pre-check gate.
|
|
3532
3532
|
*/
|
|
3533
3533
|
function needsLarkUpgrade(ctx) {
|
|
3534
|
-
const cc = resolveCompatContext(
|
|
3534
|
+
const cc = resolveCompatContext({
|
|
3535
|
+
...ctx,
|
|
3536
|
+
vars: {
|
|
3537
|
+
...ctx.vars,
|
|
3538
|
+
recommendedOpenclawTag: void 0
|
|
3539
|
+
}
|
|
3540
|
+
});
|
|
3535
3541
|
if (!cc) return false;
|
|
3536
|
-
const { ocCur,
|
|
3542
|
+
const { ocCur, installed } = cc;
|
|
3537
3543
|
if (isForkPlugin(installed)) {
|
|
3538
|
-
if (recommendedOc) return false;
|
|
3539
3544
|
if (installed.fullName === FORK_LARK_PLUGIN_FULL_NAME) return compareCalVer(ocCur, FORK_LARK_PLUGIN_MIN_OC_VERSION) < 0;
|
|
3540
3545
|
return false;
|
|
3541
3546
|
}
|
|
@@ -3681,9 +3686,7 @@ let UpgradeLarkNeededRule = class UpgradeLarkNeededRule extends DiagnoseRule {
|
|
|
3681
3686
|
let versionIncompatible = false;
|
|
3682
3687
|
try {
|
|
3683
3688
|
versionIncompatible = needsLarkUpgrade(ctx);
|
|
3684
|
-
} catch {
|
|
3685
|
-
versionIncompatible = true;
|
|
3686
|
-
}
|
|
3689
|
+
} catch {}
|
|
3687
3690
|
let probeResult;
|
|
3688
3691
|
try {
|
|
3689
3692
|
probeResult = runChannelsProbe(6e4);
|
|
@@ -3712,8 +3715,7 @@ UpgradeLarkNeededRule = __decorate([Rule({
|
|
|
3712
3715
|
dependsOn: ["config_syntax_check"],
|
|
3713
3716
|
repairMode: "check-only",
|
|
3714
3717
|
level: "silent",
|
|
3715
|
-
profile: "experimental"
|
|
3716
|
-
usesVars: ["recommendedOpenclawTag"]
|
|
3718
|
+
profile: "experimental"
|
|
3717
3719
|
})], UpgradeLarkNeededRule);
|
|
3718
3720
|
//#endregion
|
|
3719
3721
|
//#region src/rules/cleanup-install-backup-dirs.ts
|
|
@@ -10413,7 +10415,7 @@ async function reportCliRun(opts) {
|
|
|
10413
10415
|
//#region src/help.ts
|
|
10414
10416
|
const BIN = "mclaw-diagnose";
|
|
10415
10417
|
function versionBanner() {
|
|
10416
|
-
return `v0.1.14-alpha.
|
|
10418
|
+
return `v0.1.14-alpha.14`;
|
|
10417
10419
|
}
|
|
10418
10420
|
const COMMANDS = [
|
|
10419
10421
|
{
|
|
@@ -11180,8 +11182,7 @@ function runUpgradeLark(opts) {
|
|
|
11180
11182
|
});
|
|
11181
11183
|
log(` version-compat pre-check: ${versionIncompatible ? "NEEDS_UPGRADE" : "ok"}`);
|
|
11182
11184
|
} catch (e) {
|
|
11183
|
-
log(` version-compat pre-check error: ${e.message} —
|
|
11184
|
-
versionIncompatible = true;
|
|
11185
|
+
log(` version-compat pre-check error: ${e.message} — version signal unavailable`);
|
|
11185
11186
|
}
|
|
11186
11187
|
const feishuConfigInvalid = beforeChannels.feishuConfigInvalid;
|
|
11187
11188
|
log(` feishu config invalid : ${feishuConfigInvalid}`);
|
|
@@ -11301,8 +11302,7 @@ function runUpgradeLark(opts) {
|
|
|
11301
11302
|
});
|
|
11302
11303
|
log(` version-compat post-check: ${afterVersionIncompatible ? "STILL_INCOMPATIBLE" : "ok"}`);
|
|
11303
11304
|
} catch (e) {
|
|
11304
|
-
log(` version-compat post-check error: ${e.message} —
|
|
11305
|
-
afterVersionIncompatible = true;
|
|
11305
|
+
log(` version-compat post-check error: ${e.message} — version signal unavailable`);
|
|
11306
11306
|
}
|
|
11307
11307
|
const afterChannels = probeChannels("after", log, 6e4);
|
|
11308
11308
|
log(` feishu config invalid after: ${afterChannels.feishuConfigInvalid}`);
|
package/package.json
CHANGED