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

533 lines (501 loc) • 20.4 kB
# ADPA CLI Visual Workflows ## Interactive Menu Navigation Map ``` šŸš€ ADPA Interactive CLI │ ā”œā”€ā”€ 1. šŸš€ Quick Start │ ā”œā”€ā”€ 1. New Project Setup ──────────► Environment Setup Wizard │ ā”œā”€ā”€ 2. Generate Core Documents ───► Core Analysis Generation │ ā”œā”€ā”€ 3. Project Charter Wizard ────► Interactive Charter Creation │ ā”œā”€ā”€ 4. Stakeholder Analysis ──────► Stakeholder Management │ ā”œā”€ā”€ 5. Risk Assessment ───────────► Risk & Compliance Module │ ā”œā”€ā”€ 6. Environment Setup ─────────► Configuration Wizard │ ā”œā”€ā”€ 7. View Templates ────────────► Template Browser │ └── 8. Back to Main Menu ─────────► Main Menu │ ā”œā”€ā”€ 2. šŸ“ Document Generation │ ā”œā”€ā”€ 1. Browse by Category ────────► Category Selection │ │ ā”œā”€ā”€ PMBOK Templates (25) ─────► Project Management Docs │ │ ā”œā”€ā”€ BABOK Templates (18) ─────► Business Analysis Docs │ │ ā”œā”€ā”€ DMBOK Templates (22) ─────► Data Management Docs │ │ ā”œā”€ā”€ Strategic Planning (12) ──► Strategic Documents │ │ ā”œā”€ā”€ Technical Design (15) ────► Technical Documentation │ │ └── Quality Assurance (10) ───► QA Documentation │ ā”œā”€ā”€ 2. Search Templates ──────────► Template Search Interface │ ā”œā”€ā”€ 3. Generate Single Document ──► Single Doc Generation │ ā”œā”€ā”€ 4. Generate Category ─────────► Batch Category Generation │ ā”œā”€ā”€ 5. Generate All Documents ────► Complete Documentation Set │ ā”œā”€ā”€ 6. Custom Generation ─────────► Custom Generation Options │ │ ā”œā”€ā”€ Interactive Selection ────► Multi-Template Selection │ │ ā”œā”€ā”€ Batch Generation ─────────► Bulk Operations │ │ ā”œā”€ā”€ Custom Context ───────────► Context-Aware Generation │ │ └── Template Validation ──────► Pre-Generation Validation │ └── 7. Recent Documents ──────────► Document History │ ā”œā”€ā”€ 3. šŸ¤– AI Configuration │ ā”œā”€ā”€ 1. Configure Google AI ───────► Google AI Setup │ ā”œā”€ā”€ 2. Configure OpenAI ──────────► OpenAI Setup │ ā”œā”€ā”€ 3. Configure Azure OpenAI ────► Azure OpenAI Setup │ ā”œā”€ā”€ 4. Test AI Connection ────────► Connection Validation │ └── 5. Provider Status ───────────► Provider Monitoring │ ā”œā”€ā”€ 4. šŸ“Š Project Management │ ā”œā”€ā”€ 1. Project Analysis ──────────► Workspace Analysis │ ā”œā”€ā”€ 2. Stakeholder Management ────► Stakeholder Tools │ │ ā”œā”€ā”€ Stakeholder Analysis ─────► Comprehensive Analysis │ │ ā”œā”€ā”€ Stakeholder Register ─────► Register Generation │ │ ā”œā”€ā”€ Engagement Plan ──────────► Engagement Planning │ │ └── Complete Automation ──────► Full Stakeholder Suite │ ā”œā”€ā”€ 3. Risk & Compliance ─────────► Risk Assessment Tools │ │ ā”œā”€ā”€ Software Development ─────► Software Risk Assessment │ │ ā”œā”€ā”€ Infrastructure ───────────► Infrastructure Risk Assessment │ │ ā”œā”€ā”€ Custom Assessment ────────► Interactive Risk Assessment │ │ └── PMBOK-Only Assessment ────► PMBOK-Focused Assessment │ ā”œā”€ā”€ 4. Business Analysis ─────────► Business Analysis Tools │ └── 5. Project Status ────────────► Status Monitoring │ ā”œā”€ā”€ 5. šŸ”— Integrations │ ā”œā”€ā”€ 1. Confluence Integration ────► Confluence Management │ │ ā”œā”€ā”€ Initialize Configuration ─► Confluence Setup │ │ ā”œā”€ā”€ Test Connection ──────────► Connection Testing │ │ ā”œā”€ā”€ Publish Documents ────────► Document Publishing │ │ └── Integration Status ───────► Status Monitoring │ ā”œā”€ā”€ 2. SharePoint Integration ────► SharePoint Management │ │ ā”œā”€ā”€ Initialize Configuration ─► SharePoint Setup │ │ ā”œā”€ā”€ Test Connection ──────────► Connection Testing │ │ ā”œā”€ā”€ Publish Documents ────────► Document Publishing │ │ └── Integration Status ───────► Status Monitoring │ ā”œā”€ā”€ 3. Version Control ───────────► Git Integration │ │ ā”œā”€ā”€ Initialize Repository ────► Git Setup │ │ ā”œā”€ā”€ Repository Status ────────► Git Status │ │ ā”œā”€ā”€ Commit Changes ───────────► Git Commit │ │ └── Push to Remote ───────────► Git Push │ ā”œā”€ā”€ 4. Adobe Creative Suite ──────► Adobe Integration │ └── 5. Integration Status ────────► Overall Integration Status │ ā”œā”€ā”€ 6. šŸ“ˆ Analytics & Feedback │ ā”œā”€ā”€ 1. Document Analytics ────────► Generation Analytics │ ā”œā”€ā”€ 2. Feedback Reports ──────────► Feedback Analysis │ ā”œā”€ā”€ 3. Quality Metrics ───────────► Quality Assessment │ ā”œā”€ā”€ 4. Performance Insights ──────► Performance Monitoring │ └── 5. Export Reports ────────────► Data Export │ ā”œā”€ā”€ 7. āš™ļø System Configuration │ ā”œā”€ā”€ 1. Environment Setup ─────────► Environment Configuration │ ā”œā”€ā”€ 2. Template Management ───────► Template Administration │ ā”œā”€ā”€ 3. Output Configuration ──────► Output Settings │ ā”œā”€ā”€ 4. Validation Settings ───────► Validation Configuration │ └── 5. System Diagnostics ────────► System Health Check │ ā”œā”€ā”€ 8. šŸ” Workspace Analysis ─────────► Current Workspace Analysis │ ā”œā”€ā”€ 9. ā“ Help & Documentation │ ā”œā”€ā”€ 1. Getting Started Guide ─────► Onboarding Guide │ ā”œā”€ā”€ 2. Command Reference ─────────► CLI Command Reference │ ā”œā”€ā”€ 3. Template Guide ────────────► Template Documentation │ ā”œā”€ā”€ 4. Troubleshooting ───────────► Problem Resolution │ └── 5. About ADPA ────────────────► System Information │ └── 0. 🚪 Exit ───────────────────────► Application Exit ``` ## Command Line Workflow Patterns ### 1. New Project Setup Flow ``` Start │ ā”œā”€ā–ŗ adpa setup --provider google-ai │ │ │ ā”œā”€ā–ŗ Environment Configuration │ ā”œā”€ā–ŗ API Key Setup │ └─► Provider Validation │ ā”œā”€ā–ŗ mkdir my-project && cd my-project │ ā”œā”€ā–ŗ adpa vcs init │ │ │ └─► Git Repository Initialization │ ā”œā”€ā–ŗ adpa generate-core-analysis │ │ │ ā”œā”€ā–ŗ Project Charter │ ā”œā”€ā–ŗ Stakeholder Register │ ā”œā”€ā–ŗ Risk Management Plan │ └─► Business Case │ ā”œā”€ā–ŗ adpa validate │ │ │ ā”œā”€ā–ŗ PMBOK Compliance Check │ ā”œā”€ā–ŗ Template Validation │ └─► Content Quality Assessment │ └─► adpa vcs commit --message "Initial documentation" │ └─► Version Control Commit ``` ### 2. Enterprise Documentation Flow ``` Enterprise Setup │ ā”œā”€ā–ŗ adpa setup --provider azure-openai --enhanced │ │ │ ā”œā”€ā–ŗ Enterprise AI Provider Setup │ ā”œā”€ā–ŗ Advanced Configuration │ └─► Security Settings │ ā”œā”€ā–ŗ adpa generate-all --output ./enterprise-docs --retries 3 │ │ │ ā”œā”€ā–ŗ PMBOK Documents (25) │ ā”œā”€ā–ŗ BABOK Documents (18) │ ā”œā”€ā–ŗ DMBOK Documents (22) │ ā”œā”€ā–ŗ Strategic Documents (12) │ ā”œā”€ā–ŗ Technical Documents (15) │ └─► Quality Documents (10) │ ā”œā”€ā–ŗ adpa validate --output ./enterprise-docs --pmbok --babok --dmbok │ │ │ ā”œā”€ā–ŗ Multi-Standard Validation │ ā”œā”€ā–ŗ Compliance Checking │ └─► Quality Metrics │ ā”œā”€ā–ŗ adpa confluence init && adpa confluence oauth2 login │ │ │ └─► Confluence Integration Setup │ ā”œā”€ā–ŗ adpa confluence publish --documents-path ./enterprise-docs │ │ │ └─► Enterprise Documentation Publishing │ └─► adpa vcs init && adpa vcs commit && adpa vcs push │ └─► Version Control & Backup ``` ### 3. Stakeholder Analysis Flow ``` Stakeholder Analysis │ ā”œā”€ā–ŗ Interactive Path │ │ │ ā”œā”€ā–ŗ adpa interactive │ ā”œā”€ā–ŗ Main Menu → Project Management → Stakeholder Management │ ā”œā”€ā–ŗ Select "Complete Automation" │ └─► Provide Project Context │ └─► Command Line Path │ ā”œā”€ā–ŗ adpa stakeholder analysis --context "Enterprise implementation" │ │ │ ā”œā”€ā–ŗ Stakeholder Identification │ ā”œā”€ā–ŗ Influence/Interest Analysis │ ā”œā”€ā–ŗ Communication Preferences │ └─► Engagement Strategies │ ā”œā”€ā–ŗ adpa stakeholder register │ │ │ ā”œā”€ā–ŗ Stakeholder Contact Information │ ā”œā”€ā–ŗ Roles and Responsibilities │ └─► Decision Authority │ ā”œā”€ā–ŗ adpa stakeholder engagement-plan │ │ │ ā”œā”€ā–ŗ Engagement Strategies │ ā”œā”€ā–ŗ Communication Plan │ └─► Feedback Mechanisms │ └─► adpa validate --category stakeholder-management │ └─► Stakeholder Document Validation ``` ### 4. Risk Assessment Flow ``` Risk Assessment │ ā”œā”€ā–ŗ Interactive Custom Assessment │ │ │ ā”œā”€ā–ŗ adpa interactive │ ā”œā”€ā–ŗ Main Menu → Project Management → Risk & Compliance │ ā”œā”€ā–ŗ Select "Custom Risk Assessment" │ ā”œā”€ā–ŗ Enter Project Details │ │ ā”œā”€ā–ŗ Project Name │ │ ā”œā”€ā–ŗ Project Type (Software/Infrastructure/Data/Business/Other) │ │ ā”œā”€ā–ŗ Project Description │ │ └─► Assessment Type (Integrated/PMBOK-Only) │ └─► Execute Assessment │ └─► Command Line Assessment │ ā”œā”€ā–ŗ adpa risk-compliance --project "E-commerce Platform" │ --type SOFTWARE_DEVELOPMENT │ --description "Customer-facing platform" │ │ │ ā”œā”€ā–ŗ Risk Identification │ ā”œā”€ā–ŗ Risk Analysis │ ā”œā”€ā–ŗ Risk Evaluation │ └─► Risk Treatment Planning │ ā”œā”€ā–ŗ adpa validate --category risk-management │ │ │ └─► Risk Document Validation │ ā”œā”€ā–ŗ adpa generate risk-register │ │ │ └─► Detailed Risk Register │ └─► adpa feedback export --category risk --format pdf │ └─► Risk Analysis Export ``` ## Integration Workflow Diagrams ### Confluence Integration Flow ``` Confluence Setup │ ā”œā”€ā–ŗ adpa confluence init │ │ │ ā”œā”€ā–ŗ Base URL Configuration │ ā”œā”€ā–ŗ Space Configuration │ └─► Authentication Setup │ ā”œā”€ā–ŗ adpa confluence oauth2 login │ │ │ ā”œā”€ā–ŗ OAuth2 Flow Initiation │ ā”œā”€ā–ŗ Browser Authentication │ ā”œā”€ā–ŗ Token Exchange │ └─► Token Storage │ ā”œā”€ā–ŗ adpa confluence test │ │ │ ā”œā”€ā–ŗ Connection Validation │ ā”œā”€ā–ŗ Permission Verification │ └─► API Endpoint Testing │ ā”œā”€ā–ŗ adpa confluence publish │ │ │ ā”œā”€ā–ŗ Document Processing │ ā”œā”€ā–ŗ Markdown to Confluence Conversion │ ā”œā”€ā–ŗ Page Creation/Update │ ā”œā”€ā–ŗ Attachment Handling │ └─► Link Management │ └─► adpa confluence status │ ā”œā”€ā–ŗ Integration Health Check ā”œā”€ā–ŗ Token Validity └─► Recent Activity Summary ``` ### SharePoint Integration Flow ``` SharePoint Setup │ ā”œā”€ā–ŗ adpa sharepoint init │ │ │ ā”œā”€ā–ŗ Site URL Configuration │ ā”œā”€ā–ŗ Library Configuration │ └─► Authentication Setup │ ā”œā”€ā–ŗ adpa sharepoint oauth2 login │ │ │ ā”œā”€ā–ŗ Microsoft Graph OAuth2 │ ā”œā”€ā–ŗ Tenant Authentication │ ā”œā”€ā–ŗ Scope Authorization │ └─► Token Management │ ā”œā”€ā–ŗ adpa sharepoint test │ │ │ ā”œā”€ā–ŗ Graph API Testing │ ā”œā”€ā–ŗ Site Access Verification │ └─► Upload Permission Check │ ā”œā”€ā–ŗ adpa sharepoint publish │ │ │ ā”œā”€ā–ŗ Document Upload │ ā”œā”€ā–ŗ Metadata Assignment │ ā”œā”€ā–ŗ Folder Organization │ └─► Version Management │ └─► adpa sharepoint status │ ā”œā”€ā–ŗ Connection Status ā”œā”€ā–ŗ Upload Statistics └─► Error Reporting ``` ## AI Provider Configuration Flows ### Google AI Setup Flow ``` Google AI Configuration │ ā”œā”€ā–ŗ API Key Acquisition │ │ │ ā”œā”€ā–ŗ Visit Google AI Studio │ ā”œā”€ā–ŗ Create/Select Project │ ā”œā”€ā–ŗ Generate API Key │ └─► Copy API Key │ ā”œā”€ā–ŗ ADPA Configuration │ │ │ ā”œā”€ā–ŗ adpa setup --provider google-ai │ ā”œā”€ā–ŗ Enter API Key │ ā”œā”€ā–ŗ Select Model (gemini-1.5-flash) │ └─► Validate Configuration │ ā”œā”€ā–ŗ Environment Setup │ │ │ ā”œā”€ā–ŗ export GOOGLE_AI_API_KEY=your_key │ ā”œā”€ā–ŗ export GOOGLE_AI_MODEL=gemini-1.5-flash │ └─► export CURRENT_PROVIDER=google-ai │ └─► Validation │ ā”œā”€ā–ŗ adpa validate --ai-connection ā”œā”€ā–ŗ Test Generation └─► Performance Verification ``` ### Azure OpenAI Setup Flow ``` Azure OpenAI Configuration │ ā”œā”€ā–ŗ Azure Resource Setup │ │ │ ā”œā”€ā–ŗ Create Azure OpenAI Resource │ ā”œā”€ā–ŗ Deploy Model (GPT-4) │ ā”œā”€ā–ŗ Get Endpoint URL │ └─► Get API Key │ ā”œā”€ā–ŗ ADPA Configuration │ │ │ ā”œā”€ā–ŗ adpa setup --provider azure-openai │ ā”œā”€ā–ŗ Enter Endpoint URL │ ā”œā”€ā–ŗ Enter API Key │ ā”œā”€ā–ŗ Enter Deployment Name │ └─► Configure Entra ID (Optional) │ ā”œā”€ā–ŗ Environment Setup │ │ │ ā”œā”€ā–ŗ export AZURE_OPENAI_ENDPOINT=your_endpoint │ ā”œā”€ā–ŗ export AZURE_OPENAI_API_KEY=your_key │ ā”œā”€ā–ŗ export DEPLOYMENT_NAME=gpt-4 │ ā”œā”€ā–ŗ export USE_ENTRA_ID=false │ └─► export CURRENT_PROVIDER=azure-openai │ └─► Validation │ ā”œā”€ā–ŗ adpa validate --ai-connection ā”œā”€ā–ŗ Enterprise Security Check └─► Performance Benchmarking ``` ## Error Recovery Workflows ### Interactive Error Recovery ``` Error Detected │ ā”œā”€ā–ŗ Validation Error │ │ │ ā”œā”€ā–ŗ Display Error Message │ ā”œā”€ā–ŗ Show Correction Suggestions │ ā”œā”€ā–ŗ Offer Recovery Options │ │ ā”œā”€ā–ŗ Retry with Corrections │ │ ā”œā”€ā–ŗ Go Back to Previous Step │ │ ā”œā”€ā–ŗ Show Help Information │ │ └─► Exit to Main Menu │ └─► Execute Selected Recovery Action │ ā”œā”€ā–ŗ Connection Error │ │ │ ā”œā”€ā–ŗ Display Connection Issue │ ā”œā”€ā–ŗ Suggest Alternative Providers │ ā”œā”€ā–ŗ Offer Retry Options │ │ ā”œā”€ā–ŗ Retry Current Provider │ │ ā”œā”€ā–ŗ Switch to Backup Provider │ │ ā”œā”€ā–ŗ Reconfigure Provider │ │ └─► Check Network Settings │ └─► Execute Recovery Strategy │ └─► Configuration Error │ ā”œā”€ā–ŗ Identify Configuration Issue ā”œā”€ā–ŗ Guide Through Reconfiguration ā”œā”€ā–ŗ Provide Step-by-Step Instructions └─► Validate New Configuration ``` ### Command Line Error Recovery ``` Command Failure │ ā”œā”€ā–ŗ Automatic Retry Logic │ │ │ ā”œā”€ā–ŗ Check Retry Count │ ā”œā”€ā–ŗ Apply Backoff Strategy │ ā”œā”€ā–ŗ Retry Operation │ └─► Report Final Status │ ā”œā”€ā–ŗ Provider Fallback │ │ │ ā”œā”€ā–ŗ Detect Provider Failure │ ā”œā”€ā–ŗ Switch to Backup Provider │ ā”œā”€ā–ŗ Retry Operation │ └─► Update Configuration │ └─► Manual Recovery │ ā”œā”€ā–ŗ Display Error Details ā”œā”€ā–ŗ Suggest Recovery Commands ā”œā”€ā–ŗ Provide Diagnostic Information └─► Guide User Through Resolution ``` ## Performance Optimization Workflows ### Caching Strategy ``` Template Caching │ ā”œā”€ā–ŗ Cache Initialization │ │ │ ā”œā”€ā–ŗ adpa configure --cache-templates true │ ā”œā”€ā–ŗ Create Cache Directory │ └─► Set Cache Policies │ ā”œā”€ā–ŗ Cache Population │ │ │ ā”œā”€ā–ŗ adpa templates preload --category pmbok │ ā”œā”€ā–ŗ Load Frequently Used Templates │ └─► Optimize Cache Structure │ ā”œā”€ā–ŗ Cache Utilization │ │ │ ā”œā”€ā–ŗ Check Cache Before Generation │ ā”œā”€ā–ŗ Use Cached Templates │ └─► Update Cache Statistics │ └─► Cache Maintenance │ ā”œā”€ā–ŗ Monitor Cache Performance ā”œā”€ā–ŗ Clean Expired Entries └─► adpa clean --cache (when needed) ``` ### Parallel Processing ``` Parallel Generation │ ā”œā”€ā–ŗ Job Queue Setup │ │ │ ā”œā”€ā–ŗ Analyze Generation Tasks │ ā”œā”€ā–ŗ Determine Optimal Concurrency │ └─► Initialize Worker Pool │ ā”œā”€ā–ŗ Task Distribution │ │ │ ā”œā”€ā–ŗ Split Generation Tasks │ ā”œā”€ā–ŗ Assign to Workers │ └─► Monitor Progress │ ā”œā”€ā–ŗ Parallel Execution │ │ │ ā”œā”€ā–ŗ adpa generate-category pmbok --parallel --max-concurrent 5 │ ā”œā”€ā–ŗ Execute Tasks Concurrently │ └─► Collect Results │ └─► Result Aggregation │ ā”œā”€ā–ŗ Combine Generated Documents ā”œā”€ā–ŗ Validate Complete Set └─► Report Generation Statistics ``` This visual workflow documentation provides clear navigation paths and process flows for all major ADPA CLI operations, making it easier for users to understand and follow the various workflows available in the system.