refactor(background-task): unify background_result and background_status into background_output tool

- Merge background_status into background_output with block parameter
- Replace background_result references with background_output throughout codebase
- Update tool descriptions to reflect new unified API
- Remove background-tasks.json (memory-based only)
- Simplify notification messages and tool usage instructions
This commit is contained in:
YeonGyu-Kim
2025-12-12 10:54:24 +09:00
parent 550322cb0c
commit 01f935f074
8 changed files with 121 additions and 165 deletions

View File

@@ -24,8 +24,7 @@ import { skill } from "./skill"
import {
createBackgroundTask,
createBackgroundStatus,
createBackgroundResult,
createBackgroundOutput,
createBackgroundCancel,
} from "./background-task"
@@ -39,8 +38,7 @@ 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_output: createBackgroundOutput(manager, client),
background_cancel: createBackgroundCancel(manager, client),
}
}