// resources/workspace-health-resource.ts — MCP resource for planu://workspace/health
// Returns health metrics aggregated across all registered projects.
// No parameters required.
import { buildWorkspaceHealth } from '../engine/workspace-manager.js';
/**
 * MCP resource handler for planu://workspace/health
 */
export async function handleWorkspaceHealthResource() {
    const metrics = await buildWorkspaceHealth();
    return JSON.stringify(metrics, null, 2);
}
export const workspaceHealthResourceDefinition = {
    uri: 'planu://workspace/health',
    name: 'Workspace Health',
    description: 'Aggregated health metrics across all registered projects: overall score, spec distribution, ' +
        'and per-project health. Read-only. No parameters required.',
    mimeType: 'application/json',
};
//# sourceMappingURL=workspace-health-resource.js.map