mcf_cli 1.0.17
mcf_cli: ^1.0.17 copied to clipboard
The official CLI for Mission-Critical Flutter. Generates forensic-grade architecture, enforces strict compliance, and audits existing projects.
1.0.17 #
- Compliance: Updated Audit Tool to v4.2, increasing the strict build() method line limit from 40 to 60 lines.
Rationale: Accommodates complex Widget composition (e.g., Stack or BlocConsumer trees) while preserving readability via decomposition.
Fix: Resolved CLI output formatting issue where "Section 4: State Management" was skipped in the final report.
Improvement: The audit tool now explicitly lists State Management rules (5.1–5.7) as "Verified via Architecture Review & Unit Tests" to clearly distinguish between automated regex checks and required manual architectural verification.
1.0.16 #
- Fix: Updated
pubspec.yamlrepository URL to point to the correct root repository (mcf_cli) to resolve pub.flutter-io.cn verification errors. - Compliance: Achieved 100% pub.flutter-io.cn health score (160/160) by ensuring repository metadata matches the hosted package.
- Note: This is a metadata-only release; CLI functionality remains unchanged from v1.0.15.
1.0.15 #
- Feature: Enhanced Audit Tool with strict enforcement of "Pure Dart" Domain logic.
- Fix: The audit tool now explicitly flags platform-specific dependencies (
dart:io,dart:html,dart:ui) in the Domain layer as violations. - Rationale: Domain entities must remain platform-agnostic to ensure testability and prevent the "Dart:IO Trap."
1.0.14 #
- Fix: Added CHECK 3 to audit list: Platform Dependencies (The "Dart:IO" Trap) Domain must be Pure Dart. It cannot know about the File System (IO) or the Browser (HTML) or the Rendering Engine (UI).
1.0.13 #
- Fix: Moved
widget_test.dartto the roottest/directory to correctly overwrite the default Flutter test file. - Fix: Resolved file collision where
flutter testwould fail due to duplicate widget tests (one checkingMyApp, one checkingMissionCriticalApp). - Fix: All generated tests now pass strict linting and execution immediately after creation.
1.0.12 #
- Fix: Updated
analysis_options.yamlto excludetool/from linting and disableddirectives_orderingto support dynamic template names. - Fix: Resolved all strict linter warnings in generated code (imports, line lengths, doc comments, trailing commas).
- Fix: Converted Golden Tests to Smoke Tests to ensure cross-platform compatibility (Windows/Mac/Linux) out of the box.
- Fix: Updated
user_cubit_test.dartwith valid Mock Data to prevent compilation errors in new projects. - Fix: Corrected logic in
profile_screen.dartto match the Cubit API (loadUservsloadProfile).
1.0.11 #
- Fix: Solved compilation errors in
profile_screen.dart(corrected property accessdatavsuserand class namingUserFailurevsUserError). - Fix: Implemented missing
saveUsermethod inuser_repository_impl.dartto satisfy the Interface contract. - Fix: Updated
widget_test.dartto use the correctMissionCriticalAppclass and inject dependencies.
1.0.10 #
- Fix: Resolved
part ofimport errors in generated tests (profile_screen_test.dartnow importsuser_cubit.dart). - Fix: Corrected mismatched state class naming in tests (
UserError→UserFailure).
1.0.9 #
- Fix: Resolved
part ofimport errors in generated tests (profile_screen_test.dart). - Fix: Corrected mismatched state names in tests (
UserError→UserFailure). - Fix: Gracefully handle audit failures in CLI without unhandled exceptions.
1.0.8 #
- Fix: Hardcoded file naming in
mcf_newtemplate to prevent_cubit.dartgeneration errors. - Fix: Resolved strict linter errors in generated Data Layer files (
user_model.dart,user_repository_impl.dart). - Fix: Added global error handling to CLI to prevent crashes during failed audits.
- Improvement:
mcf newnow correctly wires upmain.dartwith Dependency Injection.
1.0.7 #
- Update: RREADME.md.
1.0.6 #
- Fix: Solved Windows PATH latency by using direct Dart package execution (
dart pub global run) as a fallback.
1.0.5 #
- Fix: Enhanced Windows detection for missing Mason CLI (checks exit code).
1.0.4 #
- Fix: Auto-installs
mason_cliif missing from the user's system.
1.0.3 #
- Fix: Solved "Bad state: No terminal attached" crash by enabling interactive mode during brick installation.
1.0.2 #
- Fix: Updated GitHub repository URL to point to the correct brick location.
1.0.1 #
- Fix: Windows compatibility issue where
masoncommand was not found.
1.0.0 #
- Initial release.