mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 09:32:54 +00:00
fix(doctor): resolve plugin index via state-dir helper
This commit is contained in:
committed by
Peter Steinberger
parent
4a09fd43e2
commit
72679b16eb
@@ -1,12 +1,11 @@
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { resolveInstalledPluginIndexStorePath } from "../plugins/installed-plugin-index-store-path.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import { runPostUpgradeProbes } from "./doctor-post-upgrade.js";
|
||||
import type { DoctorOptions } from "./doctor-prompter.js";
|
||||
|
||||
export async function doctorCommand(runtime?: RuntimeEnv, options?: DoctorOptions): Promise<void> {
|
||||
if (options?.postUpgrade) {
|
||||
const installsPath = path.join(os.homedir(), ".openclaw", "plugins", "installs.json");
|
||||
const installsPath = resolveInstalledPluginIndexStorePath();
|
||||
const report = await runPostUpgradeProbes({ installsPath });
|
||||
if (options.json) {
|
||||
console.log(JSON.stringify(report, null, 2));
|
||||
|
||||
Reference in New Issue
Block a user