Skip to main content

Crate codewhale_command_contract

Crate codewhale_command_contract 

Source
Expand description

Portable command shapes and shared formatting for command implementations.

Host registration and adapters remain with their clients. Decoupled command groups move into codewhale-commands with all consumers migrated per slice.

Re-exports§

pub use handler::CommandCapabilities;
pub use handler::CommandContexts;
pub use handler::CommandHandler;
pub use handler::ContextParts;
pub use metadata::CommandDiscovery;
pub use metadata::CommandInfo;
pub use metadata::RegisterCommand;
pub use facets::*;
pub use types::*;

Modules§

config
Config-group command facets (FEAT-028 D3/D4).
config_policy
Policy/status observations only. Hosts own persistence, runtime services and I/O. These values do not grant authority to edit configuration or operate a session.
elapsed
Shared user-visible elapsed/duration formatter.
facets
Independent, object-safe capability shapes for staged command migration.
handler
Generic handler transport for staged command migration.
metadata
Portable command registration metadata.
metrics
Pure session metrics rendering; host observation and painting remain outside.
money
Shared, data-only precise monetary display for diagnostic reports. Currency selection and accounting remain authoritative on the host.
navigation
outcome
Shared command result data. Hosts consume actions after command dispatch; constructing an outcome never executes an action.
tool_outputs
Pure output-pressure display; observation remains host-owned.
types
Prototype boundary values used by the command capability shapes.