import { ct as loadOpenClawPlugins, ot as createPluginLoaderLogger } from "./reply-DbpXq1MH.js";
import { t as createSubsystemLogger } from "./subsystem-ocBR131w.js";
import { N as resolveDefaultAgentWorkspaceDir, l as resolveAgentWorkspaceDir, u as resolveDefaultAgentId } from "./agent-scope-CVnlY0oG.js";
import { o as loadConfig } from "./config-DJ3A5x_1.js";

//#region src/plugins/status.ts
const log = createSubsystemLogger("plugins");
function buildPluginStatusReport(params) {
	const config = params?.config ?? loadConfig();
	const workspaceDir = params?.workspaceDir ? params.workspaceDir : resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config)) ?? resolveDefaultAgentWorkspaceDir();
	return {
		workspaceDir,
		...loadOpenClawPlugins({
			config,
			workspaceDir,
			logger: createPluginLoaderLogger(log)
		})
	};
}

//#endregion
export { buildPluginStatusReport as t };