feat: Add robust error parsing and interactive mode workarounds #3

Merged
phix merged 2 commits from feat/initial-implementation into main 2025-12-29 13:29:37 +01:00
Owner

Summary

  • Add parse_berg_error() to extract meaningful error messages from berg CLI output (handles ANSI codes and box-drawing characters)
  • Add parse_berg_output() to parse JSON responses even when mixed with terminal escape sequences
  • Add run_berg_interactive() workaround for commands that require TTY interaction (pull create, issue view, pull view)
  • Add timeout handling for all berg command executions with configurable defaults
  • Add comprehensive test suite with pytest fixtures capturing real CLI output examples
## Summary - Add `parse_berg_error()` to extract meaningful error messages from berg CLI output (handles ANSI codes and box-drawing characters) - Add `parse_berg_output()` to parse JSON responses even when mixed with terminal escape sequences - Add `run_berg_interactive()` workaround for commands that require TTY interaction (pull create, issue view, pull view) - Add timeout handling for all berg command executions with configurable defaults - Add comprehensive test suite with pytest fixtures capturing real CLI output examples
- Add parse_berg_error() to extract meaningful errors from CLI output
- Add parse_berg_output() to handle JSON mixed with ANSI codes
- Add run_berg_interactive() for commands requiring TTY (pull create, issue view, pull view)
- Add timeout handling for all berg command executions
- Add comprehensive test suite with pytest fixtures for real CLI output examples
phix merged commit 3d59ce10aa into main 2025-12-29 13:29:37 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
phix/codeberg-mcp!3
No description provided.