feat(background-agent): integrate into main plugin

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-11 16:21:33 +09:00
parent ce6a09b891
commit 49fb046363
4 changed files with 41 additions and 3 deletions

View File

@@ -22,8 +22,29 @@ import { glob } from "./glob"
import { slashcommand } from "./slashcommand"
import { skill } from "./skill"
import {
createBackgroundTask,
createBackgroundStatus,
createBackgroundResult,
createBackgroundCancel,
} from "./background-task"
import type { PluginInput } from "@opencode-ai/plugin"
import type { BackgroundManager } from "../features/background-agent"
type OpencodeClient = PluginInput["client"]
export { createOmoTask } from "./omo-task"
export function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient) {
return {
background_task: createBackgroundTask(manager),
background_status: createBackgroundStatus(manager),
background_result: createBackgroundResult(manager, client),
background_cancel: createBackgroundCancel(manager, client),
}
}
export const builtinTools = {
lsp_hover,
lsp_goto_definition,