smelt.mode¶
Tier: Host - Available in every runtime, including headless mode.
Visibility: Public - Stable Lua API intended for user config and plugins.
This namespace mixes Host and UiHost functions; each function below lists its exact tier.
Agent-mode selector. smelt.mode.current() reads the active mode, smelt.mode.set(v) sets it in a TUI session, and smelt.mode.cycle_list() lists the configured cycle.
smelt.mode.current¶
Tier: Host - Available in every runtime, including headless mode.
Return the active agent mode name.
smelt.mode.cycle¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
Advance the active agent mode to the next entry in smelt.mode.cycle_list(),
wrapping at the end. No-op when the cycle is empty.
smelt.mode.cycle_list¶
Tier: Host - Available in every runtime, including headless mode.
Return the configured agent-mode cycle; falls back to the built-in default when the user has not customized one.
smelt.mode.get¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.icon¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.list¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.note¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.permission_behaviors¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.register¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.set¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
Set the active agent mode. The change is applied immediately to the UI and persisted according to the active remember policy.
smelt.mode.set_icon¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
smelt.mode.style¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.