@conformetry/cli 0.0.5 β 0.0.7
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 +24 -0
- package/README.md +68 -66
- package/dist/{main.module-DOTvHgmI.js β main.module-rxiDQ87q.js} +1 -0
- package/dist/src/index.js +1 -1
- package/dist/src/main.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 0.0.7 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### π§± Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated conformetry-configuration to 0.0.7
|
|
6
|
+
- Updated conformetry-generation to 0.0.7
|
|
7
|
+
- Updated conformetry-validation to 0.0.7
|
|
8
|
+
- Updated conformetry-output to 0.0.7
|
|
9
|
+
- Updated conformetry-core to 0.0.7
|
|
10
|
+
|
|
11
|
+
## 0.0.6 (2026-10-08)
|
|
12
|
+
|
|
13
|
+
### π Features
|
|
14
|
+
|
|
15
|
+
- **conformetry,lexico:** β¨ add frontend conformetry templates and infer validation inputs ([#1301](https://github.com/organizzolini/codebase/pull/1301))
|
|
16
|
+
|
|
17
|
+
### π§± Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated conformetry-configuration to 0.0.6
|
|
20
|
+
- Updated conformetry-generation to 0.0.6
|
|
21
|
+
- Updated conformetry-validation to 0.0.6
|
|
22
|
+
- Updated conformetry-output to 0.0.6
|
|
23
|
+
- Updated conformetry-core to 0.0.6
|
|
24
|
+
|
|
1
25
|
## 0.0.5 (2026-10-06)
|
|
2
26
|
|
|
3
27
|
### π
Refactors
|
package/README.md
CHANGED
|
@@ -383,11 +383,13 @@ An explicit input of the same name always wins over the derived variant. Full
|
|
|
383
383
|
mustache is available β sections, inverted sections, partials β with HTML
|
|
384
384
|
escaping disabled so substituted values cannot corrupt source code.
|
|
385
385
|
|
|
386
|
-
> **Supply every placeholder a template uses.** An
|
|
387
|
-
> nobody supplied fails
|
|
388
|
-
> placeholder and the template file.
|
|
389
|
-
>
|
|
390
|
-
>
|
|
386
|
+
> **Supply every placeholder a template uses when generating.** An
|
|
387
|
+
> interpolated placeholder nobody supplied fails `generate` with
|
|
388
|
+
> `MissingSubstitutionError`, naming the placeholder and the template file.
|
|
389
|
+
> Mustache would otherwise render it as an empty string. `validate` instead
|
|
390
|
+
> reads the value from the instance β the text where the template first uses
|
|
391
|
+
> the placeholder β and reports `Could not infer {{β¦}}` when nothing there
|
|
392
|
+
> reveals it.
|
|
391
393
|
>
|
|
392
394
|
> Sections are the exception, and are how a template asks for something
|
|
393
395
|
> optional: `{{#owner}}Owner: {{owner}}{{/owner}}` renders nothing when `owner`
|
|
@@ -593,28 +595,28 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
593
595
|
β³ Writes every instance found, filtered to the given templates.
|
|
594
596
|
ββ> ConfigurationService.resolveInventoriedInstances(β¦): InventoriedInstance[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:345]
|
|
595
597
|
β³ Lists every instance found, paired with the templates that explain it.
|
|
596
|
-
ββ> InstanceDiscoveryService.resolveInventoriedInstances(args: ResolveInventoryArguments): InventoriedInstance[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
598
|
+
ββ> InstanceDiscoveryService.resolveInventoriedInstances(args: ResolveInventoryArguments): InventoriedInstance[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:219]
|
|
597
599
|
β³ Lists every instance found, paired with the templates that explain it. `templateNames` narrows the pairing rather thanβ¦
|
|
598
|
-
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
600
|
+
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:283]
|
|
599
601
|
β³ Weighs every instance the globs find against every declared template.
|
|
600
|
-
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
601
|
-
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
602
|
+
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:295]
|
|
603
|
+
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:84]
|
|
602
604
|
β³ Weighs one instance against every template, best fit first.
|
|
603
|
-
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
605
|
+
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:180]
|
|
604
606
|
β³ Weighs every template that shares at least one file with the instance, best-first.
|
|
605
|
-
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
606
|
-
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
607
|
+
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; placeholderValues: Substitutions; substitutions: Substitutions; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:186]
|
|
608
|
+
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:146]
|
|
607
609
|
β³ Counts how many of a template's files the instance path already has.
|
|
608
|
-
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
609
|
-
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
610
|
+
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:155]
|
|
611
|
+
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:204]
|
|
610
612
|
β³ Maps a template file path to the instance file path it governs.
|
|
611
613
|
ββ> RenderingService.renderPath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:142]
|
|
612
614
|
β³ Renders a template path with mustache, the same way contents are rendered.
|
|
613
615
|
ββ> RenderingService.assertEverySubstitutionSupplied(β¦): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:35]
|
|
614
616
|
β³ Refuses to render a template asking for a value nobody supplied.
|
|
615
|
-
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
617
|
+
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:80]
|
|
616
618
|
β³ Every placeholder a template interpolates, deduplicated.
|
|
617
|
-
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
619
|
+
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:82]
|
|
618
620
|
```
|
|
619
621
|
|
|
620
622
|
**2. `TemplatesCommand.run`** β depth β₯ 15 Β· decorated-method
|
|
@@ -624,58 +626,58 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
624
626
|
β³ Writes every declared template, filtered to the given instances.
|
|
625
627
|
ββ> ConfigurationService.resolveInventoriedTemplates(β¦): InventoriedTemplate[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:352]
|
|
626
628
|
β³ Lists every template declared, paired with the instances it explains.
|
|
627
|
-
ββ> InstanceDiscoveryService.resolveInventoriedTemplates(args: ResolveInventoryArguments): InventoriedTemplate[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
629
|
+
ββ> InstanceDiscoveryService.resolveInventoriedTemplates(args: ResolveInventoryArguments): InventoriedTemplate[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:244]
|
|
628
630
|
β³ Lists every template declared, paired with the instances it explains. `instancePatterns` narrows which instances areβ¦
|
|
629
|
-
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
631
|
+
ββ> InstanceDiscoveryService.takeInventory(β¦): { templates: TemplateDefinition[]; weighed: { instance: Instance; pairings: InventoriedPairing[]; }[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:283]
|
|
630
632
|
β³ Weighs every instance the globs find against every declared template.
|
|
631
|
-
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
632
|
-
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
633
|
+
ββ> InstanceDiscoveryService.map(β¦)(instance: Instance): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:295]
|
|
634
|
+
ββ> InstanceDiscoveryService.weighInstance(β¦): { instance: Instance; pairings: InventoriedPairing[]; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:84]
|
|
633
635
|
β³ Weighs one instance against every template, best fit first.
|
|
634
|
-
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
636
|
+
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:180]
|
|
635
637
|
β³ Weighs every template that shares at least one file with the instance, best-first.
|
|
636
|
-
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
637
|
-
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
638
|
+
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; placeholderValues: Substitutions; substitutions: Substitutions; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:186]
|
|
639
|
+
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:146]
|
|
638
640
|
β³ Counts how many of a template's files the instance path already has.
|
|
639
|
-
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
640
|
-
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
641
|
+
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:155]
|
|
642
|
+
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:204]
|
|
641
643
|
β³ Maps a template file path to the instance file path it governs.
|
|
642
644
|
ββ> RenderingService.renderPath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:142]
|
|
643
645
|
β³ Renders a template path with mustache, the same way contents are rendered.
|
|
644
646
|
ββ> RenderingService.assertEverySubstitutionSupplied(β¦): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:35]
|
|
645
647
|
β³ Refuses to render a template asking for a value nobody supplied.
|
|
646
|
-
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
648
|
+
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:80]
|
|
647
649
|
β³ Every placeholder a template interpolates, deduplicated.
|
|
648
|
-
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
650
|
+
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:82]
|
|
649
651
|
```
|
|
650
652
|
|
|
651
653
|
**3. `ValidateCommand.run`** β depth β₯ 14 Β· decorated-method
|
|
652
654
|
|
|
653
655
|
```text
|
|
654
|
-
π ValidateCommand.run(_passedParameters: string[], options: ValidateCommandOptions): Promise<void> [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
656
|
+
π ValidateCommand.run(_passedParameters: string[], options: ValidateCommandOptions): Promise<void> [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:365]
|
|
655
657
|
β³ Runs validation and reports every difference found.
|
|
656
|
-
ββ> ValidationService.validate(args: RunValidationArguments): RunValidationResult [packages/ic-suite/conformetry/conformetry-validation/src/modules/validation/validation.service.ts:
|
|
658
|
+
ββ> ValidationService.validate(args: RunValidationArguments): RunValidationResult [packages/ic-suite/conformetry/conformetry-validation/src/modules/validation/validation.service.ts:194]
|
|
657
659
|
β³ Validates every instance and returns the differences found.
|
|
658
660
|
ββ> ConfigurationService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:263]
|
|
659
661
|
β³ Resolves every instance to the template, or templates, that explain it.
|
|
660
|
-
ββ> InstanceDiscoveryService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:
|
|
662
|
+
ββ> InstanceDiscoveryService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery.service.ts:123]
|
|
661
663
|
β³ Resolves every instance to the template, or templates, that explain it.
|
|
662
|
-
ββ> InstanceDiscoveryMatchingService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
664
|
+
ββ> InstanceDiscoveryMatchingService.matchInstances(β¦): ResolvedInstances [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:118]
|
|
663
665
|
β³ Resolves every instance to the template β or templates β that explain it.
|
|
664
|
-
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
666
|
+
ββ> InstanceDiscoveryMatchingService.matchTemplates(β¦): TemplateMatch[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:180]
|
|
665
667
|
β³ Weighs every template that shares at least one file with the instance, best-first.
|
|
666
|
-
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:
|
|
667
|
-
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
668
|
+
ββ> InstanceDiscoveryMatchingService.map(β¦)(β¦): { matchedFileCount: number; matchRatio: number; template: TemplateDefinition; placeholderValues: Substitutions; substitutions: Substitutions; } [packages/ic-suite/conformetry/conformetry-configuration/src/modules/instance-discovery/instance-discovery-matching.service.ts:186]
|
|
669
|
+
ββ> TemplateDiscoveryService.countMatchingFiles(β¦): number [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:146]
|
|
668
670
|
β³ Counts how many of a template's files the instance path already has.
|
|
669
|
-
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
670
|
-
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:
|
|
671
|
+
ββ> TemplateDiscoveryService.filter(β¦)(templateFilePath: string): boolean [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:155]
|
|
672
|
+
ββ> TemplateDiscoveryService.resolveInstanceFilePath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/template-discovery/template-discovery.service.ts:204]
|
|
671
673
|
β³ Maps a template file path to the instance file path it governs.
|
|
672
674
|
ββ> RenderingService.renderPath(β¦): string [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:142]
|
|
673
675
|
β³ Renders a template path with mustache, the same way contents are rendered.
|
|
674
676
|
ββ> RenderingService.assertEverySubstitutionSupplied(β¦): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:35]
|
|
675
677
|
β³ Refuses to render a template asking for a value nobody supplied.
|
|
676
|
-
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
678
|
+
ββ> RenderingService.collectInterpolatedNames(template: string): string[] [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:80]
|
|
677
679
|
β³ Every placeholder a template interpolates, deduplicated.
|
|
678
|
-
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:
|
|
680
|
+
ββ> RenderingService.walk(spans: TemplateSpans): void [packages/ic-suite/conformetry/conformetry-configuration/src/modules/rendering/rendering.service.ts:82]
|
|
679
681
|
```
|
|
680
682
|
|
|
681
683
|
<details>
|
|
@@ -734,7 +736,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
734
736
|
**7. `ValidateCommand.parseInstances`** β depth 4 Β· decorated-method
|
|
735
737
|
|
|
736
738
|
```text
|
|
737
|
-
π ValidateCommand.parseInstances(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
739
|
+
π ValidateCommand.parseInstances(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:322]
|
|
738
740
|
β³ Parses the optional instance glob override.
|
|
739
741
|
ββ> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
|
|
740
742
|
β³ Splits a comma-delimited filter option into its values.
|
|
@@ -746,7 +748,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
746
748
|
**8. `ValidateCommand.parseLanguages`** β depth 4 Β· decorated-method
|
|
747
749
|
|
|
748
750
|
```text
|
|
749
|
-
π ValidateCommand.parseLanguages(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
751
|
+
π ValidateCommand.parseLanguages(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:332]
|
|
750
752
|
β³ Parses the optional language filter.
|
|
751
753
|
ββ> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
|
|
752
754
|
β³ Splits a comma-delimited filter option into its values.
|
|
@@ -758,7 +760,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
758
760
|
**9. `ValidateCommand.parseTemplates`** β depth 4 Β· decorated-method
|
|
759
761
|
|
|
760
762
|
```text
|
|
761
|
-
π ValidateCommand.parseTemplates(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
763
|
+
π ValidateCommand.parseTemplates(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:346]
|
|
762
764
|
β³ Parses the optional template filter.
|
|
763
765
|
ββ> ConfigurationService.parseCommaDelimitedOption(value: string | undefined): string[] | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:271]
|
|
764
766
|
β³ Splits a comma-delimited filter option into its values.
|
|
@@ -770,7 +772,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
770
772
|
**10. `ValidateCommand.parseThreshold`** β depth 4 Β· decorated-method
|
|
771
773
|
|
|
772
774
|
```text
|
|
773
|
-
π ValidateCommand.parseThreshold(value: string | undefined): number | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
775
|
+
π ValidateCommand.parseThreshold(value: string | undefined): number | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:355]
|
|
774
776
|
β³ Parses the optional run-level conformance threshold.
|
|
775
777
|
ββ> ConfigurationService.parseThresholdOption(value: string | undefined): number | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:283]
|
|
776
778
|
β³ Parses a threshold option as a ratio from 0 to 1.
|
|
@@ -838,7 +840,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
838
840
|
**16. `ValidateCommand.parseConfig`** β depth 3 Β· decorated-method
|
|
839
841
|
|
|
840
842
|
```text
|
|
841
|
-
π ValidateCommand.parseConfig(value: string | undefined): string | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
843
|
+
π ValidateCommand.parseConfig(value: string | undefined): string | undefined [packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:313]
|
|
842
844
|
β³ Parses the optional configuration path.
|
|
843
845
|
ββ> ConfigurationService.parseOptionalOption(value: string | undefined): string | undefined [packages/ic-suite/conformetry/conformetry-configuration/src/modules/configuration/configuration.service.ts:278]
|
|
844
846
|
β³ Trims an optional string option, treating blank as absent.
|
|
@@ -853,7 +855,7 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
853
855
|
| Callable | Breadth | Calls directly | Location |
|
|
854
856
|
| --- | --- | --- | --- |
|
|
855
857
|
| `GenerateCommand.generate` | 9 | `GenerateCommand.rejectRemovedGeneratorOption`, `ConfigurationService.loadConformetryConfiguration`, `GenerateCommand.resolveTemplateName`, `GenerateCommand.find(β¦)`, `unknownTemplateError`, `GenerateCommand.map(β¦)`, `ConfigurationService.resolveGeneratorInputs`, `GenerationService.runGenerator`, `GenerateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:64` |
|
|
856
|
-
| `ValidateCommand.run` | 7 | `ConfigurationService.loadConformetryConfiguration`, `ValidateCommand.selectTemplates`, `ValidateCommand.selectInstances`, `ValidateCommand.reportEmptySelection`, `ValidationService.validate`, `ConfigurationService.collectTemplates`, `ValidateCommand.reportResult` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
858
|
+
| `ValidateCommand.run` | 7 | `ConfigurationService.loadConformetryConfiguration`, `ValidateCommand.selectTemplates`, `ValidateCommand.selectInstances`, `ValidateCommand.reportEmptySelection`, `ValidationService.validate`, `ConfigurationService.collectTemplates`, `ValidateCommand.reportResult` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:365` |
|
|
857
859
|
| `GenerateCommand.resolveTemplateName` | 4 | `GenerateCommand.map(β¦)`, `ConfigurationService.isAtTerminal`, `missingTemplateError`, `ConfigurationService.promptForTemplate` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:183` |
|
|
858
860
|
|
|
859
861
|
<details>
|
|
@@ -863,16 +865,16 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
863
865
|
| --- | --- | --- | --- |
|
|
864
866
|
| `InstancesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenInstancePaths`, `ConfigurationService.resolveInventoriedInstances`, `InventoryService.describeInstances` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/instances/instances.command.ts:84` |
|
|
865
867
|
| `TemplatesCommand.run` | 4 | `ConfigurationService.loadConformetryConfiguration`, `InventoryService.shortenTemplatePairings`, `ConfigurationService.resolveInventoriedTemplates`, `InventoryService.describeTemplates` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:85` |
|
|
866
|
-
| `ValidateCommand.selectInstances` | 4 | `ValidateCommand.findInstances`, `ValidateCommand.flatMap(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
867
|
-
| `ValidateCommand.reportEmptySelection` | 3 | `ValidateCommand.map(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
868
|
-
| `ValidateCommand.reportResult` | 3 | `ReportingService.formatReport`, `ValidateCommand.filter(β¦)`, `ValidateCommand.describeFailure` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
869
|
-
| `ValidateCommand.map(β¦)` | 3 | `ValidateCommand.find(β¦)`, `unknownTemplateError`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
868
|
+
| `ValidateCommand.selectInstances` | 4 | `ValidateCommand.findInstances`, `ValidateCommand.flatMap(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:231` |
|
|
869
|
+
| `ValidateCommand.reportEmptySelection` | 3 | `ValidateCommand.map(β¦)`, `ValidateCommand.map(β¦)`, `ValidateCommand.filter(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:152` |
|
|
870
|
+
| `ValidateCommand.reportResult` | 3 | `ReportingService.formatReport`, `ValidateCommand.filter(β¦)`, `ValidateCommand.describeFailure` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:193` |
|
|
871
|
+
| `ValidateCommand.map(β¦)` | 3 | `ValidateCommand.find(β¦)`, `unknownTemplateError`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:289` |
|
|
870
872
|
| `GenerateCommand.rejectRemovedGeneratorOption` | 2 | `GenerateCommand.some(β¦)`, `removedGeneratorOptionError` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:161` |
|
|
871
873
|
| `GenerateCommand.run` | 2 | `GenerateCommand.generate`, `GenerateCommand.rejectCommandLine` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:254` |
|
|
872
874
|
| `ValidateCommand.describeFailure` | 2 | `ValidateCommand.filter(β¦)`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:73` |
|
|
873
875
|
| `ValidateCommand.findInstances` | 2 | `ValidateCommand.flatMap(β¦)`, `ConfigurationService.readWorkspaceGroups` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:97` |
|
|
874
|
-
| `ValidateCommand.promptForTemplateNames` | 2 | `ConfigurationService.isAtTerminal`, `ConfigurationService.promptForTemplates` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
875
|
-
| `ValidateCommand.selectTemplates` | 2 | `ValidateCommand.promptForTemplateNames`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
876
|
+
| `ValidateCommand.promptForTemplateNames` | 2 | `ConfigurationService.isAtTerminal`, `ConfigurationService.promptForTemplates` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:134` |
|
|
877
|
+
| `ValidateCommand.selectTemplates` | 2 | `ValidateCommand.promptForTemplateNames`, `ValidateCommand.map(β¦)` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:274` |
|
|
876
878
|
| `missingTemplateError` | 1 | `InputError.constructor` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.constants.ts:15` |
|
|
877
879
|
| `GenerateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:216` |
|
|
878
880
|
| `GenerateCommand.parseDirectory` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/generate/generate.command.ts:225` |
|
|
@@ -883,12 +885,12 @@ What this project is judged against, as declared in its own `callidescope.config
|
|
|
883
885
|
| `TemplatesCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/templates/templates.command.ts:66` |
|
|
884
886
|
| `ValidateCommand.map(β¦)` | 1 | `ReportingService.formatPercentage` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:76` |
|
|
885
887
|
| `ValidateCommand.flatMap(β¦)` | 1 | `ConfigurationService.findInstances` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:105` |
|
|
886
|
-
| `ValidateCommand.filter(β¦)` | 1 | `ConfigurationService.readWorkspaceGroups` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
887
|
-
| `ValidateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
888
|
-
| `ValidateCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
889
|
-
| `ValidateCommand.parseLanguages` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
890
|
-
| `ValidateCommand.parseTemplates` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
891
|
-
| `ValidateCommand.parseThreshold` | 1 | `ConfigurationService.parseThresholdOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:
|
|
888
|
+
| `ValidateCommand.filter(β¦)` | 1 | `ConfigurationService.readWorkspaceGroups` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:160` |
|
|
889
|
+
| `ValidateCommand.parseConfig` | 1 | `ConfigurationService.parseOptionalOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:313` |
|
|
890
|
+
| `ValidateCommand.parseInstances` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:322` |
|
|
891
|
+
| `ValidateCommand.parseLanguages` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:332` |
|
|
892
|
+
| `ValidateCommand.parseTemplates` | 1 | `ConfigurationService.parseCommaDelimitedOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:346` |
|
|
893
|
+
| `ValidateCommand.parseThreshold` | 1 | `ConfigurationService.parseThresholdOption` | `packages/ic-suite/conformetry/conformetry-cli/src/modules/validate/validate.command.ts:355` |
|
|
892
894
|
|
|
893
895
|
</details>
|
|
894
896
|
<!-- callidescope:end -->
|
|
@@ -1092,14 +1094,14 @@ graph LR
|
|
|
1092
1094
|
|
|
1093
1095
|
### Project
|
|
1094
1096
|
|
|
1095
|
-

|
|
1098
|
+

|
|
1097
1099
|

|
|
1098
1100
|

|
|
1099
1101
|
|
|
1100
1102
|
### Measured Targets
|
|
1101
1103
|
|
|
1102
|
-

|
|
1103
1105
|
|
|
1104
1106
|
### TypeScript
|
|
1105
1107
|
|
|
@@ -1281,20 +1283,20 @@ graph LR
|
|
|
1281
1283
|
### Markdown
|
|
1282
1284
|
|
|
1283
1285
|

|
|
1284
|
-

|
|
1285
1287
|

|
|
1286
|
-

|
|
1289
|
+

|
|
1288
1290
|

|
|
1289
1291
|

|
|
1290
1292
|

|
|
1291
|
-

|
|
1294
|
+

|
|
1295
|
+

|
|
1294
1296
|

|
|
1295
1297
|

|
|
1296
1298
|

|
|
1297
|
-

|
|
1298
1300
|

|
|
1299
1301
|

|
|
1300
1302
|

|
|
@@ -516,6 +516,7 @@ var X, Z = X = class extends v {
|
|
|
516
516
|
}
|
|
517
517
|
findInstances(e) {
|
|
518
518
|
return this.configurationService.readWorkspaceGroups(e.groups).flatMap((t) => this.configurationService.findInstances({
|
|
519
|
+
...t.exclude === void 0 ? {} : { exclude: t.exclude },
|
|
519
520
|
patterns: t.patterns ?? [],
|
|
520
521
|
...t.substitutions === void 0 ? {} : { substitutions: t.substitutions },
|
|
521
522
|
...t.threshold === void 0 ? {} : { threshold: t.threshold },
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../main.module-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../main.module-rxiDQ87q.js";
|
|
2
2
|
export { r as GenerateCommand, t as GenerateModule, s as InstancesCommand, a as InstancesModule, c as MainModule, e as TemplatesCommand, n as TemplatesModule, o as ValidateCommand, i as ValidateModule };
|
package/dist/src/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as e, u as t } from "../main.module-
|
|
2
|
+
import { t as e, u as t } from "../main.module-rxiDQ87q.js";
|
|
3
3
|
import { CommandFactory as n } from "nest-commander";
|
|
4
4
|
import "reflect-metadata";
|
|
5
5
|
//#region packages/ic-suite/conformetry/conformetry-cli/src/main.ts
|
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@conformetry/configuration": "0.0.
|
|
11
|
-
"@conformetry/generation": "0.0.
|
|
12
|
-
"@conformetry/output": "0.0.
|
|
13
|
-
"@conformetry/validation": "0.0.
|
|
10
|
+
"@conformetry/configuration": "0.0.7",
|
|
11
|
+
"@conformetry/generation": "0.0.7",
|
|
12
|
+
"@conformetry/output": "0.0.7",
|
|
13
|
+
"@conformetry/validation": "0.0.7",
|
|
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.
|
|
26
|
+
"@conformetry/core": "0.0.7",
|
|
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.
|
|
78
|
+
"version": "0.0.7"
|
|
79
79
|
}
|