vibesketcher.server.build_review¶
REST routes for previewing, applying and undoing periodic builds (#201).
POST /api/documents/{id}/periodic/build keeps adding a structure directly.
These routes put the same recipes behind the reviewed contract of the other
builder forms: .../periodic/build/preview reads the current document and
changes nothing; .../periodic/build/apply adds the previewed structure,
checked against the document revision, the recipe digest and optionally the
input digest; .../periodic/build/undo removes it again while it is
unchanged and nothing refers to it. Refusals carry the stable codes of
vibesketcher.document.build_review.CODES.
Functions
|
Classes
|
|
|
A preview reads the current document; the answer names its revision. |
|
- class vibesketcher.server.build_review.BuildPreviewRequest(*, recipe, structure=False)[source]¶
Bases:
BaseModelA preview reads the current document; the answer names its revision.
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.build_review.BuildApplyRequest(*, actor='agent', client='rest', revision, recipe, recipe_sha256, inputs_sha256=None)[source]¶
Bases:
RevisionRequest- Parameters:
actor (Literal['human', 'agent', 'system'])
client (Annotated[str, _PydanticGeneralMetadata(pattern='^[a-z0-9][a-z0-9_.:+-]{0,63}$')])
revision (int)
recipe_sha256 (Annotated[str, _PydanticGeneralMetadata(pattern='^[0-9a-f]{64}$')])
inputs_sha256 (Annotated[str | None, _PydanticGeneralMetadata(pattern='^[0-9a-f]{64}$')])
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].