'use server';
import { resolve } from '../../lib/server-container.js';
export async function listPmProjects() {
    try {
        const useCase = resolve('ListPmProjectsUseCase');
        const projects = await useCase.execute();
        return { projects };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to list projects';
        return { error: message };
    }
}
