refactor(tools): remove native LSP tool registry wiring

This commit is contained in:
YeonGyu-Kim
2026-05-18 12:11:34 +09:00
parent c2c078fec3
commit ca51f613ca
2 changed files with 0 additions and 25 deletions
-4
View File
@@ -25,7 +25,6 @@ import * as openclawRuntimeDispatch from "../openclaw/runtime-dispatch"
import type { PluginContext, ToolsRecord } from "./types"
import {
builtinTools,
createBackgroundTools,
createCallOmoAgent,
createLookAt,
@@ -53,7 +52,6 @@ import type { SkillContext } from "./skill-context"
import { normalizeToolArgSchemas } from "./normalize-tool-arg-schemas"
type ToolRegistryFactories = {
builtinTools: typeof builtinTools
createBackgroundTools: typeof createBackgroundTools
createCallOmoAgent: typeof createCallOmoAgent
createLookAt: typeof createLookAt
@@ -86,7 +84,6 @@ type ToolRegistryFactories = {
}
const defaultToolRegistryFactories: ToolRegistryFactories = {
builtinTools,
createBackgroundTools,
createCallOmoAgent,
createLookAt,
@@ -339,7 +336,6 @@ export function createToolRegistry(args: {
: {}
const allTools: Record<string, ToolDefinition> = {
...factories.builtinTools,
...factories.createGrepTools(ctx),
...factories.createGlobTools(ctx),
...factories.createAstGrepTools(ctx),
-21
View File
@@ -1,15 +1,3 @@
import {
lsp_goto_definition,
lsp_find_references,
lsp_symbols,
lsp_diagnostics,
lsp_prepare_rename,
lsp_rename,
lspManager,
} from "./lsp"
export { lspManager }
export { createAstGrepTools } from "./ast-grep"
export { createGrepTools } from "./grep"
export { createGlobTools } from "./glob"
@@ -54,12 +42,3 @@ export function createBackgroundTools(manager: BackgroundManager, client: Openco
background_cancel: createBackgroundCancel(manager, cancelClient),
}
}
export const builtinTools: Record<string, ToolDefinition> = {
lsp_goto_definition,
lsp_find_references,
lsp_symbols,
lsp_diagnostics,
lsp_prepare_rename,
lsp_rename,
}