fix(doctor): resolve plugin index via state-dir helper · openclaw/openclaw@72679b1
arniesaha
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import os from "node:os"; |
2 | | -import path from "node:path"; |
| 1 | +import { resolveInstalledPluginIndexStorePath } from "../plugins/installed-plugin-index-store-path.js"; |
3 | 2 | import type { RuntimeEnv } from "../runtime.js"; |
4 | 3 | import { runPostUpgradeProbes } from "./doctor-post-upgrade.js"; |
5 | 4 | import type { DoctorOptions } from "./doctor-prompter.js"; |
6 | 5 | |
7 | 6 | export async function doctorCommand(runtime?: RuntimeEnv, options?: DoctorOptions): Promise<void> { |
8 | 7 | if (options?.postUpgrade) { |
9 | | -const installsPath = path.join(os.homedir(), ".openclaw", "plugins", "installs.json"); |
| 8 | +const installsPath = resolveInstalledPluginIndexStorePath(); |
10 | 9 | const report = await runPostUpgradeProbes({ installsPath }); |
11 | 10 | if (options.json) { |
12 | 11 | console.log(JSON.stringify(report, null, 2)); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。