Skip to main content

agent_command_knowledge/
lib.rs

1//! Command taxonomy and knowledge layer.
2//!
3//! Separates "what commands are" (this crate) from "what to do about them"
4//! (policy, in consumers). Provides [`classify`]
5//! to look up a command's [`Effect`], subcommand, escalation flags, affected
6//! paths, and env gates from a [`KnowledgeBase`].
7//!
8//! Use [`default_knowledge_base`] to obtain the embedded defaults covering
9//! git, cargo, gh, kubectl, and common shell commands.
10
11pub mod defaults;
12pub mod lookup;
13pub mod merge;
14pub mod types;
15
16pub use defaults::default_knowledge_base;
17pub use lookup::classify;
18pub use merge::{CommandOverlay, KnowledgeOverlay, WrapperOverlay};
19pub use types::{
20    CommandInfo, CommandKnowledge, CommandProperties, Effect, EnvGate, FlagSchema, KnowledgeBase,
21    PathPositionals, PathSpec, SubcommandEntry, SubcommandMap, WrapperInfo, WrapperKnowledge,
22    MAX_SUBCOMMAND_DEPTH,
23};