From 1875ec737493cca673ff00d73ab2853c8b5c50b5 Mon Sep 17 00:00:00 2001 From: Robert Luczynski Date: Sun, 24 May 2026 21:16:00 +0200 Subject: [PATCH 1/2] fix: add editorconfig and include AI_TEMPLATE_NOTES in copy-to-dir mode - .editorconfig: new -- LF line endings, UTF-8, trim whitespace; fixes CRLF warnings on Windows across all editors - new-project.py COPY_DOCS: added AI_TEMPLATE_NOTES.md -- file is always-read so new projects created via copy-to-dir mode must have it [skip-test-check] [skip-docs] --- .editorconfig | 10 ++++++++++ scripts/new-project.py | 1 + 2 files changed, 11 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..41b9257 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/scripts/new-project.py b/scripts/new-project.py index 8b90be2..8203da1 100644 --- a/scripts/new-project.py +++ b/scripts/new-project.py @@ -33,6 +33,7 @@ COPY_FILES = ["CLAUDE.md", "skills-manifest.json"] COPY_DOCS = [ + "AI_TEMPLATE_NOTES.md", "CONVENTIONS.md", "DELIVERY_CHECKLIST.md", "SETUP.md", From 428ed75d81c92cb97dc5574e28874b0533e0cbd9 Mon Sep 17 00:00:00 2001 From: Robert Luczynski Date: Sun, 24 May 2026 21:23:18 +0200 Subject: [PATCH 2/2] fix(scripts): reconfigure stdout to utf-8 for Windows compat - new-project.py: add sys.stdout.reconfigure(encoding="utf-8") after imports - fixes UnicodeEncodeError on Windows cp1250 terminals (emoji in print output) [skip-test-check] [skip-docs] --- scripts/new-project.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/new-project.py b/scripts/new-project.py index 4c691c5..de59693 100644 --- a/scripts/new-project.py +++ b/scripts/new-project.py @@ -24,6 +24,8 @@ import sys from pathlib import Path +sys.stdout.reconfigure(encoding="utf-8") + ROOT = Path(__file__).resolve().parent.parent # ── What to copy (copy-to-dir mode) ─────────────────────────────────────────