'use server';
import { resolve } from '../../lib/server-container.js';
export async function updateSdlcTaskStatus(taskId, status) {
    if (!taskId?.trim()) {
        return { error: 'Task ID is required' };
    }
    try {
        const useCase = resolve('UpdateSdlcTaskStatusUseCase');
        await useCase.execute({ taskId, status });
        return {};
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to update task status';
        return { error: message };
    }
}
