//#region src/cli/commands/onboard/channels/onboard-to-configurator.ts
/**
* Maps {@link ChannelPlugin.onboard} to the onboard {@link ChannelConfigurator} contract.
*/
function channelOnboardToConfigurator(plugin) {
	const { onboard } = plugin;
	if (!onboard) throw new Error(`Plugin ${plugin.id} has no onboard adapter`);
	return {
		id: plugin.id,
		name: plugin.meta.label,
		description: plugin.meta.blurb,
		isConfigured: (config) => onboard.isConfigured(config),
		configure: (config) => onboard.configure(config)
	};
}
//#endregion
export { channelOnboardToConfigurator };

//# sourceMappingURL=onboard-to-configurator.js.map