fix: ensure frontmatter can process same content as other agents (#8719)
This commit is contained in:
parent
3f3550a16e
commit
dc1c25cff5
1 changed files with 256 additions and 68 deletions
|
|
@ -48,7 +48,7 @@ export namespace Skill {
|
|||
const addSkill = async (match: string) => {
|
||||
const md = await ConfigMarkdown.parse(match).catch((err) => {
|
||||
const message = ConfigMarkdown.FrontmatterError.isInstance(err)
|
||||
? `${err.data.path}: ${err.data.message}`
|
||||
? err.data.message
|
||||
: `Failed to parse skill ${match}`
|
||||
Bus.publish(Session.Event.Error, { error: new NamedError.Unknown({ message }).toObject() })
|
||||
log.error("failed to load skill", { skill: match, err })
|
||||
|
|
|
|||
Loading…
Reference in a new issue