history

history.getUndoStack

getUndoStack(): string[]

Return the labels of all entries currently on the undo stack (oldest first).

Useful for building a history inspector UI.

Returns: string[]