Appends new daily rows to iamtk.co habit arrays in data/habit-tracker/*.ts. Inserts before the year-end sentinel row. Use when logging habits, updating habit-tracker data, or when the user mentions sunscreen, drink-water, running, read-book, or other files under data/habit-tracker/.
data/habit-tracker/*.ts (one file per habit).{ date: '2026-12-31', count: 1, level: 4 }.YYYY-MM-DD or confirm you should use the system date.sunscreen.ts), only edit that file. If they say “all habits” or “every habit”, apply the same insertion to each file.data/habit-tracker/*.tsInsert one new line after the last real entry and before the sentinel:
{ date: 'YYYY-MM-DD', count: 1, level: 4 },
Preserve existing formatting: two spaces before {, trailing comma on the new line, comma kept on the previous last-real line.
date equals the new date, do not add a duplicate; tell the user it’s already logged and ask whether to change count/level instead.Match each file’s existing const and export default names, e.g. readBook in read-book.ts, studyMl in study-ml.ts, intermittentFasting in intermittent-fasting.ts.
data/habit-tracker/count: 1, level: 4 unless user overrides){ date: '2026-12-31', count: 0, level: 0 }