refactor(packages/coding-agent): restructured tool and execution rendering

- Unified edit, ask, ast-edit, todo, write, and inspect outputs using framedBlock.
- Wrapped failure and warning cases in framed blocks with clearer status states.
- Standardized frame body rendering by trimming blank lines and clipping content width.
- Simplified tool execution layout by removing dynamic padding and background helpers.
This commit is contained in:
can1357
2026-06-07 05:13:58 +02:00
parent eedf9bc6a8
commit 8c62c77e00
12 changed files with 592 additions and 562 deletions
@@ -4,7 +4,10 @@
*
* These keep the transcript terse — one status line plus, for `retain`, one
* `Remember: …` line per stored item — instead of the generic JSON arg tree,
* which exploded multi-line memory blobs into an unreadable wall.
* which exploded multi-line memory blobs into an unreadable wall. The tool
* container is a transparent passthrough, so these renderers stay frameless:
* a status line with a couple of dim bullets reads far cleaner than boxing a
* one-line memory note.
*/
import type { Component } from "@oh-my-pi/pi-tui";
import { Text } from "@oh-my-pi/pi-tui";