diff --git a/playground/blog/BlogWritingWorkflow.tsx b/playground/blog/BlogWritingWorkflow.tsx index d638f577..ccf7bdb1 100644 --- a/playground/blog/BlogWritingWorkflow.tsx +++ b/playground/blog/BlogWritingWorkflow.tsx @@ -1,4 +1,4 @@ -import { createWorkflow } from "@/src//utils/workflow-builder"; +import { createWorkflow } from "@/src/index"; import { LLMEditor } from "../shared/components/LLMEditor"; import { LLMResearcher } from "../shared/components/LLMResearcher"; diff --git a/playground/index.tsx b/playground/index.tsx index 28509281..27bffa17 100644 --- a/playground/index.tsx +++ b/playground/index.tsx @@ -1,6 +1,6 @@ -import { Workflow } from "@/src/components/Workflow"; -import { WorkflowContext } from "@/src/components/Workflow"; -import { createWorkflowOutput } from "@/src/hooks/useWorkflowOutput"; +import { Workflow } from "@/src/index"; +import { WorkflowContext } from "@/src/index"; +import { createWorkflowOutput } from "@/src/index"; import { BlogWritingWorkflow } from "./blog/BlogWritingWorkflow"; import { TweetWritingWorkflow } from "./tweet/TweetWritingWorkflow"; diff --git a/playground/shared/components/LLMEditor.tsx b/playground/shared/components/LLMEditor.tsx index aee2e971..4e8dd589 100644 --- a/playground/shared/components/LLMEditor.tsx +++ b/playground/shared/components/LLMEditor.tsx @@ -1,4 +1,4 @@ -import { createWorkflow } from "@/src/utils/workflow-builder"; +import { createWorkflow } from "@/src/index"; interface EditorProps { content: string; diff --git a/playground/shared/components/LLMResearcher.tsx b/playground/shared/components/LLMResearcher.tsx index d77e4fe5..f4d0cd74 100644 --- a/playground/shared/components/LLMResearcher.tsx +++ b/playground/shared/components/LLMResearcher.tsx @@ -1,4 +1,4 @@ -import { createWorkflow } from "@/src/utils/workflow-builder"; +import { createWorkflow } from "@/src/index"; interface ResearcherProps { title: string; diff --git a/playground/shared/components/LLMWriter.tsx b/playground/shared/components/LLMWriter.tsx index 81f1c4f7..57d97e0f 100644 --- a/playground/shared/components/LLMWriter.tsx +++ b/playground/shared/components/LLMWriter.tsx @@ -1,4 +1,4 @@ -import { createWorkflow } from "@/src/utils/workflow-builder"; +import { createWorkflow } from "@/src/index"; interface WriterProps { content: string; diff --git a/playground/tweet/TweetWritingWorkflow.tsx b/playground/tweet/TweetWritingWorkflow.tsx index 30d6e38f..ded5e6b2 100644 --- a/playground/tweet/TweetWritingWorkflow.tsx +++ b/playground/tweet/TweetWritingWorkflow.tsx @@ -1,4 +1,4 @@ -import { createWorkflow } from "@/src/utils/workflow-builder"; +import { createWorkflow } from "@/src/index"; import { LLMEditor } from "../shared/components/LLMEditor"; import { LLMWriter } from "../shared/components/LLMWriter"; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..3164f58c --- /dev/null +++ b/src/index.ts @@ -0,0 +1,5 @@ +import { Workflow, WorkflowContext } from "./components/Workflow"; +import { createWorkflowOutput } from "./hooks/useWorkflowOutput"; +import { createWorkflow } from "./utils/workflow-builder"; + +export { createWorkflow, createWorkflowOutput, Workflow, WorkflowContext };