MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / todoListToMarkdown

Function todoListToMarkdown

src/core/tools/UpdateTodoListTool.ts:161–170  ·  view source on GitHub ↗
(todos: TodoItem[])

Source from the content-addressed store, hash-verified

159}
160
161function todoListToMarkdown(todos: TodoItem[]): string {
162 return todos
163 .map((t) => {
164 let box = "[ ]"
165 if (t.status === "completed") box = "[x]"
166 else if (t.status === "in_progress") box = "[-]"
167 return `${box} ${t.content}`
168 })
169 .join("\n")
170}
171
172function normalizeStatus(status: string | undefined): TodoStatus {
173 if (status === "completed") return "completed"

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected