feat: add deterministic preview rendering
This commit is contained in:
parent
8c75f4f44d
commit
411f417670
23 changed files with 1413 additions and 142 deletions
|
|
@ -18,6 +18,9 @@ class Limits:
|
|||
max_changesets: int = 1_000
|
||||
max_changeset_operations: int = 100
|
||||
max_changeset_bytes: int = 1_000_000
|
||||
max_render_views: int = 100
|
||||
max_template_bytes: int = 1_000_000
|
||||
max_render_bytes: int = 1_000_000
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
|
@ -27,6 +30,23 @@ class ProposalWriter:
|
|||
operations: tuple[str, ...]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RenderView:
|
||||
view_id: str
|
||||
renderer: str
|
||||
template_path: Path
|
||||
output_path: Path
|
||||
title: str
|
||||
families: tuple[str, ...]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RenderConfig:
|
||||
template_root: Path
|
||||
preview_root: Path
|
||||
views: tuple[RenderView, ...]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class ContextProfile:
|
||||
profile_id: str
|
||||
|
|
@ -52,6 +72,7 @@ class ProjectDescriptor:
|
|||
index_path: Path
|
||||
changeset_root: Path
|
||||
proposal_writers: tuple[ProposalWriter, ...]
|
||||
render: RenderConfig | None
|
||||
allowed_relations: tuple[str, ...]
|
||||
profiles: tuple[ContextProfile, ...]
|
||||
limits: Limits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue