Merge pull request #651 from github/naming-normalisation

Cleaning up the name of a lot of agents
This commit is contained in:
Aaron Powell
2026-02-03 14:31:21 +11:00
committed by GitHub
55 changed files with 100 additions and 58 deletions

View File

@@ -44,7 +44,6 @@ function ensureDataDir() {
* Extract title from filename or frontmatter
*/
function extractTitle(filePath, frontmatter) {
if (frontmatter?.title) return frontmatter.title;
if (frontmatter?.name) {
return frontmatter.name
.split("-")

View File

@@ -128,12 +128,7 @@ function extractTitle(filePath) {
const frontmatter = parseFrontmatter(filePath);
if (frontmatter) {
// Check for title field
if (frontmatter.title && typeof frontmatter.title === "string") {
return frontmatter.title;
}
// Check for name field and convert to title case
// Check for name field
if (frontmatter.name && typeof frontmatter.name === "string") {
return frontmatter.name
.split("-")