From 8897c92b5c0e96cefd93d334a89c52485babd869 Mon Sep 17 00:00:00 2001 From: simpleanalytics-agent <343555763+simpleanalytics-agent@users.noreply.github.com> Date: Fri, 16 Oct 2026 13:31:22 +0000 Subject: [PATCH 1/2] Tell agents to leave generated dist files alone Co-Authored-By: Claude Opus 5.5 (1M context) --- AGENTS.md | 3 +++ CLAUDE.md | 1 + 2 files changed, 4 insertions(+) create mode 100644 AGENTS.md create mode 100644 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..a7cf8ce --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,3 @@ +# AGENTS + +- `dist/` is generated output. Builds and `pnpm test` rewrite it (each build stamps the date), and a maintainer builds and commits it separately before deploying. Never commit `dist/` changes in feature work; restore it with `git checkout -- dist` before committing, and skip `dist/` when reviewing or validating changes. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..b6fc27d --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +See AGENTS.md for instructions. From ec340550ed01be448a769d4c7a11197bd807d95a Mon Sep 17 00:00:00 2001 From: simpleanalytics-agent <343555763+simpleanalytics-agent@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:17:40 +0000 Subject: [PATCH 2/2] Reset staged dist changes too Co-Authored-By: Claude Opus 5.5 (1M context) --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index a7cf8ce..67c8550 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,3 +1,3 @@ # AGENTS -- `dist/` is generated output. Builds and `pnpm test` rewrite it (each build stamps the date), and a maintainer builds and commits it separately before deploying. Never commit `dist/` changes in feature work; restore it with `git checkout -- dist` before committing, and skip `dist/` when reviewing or validating changes. +- `dist/` is generated output. Builds and `pnpm test` rewrite it (each build stamps the date), and a maintainer builds and commits it separately before deploying. Never commit `dist/` changes in feature work; restore it with `git checkout HEAD -- dist` before committing, and skip `dist/` when reviewing or validating changes.