'use server';
import { resolve } from '../../lib/server-container.js';
export async function startFeature(featureId) {
    if (!featureId.trim()) {
        return { started: false, error: 'Feature id is required' };
    }
    try {
        const useCase = resolve('StartFeatureUseCase');
        await useCase.execute(featureId);
        return { started: true };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to start feature';
        return { started: false, error: message };
    }
}
