@conformetry/cli 0.0.25 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 0.0.27 (2026-10-15)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ic-suite,configuration:** ✨ name root files after their project and declare root modules ([#1588](https://github.com/organizzolini/codebase/pull/1588), [#1480](https://github.com/organizzolini/codebase/issues/1480))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated conformetry-configuration to 0.0.27
10
+ - Updated conformetry-generation to 0.0.27
11
+ - Updated conformetry-validation to 0.0.26
12
+ - Updated conformetry-output to 0.0.26
13
+ - Updated conformetry-core to 0.0.26
14
+
15
+ ## 0.0.26 (2026-10-15)
16
+
17
+ ### 🧱 Updated Dependencies
18
+
19
+ - Updated conformetry-configuration to 0.0.26
20
+ - Updated conformetry-generation to 0.0.26
21
+ - Updated conformetry-validation to 0.0.25
22
+ - Updated conformetry-output to 0.0.25
23
+ - Updated conformetry-core to 0.0.25
24
+
1
25
  ## 0.0.25 (2026-10-15)
2
26
 
3
27
  ### 🩹 Fixes
package/README.md CHANGED
@@ -591,7 +591,7 @@ What this project is judged against, as declared in its own `callidescope.config
591
591
  **1. `InstancesCommand.run`** — depth ≥ 15 · decorated-method
592
592
 
593
593
  ```text
594
- 🚀 InstancesCommand.run(_passedParameters: string[], options: InstancesCommandOptions): Promise<void> [projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:84]
594
+ 🚀 InstancesCommand.run(_passedParameters: string[], options: InstancesCommandOptions): Promise<void> [projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:87]
595
595
  ↳ Writes every instance found, filtered to the given templates.
596
596
  └─> ConfigurationService.resolveInventoriedInstances(…): InventoriedInstance[] [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:345]
597
597
  ↳ Lists every instance found, paired with the templates that explain it.
@@ -622,7 +622,7 @@ What this project is judged against, as declared in its own `callidescope.config
622
622
  **2. `TemplatesCommand.run`** — depth ≥ 15 · decorated-method
623
623
 
624
624
  ```text
625
- 🚀 TemplatesCommand.run(_passedParameters: string[], options: TemplatesCommandOptions): Promise<void> [projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:85]
625
+ 🚀 TemplatesCommand.run(_passedParameters: string[], options: TemplatesCommandOptions): Promise<void> [projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:88]
626
626
  ↳ Writes every declared template, filtered to the given instances.
627
627
  └─> ConfigurationService.resolveInventoriedTemplates(…): InventoriedTemplate[] [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:352]
628
628
  ↳ Lists every template declared, paired with the instances it explains.
@@ -712,7 +712,7 @@ What this project is judged against, as declared in its own `callidescope.config
712
712
  **5. `InstancesCommand.parseTemplates`** — depth 4 · decorated-method
713
713
 
714
714
  ```text
715
- 🚀 InstancesCommand.parseTemplates(value: string | undefined): string[] | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:74]
715
+ 🚀 InstancesCommand.parseTemplates(value: string | undefined): string[] | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:77]
716
716
  ↳ Parses the optional template filter.
717
717
  └─> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
718
718
  ↳ Splits a comma-delimited filter option into its values.
@@ -724,7 +724,7 @@ What this project is judged against, as declared in its own `callidescope.config
724
724
  **6. `TemplatesCommand.parseInstances`** — depth 4 · decorated-method
725
725
 
726
726
  ```text
727
- 🚀 TemplatesCommand.parseInstances(value: string | undefined): string[] | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:66]
727
+ 🚀 TemplatesCommand.parseInstances(value: string | undefined): string[] | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:69]
728
728
  ↳ Parses the optional instance filter.
729
729
  └─> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
730
730
  ↳ Splits a comma-delimited filter option into its values.
@@ -818,7 +818,7 @@ What this project is judged against, as declared in its own `callidescope.config
818
818
  **14. `InstancesCommand.parseConfig`** — depth 3 · decorated-method
819
819
 
820
820
  ```text
821
- 🚀 InstancesCommand.parseConfig(value: string | undefined): string | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:56]
821
+ 🚀 InstancesCommand.parseConfig(value: string | undefined): string | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:59]
822
822
  ↳ Parses the optional configuration path.
823
823
  └─> ConfigurationService.parseOptionalOption(value: string | undefined): string | undefined [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:278]
824
824
  ↳ Trims an optional string option, treating blank as absent.
@@ -829,7 +829,7 @@ What this project is judged against, as declared in its own `callidescope.config
829
829
  **15. `TemplatesCommand.parseConfig`** — depth 3 · decorated-method
830
830
 
831
831
  ```text
832
- 🚀 TemplatesCommand.parseConfig(value: string | undefined): string | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:57]
832
+ 🚀 TemplatesCommand.parseConfig(value: string | undefined): string | undefined [projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:60]
833
833
  ↳ Parses the optional configuration path.
834
834
  └─> ConfigurationService.parseOptionalOption(value: string | undefined): string | undefined [projects/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:278]
835
835
  ↳ Trims an optional string option, treating blank as absent.
@@ -863,8 +863,8 @@ What this project is judged against, as declared in its own `callidescope.config
863
863
 
864
864
  | Callable | Breadth | Calls directly | Location |
865
865
  | --- | --- | --- | --- |
866
- | `InstancesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenInstancePaths`, `ConfigurationService.resolveInventoriedInstances`, `InventoryService.describeInstances` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:84` |
867
- | `TemplatesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenTemplatePairings`, `ConfigurationService.resolveInventoriedTemplates`, `InventoryService.describeTemplates` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:85` |
866
+ | `InstancesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenInstancePaths`, `ConfigurationService.resolveInventoriedInstances`, `InventoryService.describeInstances` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:87` |
867
+ | `TemplatesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenTemplatePairings`, `ConfigurationService.resolveInventoriedTemplates`, `InventoryService.describeTemplates` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:88` |
868
868
  | `ValidateCommand.selectInstances` | 4 | `ValidateCommand.findInstances`, `ValidateCommand.flatMap(…)`, `ValidateCommand.map(…)`, `ValidateCommand.filter(…)` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:231` |
869
869
  | `GenerateCommand.requireDefinition` | 3 | `GenerateCommand.find(…)`, `unknownTemplateError`, `GenerateCommand.map(…)` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:163` |
870
870
  | `ValidateCommand.reportEmptySelection` | 3 | `ValidateCommand.map(…)`, `ValidateCommand.map(…)`, `ValidateCommand.filter(…)` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:152` |
@@ -881,10 +881,10 @@ What this project is judged against, as declared in its own `callidescope.config
881
881
  | `GenerateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:250` |
882
882
  | `GenerateCommand.parseDirectory` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:259` |
883
883
  | `GenerateCommand.parseTemplate` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:273` |
884
- | `InstancesCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:56` |
885
- | `InstancesCommand.parseTemplates` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:74` |
886
- | `TemplatesCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:57` |
887
- | `TemplatesCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:66` |
884
+ | `InstancesCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:59` |
885
+ | `InstancesCommand.parseTemplates` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:77` |
886
+ | `TemplatesCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:60` |
887
+ | `TemplatesCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:69` |
888
888
  | `ValidateCommand.map(…)` | 1 | `ReportingService.formatPercentage` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:76` |
889
889
  | `ValidateCommand.flatMap(…)` | 1 | `ConfigurationService.findInstances` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:105` |
890
890
  | `ValidateCommand.filter(…)` | 1 | `ConfigurationService.readWorkspaceGroups` | `projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:160` |
@@ -1022,13 +1022,15 @@ graph LR
1022
1022
  file_codependix_config_ts["codependix.config.ts"]
1023
1023
  file_codometer_config_ts["codometer.config.ts"]
1024
1024
  file_eslint_config_ts["eslint.config.ts"]
1025
- file_src_constants_ts["src/constants.ts"]
1025
+ file_src_conformetry_cli_constants_ts["src/conformetry-cli.constants.ts"]
1026
+ file_src_conformetry_cli_main_end_to_end_test_ts["src/conformetry-cli.main.end-to-end.test.ts"]
1027
+ file_src_conformetry_cli_main_integration_test_ts["src/conformetry-cli.main.integration.test.ts"]
1028
+ file_src_conformetry_cli_main_ts["src/conformetry-cli.main.ts"]
1029
+ file_src_conformetry_cli_main_unit_test_ts["src/conformetry-cli.main.unit.test.ts"]
1030
+ file_src_conformetry_cli_module_ts["src/conformetry-cli.module.ts"]
1031
+ file_src_conformetry_cli_repl_ts["src/conformetry-cli.repl.ts"]
1032
+ file_src_conformetry_cli_repl_unit_test_ts["src/conformetry-cli.repl.unit.test.ts"]
1026
1033
  file_src_index_ts["src/index.ts"]
1027
- file_src_main_end_to_end_test_ts["src/main.end-to-end.test.ts"]
1028
- file_src_main_integration_test_ts["src/main.integration.test.ts"]
1029
- file_src_main_module_ts["src/main.module.ts"]
1030
- file_src_main_ts["src/main.ts"]
1031
- file_src_main_unit_test_ts["src/main.unit.test.ts"]
1032
1034
  file_src_modules_generate_generate_command_ts["src/modules/generate/generate.command.ts"]
1033
1035
  file_src_modules_generate_generate_command_unit_test_ts["src/modules/generate/generate.command.unit.test.ts"]
1034
1036
  file_src_modules_generate_generate_constants_ts["src/modules/generate/generate.constants.ts"]
@@ -1049,44 +1051,42 @@ graph LR
1049
1051
  file_src_modules_validate_validate_constants_ts["src/modules/validate/validate.constants.ts"]
1050
1052
  file_src_modules_validate_validate_module_ts["src/modules/validate/validate.module.ts"]
1051
1053
  file_src_modules_validate_validate_types_ts["src/modules/validate/validate.types.ts"]
1052
- file_src_repl_ts["src/repl.ts"]
1053
- file_src_repl_unit_test_ts["src/repl.unit.test.ts"]
1054
1054
  file_testing_mocks_ts["testing/mocks.ts"]
1055
1055
  file_testing_setup_ts["testing/setup.ts"]
1056
1056
  file_vite_config_ts["vite.config.ts"]
1057
1057
  file_vitest_config_ts["vitest.config.ts"]
1058
- file_src_main_end_to_end_test_ts --> file_src_constants_ts
1059
- file_src_main_integration_test_ts --> file_src_main_module_ts
1060
- file_src_main_integration_test_ts --> file_src_modules_generate_generate_command_ts
1061
- file_src_main_integration_test_ts --> file_src_modules_instances_instances_command_ts
1062
- file_src_main_integration_test_ts --> file_src_modules_templates_templates_command_ts
1063
- file_src_main_integration_test_ts --> file_src_modules_validate_validate_command_ts
1064
- file_src_main_module_ts --> file_src_constants_ts
1065
- file_src_main_module_ts --> file_src_modules_generate_generate_module_ts
1066
- file_src_main_module_ts --> file_src_modules_instances_instances_module_ts
1067
- file_src_main_module_ts --> file_src_modules_templates_templates_module_ts
1068
- file_src_main_module_ts --> file_src_modules_validate_validate_module_ts
1069
- file_src_main_ts --> file_src_main_module_ts
1070
- file_src_modules_generate_generate_command_ts --> file_src_constants_ts
1058
+ file_src_conformetry_cli_main_end_to_end_test_ts --> file_src_conformetry_cli_constants_ts
1059
+ file_src_conformetry_cli_main_integration_test_ts --> file_src_conformetry_cli_module_ts
1060
+ file_src_conformetry_cli_main_integration_test_ts --> file_src_modules_generate_generate_command_ts
1061
+ file_src_conformetry_cli_main_integration_test_ts --> file_src_modules_instances_instances_command_ts
1062
+ file_src_conformetry_cli_main_integration_test_ts --> file_src_modules_templates_templates_command_ts
1063
+ file_src_conformetry_cli_main_integration_test_ts --> file_src_modules_validate_validate_command_ts
1064
+ file_src_conformetry_cli_main_ts --> file_src_conformetry_cli_module_ts
1065
+ file_src_conformetry_cli_module_ts --> file_src_conformetry_cli_constants_ts
1066
+ file_src_conformetry_cli_module_ts --> file_src_modules_generate_generate_module_ts
1067
+ file_src_conformetry_cli_module_ts --> file_src_modules_instances_instances_module_ts
1068
+ file_src_conformetry_cli_module_ts --> file_src_modules_templates_templates_module_ts
1069
+ file_src_conformetry_cli_module_ts --> file_src_modules_validate_validate_module_ts
1070
+ file_src_conformetry_cli_repl_ts --> file_src_conformetry_cli_module_ts
1071
+ file_src_modules_generate_generate_command_ts --> file_src_conformetry_cli_constants_ts
1071
1072
  file_src_modules_generate_generate_command_ts --> file_src_modules_generate_generate_constants_ts
1072
1073
  file_src_modules_generate_generate_command_ts --> file_src_modules_generate_generate_types_ts
1073
1074
  file_src_modules_generate_generate_command_unit_test_ts --> file_src_modules_generate_generate_command_ts
1074
1075
  file_src_modules_generate_generate_module_ts --> file_src_modules_generate_generate_command_ts
1075
- file_src_modules_instances_instances_command_ts --> file_src_constants_ts
1076
+ file_src_modules_instances_instances_command_ts --> file_src_conformetry_cli_constants_ts
1076
1077
  file_src_modules_instances_instances_command_ts --> file_src_modules_instances_instances_constants_ts
1077
1078
  file_src_modules_instances_instances_command_ts --> file_src_modules_instances_instances_types_ts
1078
1079
  file_src_modules_instances_instances_command_unit_test_ts --> file_src_modules_instances_instances_command_ts
1079
1080
  file_src_modules_instances_instances_module_ts --> file_src_modules_instances_instances_command_ts
1080
- file_src_modules_templates_templates_command_ts --> file_src_constants_ts
1081
+ file_src_modules_templates_templates_command_ts --> file_src_conformetry_cli_constants_ts
1081
1082
  file_src_modules_templates_templates_command_ts --> file_src_modules_templates_templates_constants_ts
1082
1083
  file_src_modules_templates_templates_command_ts --> file_src_modules_templates_templates_types_ts
1083
1084
  file_src_modules_templates_templates_command_unit_test_ts --> file_src_modules_templates_templates_command_ts
1084
1085
  file_src_modules_templates_templates_module_ts --> file_src_modules_templates_templates_command_ts
1085
- file_src_modules_validate_validate_command_ts --> file_src_constants_ts
1086
+ file_src_modules_validate_validate_command_ts --> file_src_conformetry_cli_constants_ts
1086
1087
  file_src_modules_validate_validate_command_ts --> file_src_modules_validate_validate_types_ts
1087
1088
  file_src_modules_validate_validate_command_unit_test_ts --> file_src_modules_validate_validate_command_ts
1088
1089
  file_src_modules_validate_validate_module_ts --> file_src_modules_validate_validate_command_ts
1089
- file_src_repl_ts --> file_src_main_module_ts
1090
1090
  ```
1091
1091
  <!-- codependix:end name="codependix-file-imports" -->
1092
1092
 
@@ -1096,14 +1096,14 @@ graph LR
1096
1096
 
1097
1097
  ### Project
1098
1098
 
1099
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-3277-22c55e?style=flat-square)
1100
- ![Repository Size](https://img.shields.io/badge/Repository_Size-127.45_kB-6b7280?style=flat-square)
1099
+ ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-3286-22c55e?style=flat-square)
1100
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-128.69_kB-6b7280?style=flat-square)
1101
1101
  ![Folders](https://img.shields.io/badge/Folders-7-4a4a4a?style=flat-square)
1102
1102
  ![Source Files](https://img.shields.io/badge/Source_Files-37-3178c6?style=flat-square)
1103
1103
 
1104
1104
  ### Measured Targets
1105
1105
 
1106
- ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-6.49_kB_gzip-6b7280?style=flat-square)
1106
+ ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-6.50_kB_gzip-6b7280?style=flat-square)
1107
1107
 
1108
1108
  ### TypeScript
1109
1109
 
@@ -1243,7 +1243,7 @@ graph LR
1243
1243
  ![Module Files](https://img.shields.io/badge/Module_Files-5-7c3aed?style=flat-square)
1244
1244
  ![Service Files](https://img.shields.io/badge/Service_Files-0-0284c7?style=flat-square)
1245
1245
  ![Command Files](https://img.shields.io/badge/Command_Files-4-16a34a?style=flat-square)
1246
- ![Constants Files](https://img.shields.io/badge/Constants_Files-4-ea580c?style=flat-square)
1246
+ ![Constants Files](https://img.shields.io/badge/Constants_Files-5-ea580c?style=flat-square)
1247
1247
  ![Types Files](https://img.shields.io/badge/Types_Files-4-db2777?style=flat-square)
1248
1248
  ![Utilities Files](https://img.shields.io/badge/Utilities_Files-0-0ea5e9?style=flat-square)
1249
1249
  ![TypeORM Entities](https://img.shields.io/badge/TypeORM_Entities-0-059669?style=flat-square)
@@ -1285,20 +1285,20 @@ graph LR
1285
1285
  ### Markdown
1286
1286
 
1287
1287
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
1288
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-472-1f6feb?style=flat-square)
1288
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-496-1f6feb?style=flat-square)
1289
1289
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
1290
- ![H2](https://img.shields.io/badge/H2-28-8b5cf6?style=flat-square)
1291
- ![H3](https://img.shields.io/badge/H3-40-a78bfa?style=flat-square)
1290
+ ![H2](https://img.shields.io/badge/H2-30-8b5cf6?style=flat-square)
1291
+ ![H3](https://img.shields.io/badge/H3-43-a78bfa?style=flat-square)
1292
1292
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
1293
1293
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
1294
1294
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
1295
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-155-64748b?style=flat-square)
1296
- ![Lists](https://img.shields.io/badge/Lists-32-16a34a?style=flat-square)
1297
- ![List Items](https://img.shields.io/badge/List_Items-134-22c55e?style=flat-square)
1295
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-166-64748b?style=flat-square)
1296
+ ![Lists](https://img.shields.io/badge/Lists-35-16a34a?style=flat-square)
1297
+ ![List Items](https://img.shields.io/badge/List_Items-145-22c55e?style=flat-square)
1298
1298
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
1299
1299
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
1300
1300
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
1301
- ![Links](https://img.shields.io/badge/Links-16-059669?style=flat-square)
1301
+ ![Links](https://img.shields.io/badge/Links-18-059669?style=flat-square)
1302
1302
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
1303
1303
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-13-dc2626?style=flat-square)
1304
1304
  ![Inline Code](https://img.shields.io/badge/Inline_Code-78-ef4444?style=flat-square)
@@ -1,13 +1,13 @@
1
- import { ConsoleLogger as e, Global as t, Injectable as n, Module as r, Scope as i } from "@nestjs/common";
2
- import { ConfigModule as a } from "@nestjs/config";
3
- import { DiscoveryModule as o } from "@nestjs/core";
4
- import { existsSync as s, mkdirSync as c } from "node:fs";
5
- import l from "node:path";
6
- import u from "pino";
7
- import { z as d } from "zod";
8
- import { ALL_TEMPLATES_SELECTION as f, ConfigurationModule as p, ConfigurationService as m, InputError as h, missingDirectoryError as g } from "@conformetry/configuration";
9
- import { GenerationModule as _, GenerationService as v } from "@conformetry/generation";
10
- import { Command as y, CommandRunner as b, Option as x } from "nest-commander";
1
+ import { Command as e, CommandRunner as t, Option as n } from "nest-commander";
2
+ import { ConsoleLogger as r, Global as i, Injectable as a, Module as o, Scope as s } from "@nestjs/common";
3
+ import { existsSync as c, mkdirSync as l } from "node:fs";
4
+ import u from "node:path";
5
+ import d from "pino";
6
+ import { ConfigModule as f } from "@nestjs/config";
7
+ import { DiscoveryModule as p } from "@nestjs/core";
8
+ import { z as m } from "zod";
9
+ import { ALL_TEMPLATES_SELECTION as h, ConfigurationModule as g, ConfigurationService as _, InputError as v, missingDirectoryError as y } from "@conformetry/configuration";
10
+ import { GenerationModule as b, GenerationService as x } from "@conformetry/generation";
11
11
  import { InventoryModule as S, InventoryService as C, ReportingModule as w, ReportingService as T } from "@conformetry/output";
12
12
  import { ValidationModule as E, ValidationService as D } from "@conformetry/validation";
13
13
  //#region \0rolldown/runtime.js
@@ -58,7 +58,7 @@ function __decorate(e, t, n, r) {
58
58
  }
59
59
  //#endregion
60
60
  //#region projects/logging/src/modules/logger/logger.service.ts
61
- var N, P = class LoggerService extends e {
61
+ var N, P = class LoggerService extends r {
62
62
  static {
63
63
  N = this;
64
64
  }
@@ -71,7 +71,7 @@ var N, P = class LoggerService extends e {
71
71
  child = N.root;
72
72
  static createRootLogger() {
73
73
  let e = process.env.LOG_LEVEL ?? "info";
74
- return N.isProduction ? N.writesToStandardError ? u({ level: e }, u.destination(2)) : u({ level: e }) : u({
74
+ return N.isProduction ? N.writesToStandardError ? d({ level: e }, d.destination(2)) : d({ level: e }) : d({
75
75
  level: e,
76
76
  transport: {
77
77
  options: {
@@ -137,8 +137,8 @@ var N, P = class LoggerService extends e {
137
137
  };
138
138
  }
139
139
  createTimestampedOutputLogFilePath(e) {
140
- let t = l.join(process.cwd(), "output");
141
- return s(t) || c(t, { recursive: !0 }), l.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
140
+ let t = u.join(process.cwd(), "output");
141
+ return c(t) || l(t, { recursive: !0 }), u.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
142
142
  }
143
143
  debug(e, t, n) {
144
144
  let r = this.parseMessage(e);
@@ -190,17 +190,17 @@ var N, P = class LoggerService extends e {
190
190
  }), r.text);
191
191
  }
192
192
  };
193
- P = N = __decorate([n({ scope: i.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], P);
193
+ P = N = __decorate([a({ scope: s.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], P);
194
194
  //#endregion
195
195
  //#region projects/logging/src/modules/logger/logger.module.ts
196
196
  var F = class LoggerModule {};
197
- F = __decorate([t(), r({
197
+ F = __decorate([i(), o({
198
198
  controllers: [],
199
199
  exports: [P],
200
200
  imports: [],
201
201
  providers: [P]
202
202
  })], F);
203
- var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.templateName}". Available: ${e.availableTemplateNames.join(", ")}`), removedGeneratorOptionError = () => /* @__PURE__ */ Error("--generator was removed. Pass --template instead: it is the word the configuration, the templates command, and the conformance report already use."), I = d.object({}), missingTemplateError = (e) => new h(`No template was selected. Pass --template. Available: ${e.join(", ")}`), L, R = L = class GenerateCommand extends b {
203
+ var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.templateName}". Available: ${e.availableTemplateNames.join(", ")}`), removedGeneratorOptionError = () => /* @__PURE__ */ Error("--generator was removed. Pass --template instead: it is the word the configuration, the templates command, and the conformance report already use."), I = m.object({}), missingTemplateError = (e) => new v(`No template was selected. Pass --template. Available: ${e.join(", ")}`), L, R = L = class GenerateCommand extends t {
204
204
  configurationService;
205
205
  generationService;
206
206
  logger;
@@ -249,7 +249,7 @@ var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.t
249
249
  return n;
250
250
  }
251
251
  requireDirectory(e, t) {
252
- if (e.directory === void 0) throw this.logger.error("🚫 Rejected a run with no directory", void 0, { template: t }), g({ generatorName: t });
252
+ if (e.directory === void 0) throw this.logger.error("🚫 Rejected a run with no directory", void 0, { template: t }), y({ generatorName: t });
253
253
  return e.directory;
254
254
  }
255
255
  async resolveTemplateName(e) {
@@ -273,13 +273,13 @@ var unknownTemplateError = (e) => /* @__PURE__ */ Error(`Unknown template "${e.t
273
273
  try {
274
274
  await this.generate(e, t);
275
275
  } catch (e) {
276
- if (!(e instanceof h)) throw e;
276
+ if (!(e instanceof v)) throw e;
277
277
  this.rejectCommandLine(e);
278
278
  }
279
279
  }
280
280
  };
281
281
  __decorate([
282
- x({
282
+ n({
283
283
  description: "Path to the conformetry configuration file",
284
284
  flags: "--config [path]"
285
285
  }),
@@ -287,7 +287,7 @@ __decorate([
287
287
  __decorateMetadata("design:paramtypes", [Object]),
288
288
  __decorateMetadata("design:returntype", Object)
289
289
  ], R.prototype, "parseConfig", null), __decorate([
290
- x({
290
+ n({
291
291
  description: "Directory to write generated files into",
292
292
  flags: "--directory [path]"
293
293
  }),
@@ -295,7 +295,7 @@ __decorate([
295
295
  __decorateMetadata("design:paramtypes", [Object]),
296
296
  __decorateMetadata("design:returntype", Object)
297
297
  ], R.prototype, "parseDirectory", null), __decorate([
298
- x({
298
+ n({
299
299
  description: "Name of the template to render",
300
300
  flags: "--template [name]"
301
301
  }),
@@ -303,34 +303,34 @@ __decorate([
303
303
  __decorateMetadata("design:paramtypes", [Object]),
304
304
  __decorateMetadata("design:returntype", Object)
305
305
  ], R.prototype, "parseTemplate", null), R = L = __decorate([
306
- y({
306
+ e({
307
307
  allowUnknownOptions: !0,
308
308
  description: "Render a template into a new instance",
309
309
  name: "generate"
310
310
  }),
311
- n(),
311
+ a(),
312
312
  __decorateMetadata("design:paramtypes", [
313
- m === void 0 ? Object : m,
314
- v === void 0 ? Object : v,
313
+ _ === void 0 ? Object : _,
314
+ x === void 0 ? Object : x,
315
315
  P === void 0 ? Object : P
316
316
  ])
317
317
  ], R);
318
318
  //#endregion
319
319
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.module.ts
320
320
  var z = class GenerateModule {};
321
- z = __decorate([r({
321
+ z = __decorate([o({
322
322
  controllers: [],
323
323
  exports: [R],
324
324
  imports: [
325
- p,
326
- _,
325
+ g,
326
+ b,
327
327
  F
328
328
  ],
329
329
  providers: [R]
330
330
  })], z);
331
331
  //#endregion
332
332
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.constants.ts
333
- var B = "No instances were found. Check the instance globs in the configuration.", V = "No instance is explained by those templates.", H, U = H = class InstancesCommand extends b {
333
+ var B = "No instances were found. Check the instance globs in the configuration.", V = "No instance is explained by those templates.", H, U = H = class InstancesCommand extends t {
334
334
  configurationService;
335
335
  inventoryService;
336
336
  logger;
@@ -360,7 +360,7 @@ var B = "No instances were found. Check the instance globs in the configuration.
360
360
  }
361
361
  };
362
362
  __decorate([
363
- x({
363
+ n({
364
364
  description: "Path to the conformetry configuration file",
365
365
  flags: "--config [path]"
366
366
  }),
@@ -368,7 +368,7 @@ __decorate([
368
368
  __decorateMetadata("design:paramtypes", [Object]),
369
369
  __decorateMetadata("design:returntype", Object)
370
370
  ], U.prototype, "parseConfig", null), __decorate([
371
- x({
371
+ n({
372
372
  description: "Write the listing as JSON",
373
373
  flags: "--json"
374
374
  }),
@@ -376,7 +376,7 @@ __decorate([
376
376
  __decorateMetadata("design:paramtypes", []),
377
377
  __decorateMetadata("design:returntype", Boolean)
378
378
  ], U.prototype, "parseJson", null), __decorate([
379
- x({
379
+ n({
380
380
  description: "Comma-separated template names; report only the instances they explain",
381
381
  flags: "--templates [names]"
382
382
  }),
@@ -384,13 +384,13 @@ __decorate([
384
384
  __decorateMetadata("design:paramtypes", [Object]),
385
385
  __decorateMetadata("design:returntype", Object)
386
386
  ], U.prototype, "parseTemplates", null), U = H = __decorate([
387
- y({
387
+ e({
388
388
  description: "List the generated code the configuration finds, and what explains it",
389
389
  name: "instances"
390
390
  }),
391
- n(),
391
+ a(),
392
392
  __decorateMetadata("design:paramtypes", [
393
- m === void 0 ? Object : m,
393
+ _ === void 0 ? Object : _,
394
394
  C === void 0 ? Object : C,
395
395
  P === void 0 ? Object : P
396
396
  ])
@@ -398,11 +398,11 @@ __decorate([
398
398
  //#endregion
399
399
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.module.ts
400
400
  var W = class InstancesModule {};
401
- W = __decorate([r({
401
+ W = __decorate([o({
402
402
  controllers: [],
403
403
  exports: [U],
404
404
  imports: [
405
- p,
405
+ g,
406
406
  S,
407
407
  F
408
408
  ],
@@ -410,7 +410,7 @@ W = __decorate([r({
410
410
  })], W);
411
411
  //#endregion
412
412
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.constants.ts
413
- var G = "No templates are declared in the configuration.", K = "No template explains those paths. Either they are not generated code, or they have drifted past recognition.", q, J = q = class TemplatesCommand extends b {
413
+ var G = "No templates are declared in the configuration.", K = "No template explains those paths. Either they are not generated code, or they have drifted past recognition.", q, J = q = class TemplatesCommand extends t {
414
414
  configurationService;
415
415
  inventoryService;
416
416
  logger;
@@ -443,7 +443,7 @@ var G = "No templates are declared in the configuration.", K = "No template expl
443
443
  }
444
444
  };
445
445
  __decorate([
446
- x({
446
+ n({
447
447
  description: "Path to the conformetry configuration file",
448
448
  flags: "--config [path]"
449
449
  }),
@@ -451,7 +451,7 @@ __decorate([
451
451
  __decorateMetadata("design:paramtypes", [Object]),
452
452
  __decorateMetadata("design:returntype", Object)
453
453
  ], J.prototype, "parseConfig", null), __decorate([
454
- x({
454
+ n({
455
455
  description: "Comma-separated paths or globs; report only the templates that explain them",
456
456
  flags: "--instances [globs]"
457
457
  }),
@@ -459,7 +459,7 @@ __decorate([
459
459
  __decorateMetadata("design:paramtypes", [Object]),
460
460
  __decorateMetadata("design:returntype", Object)
461
461
  ], J.prototype, "parseInstances", null), __decorate([
462
- x({
462
+ n({
463
463
  description: "Write the listing as JSON",
464
464
  flags: "--json"
465
465
  }),
@@ -467,13 +467,13 @@ __decorate([
467
467
  __decorateMetadata("design:paramtypes", []),
468
468
  __decorateMetadata("design:returntype", Boolean)
469
469
  ], J.prototype, "parseJson", null), J = q = __decorate([
470
- y({
470
+ e({
471
471
  description: "Name the templates the configuration declares, or which ones explain a path",
472
472
  name: "templates"
473
473
  }),
474
- n(),
474
+ a(),
475
475
  __decorateMetadata("design:paramtypes", [
476
- m === void 0 ? Object : m,
476
+ _ === void 0 ? Object : _,
477
477
  C === void 0 ? Object : C,
478
478
  P === void 0 ? Object : P
479
479
  ])
@@ -481,11 +481,11 @@ __decorate([
481
481
  //#endregion
482
482
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.module.ts
483
483
  var Y = class TemplatesModule {};
484
- Y = __decorate([r({
484
+ Y = __decorate([o({
485
485
  controllers: [],
486
486
  exports: [J],
487
487
  imports: [
488
- p,
488
+ g,
489
489
  S,
490
490
  F
491
491
  ],
@@ -493,7 +493,7 @@ Y = __decorate([r({
493
493
  })], Y);
494
494
  //#endregion
495
495
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts
496
- var X, Z = X = class ValidateCommand extends b {
496
+ var X, Z = X = class ValidateCommand extends t {
497
497
  configurationService;
498
498
  reportingService;
499
499
  validationService;
@@ -559,7 +559,7 @@ var X, Z = X = class ValidateCommand extends b {
559
559
  }
560
560
  async selectTemplates(e) {
561
561
  let t = e.templateNames ?? await this.promptForTemplateNames(e.configuration);
562
- if (!(t === void 0 || t.includes(f))) return t.map((t) => {
562
+ if (!(t === void 0 || t.includes(h))) return t.map((t) => {
563
563
  let n = e.configuration.find((e) => e.name === t);
564
564
  if (n === void 0) throw this.logger.error("🚫 Rejected an unknown template", void 0, { template: t }), unknownTemplateError({
565
565
  availableTemplateNames: e.configuration.map((e) => e.name),
@@ -614,7 +614,7 @@ var X, Z = X = class ValidateCommand extends b {
614
614
  }
615
615
  };
616
616
  __decorate([
617
- x({
617
+ n({
618
618
  description: "Path to the conformetry configuration file",
619
619
  flags: "--config [path]"
620
620
  }),
@@ -622,7 +622,7 @@ __decorate([
622
622
  __decorateMetadata("design:paramtypes", [Object]),
623
623
  __decorateMetadata("design:returntype", Object)
624
624
  ], Z.prototype, "parseConfig", null), __decorate([
625
- x({
625
+ n({
626
626
  description: "Comma-separated glob patterns to validate, overriding the configuration",
627
627
  flags: "--instances [globs]"
628
628
  }),
@@ -630,7 +630,7 @@ __decorate([
630
630
  __decorateMetadata("design:paramtypes", [Object]),
631
631
  __decorateMetadata("design:returntype", Object)
632
632
  ], Z.prototype, "parseInstances", null), __decorate([
633
- x({
633
+ n({
634
634
  description: "Comma-separated language names to run",
635
635
  flags: "--languages [languages]"
636
636
  }),
@@ -638,15 +638,15 @@ __decorate([
638
638
  __decorateMetadata("design:paramtypes", [Object]),
639
639
  __decorateMetadata("design:returntype", Object)
640
640
  ], Z.prototype, "parseLanguages", null), __decorate([
641
- x({
642
- description: `Comma-separated template names to validate, or "${f}" for every one`,
641
+ n({
642
+ description: `Comma-separated template names to validate, or "${h}" for every one`,
643
643
  flags: "--templates [names]"
644
644
  }),
645
645
  __decorateMetadata("design:type", Function),
646
646
  __decorateMetadata("design:paramtypes", [Object]),
647
647
  __decorateMetadata("design:returntype", Object)
648
648
  ], Z.prototype, "parseTemplates", null), __decorate([
649
- x({
649
+ n({
650
650
  description: "Lowest conformance score an instance may have, from 0 to 1. Overridden by a generator's own threshold and by an instance group's",
651
651
  flags: "--threshold [ratio]"
652
652
  }),
@@ -654,13 +654,13 @@ __decorate([
654
654
  __decorateMetadata("design:paramtypes", [Object]),
655
655
  __decorateMetadata("design:returntype", Object)
656
656
  ], Z.prototype, "parseThreshold", null), Z = X = __decorate([
657
- y({
657
+ e({
658
658
  description: "Measure instances against their templates and report every difference",
659
659
  name: "validate"
660
660
  }),
661
- n(),
661
+ a(),
662
662
  __decorateMetadata("design:paramtypes", [
663
- m === void 0 ? Object : m,
663
+ _ === void 0 ? Object : _,
664
664
  T === void 0 ? Object : T,
665
665
  D === void 0 ? Object : D,
666
666
  P === void 0 ? Object : P
@@ -669,11 +669,11 @@ __decorate([
669
669
  //#endregion
670
670
  //#region projects/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.module.ts
671
671
  var Q = class ValidateModule {};
672
- Q = __decorate([r({
672
+ Q = __decorate([o({
673
673
  controllers: [],
674
674
  exports: [Z],
675
675
  imports: [
676
- p,
676
+ g,
677
677
  F,
678
678
  w,
679
679
  E
@@ -681,15 +681,15 @@ Q = __decorate([r({
681
681
  providers: [Z]
682
682
  })], Q);
683
683
  //#endregion
684
- //#region projects/ic-suite/conformetry/conformetry-cli/src/main.module.ts
684
+ //#region projects/ic-suite/conformetry/conformetry-cli/src/conformetry-cli.module.ts
685
685
  var $ = class MainModule {};
686
- $ = __decorate([r({ imports: [
687
- a.forRoot({
686
+ $ = __decorate([o({ imports: [
687
+ f.forRoot({
688
688
  envFilePath: ".env",
689
689
  isGlobal: !0,
690
690
  validate: (e) => I.parse(e)
691
691
  }),
692
- o,
692
+ p,
693
693
  F,
694
694
  z,
695
695
  W,
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { t as e, u as t } from "../main.module-C4SS0U3n.js";
3
- import { CommandFactory as n } from "nest-commander";
2
+ import { t as e, u as t } from "../conformetry-cli.module-Bfl1EJ8c.js";
4
3
  import "reflect-metadata";
5
- //#region projects/ic-suite/conformetry/conformetry-cli/src/main.ts
4
+ import { CommandFactory as n } from "nest-commander";
5
+ //#region projects/ic-suite/conformetry/conformetry-cli/src/conformetry-cli.main.ts
6
6
  async function main() {
7
7
  let r = new t();
8
8
  r.setContext("CommandFactory"), await n.run(e, {
package/dist/src/index.js CHANGED
@@ -1 +1 @@
1
- export { l as GenerateCommand, c as GenerateModule, s as InstancesCommand, o as InstancesModule, t as MainModule, a as TemplatesCommand, i as TemplatesModule, r as ValidateCommand, n as ValidateModule } from "../main.module-C4SS0U3n.js";
1
+ export { l as GenerateCommand, c as GenerateModule, s as InstancesCommand, o as InstancesModule, t as MainModule, a as TemplatesCommand, i as TemplatesModule, r as ValidateCommand, n as ValidateModule } from "../conformetry-cli.module-Bfl1EJ8c.js";
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "author": "Jimmy Paolini",
3
3
  "bin": {
4
- "conformetry": "./dist/src/main.js"
4
+ "conformetry": "./dist/src/conformetry-cli.main.js"
5
5
  },
6
6
  "bugs": {
7
7
  "url": "https://github.com/organizzolini/codebase/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@conformetry/configuration": "0.0.25",
11
- "@conformetry/generation": "0.0.25",
12
- "@conformetry/output": "0.0.24",
13
- "@conformetry/validation": "0.0.24",
10
+ "@conformetry/configuration": "0.0.27",
11
+ "@conformetry/generation": "0.0.27",
12
+ "@conformetry/output": "0.0.26",
13
+ "@conformetry/validation": "0.0.26",
14
14
  "@nestjs/common": "^11.1.21 || ^12.0.1",
15
15
  "@nestjs/config": "^12.0.0",
16
16
  "@nestjs/core": "^11.1.21 || ^12.0.1",
@@ -23,7 +23,7 @@
23
23
  "description": "Command-line toolchain for scaffolding code from templates and holding implementations to them",
24
24
  "devDependencies": {
25
25
  "@codebase/logging": "0.0.1",
26
- "@conformetry/core": "0.0.24",
26
+ "@conformetry/core": "0.0.26",
27
27
  "@golevelup/ts-vitest": "^4.0.0",
28
28
  "@nestjs/testing": "^12.0.1",
29
29
  "@nx/eslint-plugin": "^23.0.0",
@@ -75,5 +75,5 @@
75
75
  "strict": true
76
76
  },
77
77
  "types": "./dist/src/index.d.ts",
78
- "version": "0.0.25"
78
+ "version": "0.0.27"
79
79
  }