@lark-apaas/openclaw-scripts-diagnose-cli 0.1.1-alpha.21 → 0.1.1-alpha.22
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 +23 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -199,7 +199,7 @@ function shell(cmd, timeoutMs = 6e4) {
|
|
|
199
199
|
}).trim();
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
|
-
//#region \0@oxc-project+runtime@0.
|
|
202
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
|
|
203
203
|
function __decorate(decorators, target, key, desc) {
|
|
204
204
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
205
205
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -600,6 +600,27 @@ FeishuChannelRule = _FeishuChannelRule = __decorate([Rule({
|
|
|
600
600
|
repairMode: "standard"
|
|
601
601
|
})], FeishuChannelRule);
|
|
602
602
|
//#endregion
|
|
603
|
+
//#region src/rules/feishu-default-account.ts
|
|
604
|
+
let FeishuDefaultAccountRule = class FeishuDefaultAccountRule extends DiagnoseRule {
|
|
605
|
+
validate(ctx) {
|
|
606
|
+
const feishu = getNestedMap(ctx.config, "channels", "feishu");
|
|
607
|
+
if (feishu && "defaultAccount" in feishu) return {
|
|
608
|
+
pass: false,
|
|
609
|
+
message: "channels.feishu.defaultAccount should be removed"
|
|
610
|
+
};
|
|
611
|
+
return { pass: true };
|
|
612
|
+
}
|
|
613
|
+
repair(ctx) {
|
|
614
|
+
const feishu = getNestedMap(ctx.config, "channels", "feishu");
|
|
615
|
+
if (feishu && "defaultAccount" in feishu) delete feishu.defaultAccount;
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
FeishuDefaultAccountRule = __decorate([Rule({
|
|
619
|
+
key: "feishu_default_account",
|
|
620
|
+
dependsOn: ["config_syntax_check"],
|
|
621
|
+
repairMode: "standard"
|
|
622
|
+
})], FeishuDefaultAccountRule);
|
|
623
|
+
//#endregion
|
|
603
624
|
//#region src/rules/gateway.ts
|
|
604
625
|
var _GatewayRule;
|
|
605
626
|
let GatewayRule = class GatewayRule extends DiagnoseRule {
|
|
@@ -1232,7 +1253,7 @@ function ensureOpenclawBinary(srcDir, configPath, log) {
|
|
|
1232
1253
|
return;
|
|
1233
1254
|
}
|
|
1234
1255
|
if (isOpenclawInstalled()) {
|
|
1235
|
-
const updateCmd = `openclaw update${targetVersion ? " --tag " + targetVersion : ""} --yes`;
|
|
1256
|
+
const updateCmd = `openclaw update${targetVersion ? " --tag " + targetVersion : ""} --yes --no-restart`;
|
|
1236
1257
|
log(`openclaw installed but version mismatched, running: ${updateCmd}`);
|
|
1237
1258
|
const timeout = 12 * 6e4;
|
|
1238
1259
|
const t = Date.now();
|
package/package.json
CHANGED