UNPKG

adpa-enterprise-framework-automation

Version:

Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe

33 lines 1.4 kB
import { AIProcessor } from '../../ai/AIProcessor.js'; import { ProjectStatusReportTemplate } from './ProjectStatusReportTemplate.js'; /** * Project Status Report Document Processor * Uses AIProcessor to synthesize status report content from template and context. */ export class ProjectStatusReportProcessor { aiProcessor; constructor() { this.aiProcessor = AIProcessor.getInstance(); } async process(context) { try { const prompt = ProjectStatusReportTemplate.buildPrompt(context); const content = await this.aiProcessor.makeAICall([ { role: 'system', content: 'You are a senior project manager. Synthesize a comprehensive Project Status Report based on the template and context.' }, { role: 'user', content: prompt } ]).then(res => typeof res === 'string' ? res : res.content); return { title: 'Project Status Report', content }; } catch (error) { console.error('Error generating Project Status Report:', error); return { title: 'Project Status Report', content: 'An error occurred while generating the Project Status Report. Please try again or check the logs for details.' }; } } } //# sourceMappingURL=ProjectStatusReportProcessor.js.map