import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); const statePath = path.join(root, "docs/current/task-state.json"); const state = JSON.parse(fs.readFileSync(statePath, "utf8")); state.module_status.Tux = "completed"; fs.writeFileSync(statePath, `${JSON.stringify(state, null, 2)}\n`); console.log(JSON.stringify({ module: "Tux", status: state.module_status.Tux }));