chore: skeleton for web create file provide

This commit is contained in:
Kevin Nadro
2025-04-14 16:54:04 -06:00
parent fcffc72655
commit c9587fda07

View File

@ -1,3 +1,21 @@
import { systemIOMachine } from '@src/machines/systemIO/systemIOMachine'
import type { SystemIOContext } from '@src/machines/systemIO/utils'
import { SystemIOMachineActors } from '@src/machines/systemIO/utils'
import { fromPromise } from 'xstate'
export const systemIOMachineWeb = systemIOMachine.provide({})
export const systemIOMachineWeb = systemIOMachine.provide({
actors: {
[SystemIOMachineActors.createKCLFile]: fromPromise(
async ({
input,
}: {
input: {
context: SystemIOContext
requestedProjectName: string
requestedFileName: string
requestedCode: string
}
}) => {}
),
},
})