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:
@@ -13,7 +13,6 @@ import {
|
|||||||
builtinTools,
|
builtinTools,
|
||||||
createBackgroundTools,
|
createBackgroundTools,
|
||||||
createCallOmoAgent,
|
createCallOmoAgent,
|
||||||
createAthenaCouncilTool,
|
|
||||||
createSwitchAgentTool,
|
createSwitchAgentTool,
|
||||||
createLookAt,
|
createLookAt,
|
||||||
createSkillMcpTool,
|
createSkillMcpTool,
|
||||||
@@ -173,11 +172,6 @@ export function createToolRegistry(args: {
|
|||||||
pluginConfig.agents,
|
pluginConfig.agents,
|
||||||
pluginConfig.categories,
|
pluginConfig.categories,
|
||||||
)
|
)
|
||||||
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",
|
||||||
@@ -274,7 +268,6 @@ export function createToolRegistry(args: {
|
|||||||
...factories.createSessionManagerTools(ctx),
|
...factories.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,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -58,7 +58,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"
|
||||||
|
|||||||
Reference in New Issue
Block a user