feat: enhance project context loading and feature flag support in dashboard components

This commit is contained in:
catlog22
2026-02-25 18:59:49 +08:00
parent db5797faa3
commit eb9a62e085
16 changed files with 336 additions and 109 deletions

View File

@@ -471,11 +471,26 @@ ${recommendations.map(r => \`- ${r}\`).join('\\n')}
2. **Build Execution Context**
**Load Project Context** (from init.md products):
```javascript
// Read project-tech.json (if exists)
const projectTech = file_exists('.workflow/project-tech.json')
? JSON.parse(Read('.workflow/project-tech.json')) : null
// Read project-guidelines.json (if exists)
const projectGuidelines = file_exists('.workflow/project-guidelines.json')
? JSON.parse(Read('.workflow/project-guidelines.json')) : null
```
```javascript
const executionContext = `
⚠️ Execution Notes from Previous Tasks
${relevantNotes} // Categorized notes with severity
📋 Project Context (from init.md)
- Tech Stack: ${projectTech?.technology_analysis?.technology_stack || 'N/A'}
- Architecture: ${projectTech?.technology_analysis?.architecture?.style || 'N/A'}
- Constraints: ${projectGuidelines?.constraints || 'None defined'}
Current Task: ${task.id}
- Original ID: ${task.original_id}
- Source Plan: ${task.source_plan}