Skip to content

smelt.history

Availability: Terminal UI only; raises in headless mode.

Prompt history entries and search. UiHost-only.

smelt.history.entries

fun(): table

Return the prompt history as an array of strings, oldest first. Mirrors what the up-arrow recall in the input bar walks through.

smelt.history.search

fun(query: string): table

Rank prompt history against query using the history-specific scorer (word-match boost, recency bonus, dedupe). Returns { index, score } rows where index is 1-based into entries().