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