feat(hooks): add setWidget API for multi-line status displays

- ctx.ui.setWidget(key, lines) for multi-line displays above editor
- Widgets appear below 'Working...' indicator, above editor
- Supports ANSI styling including strikethrough
- Added theme.strikethrough() method
- Plan-mode hook now shows todo list with checkboxes
- Completed items show checked box and strikethrough text
This commit is contained in:
Helmut Januschka 2026-01-03 16:01:05 +01:00 committed by Mario Zechner
parent 537d672f17
commit dc44816051
11 changed files with 127 additions and 6 deletions

View file

@ -118,6 +118,7 @@ describe.skipIf(!API_KEY)("Compaction hooks", () => {
input: async () => undefined,
notify: () => {},
setStatus: () => {},
setWidget: () => {},
custom: async () => undefined as never,
setEditorText: () => {},
getEditorText: () => "",