Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flutter-cursor-plugin",
"displayName": "Flutter Cursor Plugin",
"version": "1.9.0",
"version": "1.9.1",
"description": "Open-source Cursor plugin for end-to-end Flutter development and testing with Dart MCP, Figma MCP, practical architecture patterns, and reliable test workflows.",
"author": {
"name": "Aleksandr Lozhkovoi",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Fixed Flutter AI rules profile sync metadata so only `rules/flutter-official-ai-rules.mdc` contains Cursor `globs` auto-attach front matter; synced `rules/official/*.mdc` remain non-attaching source profiles.
- Added official Flutter AI rules sync workflow:
- command: `commands/sync-official-flutter-ai-rules.md`
- skill: `skills/sync-official-flutter-ai-rules/SKILL.md`
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flutter-cursor-plugin",
"displayName": "Flutter Cursor Plugin",
"version": "1.9.0",
"version": "1.9.1",
"description": "Open-source Cursor plugin for end-to-end Flutter development and testing with Dart MCP, Figma MCP, practical architecture patterns, and reliable test workflows.",
"author": "Aleksandr Lozhkovoi",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion rules/official/flutter-ai-rules-10k.mdc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
description: Official Flutter AI rules profile (10k) synced from flutter/flutter.
alwaysApply: false
globs: ["lib/**/*.dart", "test/**/*.dart", "**/*.dart"]
---

<!--
Expand Down
1 change: 0 additions & 1 deletion rules/official/flutter-ai-rules-1k.mdc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
description: Official Flutter AI rules profile (1k) synced from flutter/flutter.
alwaysApply: false
globs: ["lib/**/*.dart", "test/**/*.dart", "**/*.dart"]
---

<!--
Expand Down
1 change: 0 additions & 1 deletion rules/official/flutter-ai-rules-4k.mdc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
description: Official Flutter AI rules profile (4k) synced from flutter/flutter.
alwaysApply: false
globs: ["lib/**/*.dart", "test/**/*.dart", "**/*.dart"]
---

<!--
Expand Down
14 changes: 12 additions & 2 deletions scripts/sync_official_flutter_ai_rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ download_rule() {
echo "---"
echo "description: Official Flutter AI rules profile (${profile_name}) synced from flutter/flutter."
echo "alwaysApply: false"
echo "globs: [\"lib/**/*.dart\", \"test/**/*.dart\", \"**/*.dart\"]"
echo "---"
echo
echo "<!--"
Expand All @@ -54,7 +53,18 @@ download_rule "${url_10k}" "${out_dir}/flutter-ai-rules-10k.mdc" "10k"
download_rule "${url_4k}" "${out_dir}/flutter-ai-rules-4k.mdc" "4k"
download_rule "${url_1k}" "${out_dir}/flutter-ai-rules-1k.mdc" "1k"

cp "${out_dir}/flutter-ai-rules-${profile}.mdc" "${repo_root}/rules/flutter-official-ai-rules.mdc"
active_rule="${repo_root}/rules/flutter-official-ai-rules.mdc"

awk '
BEGIN { inserted = 0 }
/^alwaysApply: false$/ && inserted == 0 {
print
print "globs: [\"lib/**/*.dart\", \"test/**/*.dart\", \"**/*.dart\"]"
inserted = 1
next
}
{ print }
' "${out_dir}/flutter-ai-rules-${profile}.mdc" > "${active_rule}"

echo "Synced official Flutter AI rules."
echo "Selected active profile: ${profile}"
Expand Down