@lark-apaas/openclaw-scripts-diagnose-cli 0.1.5-alpha.0 → 0.1.5-alpha.2

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 +4 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -53,7 +53,7 @@ let json_diff = require("json-diff");
53
53
  * it terse and parseable.
54
54
  */
55
55
  function getVersion() {
56
- return "0.1.5-alpha.0";
56
+ return "0.1.5-alpha.2";
57
57
  }
58
58
  //#endregion
59
59
  //#region src/rule-engine/base.ts
@@ -3027,8 +3027,7 @@ function updatePluginInstalls(configPath, installedPkgs) {
3027
3027
  installs[pkg.name] = pkg.installMetadata;
3028
3028
  updated++;
3029
3029
  } else skipped++;
3030
- const installedMem0 = installedPkgs.some((p) => p.name === MEM0_PLUGIN_NAME);
3031
- if (installedMem0) {
3030
+ if (installedPkgs.some((p) => p.name === MEM0_PLUGIN_NAME)) {
3032
3031
  const allowRaw = plugins.allow;
3033
3032
  const allow = Array.isArray(allowRaw) ? allowRaw : [];
3034
3033
  if (!allow.filter((e) => typeof e === "string").includes(MEM0_PLUGIN_NAME)) allow.push(MEM0_PLUGIN_NAME);
@@ -3040,7 +3039,7 @@ function updatePluginInstalls(configPath, installedPkgs) {
3040
3039
  const tmpPath = configPath + ".installs-tmp";
3041
3040
  node_fs.default.writeFileSync(tmpPath, JSON.stringify(config, null, 2), "utf-8");
3042
3041
  moveSafe(tmpPath, configPath);
3043
- console.error(`[install-extension] plugins.installs updated: ${updated} entry(ies) in ${configPath}` + (skipped > 0 ? ` (${skipped} package(s) without installMetadata skipped)` : "") + (installedMem0 ? " [mem0: allow+entries seeded]" : ""));
3042
+ console.error(`[install-extension] plugins.installs updated: ${updated} entry(ies) in ${configPath}` + (skipped > 0 ? ` (${skipped} package(s) without installMetadata skipped)` : ""));
3044
3043
  }
3045
3044
  function installOne(pkg, tarball, homeBase) {
3046
3045
  const destDir = node_path.default.join(homeBase, pkg.installPath);
@@ -4313,7 +4312,7 @@ async function reportCliRun(opts) {
4313
4312
  //#region src/help.ts
4314
4313
  const BIN = "mclaw-diagnose";
4315
4314
  function versionBanner() {
4316
- return `v0.1.5-alpha.0`;
4315
+ return `v0.1.5-alpha.2`;
4317
4316
  }
4318
4317
  const COMMANDS = [
4319
4318
  {
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.0",
3
+ "version": "0.1.5-alpha.2",
4
4
  "description": "CLI for OpenClaw config diagnose and repair with JSON5 support",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {