Skip to main content

Module facets

Module facets 

Source
Expand description

Independent, object-safe capability shapes for staged command migration.

FEAT-014 publishes these interfaces without implementing them for the TUI or changing an existing command. Later work adopts them inside codewhale-tui one command group at a time. Only after every group uses these shapes will groups move physically into a commands crate.

Traitsยง

CommandCostContext
Cost display and accounting operations.
CommandModePolicyContext
Operating mode, approval posture, shell access, and policy lock.
CommandModelContext
Model selection, provider identity, effort, and fallback chain.
CommandSessionContext
Session identity, messages, queue operations, and token totals.
CommandSkillsContext
Active skill identity and skill-cache refresh.
CommandSystemPromptContext
Read access to the effective system prompt.
CommandWorkspaceContext
Workspace path and a bounded serialized work-state snapshot.