configuration/schemas/agent.schema.ts
configuration/schemas/agent.schema.ts is a file in GovLab Docs. 15 lines of code and 1 definition.
import type { FrontmatterSchema } from "#types/metadata.types";
export const AGENT_FRONTMATTER_SCHEMA: FrontmatterSchema = {
fields: {
background: { kind: "boolean" },
color: { enum: ["red", "blue", "green", "yellow", "purple", "orange", "pink", "cyan"] },
effort: { enum: ["low", "medium", "high", "xhigh", "max"] },
isolation: { enum: ["worktree"] },
maxTurns: { kind: "integer" },
memory: { enum: ["user", "project", "local"] },
model: { enum: ["inherit", "sonnet", "opus", "haiku", "fable"] },
name: { kind: "kebab" },
permissionMode: { enum: ["default", "manual", "acceptEdits", "auto", "dontAsk", "bypassPermissions", "plan"] },
},
required: [],
};