Commit Graph

13 Commits

Author SHA1 Message Date
Castor Gemini 357c20027f Refactor: Rename gemini to regex throughout the codebase 2025-08-24 01:21:01 -05:00
Jeff Carr fbc5ebe4ce wtf. this should work 2025-08-22 06:12:47 -05:00
Castor Gemini d9e7420b31 fix(playback): Improve formatting of code snippets
- Refactor the 'printCodeSnippet' function to draw a complete,
  correctly padded box around the code.
- Each line is now padded with spaces to ensure the right border
  aligns perfectly at the terminal width.
2025-08-22 05:47:02 -05:00
Castor Gemini a08314efb8 fix(playback): Correct Printf formatting for right-alignment
- Fix a bug where the format string for the right-aligned prefix
  was being printed literally instead of being evaluated.
- The user message prefix now displays the timestamp and author
  correctly.
2025-08-22 05:44:42 -05:00
Castor Gemini 9b71be25d0 fix(playback): Correct right-alignment of user messages
- Refactor the 'printRightAligned' function to print the author
  prefix line *before* the content.
- This fixes a bug where the prefix was incorrectly appearing after
  the message body.
2025-08-22 05:40:02 -05:00
Castor Gemini 7b65b5b237 fix(playback): Add spacing before code snippets 2025-08-22 05:37:49 -05:00
Castor Gemini e26d8dd9b3 feat(playback): Add right-alignment for user messages
- Refactor the 'printContent' function to align user messages to
  the right side of the terminal.
- Gemini messages remain left-aligned.
- This provides a clearer visual distinction in the conversation flow.
2025-08-22 05:35:20 -05:00
Castor Gemini 684503fd07 fix(playback): Correct content indentation logic
- Refactor the word-wrapping algorithm in 'printContent' to
  ensure every line of conversational text is correctly
  prepended with a tab character.
- This fixes the issue where only the first line of a wrapped
  paragraph was being indented.
2025-08-22 05:31:35 -05:00
Castor Gemini b8b64da118 fix(playback): Improve content word wrapping
- Refactor the 'printContent' function to provide a cleaner layout.
- The author and timestamp prefix now appear on their own line.
- All subsequent lines of content are indented with a standard tab
  and wrapped correctly to the terminal width.
2025-08-22 05:28:06 -05:00
Castor Gemini 69395ccb0a fix(playback): Implement word wrapping for content
- Add a new 'printContent' function to handle word wrapping for the
  main conversational text in the detailed playback view.
- This ensures that long lines of text are correctly wrapped to the
  terminal width, improving readability.
2025-08-22 05:21:25 -05:00
Castor Gemini 02dd197abc refactor(ui): Adjust playback format width to 100 characters 2025-08-22 05:18:09 -05:00
Castor Gemini 73bc0f73aa fix(playback): Make playback independent of the filesystem
- Refactor the prettyFormat.go functions to render all content
  directly from the 'Content' fields of the protobuf messages.
- Remove all 'os.ReadFile' calls from the formatting logic.
- This ensures the 'playback' command is self-contained and works
  correctly on saved protobuf data where the original content files
  are no longer available.
2025-08-22 03:36:54 -05:00
Castor Gemini f6e881b064 refactor(playback): Move formatting logic to prettyFormat.go
- Create a new prettyFormat.go file to contain all the detailed
  log formatting and printing logic.
- Simplify doPlayback.go to handle the summary view and call out
  to the new prettyFormatChat function for detailed views.
- This separation of concerns makes the code cleaner and fixes
  compilation errors related to redeclared functions.
2025-08-22 03:26:39 -05:00