From f784e5d481d64dcf201b2eb5577f16ceecd2d48c Mon Sep 17 00:00:00 2001 From: alestiago <44524995+alestiago@users.noreply.github.com> Date: Tue, 18 Nov 2025 08:13:15 +0000 Subject: [PATCH 1/3] chore: update SPDX licenses --- lib/src/pub_license/spdx_license.gen.dart | 5 ++++- tool/spdx_license/test/spdx_license.gen.dart | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/src/pub_license/spdx_license.gen.dart b/lib/src/pub_license/spdx_license.gen.dart index d5c0ca127..16b4507c7 100644 --- a/lib/src/pub_license/spdx_license.gen.dart +++ b/lib/src/pub_license/spdx_license.gen.dart @@ -11,7 +11,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 713 SPDX licenses. +/// A list of all 716 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -122,6 +122,7 @@ enum SpdxLicense { $Borceux._('Borceux'), $Brian_Gladman_2_Clause._('Brian-Gladman-2-Clause'), $Brian_Gladman_3_Clause._('Brian-Gladman-3-Clause'), + $Buddy._('Buddy'), $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'), @@ -426,6 +427,7 @@ enum SpdxLicense { $MIT_Festival._('MIT-Festival'), $MIT_Khronos_old._('MIT-Khronos-old'), $MIT_Modern_Variant._('MIT-Modern-Variant'), + $MIT_STK._('MIT-STK'), $MIT_Wu._('MIT-Wu'), $MIT_advertising._('MIT-advertising'), $MIT_enna._('MIT-enna'), @@ -654,6 +656,7 @@ enum SpdxLicense { $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'), $XSkat._('XSkat'), diff --git a/tool/spdx_license/test/spdx_license.gen.dart b/tool/spdx_license/test/spdx_license.gen.dart index 6827e4ec2..7e72f7b8b 100644 --- a/tool/spdx_license/test/spdx_license.gen.dart +++ b/tool/spdx_license/test/spdx_license.gen.dart @@ -11,7 +11,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 713 SPDX licenses. +/// A list of all 716 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -120,6 +120,7 @@ enum SpdxLicense { $Borceux._('Borceux'), $Brian_Gladman_2_Clause._('Brian-Gladman-2-Clause'), $Brian_Gladman_3_Clause._('Brian-Gladman-3-Clause'), + $Buddy._('Buddy'), $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'), @@ -422,6 +423,7 @@ enum SpdxLicense { $MIT_Festival._('MIT-Festival'), $MIT_Khronos_old._('MIT-Khronos-old'), $MIT_Modern_Variant._('MIT-Modern-Variant'), + $MIT_STK._('MIT-STK'), $MIT_Wu._('MIT-Wu'), $MIT_advertising._('MIT-advertising'), $MIT_enna._('MIT-enna'), @@ -648,6 +650,7 @@ enum SpdxLicense { $Wsuipa._('Wsuipa'), $X11._('X11'), $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'), $XSkat._('XSkat'), From a0b8cf523c4b66f81d0c972bc6ad731c3a920f7d Mon Sep 17 00:00:00 2001 From: alestiago <44524995+alestiago@users.noreply.github.com> Date: Tue, 18 Nov 2025 08:13:15 +0000 Subject: [PATCH 2/3] chore: update SPDX licenses --- lib/src/pub_license/spdx_license.gen.dart | 5 ++++- tool/spdx_license/test/spdx_license.gen.dart | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/src/pub_license/spdx_license.gen.dart b/lib/src/pub_license/spdx_license.gen.dart index d5c0ca127..16b4507c7 100644 --- a/lib/src/pub_license/spdx_license.gen.dart +++ b/lib/src/pub_license/spdx_license.gen.dart @@ -11,7 +11,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 713 SPDX licenses. +/// A list of all 716 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -122,6 +122,7 @@ enum SpdxLicense { $Borceux._('Borceux'), $Brian_Gladman_2_Clause._('Brian-Gladman-2-Clause'), $Brian_Gladman_3_Clause._('Brian-Gladman-3-Clause'), + $Buddy._('Buddy'), $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'), @@ -426,6 +427,7 @@ enum SpdxLicense { $MIT_Festival._('MIT-Festival'), $MIT_Khronos_old._('MIT-Khronos-old'), $MIT_Modern_Variant._('MIT-Modern-Variant'), + $MIT_STK._('MIT-STK'), $MIT_Wu._('MIT-Wu'), $MIT_advertising._('MIT-advertising'), $MIT_enna._('MIT-enna'), @@ -654,6 +656,7 @@ enum SpdxLicense { $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'), $XSkat._('XSkat'), diff --git a/tool/spdx_license/test/spdx_license.gen.dart b/tool/spdx_license/test/spdx_license.gen.dart index 6827e4ec2..7e72f7b8b 100644 --- a/tool/spdx_license/test/spdx_license.gen.dart +++ b/tool/spdx_license/test/spdx_license.gen.dart @@ -11,7 +11,7 @@ library spdx_license; /// {@template spdx_license} -/// A list of all 713 SPDX licenses. +/// A list of all 716 SPDX licenses. /// /// These have been automatically generated from the SPDX License brick. /// {@endtemplate} @@ -120,6 +120,7 @@ enum SpdxLicense { $Borceux._('Borceux'), $Brian_Gladman_2_Clause._('Brian-Gladman-2-Clause'), $Brian_Gladman_3_Clause._('Brian-Gladman-3-Clause'), + $Buddy._('Buddy'), $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'), @@ -422,6 +423,7 @@ enum SpdxLicense { $MIT_Festival._('MIT-Festival'), $MIT_Khronos_old._('MIT-Khronos-old'), $MIT_Modern_Variant._('MIT-Modern-Variant'), + $MIT_STK._('MIT-STK'), $MIT_Wu._('MIT-Wu'), $MIT_advertising._('MIT-advertising'), $MIT_enna._('MIT-enna'), @@ -648,6 +650,7 @@ enum SpdxLicense { $Wsuipa._('Wsuipa'), $X11._('X11'), $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'), $XSkat._('XSkat'), From 3bbc6ee85888f83334465a3e55e2a27fef2aa6fc Mon Sep 17 00:00:00 2001 From: vgvbot <71841508+vgvbot@users.noreply.github.com> Date: Tue, 3 Feb 2026 03:20:22 -0500 Subject: [PATCH 3/3] chore: update SPDX licenses --- lib/src/mcp/mcp_command.dart | 21 ++++---------- lib/src/mcp/mcp_server.dart | 10 ++----- lib/src/pub_license/spdx_license.gen.dart | 29 ++++++++++---------- lib/src/pubspec_lock/pubspec_lock.dart | 3 +- tool/spdx_license/test/spdx_license.gen.dart | 9 +++++- 5 files changed, 32 insertions(+), 40 deletions(-) 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; } diff --git a/lib/src/pubspec_lock/pubspec_lock.dart b/lib/src/pubspec_lock/pubspec_lock.dart index 16431af38..3ea78bd15 100644 --- a/lib/src/pubspec_lock/pubspec_lock.dart +++ b/lib/src/pubspec_lock/pubspec_lock.dart @@ -152,8 +152,7 @@ enum PubspecLockPackageDependencyType { /// See also: /// /// * [Dart's dependency override documentation](https://dart.dev/tools/pub/dependencies#dependency-overrides) - directOverridden._('direct overridden') - ; + directOverridden._('direct overridden'); const PubspecLockPackageDependencyType._(this.value); diff --git a/tool/spdx_license/test/spdx_license.gen.dart b/tool/spdx_license/test/spdx_license.gen.dart index 17882dfef..541338f57 100644 --- a/tool/spdx_license/test/spdx_license.gen.dart +++ b/tool/spdx_license/test/spdx_license.gen.dart @@ -12,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} @@ -126,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,6 +351,7 @@ enum SpdxLicense { $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_critical_systems._('HPND-sell-variant-critical-systems'), $HTMLTIDY._('HTMLTIDY'), $HaskellReport._('HaskellReport'), $Hippocratic_2_1._('Hippocratic-2.1'), @@ -435,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'), @@ -535,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'), @@ -545,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'), @@ -632,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'), @@ -643,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'),