KetraTerm
API · v0.3.0All versions

TerminalCompletionRankingStats

data class TerminalCompletionRankingStats @JvmOverloads constructor(val identityDigest: String, val profileId: String? = null, val workingDirectoryUri: String? = null, val useCount: Int = 0, val successCount: Int = 0, val failureCount: Int = 0, val acceptedCount: Int = 0, val dismissedCount: Int = 0, val lastUsedEpochMillis: Long = 0)

Aggregated ranking evidence for one opaque exact-command identity.

The identity is a stable, one-way digest produced by the completion module. It does not retain directly decodable command text, although common commands remain guessable by hashing candidate strings. The digest preserves the exact case-sensitive command, including trailing whitespace.

Throws

if the digest shape is invalid, a counter is negative, successful executions exceed total executions, or lastUsedEpochMillis is negative.

Constructors

Link copied to clipboard
constructor(identityDigest: String, profileId: String? = null, workingDirectoryUri: String? = null, useCount: Int = 0, successCount: Int = 0, failureCount: Int = 0, acceptedCount: Int = 0, dismissedCount: Int = 0, lastUsedEpochMillis: Long = 0)

Properties

Link copied to clipboard

number of accepted suggestions producing this outcome.

Link copied to clipboard

number of dismissed suggestions producing this outcome.

Link copied to clipboard

number of unsuccessful executions. This is observational and does not penalize ranking.

Link copied to clipboard

constant-length URL-safe digest of the exact command.

Link copied to clipboard

newest execution or feedback timestamp represented by this row.

Link copied to clipboard

optional host profile id associated with the evidence.

Link copied to clipboard

number of successful executions.

Link copied to clipboard

number of observed command executions.

Link copied to clipboard

optional working-directory URI associated with the evidence.