feat: more work on python scriptiong basics
This commit is contained in:
@@ -5,12 +5,21 @@ export type PythonWorkerRequest =
|
||||
type: 'run';
|
||||
requestId: string;
|
||||
code: string;
|
||||
cacheKey?: string;
|
||||
entrypoint?: string;
|
||||
}
|
||||
| {
|
||||
type: 'renderMacroV1';
|
||||
requestId: string;
|
||||
code: string;
|
||||
context: MacroContextV1;
|
||||
cacheKey?: string;
|
||||
}
|
||||
| {
|
||||
type: 'inspectEntrypoints';
|
||||
requestId: string;
|
||||
code: string;
|
||||
cacheKey?: string;
|
||||
};
|
||||
|
||||
export type PythonWorkerMessage =
|
||||
@@ -18,5 +27,6 @@ export type PythonWorkerMessage =
|
||||
| { type: 'error'; error: string }
|
||||
| { type: 'stdout'; requestId: string; chunk: string }
|
||||
| { type: 'runResult'; requestId: string; result: string }
|
||||
| { type: 'entrypoints'; requestId: string; entrypoints: string[] }
|
||||
| { type: 'macroResult'; requestId: string; result: MacroResultV1 }
|
||||
| { type: 'runError'; requestId: string; error: string };
|
||||
|
||||
Reference in New Issue
Block a user