Pure config and mode helpers for the ZCode ACP adapter.
ZCode has five operational modes (plan, build, edit, auto, yolo) that
correspond to ACP SessionMode IDs. Config options expose model selection
and thought-level (reasoning effort) control.
Summary
Functions
Builds the dynamic ACP config options from adapter state.
Returns the static mode list for ZCode in canonical order.
Normalizes a mode ID to a string, defaulting to the built-in default.
Normalizes a requested mode ID, returning an error for unknown modes.
Functions
Builds the dynamic ACP config options from adapter state.
@spec default_mode() :: String.t()
@spec default_thought_level() :: String.t()
@spec modes() :: [map()]
Returns the static mode list for ZCode in canonical order.
Normalizes a mode ID to a string, defaulting to the built-in default.
Normalizes a requested mode ID, returning an error for unknown modes.