44 * without code generation or eval()
55 */
66
7+ import type { generateImageStep } from "../../plugins/ai-gateway/steps/generate-image/step" ;
8+ import type { generateTextStep } from "../../plugins/ai-gateway/steps/generate-text/step" ;
9+ import type { firecrawlScrapeStep } from "../../plugins/firecrawl/steps/scrape/step" ;
10+ import type { firecrawlSearchStep } from "../../plugins/firecrawl/steps/search/step" ;
11+ import type { createTicketStep } from "../../plugins/linear/steps/create-ticket/step" ;
12+ import type { sendEmailStep } from "../../plugins/resend/steps/send-email/step" ;
13+ import type { sendSlackMessageStep } from "../../plugins/slack/steps/send-slack-message/step" ;
714import type { conditionStep } from "./condition" ;
8- import type { createTicketStep } from "./create-ticket" ;
915import type { databaseQueryStep } from "./database-query" ;
10- import type { firecrawlScrapeStep , firecrawlSearchStep } from "./firecrawl" ;
11- import type { generateImageStep } from "./generate-image" ;
12- import type { generateTextStep } from "./generate-text" ;
1316import type { httpRequestStep } from "./http-request" ;
1417import type { logNodeCompleteStep , logNodeStartStep } from "./logging" ;
15- import type { sendEmailStep } from "./send-email" ;
16- import type { sendSlackMessageStep } from "./send-slack-message" ;
1718
1819// Step function type
1920export type StepFunction = ( input : Record < string , unknown > ) => Promise < unknown > ;
@@ -33,29 +34,29 @@ export const stepRegistry: Record<string, StepFunction> = {
3334 input as Parameters < typeof conditionStep > [ 0 ]
3435 ) ,
3536 "Send Email" : async ( input ) =>
36- ( await import ( "./ send-email" ) ) . sendEmailStep (
37+ ( await import ( "../../plugins/resend/steps/ send-email/step " ) ) . sendEmailStep (
3738 input as Parameters < typeof sendEmailStep > [ 0 ]
3839 ) ,
3940 "Send Slack Message" : async ( input ) =>
40- ( await import ( "./send-slack-message" ) ) . sendSlackMessageStep (
41- input as Parameters < typeof sendSlackMessageStep > [ 0 ]
42- ) ,
41+ (
42+ await import ( "../../plugins/slack/steps/send-slack-message/step" )
43+ ) . sendSlackMessageStep ( input as Parameters < typeof sendSlackMessageStep > [ 0 ] ) ,
4344 "Create Ticket" : async ( input ) =>
44- ( await import ( "./create-ticket" ) ) . createTicketStep (
45- input as Parameters < typeof createTicketStep > [ 0 ]
46- ) ,
45+ (
46+ await import ( "../../plugins/linear/steps/create-ticket/step" )
47+ ) . createTicketStep ( input as Parameters < typeof createTicketStep > [ 0 ] ) ,
4748 "Find Issues" : async ( input ) =>
48- ( await import ( "./create-ticket" ) ) . createTicketStep (
49- input as Parameters < typeof createTicketStep > [ 0 ]
50- ) , // TODO: Implement separate findIssuesStep
49+ (
50+ await import ( "../../plugins/linear/steps/create-ticket/step" )
51+ ) . createTicketStep ( input as Parameters < typeof createTicketStep > [ 0 ] ) , // TODO: Implement separate findIssuesStep
5152 "Generate Text" : async ( input ) =>
52- ( await import ( "./generate-text" ) ) . generateTextStep (
53- input as Parameters < typeof generateTextStep > [ 0 ]
54- ) ,
53+ (
54+ await import ( "../../plugins/ai-gateway/steps/generate-text/step" )
55+ ) . generateTextStep ( input as Parameters < typeof generateTextStep > [ 0 ] ) ,
5556 "Generate Image" : async ( input ) =>
56- ( await import ( "./generate-image" ) ) . generateImageStep (
57- input as Parameters < typeof generateImageStep > [ 0 ]
58- ) ,
57+ (
58+ await import ( "../../plugins/ai-gateway/steps/generate-image/step" )
59+ ) . generateImageStep ( input as Parameters < typeof generateImageStep > [ 0 ] ) ,
5960 "Log Node Start" : async ( input ) =>
6061 ( await import ( "./logging" ) ) . logNodeStartStep (
6162 input as Parameters < typeof logNodeStartStep > [ 0 ]
@@ -65,13 +66,13 @@ export const stepRegistry: Record<string, StepFunction> = {
6566 input as Parameters < typeof logNodeCompleteStep > [ 0 ]
6667 ) ,
6768 Scrape : async ( input ) =>
68- ( await import ( "./firecrawl" ) ) . firecrawlScrapeStep (
69- input as Parameters < typeof firecrawlScrapeStep > [ 0 ]
70- ) ,
69+ (
70+ await import ( "../../plugins/firecrawl/steps/scrape/step" )
71+ ) . firecrawlScrapeStep ( input as Parameters < typeof firecrawlScrapeStep > [ 0 ] ) ,
7172 Search : async ( input ) =>
72- ( await import ( "./firecrawl" ) ) . firecrawlSearchStep (
73- input as Parameters < typeof firecrawlSearchStep > [ 0 ]
74- ) ,
73+ (
74+ await import ( "../../plugins/firecrawl/steps/search/step" )
75+ ) . firecrawlSearchStep ( input as Parameters < typeof firecrawlSearchStep > [ 0 ] ) ,
7576} ;
7677
7778// Helper to check if a step exists
0 commit comments