refactor(hooks): rename sisyphus-gpt-hephaestus-reminder to no-sisyphus-gpt
Shorter hook name, disableable via disabled_hooks config, migration added for backward compatibility. Also forces agent switch to Hephaestus on Sisyphus + GPT detection. Docs updated with new hook name.
This commit is contained in:
@@ -81,7 +81,7 @@ export function createChatMessageHandler(args: {
|
||||
await hooks.keywordDetector?.["chat.message"]?.(input, output)
|
||||
await hooks.claudeCodeHooks?.["chat.message"]?.(input, output)
|
||||
await hooks.autoSlashCommand?.["chat.message"]?.(input, output)
|
||||
await hooks.sisyphusGptHephaestusReminder?.["chat.message"]?.(input)
|
||||
await hooks.noSisyphusGpt?.["chat.message"]?.(input, output)
|
||||
if (hooks.startWork && isStartWorkHookOutput(output)) {
|
||||
await hooks.startWork["chat.message"]?.(input, output)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
createStartWorkHook,
|
||||
createPrometheusMdOnlyHook,
|
||||
createSisyphusJuniorNotepadHook,
|
||||
createSisyphusGptHephaestusReminderHook,
|
||||
createNoSisyphusGptHook,
|
||||
createQuestionLabelTruncatorHook,
|
||||
createPreemptiveCompactionHook,
|
||||
} from "../../hooks"
|
||||
@@ -51,7 +51,7 @@ export type SessionHooks = {
|
||||
startWork: ReturnType<typeof createStartWorkHook> | null
|
||||
prometheusMdOnly: ReturnType<typeof createPrometheusMdOnlyHook> | null
|
||||
sisyphusJuniorNotepad: ReturnType<typeof createSisyphusJuniorNotepadHook> | null
|
||||
sisyphusGptHephaestusReminder: ReturnType<typeof createSisyphusGptHephaestusReminderHook> | null
|
||||
noSisyphusGpt: ReturnType<typeof createNoSisyphusGptHook> | null
|
||||
questionLabelTruncator: ReturnType<typeof createQuestionLabelTruncatorHook>
|
||||
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook>
|
||||
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null
|
||||
@@ -158,8 +158,8 @@ export function createSessionHooks(args: {
|
||||
? safeHook("sisyphus-junior-notepad", () => createSisyphusJuniorNotepadHook(ctx))
|
||||
: null
|
||||
|
||||
const sisyphusGptHephaestusReminder = isHookEnabled("sisyphus-gpt-hephaestus-reminder")
|
||||
? safeHook("sisyphus-gpt-hephaestus-reminder", () => createSisyphusGptHephaestusReminderHook(ctx))
|
||||
const noSisyphusGpt = isHookEnabled("no-sisyphus-gpt")
|
||||
? safeHook("no-sisyphus-gpt", () => createNoSisyphusGptHook(ctx))
|
||||
: null
|
||||
|
||||
const questionLabelTruncator = createQuestionLabelTruncatorHook()
|
||||
@@ -187,7 +187,7 @@ export function createSessionHooks(args: {
|
||||
startWork,
|
||||
prometheusMdOnly,
|
||||
sisyphusJuniorNotepad,
|
||||
sisyphusGptHephaestusReminder,
|
||||
noSisyphusGpt,
|
||||
questionLabelTruncator,
|
||||
taskResumeInfo,
|
||||
anthropicEffort,
|
||||
|
||||
Reference in New Issue
Block a user