feat: Refactor codebase, improve types, attempt test fixes

This commit is contained in:
leonardsellem
2025-03-31 11:20:05 +02:00
parent d16ad72b22
commit ecd9133437
38 changed files with 829 additions and 811 deletions

View File

@@ -15,12 +15,12 @@ export class DeleteWorkflowHandler extends BaseWorkflowToolHandler {
/**
* Execute the tool
*
* @param args Tool arguments containing workflowId
* @returns Deletion confirmation
*/
async execute(args: Record<string, any>): Promise<ToolCallResult> {
* @param args Tool arguments containing workflowId
* @returns Success message
*/
async execute(args: { workflowId: string }): Promise<ToolCallResult> { // Use specific type for args
return this.handleExecution(async (args) => {
const { workflowId } = args;
const { workflowId } = args; // Destructuring remains the same
if (!workflowId) {
throw new N8nApiError('Missing required parameter: workflowId');