Settings schema: index.roots[].indexes lists its allowed names

AF
6h ago
+72-2

The desktop Settings page reads AFT's settings schema. index.roots[].indexes was a free-text string list; its items now declare the three names config resolution accepts (search, semantic, callgraph), so Settings can offer a fixed choice.

Schema only: parsing still keeps raw strings, so an unknown name stays the existing invalid_index_roots warning. The enum is built from IndexKind::ALL, and a test checks the editor and served schemas match the resolver's list. No per-value titles yet.


Summary by cubic

Declares the allowed names for index.roots[].indexes in the settings schema so the Settings page offers search, semantic, and callgraph as a fixed choice instead of free text.

This is a schema-only change: parsing keeps raw strings, so an unknown name keeps the existing resolution-time invalid_index_roots warning. The enum is built from IndexKind::ALL, and a test checks the editor and served schemas match the resolver's list. No per-value titles yet.

  • Search benchmarks: the index-roots schema change is declared non-ranking.

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge; no actionable issues were found.

Summary

Adds fixed choices for index.roots[].indexes to the editor and Settings schemas.

  • Settings offers three allowed names for each index root.

No actionable issues found. Tests were not run.

Reviews (3) · Last reviewed commit: "search: declare the index-roots schema c..." · Reviewed by Greptile