2025-12-04 21:54:02 +09:00
|
|
|
import {
|
|
|
|
|
lsp_hover,
|
|
|
|
|
lsp_goto_definition,
|
|
|
|
|
lsp_find_references,
|
|
|
|
|
lsp_document_symbols,
|
|
|
|
|
lsp_workspace_symbols,
|
|
|
|
|
lsp_diagnostics,
|
|
|
|
|
lsp_servers,
|
2025-12-04 22:40:40 +09:00
|
|
|
lsp_prepare_rename,
|
|
|
|
|
lsp_rename,
|
|
|
|
|
lsp_code_actions,
|
|
|
|
|
lsp_code_action_resolve,
|
2025-12-04 21:54:02 +09:00
|
|
|
} from "./lsp"
|
|
|
|
|
|
2025-12-04 22:40:40 +09:00
|
|
|
import {
|
|
|
|
|
ast_grep_search,
|
|
|
|
|
ast_grep_replace,
|
|
|
|
|
} from "./ast-grep"
|
|
|
|
|
|
2025-12-08 13:35:02 +09:00
|
|
|
import { grep } from "./grep"
|
2025-12-08 14:04:37 +09:00
|
|
|
import { glob } from "./glob"
|
2025-12-09 15:48:43 +09:00
|
|
|
import { slashcommand } from "./slashcommand"
|
|
|
|
|
import { skill } from "./skill"
|
2025-12-04 22:54:13 +09:00
|
|
|
|
2025-12-11 16:21:33 +09:00
|
|
|
import {
|
|
|
|
|
createBackgroundTask,
|
2025-12-12 10:54:24 +09:00
|
|
|
createBackgroundOutput,
|
2025-12-11 16:21:33 +09:00
|
|
|
createBackgroundCancel,
|
|
|
|
|
} from "./background-task"
|
|
|
|
|
|
|
|
|
|
import type { PluginInput } from "@opencode-ai/plugin"
|
|
|
|
|
import type { BackgroundManager } from "../features/background-agent"
|
|
|
|
|
|
|
|
|
|
type OpencodeClient = PluginInput["client"]
|
|
|
|
|
|
2025-12-12 18:39:53 +09:00
|
|
|
export { createCallOmoAgent } from "./call-omo-agent"
|
2025-12-11 15:02:41 +09:00
|
|
|
|
2025-12-11 16:21:33 +09:00
|
|
|
export function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient) {
|
|
|
|
|
return {
|
|
|
|
|
background_task: createBackgroundTask(manager),
|
2025-12-12 10:54:24 +09:00
|
|
|
background_output: createBackgroundOutput(manager, client),
|
2025-12-11 16:21:33 +09:00
|
|
|
background_cancel: createBackgroundCancel(manager, client),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-04 21:54:02 +09:00
|
|
|
export const builtinTools = {
|
|
|
|
|
lsp_hover,
|
|
|
|
|
lsp_goto_definition,
|
|
|
|
|
lsp_find_references,
|
|
|
|
|
lsp_document_symbols,
|
|
|
|
|
lsp_workspace_symbols,
|
|
|
|
|
lsp_diagnostics,
|
|
|
|
|
lsp_servers,
|
2025-12-04 22:40:40 +09:00
|
|
|
lsp_prepare_rename,
|
|
|
|
|
lsp_rename,
|
|
|
|
|
lsp_code_actions,
|
|
|
|
|
lsp_code_action_resolve,
|
|
|
|
|
ast_grep_search,
|
|
|
|
|
ast_grep_replace,
|
2025-12-08 13:35:02 +09:00
|
|
|
grep,
|
2025-12-08 14:04:37 +09:00
|
|
|
glob,
|
2025-12-09 15:48:43 +09:00
|
|
|
slashcommand,
|
|
|
|
|
skill,
|
2025-12-04 21:54:02 +09:00
|
|
|
}
|