refactor(extensions): describe and rename built-ins by output

md2codex / md2gemini named the *input* (markdown) and read poorly. Rename
the bundled extensions after what they produce: codex-agents and
gemini-commands. Turn the BuiltinExtensions catalog into structs carrying
a human-readable description so the dashboard can explain each one before
install, and propagate the new names across tests and docs.
This commit is contained in:
Willie
2026-05-30 19:23:12 +08:00
parent ce023b180f
commit fcbfd39be2
9 changed files with 89 additions and 58 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ func TestValidateExtensionMode(t *testing.T) {
func TestResolveExtension_BareNameInDir(t *testing.T) {
dir := t.TempDir()
extDir := filepath.Join(dir, "md2gemini")
extDir := filepath.Join(dir, "gemini-commands")
if err := os.MkdirAll(extDir, 0755); err != nil {
t.Fatal(err)
}
@@ -37,7 +37,7 @@ func TestResolveExtension_BareNameInDir(t *testing.T) {
[]byte("run: [\"cat\"]\noutput_ext: toml\n"), 0644); err != nil {
t.Fatal(err)
}
spec, err := resolveExtension("md2gemini", dir)
spec, err := resolveExtension("gemini-commands", dir)
if err != nil {
t.Fatalf("resolveExtension: %v", err)
}