Skip to main content

Module render

Module render 

Source
Expand description

Desired state (SPEC 6.1 system layer) and its rendering into one RenderedServer per server and client.

Rendering resolves OS overrides and the machine overlay, fills path variables and delivers every reference through crate::secrets::render (SPEC 11.4): env in the client’s own syntax, launch through surject exec, command through the client’s command hooks, or inline. A reference with no allowed mode blocks the entry; nothing is ever written in plain text in its place.

Structs§

DesiredEntry
One server as one client should have it.
DesiredState
Everything the system layer is computed from, read from one view of the store (working tree, transaction or past revision).
Detected
Detection results, probed once per client and run.
RenderCx
Where rendering happens: the paths ${home} and ${surjection_home} stand for, what detection may look at, this machine’s secret providers and the launcher, and the store’s SecretMemory (values read while rendering are recorded there, so the store refuses to commit them).
RenderOutput
One server rendered for one client.
RenderTarget
How a server is rendered: the Sharing of the target file, the project folder ${project} stands for, and whether the machine overlay still applies (a project entry was resolved with it already).
Rendering
The system layer for this machine.

Functions§

native_name
The native entry key of server for client.
native_to_template
A native string value as a store template (SPEC 11.2): the client’s own variable references become ${env:NAME}, any other ${ becomes the literal $${. None when the value uses a client feature the store cannot express (${NAME:-default}, ${userHome}, OpenCode’s {file:path}, a Pi !command).
render
One server for one client and a target of the given Sharing.
render_for
One server for one client and target.
system_entries
Renders every enabled store server for every client it is enabled for at system scope (user files), after machine exclusions and clients.toml opt-outs.