Skip to main content

Module apply

Module apply 

Source
Expand description

Stateless apply engine — pure function that transforms artifacts.

apply(artifact?, envelope) → (Artifact, Handle)

Synthesize: creates artifact from body. Edit: applies ops to existing artifact. Both return the artifact and a handle envelope.

Structs§

TextResolver
Text-based resolver using <gap:target id="..."> markers.

Traits§

Resolve
Content resolution — how to find and replace targeted regions.

Functions§

apply
Stateless apply: f(artifact?, envelope) → (Artifact, Handle).
apply_edit
Apply edit operations using the Resolve trait (ID-based targeting).