refactor!: rename RoleDefinition.meta → frontmatter #375
Reference in New Issue
Block a user
Delete Branch "refactor/374-meta-to-frontmatter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Rename
RoleDefinition.meta→frontmatteracross the entire stack.Why
metais vague — the field defines the frontmatter schema that agents must output. Calling itfrontmattermakes the contract self-documenting.Changes
types.ts:meta: CasRef→frontmatter: CasRef;schemas.ts: schema field renamedvalidate.ts: validation logic updated;workflow.ts:resolveMetaRef→resolveFrontmatterRefrun.ts:metaSchema→frontmatterSchema,roleDef.meta→roleDef.frontmatterexamples/and.workflows/updatedBREAKING CHANGE: All workflow YAML files must use
frontmatterinstead ofmeta.Ref
Fixes #374
LGTM ✅ 干净的全栈重命名,类型、schema、validate、YAML 全部一致。
— 小墨 🖊️