builder / lib /scripting /types.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
391c43e verified
Raw
History Blame Contribute Delete
412 Bytes
/**
* Types for the script execution system (Python/Lua via Web Workers).
*/
export type ScriptRuntime = 'python' | 'lua';
export type ScriptWorkerResponse =
| { type: 'stdout'; data: string }
| { type: 'stderr'; data: string }
| { type: 'status'; data: string }
| { type: 'error'; data: string }
| { type: 'complete'; exitCode: number }
| { type: 'output-file'; path: string; content: string };