Re-exports§
pub use domain::CommandRewriter;pub use domain::CommandSplitter;pub use domain::OriginalCommand;pub use domain::PrefixConfig;pub use domain::TextualSplitter;pub use engine::PrefixEngine;pub use error::Error;pub use infra::path::EnvPathResolver;pub use infra::path::PathResolver;pub use infra::toml_store::FilePrefixStore;pub use infra::toml_store::FileProbeStore;
Modules§
Structs§
- Audit
State - Snapshot of prefix learning state for display / operator tooling.
- Probe
Entry - A pending candidate probe: we applied a speculative prefix and need post-hook learning to confirm or discard it.
- Rewrite
Result - Result of rewriting a full command string.
- Segment
- One shell segment plus the separator that followed it (if any).
Enums§
- Prefix
Match - Result of a prefix lookup for a single segment’s base command.
Traits§
- Prefix
Store - Port for reading and writing the prefix config.
- Probe
Store - Port for reading and writing candidate probes.
Functions§
- audit_
state - Assemble the current prefix learning state from both stores.
- lookup_
prefix - Look up the prefix for the leading command word(s) of
segment. - rejoin
- Reconstruct the original command string from segments.
- rewrite_
command - Rewrite
cmdby prepending learned prefixes to each shell segment. - rewrite_
via_ store - Rewrite
cmdusing the given store as the prefix source. - split_
segments - Split a shell command string into segments on
&&,||,;,|.