fix: relax tool typing for bash tools

This commit is contained in:
Peter Steinberger
2025-12-25 20:27:05 +00:00
parent 474180c112
commit f6fcddbe0b

View File

@@ -306,11 +306,12 @@ export function createClawdisCodingTools(options?: {
const processTool = createProcessTool({
cleanupMs: options?.bash?.cleanupMs,
});
return [
const tools: AnyAgentTool[] = [
...base,
bashTool,
processTool,
bashTool as unknown as AnyAgentTool,
processTool as unknown as AnyAgentTool,
createWhatsAppLoginTool(),
...createClawdisTools(),
].map(normalizeToolParameters);
];
return tools.map(normalizeToolParameters);
}