Expand description
aprender-shell library
AI-powered shell completion trained on your history. This library exposes the core components for benchmarking and testing.
§Hardening (v0.2.0)
This version includes hardening per aprender-shell-harden-plan.md:
- Error handling:
ShellErrortype with graceful degradation - Input validation:
sanitize_prefixfor safe input handling - Security filtering:
is_sensitive_commandfor credential protection
Re-exports§
pub use config::suggest_with_fallback;pub use config::ShellConfig;pub use error::ShellError;pub use history::HistoryParser;pub use model::MarkovModel;pub use paged_model::PagedMarkovModel;pub use quality::apply_typo_corrections;pub use quality::filter_quality_suggestions;pub use quality::suggestion_quality_score;pub use quality::validate_suggestion;pub use security::filter_sensitive_commands;pub use security::filter_sensitive_suggestions;pub use security::is_sensitive_command;pub use synthetic::SyntheticPipeline;pub use validation::load_model_graceful;pub use validation::sanitize_prefix;pub use corpus::Corpus;pub use corpus::CorpusError;pub use corpus::CorpusResult;pub use corpus::CorpusStats;
Modules§
- config
- Configuration and resource limits for aprender-shell
- corpus
- Corpus management for synthetic shell command training
- error
- Error types for aprender-shell
- history
- Shell history file parsing
- model
- N-gram Markov model for command prediction
- paged_
model - Memory-Paged Markov Model for Large Shell Histories
- quality
- Suggestion quality validation and enhancement for aprender-shell
- security
- Security filtering for aprender-shell
- synthetic
- Synthetic data generation for shell completion training
- trie
- Trie data structure for fast prefix matching
- validation
- Input validation for aprender-shell