fix(config): allow disabling new built-in skills

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-04 15:37:43 +09:00
parent fd476fe9a1
commit 8199adcb15
2 changed files with 25 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { describe, expect, test } from "bun:test"
import { OhMyOpenCodeConfigSchema } from "./oh-my-opencode-config"
describe("OhMyOpenCodeConfigSchema disabled_skills", () => {
test("accepts review-work and ai-slop-remover", () => {
// given
const config = {
disabled_skills: ["review-work", "ai-slop-remover"],
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
if (result.success) {
expect(result.data.disabled_skills).toEqual([
"review-work",
"ai-slop-remover",
])
}
})
})
+2
View File
@@ -20,6 +20,8 @@ export const BuiltinSkillNameSchema = z.enum([
"dev-browser",
"frontend-ui-ux",
"git-master",
"review-work",
"ai-slop-remover",
])
export const OverridableAgentNameSchema = z.enum([