@lark-apaas/openclaw-scripts-diagnose-cli 0.1.15-alpha.6 → 0.1.15-alpha.7
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 +9 -3
- 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.
|
|
55
|
+
return "0.1.15-alpha.7";
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/rule-engine/base.ts
|
|
@@ -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.
|
|
10605
|
+
return `v0.1.15-alpha.7`;
|
|
10606
10606
|
}
|
|
10607
10607
|
const COMMANDS = [
|
|
10608
10608
|
{
|
|
@@ -11224,6 +11224,8 @@ function readLogFileTail(filePath, maxBytes = 4e3) {
|
|
|
11224
11224
|
* ## extraCategories(字符串维度)
|
|
11225
11225
|
* - scene:调用方标识(如 PageUpgradeLark)
|
|
11226
11226
|
* - check_only:是否为 --check 仅诊断模式
|
|
11227
|
+
* - skipped:"true" 表示前置门控未触发跳过安装(含 --check 模式),"false" 表示执行了安装
|
|
11228
|
+
* - skip_reason:跳过原因描述(skipped=true 时有值,"check" 表示 --check 模式)
|
|
11227
11229
|
* - exit_code:npx 子进程退出码(跳过安装时为空)
|
|
11228
11230
|
* - rollback_ok:回滚是否成功(未触发回滚时为空)
|
|
11229
11231
|
* - validation_error:安装后校验失败的错误信息
|
|
@@ -11241,7 +11243,7 @@ function readLogFileTail(filePath, maxBytes = 4e3) {
|
|
|
11241
11243
|
* 注:[7/7] 重启耗时写入日志但未单独上报,包含在 durationMs 总耗时中。
|
|
11242
11244
|
*/
|
|
11243
11245
|
function reportUpgradeLarkToSlardar(opts) {
|
|
11244
|
-
console.error(`[slardar] upgrade_lark_run scene=${opts.scene ?? ""} checkOnly=${opts.checkOnly} success=${opts.success} exitCode=${opts.exitCode ?? ""} rollbackOk=${opts.rollbackOk ?? ""}`);
|
|
11246
|
+
console.error(`[slardar] upgrade_lark_run scene=${opts.scene ?? ""} checkOnly=${opts.checkOnly} skipped=${opts.skipped ?? false} success=${opts.success} exitCode=${opts.exitCode ?? ""} rollbackOk=${opts.rollbackOk ?? ""}`);
|
|
11245
11247
|
const t = opts.timing ?? {};
|
|
11246
11248
|
const logContent = readLogFileTail(opts.logFile);
|
|
11247
11249
|
reportTask({
|
|
@@ -11251,6 +11253,8 @@ function reportUpgradeLarkToSlardar(opts) {
|
|
|
11251
11253
|
extraCategories: {
|
|
11252
11254
|
scene: opts.scene ?? "",
|
|
11253
11255
|
check_only: String(opts.checkOnly),
|
|
11256
|
+
skipped: String(opts.skipped ?? false),
|
|
11257
|
+
skip_reason: opts.skipReason ?? "",
|
|
11254
11258
|
exit_code: String(opts.exitCode ?? ""),
|
|
11255
11259
|
rollback_ok: opts.rollbackOk != null ? String(opts.rollbackOk) : "",
|
|
11256
11260
|
validation_error: opts.validationError ?? "",
|
|
@@ -12162,6 +12166,8 @@ async function main() {
|
|
|
12162
12166
|
checkOnly,
|
|
12163
12167
|
durationMs: upgradeDurationMs,
|
|
12164
12168
|
success: result.ok,
|
|
12169
|
+
skipped: result.skipped,
|
|
12170
|
+
skipReason: result.skipReason,
|
|
12165
12171
|
logFile: result.logFile,
|
|
12166
12172
|
exitCode: result.exitCode,
|
|
12167
12173
|
rollbackOk: result.rollbackOk,
|
package/package.json
CHANGED