fix: add missing gitignore files for cua templates#144
Conversation
Add the standard template _gitignore files for the new TypeScript and Python CUA templates so generated apps include .gitignore and the template tests pass again. Made-with: Cursor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e46a020. Configure here.
| @@ -0,0 +1,2 @@ | |||
| node_modules | |||
| bun.lockb | |||
There was a problem hiding this comment.
TypeScript CUA gitignore missing .env pattern
High Severity
The TypeScript CUA _gitignore is missing the .env pattern, unlike every other TypeScript template in the repo. The CUA template's own README.md instructs users to cp .env.example .env and store API keys (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY) there. Without .env in the gitignore, users are likely to accidentally commit secrets to version control. The Python CUA _gitignore correctly includes .env, making this an oversight specific to the TypeScript version.
Reviewed by Cursor Bugbot for commit e46a020. Configure here.
| @@ -0,0 +1,2 @@ | |||
| node_modules | |||
| bun.lockb | |||
There was a problem hiding this comment.
Both CUA gitignore files missing standard patterns
Medium Severity
Both CUA _gitignore files are dramatically smaller than every other template's gitignore (2–4 lines vs. 39–74 lines). Standard patterns present in all sibling templates — like IDE files (.idea/, .vscode/), OS artifacts (.DS_Store), build output (dist/, build/), log files (*.log), and testing artifacts — are entirely absent. The PR description says these are "the standard template _gitignore files," but they are far from standard compared to every other template in the repo.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit e46a020. Configure here.


Add the standard template _gitignore files for the new TypeScript and Python CUA templates so generated apps include .gitignore and the template tests pass again.
Made-with: Cursor
Note
Low Risk
Low risk because it only adds template ignore patterns and does not affect runtime logic or production behavior.
Overview
Adds
_gitignorefiles to the Python and TypeScriptcuatemplates so generated apps include a.gitignorewith standard ignores (e.g., Python virtualenv/cache folders and TypeScriptnode_modules/bun.lockb), restoring expected template/test behavior.Reviewed by Cursor Bugbot for commit e46a020. Bugbot is set up for automated code reviews on this repo. Configure here.