supsrc 2025-10-09
Decomposed event buffer into package, added console output system and headless design doc
44 files · 4,879+ · 747-

Event buffer package decomposition

6 files changed
  • buffer.py Removed monolithic buffer module (429 lines deleted)
  • __init__.py New package init (12 lines)
  • converters.py New module (185 lines) for event conversion logic
  • core.py New module (201 lines) for core buffer logic
  • grouping.py New module (87 lines) for event grouping logic
  • streaming.py New module (226 lines) for streaming output
  • Decomposed monolithic events/buffer.py into events/buffer/ package with core.py, converters.py, grouping.py, and streaming.py decouple behavioral
    6 files
    • buffer.py
    • __init__.py
    • converters.py
    • core.py
    • grouping.py
    • streaming.py

Console output formatting system

7 files changed
  • __init__.py New package init
  • console_formatter.py New module (274 lines) for rich terminal output formatting
  • emoji_map.py New module (116 lines) mapping event types and statuses to emoji indicators
  • __init__.py New subpackage init
  • base.py New base class (25 lines) for extensible output formatting
  • compact.py New compact format (207 lines) for single-line output
  • table.py New table format (356 lines) for rich table-based output
  • Added output/ package with console_formatter.py, emoji_map.py, and verbose_formats/ subpackage for headless/non-TUI mode output instantiate behavioral
    6 files
    • __init__.py
    • console_formatter.py
    • emoji_map.py
    • base.py
    • compact.py
    • table.py

Event timer module

1 file changed
  • timer.py New module (24 lines) for centralized timer management

Headless event stream design document

1 file changed
  • headless-event-stream-plan.md New document (1016 lines) detailing the architecture for headless mode with streaming event output
  • Added docs/headless-event-stream-plan.md detailing the architecture for headless mode with streaming event output specify behavioral
    1 file
    • headless-event-stream-plan.md

CLI and orchestrator updates

14 files changed
  • main.py Expanded CLI main with additional command options
  • utils.py Updated CLI utilities
  • watch_cmds.py Updated watch commands with new output mode support
  • base.py Minor git engine adjustments
  • orchestrator.py Updated orchestrator with improved event streaming integration
  • buffer_events.py Minor buffer event adjustments
  • defaults.py Minor defaults adjustment
  • feed_table.py Minor import fix
  • __init__.py Minor import fix
  • file_utils.py Minor import fix
  • formatters.py Minor import fix
  • monitor.py Minor import fix
  • CLAUDE.md Expanded project documentation
  • README.md Minor README update
  • Updated CLI with new output mode support and expanded watch commands margin behavioral
    3 files
    • main.py
    • utils.py
    • watch_cmds.py
  • Updated orchestrator with improved event streaming integration margin behavioral
    1 file
    • orchestrator.py

Testing additions

15 files changed
  • test_console_verbose_output.py New file (403 lines) for console output testing
  • __init__.py New test package init
  • test_console_formatter.py New file (552 lines) for console formatter testing
  • test_verbose_formats.py New file (193 lines) for output format testing
  • test_event_buffer_core.py Updated for new buffer package structure
  • test_event_buffer_grouping.py Updated for new buffer package structure
  • test_event_buffer_patterns.py Updated for new buffer package structure
  • test_atomic_file_operations.py Updated atomic operation test imports
  • test_vscode_atomic_save.py Updated VS Code test imports
  • test_event_stream.sh New shell script (212 lines) for event stream testing
  • test_changes.txt Test artifact
  • test_file.txt Test artifact
  • test_timer_trigger.txt Test artifact
  • timer_test_file.txt Test artifact
  • uv.lock Lockfile refresh
  • Added test_console_verbose_output.py, test_console_formatter.py, and test_verbose_formats.py for the new output system qualify behavioral
    3 files
    • test_console_verbose_output.py
    • test_console_formatter.py
    • test_verbose_formats.py
  • Added test_event_stream.sh shell script for event stream testing qualify behavioral
    1 file
    • test_event_stream.sh