18 lines
448 B
TypeScript
18 lines
448 B
TypeScript
import {
|
|
chatMachineSetup,
|
|
chatRootStateConfig,
|
|
} from "./machine/session-flow";
|
|
import { initialState } from "./chat-state";
|
|
|
|
export type { ChatState } from "./chat-state";
|
|
export { initialState } from "./chat-state";
|
|
export type { ChatEvent } from "./chat-events";
|
|
|
|
export const chatMachine = chatMachineSetup.createMachine({
|
|
id: "chat",
|
|
context: initialState,
|
|
...chatRootStateConfig,
|
|
});
|
|
|
|
export type ChatMachine = typeof chatMachine;
|