fix(04): address tech debt from milestone audit

- Wrap intel content in <codebase-intel> tags in plan-phase.md
- Use ENTITY_DIR constant in isEntityFile() instead of hardcoded path

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-01-20 10:42:43 -06:00
parent 1c746a548a
commit c1a86cadee
2 changed files with 3 additions and 1 deletions

View File

@@ -293,7 +293,9 @@ Fill prompt with inlined content and spawn:
{uat_content}
**Codebase Intel (if exists):**
<codebase-intel>
{intel_content}
</codebase-intel>
</planning_context>

View File

@@ -551,7 +551,7 @@ function generateSummary(index, conventions) {
* Check if a file path is an entity file
*/
function isEntityFile(filePath) {
return filePath.includes('.planning/intel/entities/') &&
return filePath.includes(ENTITY_DIR + '/') &&
filePath.endsWith('.md');
}