MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / parseTaskProgress

Function parseTaskProgress

src/stores/project.ts:660–665  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

658
659 // 解析任务进度
660 function parseTaskProgress(content: string): { completed: number; total: number } {
661 // 使用 parseTaskList 确保统计逻辑与显示逻辑一致
662 const tasks = parseTaskList(content).filter(t => !t.isSection)
663 const completed = tasks.filter(t => t.checked).length
664 return { completed, total: tasks.length }
665 }
666
667 // 更新节点进度
668 function updateNodeProgress(filePath: string, progress: { completed: number; total: number }): void {

Callers 2

loadTaskProgressForNodesFunction · 0.85
loadFileFunction · 0.85

Calls 1

parseTaskListFunction · 0.85

Tested by

no test coverage detected