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
//! Deck SDK — operator-side surface.
//!
//! Customer-facing entry point for the cyberdeck operator
//! workflows (admin commits, snapshot subscription, audit
//! queries, log streams, ICE). The implementation lives in the
//! substrate at `net::adapter::net::behavior::deck`; this
//! module re-exports the types under a clean `net_sdk::deck::*`
//! path so consumers don't reach into substrate internals.
//!
//! # Surface
//!
//! - [`DeckClient`] — composes a live MeshOS runtime with an
//! [`OperatorIdentity`] into the operator-facing handle.
//! - [`AdminCommands`] — typed admin-event surface. One method
//! per [`AdminEvent`] variant; each returns a [`ChainCommit`]
//! correlation handle.
//! - [`IceCommands`] / [`IceProposal`] — break-glass surface.
//! Each proposal exposes `simulate()` → [`BlastRadius`] and
//! `commit(signatures: &[OperatorSignature])` with substrate-
//! side M-of-N verification via [`AdminVerifier`].
//! - [`SnapshotStream`] / [`StatusSummaryStream`] — `Stream`s
//! over the runtime's snapshot reader.
//! - [`AuditQuery`] — fluent admin-chain query builder over the
//! in-memory audit ring (with the
//! `<<deck-sdk-kind:KIND>>MSG` error discriminator). Filters:
//! `recent`, `by_operator`, `between`, `force_only`, `since`.
//! - [`LogStream`] / [`FailureStream`] — per-daemon / per-node
//! log + failure tails with `since(seq)` pagination.
//! - [`DeckError`] / [`AdminError`] / [`IceError`] — operator-
//! readable error surface.
//!
//! # Operator-side, not daemon-side
//!
//! Daemons author against [`crate::meshos::MeshOsDaemonSdk`];
//! operators command against [`DeckClient`]. The two surfaces
//! share the type shapes ([`MeshOsSnapshot`], the
//! `<<…-sdk-kind:KIND>>MSG` error discriminator) without
//! sharing the action surface.
// Re-export the substrate-side Deck types under a clean
// `net_sdk::deck::*` path.
pub use SummaryAnnouncement;
pub use ;
// Pure ICE simulator — runs a `BlastRadius` against any
// `MeshOsSnapshot` + `IceActionProposal` without touching the
// runtime. Used by the deck binary to preview blast radius
// inside the confirmation modal before the operator actually
// fires the proposal through `IceProposal::simulate().commit(...)`.
pub use simulate_ice_proposal;
// Supporting types operators need from the MeshOS surface to
// build commands or read snapshots.
pub use ;