chore: update README and CLI usage for cursor_gen, version bump to 1.0.1

- Changed CLI usage instructions from `dart run cursor_gen` to `cursor_gen` for global activation.
- Updated project-brief.yaml example and README to reflect new command usage.
- Added app_context section in project-brief.yaml for theme variants and RBAC roles.
- Fixed bundled template resolution for local and global installs to prevent 'Template not found' errors.
- Version bump to 1.0.1 with corresponding updates in CHANGELOG and pubspec.yaml.
This commit is contained in:
2026-05-13 12:08:52 +05:30
parent b05cdb7fbe
commit 54c66efe9b
157 changed files with 8233 additions and 570 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# .cursor/custom/ — project-specific overrides
This directory is never modified by `dart run cursor_gen` or `--refresh`.
This directory is never modified by `cursor_gen` or `--refresh`.
Use it for team-only rules, vendor SDK notes, or policies that should not live in the shared template repo.
+12 -2
View File
@@ -1,6 +1,6 @@
# =============================================================================
# project-brief.yaml — SINGLE REFERENCE EXAMPLE for cursor_gen
# Copy to your Flutter repo root, edit values, then: dart run cursor_gen
# Copy to your Flutter repo root, edit values, then: cursor_gen
# Schema / IDE hints: flutter-cursor-templates/generator/brief-schema.json
# =============================================================================
#
@@ -13,7 +13,7 @@
# -----------------------------------------------------------------------------
# Template pin (Pillar 1) — bump when you intentionally upgrade template output
# -----------------------------------------------------------------------------
cursor_templates_version: "1.0.0"
cursor_templates_version: "1.0.1"
# -----------------------------------------------------------------------------
# project — identity and rough size (affects rule tone / scaffolding hints)
@@ -92,6 +92,16 @@ references:
- "https://github.com/example/acme-design-tokens"
local_paths: []
# -----------------------------------------------------------------------------
# app_context — themes & RBAC (mirrored to .cursor/cursor-gen-metadata.json)
# -----------------------------------------------------------------------------
# theme_variants: subset of [ light, dark, high_contrast ]; omit section or use [] → loader defaults to [light, dark]
# roles_enabled / role_names: use named roles when the app has RBAC
# app_context:
# theme_variants: ["light", "dark", "high_contrast"]
# roles_enabled: true
# role_names: ["customer", "merchant", "admin"]
features:
# modules: high-level feature areas in YOUR lib/ (names are project-specific)
modules: ["auth", "home", "catalog", "cart", "checkout", "profile", "orders"]