import { getAgentDir, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
import { deployBundleHashlineConfig } from "./hashline-config.ts";

/** Deploy bundle defaults before pi-hashline-edit reads its module-level config. */
export default async function bundledHashlineExtension(pi: ExtensionAPI): Promise<void> {
	deployBundleHashlineConfig(getAgentDir());
	const { default: hashlineExtension } = await import("../node_modules/pi-hashline-edit/index.ts");
	hashlineExtension(pi);
}
