@lark-apaas/openclaw-scripts-diagnose-cli 0.1.5-alpha.3 → 0.1.5-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 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -50,7 +50,7 @@ node_assert = __toESM(node_assert);
50
50
  * it terse and parseable.
51
51
  */
52
52
  function getVersion() {
53
- return "0.1.5-alpha.3";
53
+ return "0.1.5-alpha.5";
54
54
  }
55
55
  //#endregion
56
56
  //#region src/rule-engine/base.ts
@@ -7803,7 +7803,7 @@ async function reportCliRun(opts) {
7803
7803
  //#region src/help.ts
7804
7804
  const BIN = "mclaw-diagnose";
7805
7805
  function versionBanner() {
7806
- return `v0.1.5-alpha.3`;
7806
+ return `v0.1.5-alpha.5`;
7807
7807
  }
7808
7808
  const COMMANDS = [
7809
7809
  {
@@ -9285,7 +9285,7 @@ const Slardar = resolveSlardarClient(import_index_cjs.default);
9285
9285
  * 3. 默认 "online"(生产保守)
9286
9286
  */
9287
9287
  function getSlardarEnv() {
9288
- return (typeof __SLARDAR_ENV__ !== "undefined" ? __SLARDAR_ENV__ : process.env.MIAODA_SLARDAR_ENV) === "dev" ? "dev" : "online";
9288
+ return "online";
9289
9289
  }
9290
9290
  //#endregion
9291
9291
  //#region ../../openclaw-slardar/lib/init.js
@@ -9401,6 +9401,12 @@ function initDiagnoseSlardar() {
9401
9401
  bid: "apaas_miaoda",
9402
9402
  release: getVersion()
9403
9403
  });
9404
+ process.on("beforeExit", flushDiagnoseSlardar);
9405
+ }
9406
+ function flushDiagnoseSlardar() {
9407
+ try {
9408
+ Slardar.flush?.();
9409
+ } catch {}
9404
9410
  }
9405
9411
  function reportDoctorRunToSlardar(opts) {
9406
9412
  const summary = summarizeOutcomes(opts.ruleOutcomes);
@@ -9413,7 +9419,6 @@ function reportDoctorRunToSlardar(opts) {
9413
9419
  command: opts.command,
9414
9420
  profile: opts.profile,
9415
9421
  fix: String(opts.fix),
9416
- version: getVersion(),
9417
9422
  rule_passed_keys: summary.passKeys,
9418
9423
  rule_failed_keys: summary.failedKeys,
9419
9424
  rule_fixed_keys: summary.fixedKeys
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/openclaw-scripts-diagnose-cli",
3
- "version": "0.1.5-alpha.3",
3
+ "version": "0.1.5-alpha.5",
4
4
  "description": "CLI for OpenClaw config diagnose and repair with JSON5 support",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {