feat: dynamic mode
This commit is contained in:
@@ -17,6 +17,8 @@ class CompileRequest(BaseModel):
|
||||
class CompileResponse(BaseModel):
|
||||
ascii: str
|
||||
micron: str
|
||||
script: str
|
||||
is_dynamic: bool
|
||||
warnings: list[str]
|
||||
|
||||
|
||||
@@ -28,6 +30,8 @@ async def compile_source(req: CompileRequest):
|
||||
return CompileResponse(
|
||||
ascii=result.ascii,
|
||||
micron=result.micron,
|
||||
script=result.script,
|
||||
is_dynamic=result.is_dynamic,
|
||||
warnings=[w.message for w in result.warnings],
|
||||
)
|
||||
except UFrameError as e:
|
||||
|
||||
Reference in New Issue
Block a user