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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//! # ready-set-sdk
//!
//! Shared conventions and helpers for `ready-set` plugins.
//!
//! The SDK is the typed Rust mirror of the contracts under
//! [`docs/contracts/`](https://github.com/pulsearc-ai/ready-set/tree/main/docs/contracts).
//! Plugins are not required to use the SDK — any binary on PATH can be a
//! plugin — but using it makes plugins consistent with first-party tools and
//! saves writing the same boilerplate.
//!
//! ## What lives here
//!
//! - [`context`]: per-invocation state ([`Context`]), populated from the
//! `READY_SET_*` env contract.
//! - [`capability`]: product capability descriptors and lifecycle reports.
//! - [`output`]: human/JSON output formatting ([`Output`]).
//! - [`exit_code`]: documented process exit codes ([`ExitCode`]).
//! - [`change_log`]: append-only JSONL change log for reversibility.
//! - [`describe`]: `__describe` subcommand support.
//! - [`manifest`]: plugin manifest sidecar parsing.
//! - [`sandbox`]: per-platform sandbox trait (no-op stubs in v0.1.0).
//! - [`config`]: `.ready-set.toml` loader.
//! - [`fs`]: filesystem helpers (atomic writes, hashing).
//! - [`dispatch`]: cross-plugin dispatch helper.
//! - [`logging`]: tracing setup honoring the env contract.
//! - [`error`]: SDK-wide error type.
//!
//! ## Minimal plugin shape
//!
//! ```no_run
//! use ready_set_sdk::prelude::*;
//! use ready_set_sdk::describe::{Describe, Stability, Platform};
//!
//! fn describe() -> Describe {
//! Describe {
//! description: "Example plugin".into(),
//! version: "0.1.0".parse().unwrap(),
//! stability: Stability::Experimental,
//! min_dispatcher_version: "0.1.0".parse().unwrap(),
//! platforms: vec![Platform::Linux, Platform::Macos, Platform::Windows],
//! requires_cargo_workspace: false,
//! capabilities: Vec::new(),
//! }
//! }
//!
//! fn main() -> std::process::ExitCode {
//! let descr = describe();
//! if let Some(code) = descr.handle_arg0_describe(std::env::args_os()) {
//! return code.into();
//! }
//! let ctx = Context::from_env();
//! let mut out = Output::for_context(&ctx, std::io::stdout());
//! out.human("hello world");
//! ExitCode::Ok.into()
//! }
//! ```
pub use ;
pub use Context;
pub use ;
pub use ExitCode;
pub use ;
pub use ;