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