1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages

feat: add deterministic preview rendering

This commit is contained in:
Andraxion 2026-07-22 03:32:05 -04:00
parent 8c75f4f44d
commit 411f417670
23 changed files with 1413 additions and 142 deletions

View file

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