feat(ui): add confirmations and terminal motion
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-05-12 19:44:18 -05:00
parent cc98aa180b
commit 0755213d6a
12 changed files with 263 additions and 29 deletions
+7
View File
@@ -108,6 +108,13 @@ export function parse(rawInput: string, ctx: ParserContext): ParsedCommand {
const tokens = tokenize(trimmed)
const head = tokens[0]!
if (tokens.length === 1 && ['yes', 'y'].includes(head)) {
return { kind: 'confirmation', confirmed: true }
}
if (tokens.length === 1 && head === 'no') {
return { kind: 'confirmation', confirmed: false }
}
// Meta-commands take precedence (single-word).
if (META_VERBS[head] && tokens.length === 1) {
return { kind: 'meta', verb: META_VERBS[head]! }