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
// SPDX-License-Identifier: Apache-2.0
//! # execkit
//!
//! Stateful, structured, **safe** shell sessions for AI agents on real
//! infrastructure. The agent driving execkit can be prompt-injected, so the
//! library's job is to contain its own caller: every command passes a policy
//! fence, output is redacted of secrets, and results are recorded.
//!
//! v0.1 scope: a persistent **local PTY** session with structured [`ExecResult`],
//! an advisory [`Policy`], secret redaction, and an append-only audit log.
//! SSH transport and MCP server mode follow (see `ROADMAP.md`).
//!
//! ```no_run
//! use execkit::Session;
//! let mut s = Session::local()?;
//! let r = s.exec("echo hello")?;
//! assert_eq!(r.stdout, "hello");
//! assert_eq!(r.exit_code, 0);
//! # Ok::<(), execkit::Error>(())
//! ```
pub use AuditLog;
pub use ;
pub use ;
pub use strip_ansi;
pub use Policy;
pub use Session;
pub use ;