feat(athena): add intent parameter to prepare_council_prompt + wire hook into plugin system + update exports
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user