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
//! Execution Policy Module
//!
//! Provides types and managers for controlling command execution authorization,
//! inspired by OpenAI Codex's execution policy patterns.
//!
//! # Architecture
//!
//! - `approval`: Approval requirement types (ExecApprovalRequirement, AskForApproval)
//! - `policy`: Policy definitions and rule matching (Policy, PrefixRule, Decision)
//! - `parser`: Policy file parsing (TOML, JSON, simple formats)
//! - `manager`: The central ExecPolicyManager coordinating all components
//!
//! # Example
//!
//! ```rust,ignore
//! use vtcode_core::exec_policy::{ExecPolicyManager, Decision};
//!
//! let manager = ExecPolicyManager::with_defaults(workspace_root);
//! manager.add_prefix_rule(&["cargo".to_string()], Decision::Allow).await?;
//!
//! let result = manager.check_approval(&["cargo", "build"]).await;
//! ```
pub use ;
pub use ;
pub use ;
pub use ;