diff --git a/lib/src/mcp/mcp_command.dart b/lib/src/mcp/mcp_command.dart index 950a5944a..17dafc933 100644 --- a/lib/src/mcp/mcp_command.dart +++ b/lib/src/mcp/mcp_command.dart @@ -57,18 +57,13 @@ Start the MCP (Model Context Protocol) server. WARNING: This is an experimental try { _logger ..info('Starting Very Good CLI MCP Server...') - ..info( - 'Server will listen on stdin/stdout for MCP protocol messages', - ); + ..info('Server will listen on stdin/stdout for MCP protocol messages'); // Create a channel from stdin/stdout using the stdio helper final channel = _channelFactory(); // Create and start the MCP server - final server = _serverFactory( - channel: channel, - logger: _logger, - ); + final server = _serverFactory(channel: channel, logger: _logger); _logger ..info('MCP Server started successfully') @@ -76,18 +71,14 @@ Start the MCP (Model Context Protocol) server. WARNING: This is an experimental ..info(''' - create: Create a very good Dart or Flutter project in seconds based on the provided template. Each template has a corresponding sub-command.''') ..info(' - test: Run tests in a Dart or Flutter project.') - ..info( - ''' + ..info(''' - packages_get: Install or update Dart/Flutter package dependencies. Use after creating a project or modifying pubspec.yaml. - Supports recursive installation and package exclusion.''', - ) - ..info( - ''' + Supports recursive installation and package exclusion.''') + ..info(''' - packages_check_licenses: Verify package licenses for compliance and validation in a Dart or Flutter project. Identifies license types (MIT, BSD, Apache, etc.) for all - dependencies. Use to ensure license compatibility.''', - ); + dependencies. Use to ensure license compatibility.'''); // Wait for the server to complete // (this will block until the connection is closed) diff --git a/lib/src/mcp/mcp_server.dart b/lib/src/mcp/mcp_server.dart index 5476c31a0..fa4283611 100644 --- a/lib/src/mcp/mcp_server.dart +++ b/lib/src/mcp/mcp_server.dart @@ -286,10 +286,7 @@ Only one value can be selected. cliArgs.addAll(['--org-name', args['org_name']! as String]); } if (args['output_directory'] != null) { - cliArgs.addAll([ - '-o', - args['output_directory']! as String, - ]); + cliArgs.addAll(['-o', args['output_directory']! as String]); } if (args['application_id'] != null) { cliArgs.addAll(['--application-id', args['application_id']! as String]); @@ -308,10 +305,7 @@ Only one value can be selected. } List _parseTest(Map args) { - final cliArgs = [ - if (args['dart'] == true) 'dart', - 'test', - ]; + final cliArgs = [if (args['dart'] == true) 'dart', 'test']; if (args['directory'] != null) { cliArgs.add(args['directory']! as String); diff --git a/lib/src/pub_license/spdx_license.gen.dart b/lib/src/pub_license/spdx_license.gen.dart index 71399dfa9..541338f57 100644 --- a/lib/src/pub_license/spdx_license.gen.dart +++ b/lib/src/pub_license/spdx_license.gen.dart @@ -4,6 +4,7 @@ // CONTRIBUTING file. // ignore_for_file: type=lint +// dart format off /// List of all SPDX licenses. /// @@ -11,7 +12,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 719 SPDX licenses. +/// A list of all 726 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -84,9 +85,7 @@ enum SpdxLicense { $BSD_3_Clause_Modification._('BSD-3-Clause-Modification'), $BSD_3_Clause_No_Military_License._('BSD-3-Clause-No-Military-License'), $BSD_3_Clause_No_Nuclear_License._('BSD-3-Clause-No-Nuclear-License'), - $BSD_3_Clause_No_Nuclear_License_2014._( - 'BSD-3-Clause-No-Nuclear-License-2014', - ), + $BSD_3_Clause_No_Nuclear_License_2014._('BSD-3-Clause-No-Nuclear-License-2014'), $BSD_3_Clause_No_Nuclear_Warranty._('BSD-3-Clause-No-Nuclear-Warranty'), $BSD_3_Clause_Open_MPI._('BSD-3-Clause-Open-MPI'), $BSD_3_Clause_Sun._('BSD-3-Clause-Sun'), @@ -127,6 +126,7 @@ enum SpdxLicense { $C_UDA_1_0._('C-UDA-1.0'), $CAL_1_0._('CAL-1.0'), $CAL_1_0_Combined_Work_Exception._('CAL-1.0-Combined-Work-Exception'), + $CAPEC_tou._('CAPEC-tou'), $CATOSL_1_1._('CATOSL-1.1'), $CC_BY_1_0._('CC-BY-1.0'), $CC_BY_2_0._('CC-BY-2.0'), @@ -350,9 +350,8 @@ enum SpdxLicense { $HPND_sell_regexpr._('HPND-sell-regexpr'), $HPND_sell_variant._('HPND-sell-variant'), $HPND_sell_variant_MIT_disclaimer._('HPND-sell-variant-MIT-disclaimer'), - $HPND_sell_variant_MIT_disclaimer_rev._( - 'HPND-sell-variant-MIT-disclaimer-rev', - ), + $HPND_sell_variant_MIT_disclaimer_rev._('HPND-sell-variant-MIT-disclaimer-rev'), + $HPND_sell_variant_critical_systems._('HPND-sell-variant-critical-systems'), $HTMLTIDY._('HTMLTIDY'), $HaskellReport._('HaskellReport'), $Hippocratic_2_1._('Hippocratic-2.1'), @@ -438,6 +437,7 @@ enum SpdxLicense { $MIT_testregex._('MIT-testregex'), $MITNFA._('MITNFA'), $MMIXware._('MMIXware'), + $MMPL_1_0_1._('MMPL-1.0.1'), $MPEG_SSG._('MPEG-SSG'), $MPL_1_0._('MPL-1.0'), $MPL_1_1._('MPL-1.1'), @@ -538,6 +538,7 @@ enum SpdxLicense { $OSL_2_1._('OSL-2.1'), $OSL_3_0._('OSL-3.0'), $OSSP._('OSSP'), + $OpenMDW_1_0._('OpenMDW-1.0'), $OpenPBS_2_3._('OpenPBS-2.3'), $OpenSSL._('OpenSSL'), $OpenSSL_standalone._('OpenSSL-standalone'), @@ -548,6 +549,7 @@ enum SpdxLicense { $PHP_3_01._('PHP-3.01'), $PPL._('PPL'), $PSF_2_0._('PSF-2.0'), + $ParaType_Free_Font_1_3._('ParaType-Free-Font-1.3'), $Parity_6_0_0._('Parity-6.0.0'), $Parity_7_0_0._('Parity-7.0.0'), $Pixar._('Pixar'), @@ -635,6 +637,7 @@ enum SpdxLicense { $UPL_1_0._('UPL-1.0'), $URT_RLE._('URT-RLE'), $Ubuntu_font_1_0._('Ubuntu-font-1.0'), + $UnRAR._('UnRAR'), $Unicode_3_0._('Unicode-3.0'), $Unicode_DFS_2015._('Unicode-DFS-2015'), $Unicode_DFS_2016._('Unicode-DFS-2016'), @@ -646,6 +649,7 @@ enum SpdxLicense { $VOSTROM._('VOSTROM'), $VSL_1_0._('VSL-1.0'), $Vim._('Vim'), + $Vixie_Cron._('Vixie-Cron'), $W3C._('W3C'), $W3C_19980720._('W3C-19980720'), $W3C_20150513._('W3C-20150513'), @@ -656,9 +660,7 @@ enum SpdxLicense { $WordNet._('WordNet'), $Wsuipa._('Wsuipa'), $X11._('X11'), - $X11_distribute_modifications_variant._( - 'X11-distribute-modifications-variant', - ), + $X11_distribute_modifications_variant._('X11-distribute-modifications-variant'), $X11_no_permit_persons._('X11-no-permit-persons'), $X11_swapped._('X11-swapped'), $XFree86_1_1._('XFree86-1.1'), @@ -741,8 +743,7 @@ enum SpdxLicense { $xpp._('xpp'), $xzoom._('xzoom'), $zlib_acknowledgement._('zlib-acknowledgement'), - $unknown._('unknown') - ; + $unknown._('unknown'); const SpdxLicense._(this.value); @@ -765,8 +766,8 @@ enum SpdxLicense { static SpdxLicense? tryParse(String source) => _valueMap[source]; static final Map _valueMap = SpdxLicense.values - .asNameMap() - .map((key, value) => MapEntry(value.value, value)); + .asNameMap() + .map((key, value) => MapEntry(value.value, value)); final String value; }