Skip to main content

Module fragments

Module fragments 

Source
Expand description

The texts rk devshell add serves: three flake fragments, the .envrc line, and the seed pair for a target that has neither file.

Every text is an authored file under blocks/, per distribution:a-human-faced-artifact-is-authored-text; each carries an RK_DEVSHELL_PIN token rendered with a plain replace, never a format, so the ${system} interpolation survives untouched. The fragments describe where they go in a form a coding agent can apply with no parser: a closed placement vocabulary, a literal anchor substring, and a three-state present from the lexical observation.

Structs§

Anchor
Where a fragment goes.
Fragment
One fragment: what to add, where, and whether it is already there.

Functions§

envrc_line
The one .envrc line, without its newline.
fragments
The four fragments, in application order, judged against the target.
pinned_url
The pinned flake-input URL for a tag: the grammar’s prefix and the tag.
seed_envrc
The whole seed .envrc.
seed_flake
The whole seed flake, pinned at tag.