feat(core): parameter fields in text, groups and gating by used values (#16)

- `::param{name=x}` places a parameter's input inside the text.
- `:::group{title="…" collapsed}` is a collapsible container for anything;
  groups are presentational and never gate steps. Included notebooks
  namespace field names and group titles.
- `groupInputs` reports a container's input status (missing, filled,
  optional, none) from its fields, the parameters its steps use and, for
  `::use`, the included notebook's parameters.
- A step is gated only by the values it uses: referenced parameters, the
  required secrets its script reads and valid set secrets of its scope.
  Unused required parameters no longer block early steps of a guided
  runbook.
- Spec §3.2/§3.6/§3.7, workspace format guide and a guided admin-user
  example notebook.
This commit is contained in:
Florian Schmidt
2026-11-16 16:49:47 +01:00
parent cae72c7f28
commit bdbcd2dcd5
10 changed files with 475 additions and 31 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ const files: Record<string, string> = { "infra/lxc.md": lxc, "services/web.md":
const load = (path: string) => files[path] === undefined ? undefined : parseNotebook(files[path]!);
const composed = () => composeNotebook("services/web.md", parseNotebook(service), load);
function all(blocks: Block[]): Block[] {
return blocks.flatMap(b => b.type === "markdown" || b.type === "step" || b.type === "host" ? [b] : [b, ...all(b.blocks)]);
return blocks.flatMap(b => "blocks" in b ? [b, ...all(b.blocks)] : [b]);
}
const hosts = ["pve", "web-ct", "existing"];