mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-03 15:43:11 +08:00
refactor(workflow-lite-planex): update skill name and improve documentation consistency
This commit is contained in:
@@ -282,6 +282,10 @@ const taskJsons = taskFiles.map(f => {
|
||||
const content = Read(f)
|
||||
const json = JSON.parse(content)
|
||||
json._filePath = f
|
||||
// Fallback: derive id from filename if missing
|
||||
if (!json.id) {
|
||||
json.id = f.split('/').pop().replace('.json', '')
|
||||
}
|
||||
return json
|
||||
})
|
||||
|
||||
@@ -860,7 +864,7 @@ let todoMd = Read(`${sessionFolder}/TODO_LIST.md`)
|
||||
for (const task of finalTasks) {
|
||||
if (task.status === 'completed') {
|
||||
// Ensure marked as [x] in TODO_LIST.md
|
||||
const uncheckedPattern = new RegExp(`^(- \\[ \\] ${task.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}:.*)$`, 'm')
|
||||
const uncheckedPattern = new RegExp(`^(- \\[ \\] ${task.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}(:.*)?)$`, 'm')
|
||||
todoMd = todoMd.replace(uncheckedPattern, (match, line) => line.replace('- [ ]', '- [x]'))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user