'use server';
import { resolve } from '../../lib/server-container.js';
export async function stopDeployment(targetId) {
    try {
        const useCase = resolve('StopDeploymentUseCase');
        await useCase.execute(targetId);
        return { success: true };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to stop deployment';
        return { success: false, error: message };
    }
}
