refactor(tools): remove native LSP tool registry wiring
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user