Merge pull request #2649 from plind-dm/fix/import-ceo-role-default

fix(import): read agent role from frontmatter before defaulting to "a…
This commit is contained in:
Dotta 2026-04-06 08:56:38 -05:00 committed by GitHub
commit 73e7007e7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 45 additions and 1 deletions

View file

@ -2393,7 +2393,7 @@ function buildManifestFromPackageFiles(
name: asString(frontmatter.name) ?? title ?? slug,
path: agentPath,
skills: readAgentSkillRefs(frontmatter),
role: asString(extension.role) ?? "agent",
role: asString(extension.role) ?? asString(frontmatter.role) ?? "agent",
title,
icon: asString(extension.icon),
capabilities: asString(extension.capabilities),