1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Lossless sc-ai-cli response envelope and the two server conversions.
//!
//! Default features export [`Envelope`], [`OpError`], and [`ErrorKind`].
//! Feature `server` adds the HTTP response conversion and the sealed MCP
//! conversion. That feature is off by default.
//!
//! The envelope contract version for values this crate creates is
//! [`ENVELOPE_VERSION`] (`"1"`). A value read from JSON keeps the `version`
//! string it arrived with.
pub use Envelope;
pub use ;
pub use ;
/// Envelope contract version written by constructors in this crate.
///
/// Deserialization keeps the version string from the input instead of
/// replacing it with this constant.
pub const ENVELOPE_VERSION: &str = "1";
/// Stable code for an envelope whose `ok` flag disagrees with `data` or
/// `error`, or whose object is missing a required key.
pub const DISCRIMINANT_CODE: &str = "ENVELOPE.DISCRIMINANT";
/// Stable code for a payload whose `Serialize` implementation fails.
pub const SERIALIZATION_CODE: &str = "ENVELOPE.SERIALIZATION";
/// Application-owned canonical logging injection without a logging runtime.