import { o as requireCapability } from "./src-BekHnJEo.js";
//#region src/automation.ts
function asAutomationCapable(adapter) {
	return adapter;
}
async function createAutomation(adapter, def) {
	requireCapability(adapter, "automation");
	const created = await asAutomationCapable(adapter).createAutomation(def);
	return {
		id: String(created.id),
		name: created.name
	};
}
//#endregion
export { asAutomationCapable, createAutomation };
