2025-04-07 13:27:34 -05:00
|
|
|
import type { Project } from '@src/lib/project'
|
2025-04-09 09:46:30 -05:00
|
|
|
import { systemIOMachine } from '@src/machines/systemIO/systemIOMachine'
|
2025-04-14 11:56:28 -06:00
|
|
|
import type { SystemIOContext } from '@src/machines/systemIO/utils'
|
|
|
|
import { SystemIOMachineActors } from '@src/machines/systemIO/utils'
|
2025-04-09 09:46:30 -05:00
|
|
|
import { fromPromise } from 'xstate'
|
2025-04-07 13:27:34 -05:00
|
|
|
|
|
|
|
export const systemIOMachineWeb = systemIOMachine.provide({
|
|
|
|
actors: {
|
2025-04-09 09:46:30 -05:00
|
|
|
[SystemIOMachineActors.readFoldersFromProjectDirectory]: fromPromise(
|
|
|
|
async ({ input: context }: { input: SystemIOContext }) => {
|
|
|
|
const projects: Project[] = []
|
|
|
|
console.log('nothing!')
|
|
|
|
return projects
|
|
|
|
}
|
|
|
|
),
|
|
|
|
},
|
2025-04-07 13:27:34 -05:00
|
|
|
})
|