fix(review): name each lens section, as crafter-review 1.0 requires

crafter-review 1.0.1, the released build installed on this machine, and
the newer build installed beside it as //local refuse the config key
lensSections: a lens's repository section is named per lens, as
lenses.<name>.section, instead of being found by listing a directory.
With the key in place `crafter-review config` reports it as a problem,
and freeze and run stop at "preflight: config: unknown key lensSections".

The three files in .review-gates/lenses/ are named under lenses, one
entry each, the migration the Crafter.Review session gave; with them
`crafter-review config` reports no problem.
This commit is contained in:
Jorijn van der Graaf 2026-11-02 14:10:27 +01:00
commit a1bc96a323
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB

View file

@ -6,7 +6,17 @@
], ],
"aiTrailers": "forbid", "aiTrailers": "forbid",
"requireSigned": true, "requireSigned": true,
"lensSections": ".review-gates/lenses", "lenses": {
"repo-better-solution": {
"section": ".review-gates/lenses/repo-better-solution.md"
},
"repo-bug-prover": {
"section": ".review-gates/lenses/repo-bug-prover.md"
},
"repo-facts": {
"section": ".review-gates/lenses/repo-facts.md"
}
},
"modes": { "modes": {
"commits": { "commits": {
"kind": "commits", "kind": "commits",