feat: more work on python scriptiong basics

This commit is contained in:
2026-02-23 11:45:13 +01:00
parent 94b7ca2c80
commit caa3f3c061
18 changed files with 752 additions and 33 deletions

View File

@@ -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 };