The filesystem is the database: GET reads the tree through the same module the index generator now imports, PATCH splices frontmatter (status, priority, due, order) and never touches a body byte, and every write regenerates TODO.md. Columns open/doing/blocked/done, native drag between them, selection and theme filter in the URL. Registry entry 'todos' (kind admin, 22 entries, docs:check green), isSuperAdmin double-gate on the router. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
11 lines
420 B
TypeScript
11 lines
420 B
TypeScript
/**
|
|
* Regenerate `TODO.md` — the index over `todo/`. `bun run todo:index` after any change to the tree.
|
|
*
|
|
* The logic lives in `src/servers/api/todos/todo-tree.ts`, shared with the `/api/todos` router so the
|
|
* board and this CLI cannot disagree about the format; this file is only the command.
|
|
*/
|
|
import { writeIndex } from '../src/servers/api/todos/todo-tree';
|
|
|
|
writeIndex();
|
|
console.log('TODO.md regenerated');
|