mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 11:51:23 +00:00
chore: Enable typescript/no-explicit-any rule.
This commit is contained in:
@@ -230,12 +230,14 @@ export async function handleToolsInvokeHttpRequest(
|
||||
|
||||
const coreToolNames = new Set(
|
||||
allTools
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
.filter((tool) => !getPluginToolMeta(tool as any))
|
||||
.map((tool) => normalizeToolName(tool.name))
|
||||
.filter(Boolean),
|
||||
);
|
||||
const pluginGroups = buildPluginToolGroups({
|
||||
tools: allTools,
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
toolMeta: (tool) => getPluginToolMeta(tool as any),
|
||||
});
|
||||
const resolvePolicy = (policy: typeof profilePolicy, label: string) => {
|
||||
@@ -306,10 +308,12 @@ export async function handleToolsInvokeHttpRequest(
|
||||
|
||||
try {
|
||||
const toolArgs = mergeActionIntoArgsIfSupported({
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
toolSchema: (tool as any).parameters,
|
||||
action,
|
||||
args,
|
||||
});
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const result = await (tool as any).execute?.(`http-${Date.now()}`, toolArgs);
|
||||
sendJson(res, 200, { ok: true, result });
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user