fallow_types/cloud.rs
1//! Cross-surface strings for the cloud runtime-coverage path.
2//!
3//! `fallow coverage analyze --cloud` and the MCP `get_cloud_runtime_context`
4//! tool refuse the same call for the same reason, and an agent reads both.
5//! Keeping the refusal text here makes the two surfaces say one sentence
6//! instead of holding two copies that drift apart.
7
8/// Refusal emitted when no fallow cloud API key is available. Names the
9/// environment variable first because that is the only route the MCP tool
10/// has; the flag and the command line follow for the CLI surface.
11pub const CLOUD_API_KEY_MISSING_MESSAGE: &str = "Cloud runtime coverage requires an API key.\n\nSet FALLOW_API_KEY or pass --api-key:\n\n FALLOW_API_KEY=fallow_live_... fallow coverage analyze --cloud --repo owner/repo";