fix: resolve agent tool typing

This commit is contained in:
Peter Steinberger
2025-12-25 03:33:09 +01:00
parent 92f467e81c
commit d96f2abc4e
2 changed files with 6 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ export interface FinishedSession {
const runningSessions = new Map<string, ProcessSession>();
const finishedSessions = new Map<string, FinishedSession>();
let sweeper: NodeJS.Timer | null = null;
let sweeper: NodeJS.Timeout | null = null;
export function addSession(session: ProcessSession) {
runningSessions.set(session.id, session);

View File

@@ -294,11 +294,12 @@ export function createClawdisCodingTools(): AnyAgentTool[] {
if (tool.name === bashTool.name) return [];
return [tool as AnyAgentTool];
});
return [
const tools: AnyAgentTool[] = [
...base,
bashTool,
processTool,
bashTool as AnyAgentTool,
processTool as AnyAgentTool,
createWhatsAppLoginTool(),
...createClawdisTools(),
].map(normalizeToolParameters);
];
return tools.map(normalizeToolParameters);
}