Compare commits
1 Commits
da64f769da
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a79017810f |
@@ -13,7 +13,7 @@
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Template pin (Pillar 1) — bump when you intentionally upgrade template output
|
# 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)
|
# project — identity and rough size (affects rule tone / scaffolding hints)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "cursor_gen",
|
"name": "cursor_gen",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"ansi_styles",
|
"ansi_styles",
|
||||||
"args",
|
"args",
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# 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
|
## 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`).
|
- 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`).
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"cursor_templates_version": {
|
"cursor_templates_version": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Pillar 1: Pin to template version for reproducibility",
|
"description": "Pillar 1: Pin to template version for reproducibility",
|
||||||
"examples": ["1.0.4"]
|
"examples": ["1.0.5"]
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: cursor_gen
|
name: cursor_gen
|
||||||
description: A CLI tool that generates project-specific Cursor AI configurations for Flutter projects.
|
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
|
homepage: https://github.com/company/flutter-cursor-templates
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class Renderer {
|
|||||||
'ARCH_IMPORT_RULES': _archImportRules(brief.architecture),
|
'ARCH_IMPORT_RULES': _archImportRules(brief.architecture),
|
||||||
'TEST_PATTERN': _testPattern(brief.stateManagement),
|
'TEST_PATTERN': _testPattern(brief.stateManagement),
|
||||||
'LOCALES_LIST': brief.locales.join(', '),
|
'LOCALES_LIST': brief.locales.join(', '),
|
||||||
'TEMPLATE_VERSION': '1.0.4',
|
'TEMPLATE_VERSION': '1.0.5',
|
||||||
'IMPORT_POLICY_BLOCK': _importPolicyBlock(brief.strictPackageImports),
|
'IMPORT_POLICY_BLOCK': _importPolicyBlock(brief.strictPackageImports),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import 'logger.dart';
|
|||||||
const _lockFileName = '.cursor-gen-lock.json';
|
const _lockFileName = '.cursor-gen-lock.json';
|
||||||
|
|
||||||
/// Current flutter-cursor-templates bundle version (lock file, wizard, --check-updates).
|
/// Current flutter-cursor-templates bundle version (lock file, wizard, --check-updates).
|
||||||
const kCursorTemplatesVersion = '1.0.4';
|
const kCursorTemplatesVersion = '1.0.5';
|
||||||
|
|
||||||
class VersionManager {
|
class VersionManager {
|
||||||
/// Check if the project's locked version differs from the current template version
|
/// Check if the project's locked version differs from the current template version
|
||||||
|
|||||||
+1
-1
@@ -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.
|
Commit generated files (`.g.dart`, `.freezed.dart`, `injection.config.dart`) — do not gitignore them.
|
||||||
|
|
||||||
**Template version:** 1.0.4
|
**Template version:** 1.0.5
|
||||||
|
|||||||
+1
-1
@@ -86,4 +86,4 @@ If evidence is missing, **stop** and print:
|
|||||||
2. What to paste back (full error blocks, not summaries).
|
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**.
|
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
|
||||||
|
|||||||
+1
-1
@@ -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.
|
_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
|
||||||
|
|||||||
+1
-1
@@ -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.
|
If anything fails: switch to **`/debug`** with the failing log before guessing.
|
||||||
|
|
||||||
**Template version:** 1.0.4
|
**Template version:** 1.0.5
|
||||||
|
|||||||
@@ -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.
|
Commit generated files (`.g.dart`, `.freezed.dart`, `injection.config.dart`) — do not gitignore them.
|
||||||
|
|
||||||
**Template version:** 1.0.4
|
**Template version:** 1.0.5
|
||||||
|
|||||||
+1
-1
@@ -85,4 +85,4 @@ If evidence is missing, **stop** and print:
|
|||||||
2. What to paste back (full error blocks, not summaries).
|
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**.
|
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
|
||||||
|
|||||||
+1
-1
@@ -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.
|
_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
|
||||||
|
|||||||
+1
-1
@@ -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.
|
If anything fails: switch to **`/debug`** with the failing log before guessing.
|
||||||
|
|
||||||
**Template version:** 1.0.4
|
**Template version:** 1.0.5
|
||||||
|
|||||||
+1
-1
@@ -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.
|
Commit generated files (`.g.dart`, `.freezed.dart`, `injection.config.dart`) — do not gitignore them.
|
||||||
|
|
||||||
**Template version:** 1.0.4
|
**Template version:** 1.0.5
|
||||||
|
|||||||
+1
-1
@@ -85,4 +85,4 @@ If evidence is missing, **stop** and print:
|
|||||||
2. What to paste back (full error blocks, not summaries).
|
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**.
|
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
|
||||||
|
|||||||
+1
-1
@@ -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.
|
_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
|
||||||
|
|||||||
+1
-1
@@ -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.
|
If anything fails: switch to **`/debug`** with the failing log before guessing.
|
||||||
|
|
||||||
**Template version:** 1.0.4
|
**Template version:** 1.0.5
|
||||||
|
|||||||
Reference in New Issue
Block a user