forked from farhoodlabs/paperclip
fix(import): read agent role from frontmatter before defaulting to "agent"
Package imports defaulted every agent's role to "agent" when the extension block omitted the role field, even when the YAML frontmatter contained the correct role (e.g. "ceo"). Read from frontmatter as a fallback before the "agent" default so imported CEOs retain their role. Closes #1990
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user