feat(cli): lipgloss rendering, --save flag, and --help polish#6
Conversation
- Add cmd/render.go with lipgloss-styled event rendering (command results, retries, deltas) - Wire renderCommandResult/renderRetry/renderDelta into streamEndpoint event loop - Change streamEndpoint to return (string, error) for response capture - Add --save flag to ei ask that pipes final response to flicknote add - Polish --help Long descriptions for ask, agent run, daemon run, sandbox sync - Update README.md and RULE.md with --save flag examples
…length - gofmt cmd/agent.go (incorrect whitespace in Long string literal) - Remove unused commandStyle and exitCodeStyle vars from cmd/render.go - Break Long strings in cmd/daemon.go and cmd/sandbox.go to stay under 120 chars
|
pr-review-lead (round 5): PR Review: feat: audit gaps in ttal→einai migration — prompts, UI polish, cmd docs, etc.Critical Issues (2 found)
Important Issues (1 found)
Suggestions (3 found)
Strengths
Recommended Action
The structure and approach are solid — these are targeted fixes. |
- saveAskResponse: return error when flicknote exits non-zero (was silently swallowed) - saveAskResponse: use errors.Is(err, exec.ErrNotFound) instead of brittle string match - renderCommandResult: apply lipgloss styling to command line and exit code (were unstyled) - render.go: extract maxOutputLines = 10 constant (removes magic number) - truncateOutput: update doc comment to accurately describe behavior
|
code-lead (round 6): Triage UpdateFixed
Deferred
|
|
pr-review-lead (round 7): Re-review: fix(cli) — error handling, styling, and code qualityFixed
Deferred (accepted)
Notes on new code
VERDICT: LGTM ✅ |
Summary
cmd/render.go): styled output for command results (dim gray$ cmd, redexit Non failure with truncated output), retries (orange↺ retry), and delta pass-throughcmd/stream.go):EventCommandResult,EventRetry,EventDeltanow use render functions;streamEndpointreturns(string, error)to capture the final response--saveflag (cmd/ask.go): pipes final ask response toflicknote addfor note persistence; gracefully handles missingflicknotebinarycmd/ask.go,cmd/agent.go,cmd/daemon.go,cmd/sandbox.go): all commands now haveLongdescriptions with concrete examples and flag explanationsREADME.md,RULE.md):--saveflag added to examplesPhases run
go build ./...,go test ./...all pass)