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

@@ -54,6 +54,10 @@ When invoked with `process_docs: true` in input context:
## Input Context
**Project Context** (read from init.md products at startup):
- `.workflow/project-tech.json` → tech_stack, architecture, key_components
- `.workflow/project-guidelines.json` → conventions, constraints, quality_rules
```javascript
{
// Required

View File

@@ -37,6 +37,8 @@ jq --arg ts "$(date -Iseconds)" '.status="in_progress" | .status_history += [{"f
- Existing documentation and code examples
- Project CLAUDE.md standards
- **context-package.json** (when available in workflow tasks)
- **project-tech.json** (if exists) → tech_stack, architecture, key_components
- **project-guidelines.json** (if exists) → conventions, constraints, quality_rules
**Context Package** :
`context-package.json` provides artifact paths - read using Read tool or ccw session:

View File

@@ -35,6 +35,10 @@ Phase 5: Fix & Verification
## Phase 1: Bug Analysis
**Load Project Context** (from init.md products):
- Read `.workflow/project-tech.json` (if exists) for tech stack context
- Read `.workflow/project-guidelines.json` (if exists) for coding constraints
**Session Setup**:
```javascript
const bugSlug = bug_description.toLowerCase().replace(/[^a-z0-9]+/g, '-').substring(0, 30)

View File

@@ -26,6 +26,10 @@ color: green
### 1.1 Input Context
**Project Context** (load at startup):
- Read `.workflow/project-tech.json` (if exists) → tech_stack, architecture
- Read `.workflow/project-guidelines.json` (if exists) → constraints, conventions
```javascript
{
issue_ids: string[], // Issue IDs only (e.g., ["GH-123", "GH-124"])