feat(athena): add intent parameter to prepare_council_prompt + wire hook into plugin system + update exports

This commit is contained in:
ismeth
2026-02-27 16:46:28 +01:00
committed by YeonGyu-Kim
parent 386645ea6b
commit 6b450b42db
6 changed files with 30 additions and 3 deletions
+6
View File
@@ -19,6 +19,7 @@ import {
createTaskResumeInfoHook,
createStartWorkHook,
createPrometheusMdOnlyHook,
createAthenaSisyphusOnlyHook,
createSisyphusJuniorNotepadHook,
createNoSisyphusGptHook,
createNoHephaestusNonGptHook,
@@ -55,6 +56,7 @@ export type SessionHooks = {
delegateTaskRetry: ReturnType<typeof createDelegateTaskRetryHook> | null
startWork: ReturnType<typeof createStartWorkHook> | null
prometheusMdOnly: ReturnType<typeof createPrometheusMdOnlyHook> | null
athenaSisyphusOnly: ReturnType<typeof createAthenaSisyphusOnlyHook> | null
sisyphusJuniorNotepad: ReturnType<typeof createSisyphusJuniorNotepadHook> | null
noSisyphusGpt: ReturnType<typeof createNoSisyphusGptHook> | null
noHephaestusNonGpt: ReturnType<typeof createNoHephaestusNonGptHook> | null
@@ -227,6 +229,9 @@ export function createSessionHooks(args: {
? safeHook("prometheus-md-only", () => createPrometheusMdOnlyHook(ctx))
: null
const athenaSisyphusOnly = isHookEnabled("athena-sisyphus-only")
? safeHook("athena-sisyphus-only", () => createAthenaSisyphusOnlyHook(ctx))
: null
const sisyphusJuniorNotepad = isHookEnabled("sisyphus-junior-notepad")
? safeHook("sisyphus-junior-notepad", () => createSisyphusJuniorNotepadHook(ctx))
: null
@@ -287,6 +292,7 @@ export function createSessionHooks(args: {
delegateTaskRetry,
startWork,
prometheusMdOnly,
athenaSisyphusOnly,
sisyphusJuniorNotepad,
noSisyphusGpt,
noHephaestusNonGpt,
+1
View File
@@ -104,6 +104,7 @@ export function createToolExecuteBeforeHandler(args: {
await hooks.tasksTodowriteDisabler?.["tool.execute.before"]?.(input, output)
await hooks.webfetchRedirectGuard?.["tool.execute.before"]?.(input, output)
await hooks.prometheusMdOnly?.["tool.execute.before"]?.(input, output)
await hooks.athenaSisyphusOnly?.["tool.execute.before"]?.(input, output)
await hooks.sisyphusJuniorNotepad?.["tool.execute.before"]?.(input, output)
await hooks.atlasHook?.["tool.execute.before"]?.(input, output)