From a79017810f79ce9564338630e0908d9061764616 Mon Sep 17 00:00:00 2001 From: Varun Date: Thu, 14 May 2026 13:36:07 +0530 Subject: [PATCH] chore: bump cursor_templates_version to 1.0.5 and update related files - Updated cursor_templates_version in project-brief.yaml and related files to 1.0.5 for consistency. - Enhanced CHANGELOG with new features and improvements for version 1.0.5, including MCP JSON generation and schema updates. - Reflected version changes in pubspec.yaml and package_graph.json. - Updated template version references in SKILL.md files across various test cases. This release improves template reproducibility and aligns documentation with the latest changes. --- example-project/project-brief.yaml | 2 +- .../generator/.dart_tool/package_graph.json | 2 +- .../test/incremental_kernel.Ly9AZGFydD0zLjM= | Bin 4095800 -> 4095640 bytes .../generator/CHANGELOG.md | 6 ++++++ .../generator/brief-schema.json | 2 +- .../generator/pubspec.yaml | 2 +- .../generator/src/renderer.dart | 2 +- .../generator/src/version_manager.dart | 2 +- .../bloc-clean-firebase/skills/build/SKILL.md | 2 +- .../skills/debug-issue/SKILL.md | 2 +- .../skills/explain-code/SKILL.md | 2 +- .../skills/verify-change/SKILL.md | 2 +- .../getx-mvc-rest/skills/build/SKILL.md | 2 +- .../getx-mvc-rest/skills/debug-issue/SKILL.md | 2 +- .../skills/explain-code/SKILL.md | 2 +- .../skills/verify-change/SKILL.md | 2 +- .../skills/build/SKILL.md | 2 +- .../skills/debug-issue/SKILL.md | 2 +- .../skills/explain-code/SKILL.md | 2 +- .../skills/verify-change/SKILL.md | 2 +- 20 files changed, 24 insertions(+), 18 deletions(-) diff --git a/example-project/project-brief.yaml b/example-project/project-brief.yaml index a222d88..031de79 100644 --- a/example-project/project-brief.yaml +++ b/example-project/project-brief.yaml @@ -13,7 +13,7 @@ # ----------------------------------------------------------------------------- # Template pin (Pillar 1) — bump when you intentionally upgrade template output # ----------------------------------------------------------------------------- -cursor_templates_version: "1.0.4" +cursor_templates_version: "1.0.5" # ----------------------------------------------------------------------------- # project — identity and rough size (affects rule tone / scaffolding hints) diff --git a/flutter-cursor-templates/generator/.dart_tool/package_graph.json b/flutter-cursor-templates/generator/.dart_tool/package_graph.json index 1e44e28..74bdc24 100644 --- a/flutter-cursor-templates/generator/.dart_tool/package_graph.json +++ b/flutter-cursor-templates/generator/.dart_tool/package_graph.json @@ -5,7 +5,7 @@ "packages": [ { "name": "cursor_gen", - "version": "1.0.4", + "version": "1.0.5", "dependencies": [ "ansi_styles", "args", diff --git a/flutter-cursor-templates/generator/.dart_tool/test/incremental_kernel.Ly9AZGFydD0zLjM= b/flutter-cursor-templates/generator/.dart_tool/test/incremental_kernel.Ly9AZGFydD0zLjM= index f57c918b8e6d41e0281e62a8e65557c6dca86286..da7a48a961772e2aadae44aa9caa3694001a4401 100644 GIT binary patch delta 252 zcmXwwIZi@R7)I~^#3zFzDk>m2AR-DpMhE03G{nS?1z4zSu%OYzvj(L$#7IMB@+d5* z*n_cP4Rm0l5fb^5Q=H^{?cbr)e}?jaU@(P)X-sBt;=+xGS>~8$fkl?^vdjvr_*i3| z4g3TMvPp2PB`U^BIoZVe^v5!pj!I; zGB2((ceRTBozOjFB0Wo|-KHAtv0&GW`pUEiW!-d*PA``_l$vzinl>Dfai`SNjgm%O Z$?J!bw~msQ^-oSo|MuB=uaic<{RbgfQc(Z^ delta 385 zcmbV`J1>J_7>1wsD<3VbL+jM?IiFgksAKg@h=inDCkqi4i;blcnz;Oh)(=2fOri#Z z@GHbnn~6xbN{F|T{sB*N<+|_TN$%6{qPqJjsx%4%2NhIeQbjdRT+~pD8xM8V(?BC$ zd^FKa3$3)_CqO$LSai}wH$C*yM?V7$GQ==JLW~e*lrbWVGr=TLrkG}iS>~80#==e9 zpH$IYAQ^vtF_#moTPwS{udtmr$|WDM$6ZJ3M*7XzG}5mn{#o8t=~=`vEzUbvC9J4n}iy?TVv(5ODWr^ m$Ug3SdaTU0sI#D`i+fR*52CIknv~{NRG~V%b7+qmg|%Nmv3KqO diff --git a/flutter-cursor-templates/generator/CHANGELOG.md b/flutter-cursor-templates/generator/CHANGELOG.md index ca98c86..dee5796 100644 --- a/flutter-cursor-templates/generator/CHANGELOG.md +++ b/flutter-cursor-templates/generator/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.0.5 + +- Generate `.cursor/mcp.json` from the project brief (MCP presets, backend-specific servers, env placeholders only — no secrets in the repo). +- Brief schema, validation, and resolver updates aligned with the current template set. +- Refreshed bundled templates (rules, agents, hooks, skills, commands, onboarding, root tooling). + ## 1.0.4 - Fix package-root detection for template resolution: walk up from the resolved `package:cursor_gen/...` file until `pubspec.yaml` is found (global installs were incorrectly using `lib/templates`). diff --git a/flutter-cursor-templates/generator/brief-schema.json b/flutter-cursor-templates/generator/brief-schema.json index 7de1cff..6f29ba1 100644 --- a/flutter-cursor-templates/generator/brief-schema.json +++ b/flutter-cursor-templates/generator/brief-schema.json @@ -8,7 +8,7 @@ "cursor_templates_version": { "type": "string", "description": "Pillar 1: Pin to template version for reproducibility", - "examples": ["1.0.4"] + "examples": ["1.0.5"] }, "project": { "type": "object", diff --git a/flutter-cursor-templates/generator/pubspec.yaml b/flutter-cursor-templates/generator/pubspec.yaml index 3dafc59..5f30cb0 100644 --- a/flutter-cursor-templates/generator/pubspec.yaml +++ b/flutter-cursor-templates/generator/pubspec.yaml @@ -1,6 +1,6 @@ name: cursor_gen description: A CLI tool that generates project-specific Cursor AI configurations for Flutter projects. -version: 1.0.4 +version: 1.0.5 homepage: https://github.com/company/flutter-cursor-templates environment: diff --git a/flutter-cursor-templates/generator/src/renderer.dart b/flutter-cursor-templates/generator/src/renderer.dart index 52ff2c6..274cbed 100644 --- a/flutter-cursor-templates/generator/src/renderer.dart +++ b/flutter-cursor-templates/generator/src/renderer.dart @@ -81,7 +81,7 @@ class Renderer { 'ARCH_IMPORT_RULES': _archImportRules(brief.architecture), 'TEST_PATTERN': _testPattern(brief.stateManagement), 'LOCALES_LIST': brief.locales.join(', '), - 'TEMPLATE_VERSION': '1.0.4', + 'TEMPLATE_VERSION': '1.0.5', 'IMPORT_POLICY_BLOCK': _importPolicyBlock(brief.strictPackageImports), }; } diff --git a/flutter-cursor-templates/generator/src/version_manager.dart b/flutter-cursor-templates/generator/src/version_manager.dart index 8b75338..23bb4b2 100644 --- a/flutter-cursor-templates/generator/src/version_manager.dart +++ b/flutter-cursor-templates/generator/src/version_manager.dart @@ -10,7 +10,7 @@ import 'logger.dart'; const _lockFileName = '.cursor-gen-lock.json'; /// Current flutter-cursor-templates bundle version (lock file, wizard, --check-updates). -const kCursorTemplatesVersion = '1.0.4'; +const kCursorTemplatesVersion = '1.0.5'; class VersionManager { /// Check if the project's locked version differs from the current template version diff --git a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/build/SKILL.md b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/build/SKILL.md index b8ce478..e39647d 100644 --- a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/build/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/build/SKILL.md @@ -576,4 +576,4 @@ dart run build_runner build --delete-conflicting-outputs Commit generated files (`.g.dart`, `.freezed.dart`, `injection.config.dart`) — do not gitignore them. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/debug-issue/SKILL.md b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/debug-issue/SKILL.md index 74d33d1..7d787bd 100644 --- a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/debug-issue/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/debug-issue/SKILL.md @@ -86,4 +86,4 @@ If evidence is missing, **stop** and print: 2. What to paste back (full error blocks, not summaries). 3. If the user cannot run commands: state assumptions explicitly and set confidence to **low**. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/explain-code/SKILL.md b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/explain-code/SKILL.md index f9101fa..6baff3e 100644 --- a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/explain-code/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/explain-code/SKILL.md @@ -80,4 +80,4 @@ _No Git repository URLs listed._ Add entries under `references.repos` in project _No local paths listed._ Add monorepo packages or sibling folders under `references.local_paths` in project-brief.yaml when relevant. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/verify-change/SKILL.md b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/verify-change/SKILL.md index e0a83cf..550a2a5 100644 --- a/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/verify-change/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/bloc-clean-firebase/skills/verify-change/SKILL.md @@ -70,4 +70,4 @@ VERIFICATION — paste real output for each line you executed: If anything fails: switch to **`/debug`** with the failing log before guessing. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/build/SKILL.md b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/build/SKILL.md index ae78e9e..aade4f6 100644 --- a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/build/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/build/SKILL.md @@ -574,4 +574,4 @@ dart run build_runner build --delete-conflicting-outputs Commit generated files (`.g.dart`, `.freezed.dart`, `injection.config.dart`) — do not gitignore them. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/debug-issue/SKILL.md b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/debug-issue/SKILL.md index 13e9600..f43d9e9 100644 --- a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/debug-issue/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/debug-issue/SKILL.md @@ -85,4 +85,4 @@ If evidence is missing, **stop** and print: 2. What to paste back (full error blocks, not summaries). 3. If the user cannot run commands: state assumptions explicitly and set confidence to **low**. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/explain-code/SKILL.md b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/explain-code/SKILL.md index 3c8a032..903aa4a 100644 --- a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/explain-code/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/explain-code/SKILL.md @@ -79,4 +79,4 @@ _No Git repository URLs listed._ Add entries under `references.repos` in project _No local paths listed._ Add monorepo packages or sibling folders under `references.local_paths` in project-brief.yaml when relevant. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/verify-change/SKILL.md b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/verify-change/SKILL.md index c9aa922..20e20b1 100644 --- a/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/verify-change/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/getx-mvc-rest/skills/verify-change/SKILL.md @@ -70,4 +70,4 @@ VERIFICATION — paste real output for each line you executed: If anything fails: switch to **`/debug`** with the failing log before guessing. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/build/SKILL.md b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/build/SKILL.md index 259d85f..e03396b 100644 --- a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/build/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/build/SKILL.md @@ -574,4 +574,4 @@ dart run build_runner build --delete-conflicting-outputs Commit generated files (`.g.dart`, `.freezed.dart`, `injection.config.dart`) — do not gitignore them. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/debug-issue/SKILL.md b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/debug-issue/SKILL.md index f521192..502ebf9 100644 --- a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/debug-issue/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/debug-issue/SKILL.md @@ -85,4 +85,4 @@ If evidence is missing, **stop** and print: 2. What to paste back (full error blocks, not summaries). 3. If the user cannot run commands: state assumptions explicitly and set confidence to **low**. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/explain-code/SKILL.md b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/explain-code/SKILL.md index af58d74..6d63cb0 100644 --- a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/explain-code/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/explain-code/SKILL.md @@ -79,4 +79,4 @@ _No Git repository URLs listed._ Add entries under `references.repos` in project _No local paths listed._ Add monorepo packages or sibling folders under `references.local_paths` in project-brief.yaml when relevant. -**Template version:** 1.0.4 +**Template version:** 1.0.5 diff --git a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/verify-change/SKILL.md b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/verify-change/SKILL.md index b33f785..ae47687 100644 --- a/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/verify-change/SKILL.md +++ b/flutter-cursor-templates/generator/test/golden/riverpod-ff-supabase/skills/verify-change/SKILL.md @@ -70,4 +70,4 @@ VERIFICATION — paste real output for each line you executed: If anything fails: switch to **`/debug`** with the failing log before guessing. -**Template version:** 1.0.4 +**Template version:** 1.0.5