import { kt as loadSKYKOIPlugins } from "./reply-CZUaueaY.js";
import { t as createSubsystemLogger } from "./subsystem-hATE68va.js";
import { T as resolveDefaultKoiWorkspaceDir, l as resolveKoiWorkspaceDir, r as resolveDefaultKoiId } from "./koi-scope-BeICsBhH.js";
import { o as loadConfig } from "./config-BOTdzMIB.js";

//#region src/plugins/status.ts
const log = createSubsystemLogger("plugins");
function buildPluginStatusReport(params) {
	const config = params?.config ?? loadConfig();
	const workspaceDir = params?.workspaceDir ? params.workspaceDir : resolveKoiWorkspaceDir(config, resolveDefaultKoiId(config)) ?? resolveDefaultKoiWorkspaceDir();
	return {
		workspaceDir,
		...loadSKYKOIPlugins({
			config,
			workspaceDir,
			logger: {
				info: (msg) => log.info(msg),
				warn: (msg) => log.warn(msg),
				error: (msg) => log.error(msg),
				debug: (msg) => log.debug(msg)
			}
		})
	};
}

//#endregion
export { buildPluginStatusReport as t };