fix(hooks): remove dead delegate-task-english-directive hook
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/// <reference types="bun-types" />
|
||||
|
||||
import { describe, expect, test } from "bun:test"
|
||||
import {
|
||||
AgentOverrideConfigSchema,
|
||||
@@ -405,6 +407,17 @@ describe("HookNameSchema", () => {
|
||||
//#then
|
||||
expect(result.success).toBe(false)
|
||||
})
|
||||
|
||||
test("rejects removed delegate-task-english-directive hook name", () => {
|
||||
//#given
|
||||
const input = "delegate-task-english-directive"
|
||||
|
||||
//#when
|
||||
const result = HookNameSchema.safeParse(input)
|
||||
|
||||
//#then
|
||||
expect(result.success).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
describe("Sisyphus-Junior agent override", () => {
|
||||
|
||||
@@ -51,7 +51,6 @@ export const HookNameSchema = z.enum([
|
||||
"anthropic-effort",
|
||||
"hashline-read-enhancer",
|
||||
"read-image-resizer",
|
||||
"delegate-task-english-directive",
|
||||
])
|
||||
|
||||
export type HookName = z.infer<typeof HookNameSchema>
|
||||
|
||||
Reference in New Issue
Block a user