feat(hooks): add no-hephaestus-non-gpt hook to enforce GPT-only for Hephaestus

This commit is contained in:
YeonGyu-Kim
2026-02-20 10:49:04 +09:00
parent ac1eb30fda
commit 3dba1c49d4
7 changed files with 180 additions and 0 deletions
+1
View File
@@ -83,6 +83,7 @@ export function createChatMessageHandler(args: {
await hooks.claudeCodeHooks?.["chat.message"]?.(input, output)
await hooks.autoSlashCommand?.["chat.message"]?.(input, output)
await hooks.noSisyphusGpt?.["chat.message"]?.(input, output)
await hooks.noHephaestusNonGpt?.["chat.message"]?.(input, output)
if (hooks.startWork && isStartWorkHookOutput(output)) {
await hooks.startWork["chat.message"]?.(input, output)
}
+7
View File
@@ -21,6 +21,7 @@ import {
createPrometheusMdOnlyHook,
createSisyphusJuniorNotepadHook,
createNoSisyphusGptHook,
createNoHephaestusNonGptHook,
createQuestionLabelTruncatorHook,
createPreemptiveCompactionHook,
} from "../../hooks"
@@ -52,6 +53,7 @@ export type SessionHooks = {
prometheusMdOnly: ReturnType<typeof createPrometheusMdOnlyHook> | null
sisyphusJuniorNotepad: ReturnType<typeof createSisyphusJuniorNotepadHook> | null
noSisyphusGpt: ReturnType<typeof createNoSisyphusGptHook> | null
noHephaestusNonGpt: ReturnType<typeof createNoHephaestusNonGptHook> | null
questionLabelTruncator: ReturnType<typeof createQuestionLabelTruncatorHook>
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook>
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null
@@ -162,6 +164,10 @@ export function createSessionHooks(args: {
? safeHook("no-sisyphus-gpt", () => createNoSisyphusGptHook(ctx))
: null
const noHephaestusNonGpt = isHookEnabled("no-hephaestus-non-gpt")
? safeHook("no-hephaestus-non-gpt", () => createNoHephaestusNonGptHook(ctx))
: null
const questionLabelTruncator = createQuestionLabelTruncatorHook()
const taskResumeInfo = createTaskResumeInfoHook()
@@ -188,6 +194,7 @@ export function createSessionHooks(args: {
prometheusMdOnly,
sisyphusJuniorNotepad,
noSisyphusGpt,
noHephaestusNonGpt,
questionLabelTruncator,
taskResumeInfo,
anthropicEffort,