TerminalCompletionLearningStore
Mutable, bounded in-memory store for exact command completion learning.
Hosts record command lifecycle outcomes and explicit popup feedback. Optional persistence may hydrate the store once through mergeSnapshot and persist snapshot values. The store performs no I/O and does not emit candidates. Mutations are serialized around one mutable exact index. Ranking rows retain only opaque identities; plaintext replay is attached only to successful commands that TerminalCompletionReplayPolicy approves. Published snapshots are immutable and retain identity until their contents change.
Parameters
maximum distinct exact-command rows retained.
Throws
if capacity is not positive.
Functions
Adds distinct aggregate events from snapshot to retained learning.
Records explicit user feedback for the exact suggested command.
Returns the current immutable exact-command statistics snapshot.