refactor(athena): remove athena_council from plugin wiring
Drop the barrel export, tool-registry registration, and agent-tool-restriction entry for the deleted athena_council tool. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
1349948957
commit
9887d0a93d
@ -10,7 +10,6 @@ import {
|
|||||||
builtinTools,
|
builtinTools,
|
||||||
createBackgroundTools,
|
createBackgroundTools,
|
||||||
createCallOmoAgent,
|
createCallOmoAgent,
|
||||||
createAthenaCouncilTool,
|
|
||||||
createSwitchAgentTool,
|
createSwitchAgentTool,
|
||||||
createLookAt,
|
createLookAt,
|
||||||
createSkillMcpTool,
|
createSkillMcpTool,
|
||||||
@ -51,11 +50,6 @@ export function createToolRegistry(args: {
|
|||||||
|
|
||||||
const backgroundTools = createBackgroundTools(managers.backgroundManager, ctx.client)
|
const backgroundTools = createBackgroundTools(managers.backgroundManager, ctx.client)
|
||||||
const callOmoAgent = createCallOmoAgent(ctx, managers.backgroundManager, pluginConfig.disabled_agents ?? [])
|
const callOmoAgent = createCallOmoAgent(ctx, managers.backgroundManager, pluginConfig.disabled_agents ?? [])
|
||||||
const athenaCouncilConfig = pluginConfig.agents?.athena?.council
|
|
||||||
const athenaCouncilTool = createAthenaCouncilTool({
|
|
||||||
backgroundManager: managers.backgroundManager,
|
|
||||||
councilConfig: athenaCouncilConfig,
|
|
||||||
})
|
|
||||||
|
|
||||||
const isMultimodalLookerEnabled = !(pluginConfig.disabled_agents ?? []).some(
|
const isMultimodalLookerEnabled = !(pluginConfig.disabled_agents ?? []).some(
|
||||||
(agent) => agent.toLowerCase() === "multimodal-looker",
|
(agent) => agent.toLowerCase() === "multimodal-looker",
|
||||||
@ -133,7 +127,6 @@ export function createToolRegistry(args: {
|
|||||||
...createSessionManagerTools(ctx),
|
...createSessionManagerTools(ctx),
|
||||||
...backgroundTools,
|
...backgroundTools,
|
||||||
call_omo_agent: callOmoAgent,
|
call_omo_agent: callOmoAgent,
|
||||||
athena_council: athenaCouncilTool,
|
|
||||||
switch_agent: createSwitchAgentTool({
|
switch_agent: createSwitchAgentTool({
|
||||||
client: ctx.client,
|
client: ctx.client,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -56,7 +56,6 @@ const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {
|
|||||||
edit: false,
|
edit: false,
|
||||||
task: false,
|
task: false,
|
||||||
call_omo_agent: false,
|
call_omo_agent: false,
|
||||||
athena_council: false,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,6 @@ import type { BackgroundManager } from "../features/background-agent"
|
|||||||
type OpencodeClient = PluginInput["client"]
|
type OpencodeClient = PluginInput["client"]
|
||||||
|
|
||||||
export { createCallOmoAgent } from "./call-omo-agent"
|
export { createCallOmoAgent } from "./call-omo-agent"
|
||||||
export { createAthenaCouncilTool } from "./athena-council"
|
|
||||||
export { createLookAt } from "./look-at"
|
export { createLookAt } from "./look-at"
|
||||||
export { createDelegateTask } from "./delegate-task"
|
export { createDelegateTask } from "./delegate-task"
|
||||||
export { createSwitchAgentTool } from "./switch-agent"
|
export { createSwitchAgentTool } from "./switch-agent"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user