feat(plugin): integrate omo_task tool and prevent recursion in subagents

Register omo_task tool in main plugin and disable it for explore/librarian agents to prevent infinite recursion.

- Export createOmoTask from src/tools/index.ts
- Initialize omo_task in main plugin with ctx
- Spread omo_task into builtinTools export
- Add recursion prevention: disable omo_task tool for explore agent config
- Add recursion prevention: disable omo_task tool for librarian agent config

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-11 15:02:41 +09:00
parent f6dd6e3c7f
commit 9ba0015530
2 changed files with 22 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ import { glob } from "./glob"
import { slashcommand } from "./slashcommand"
import { skill } from "./skill"
export { createOmoTask } from "./omo-task"
export const builtinTools = {
lsp_hover,
lsp_goto_definition,