feat(06-01): register athena council tool in runtime registry
- export createAthenaCouncilTool from tools index - wire athena_council with agents.athena.council config in tool registry
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
|||||||
builtinTools,
|
builtinTools,
|
||||||
createBackgroundTools,
|
createBackgroundTools,
|
||||||
createCallOmoAgent,
|
createCallOmoAgent,
|
||||||
|
createAthenaCouncilTool,
|
||||||
createLookAt,
|
createLookAt,
|
||||||
createSkillMcpTool,
|
createSkillMcpTool,
|
||||||
createSkillTool,
|
createSkillTool,
|
||||||
@@ -171,6 +172,11 @@ 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",
|
||||||
@@ -267,6 +273,7 @@ export function createToolRegistry(args: {
|
|||||||
...factories.createSessionManagerTools(ctx),
|
...factories.createSessionManagerTools(ctx),
|
||||||
...backgroundTools,
|
...backgroundTools,
|
||||||
call_omo_agent: callOmoAgent,
|
call_omo_agent: callOmoAgent,
|
||||||
|
athena_council: athenaCouncilTool,
|
||||||
...(lookAt ? { look_at: lookAt } : {}),
|
...(lookAt ? { look_at: lookAt } : {}),
|
||||||
task: delegateTask,
|
task: delegateTask,
|
||||||
skill_mcp: skillMcpTool,
|
skill_mcp: skillMcpTool,
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ 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 {
|
export {
|
||||||
|
|||||||
Reference in New Issue
Block a user