fix: resolve agent tool typing
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user