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§
- Desired
Entry - One server as one client should have it.
- Desired
State - 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.
- Render
Cx - 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’sSecretMemory(values read while rendering are recorded there, so the store refuses to commit them). - Render
Output - One server rendered for one client.
- Render
Target - How a server is rendered: the
Sharingof 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
serverforclient. - 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$${.Nonewhen 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.tomlopt-outs.