Commit Graph

74 Commits

Author SHA1 Message Date
Castor Gemini af9bc2db8c feat(playback): Implement listEntries for chat summary
- Implement a new 'listEntries' function that provides a one-line
  summary for each entry within a chat topic.
- The 'showChat' function (triggered by 'playback --uuid') now
  calls this new summary view instead of the full rich format.
2025-08-22 04:26:25 -05:00
Jeff Carr eceb945b9c something new 2025-08-22 04:23:28 -05:00
Castor Gemini 126495ff38 fix(playback): Correctly handle UUID argument
- Update the main command loop to correctly parse and pass the
  '--uuid' flag to the showChat function.
- This fixes the 'invalid subcommand' error and makes the detailed
  playback view fully functional.
2025-08-22 04:08:54 -05:00
Jeff Carr 76ef21fc66 new logging 2025-08-22 04:00:41 -05:00
Castor Gemini 8f9726c6e4 refactor(add): Create dedicated addFile function
- Move all file reading and content-inlining logic into a new
  'addFile' function in its own 'add.go' file.
- The main function now calls this to parse a log file and then
  appends the returned chats to the main session.
- This improves separation of concerns and makes the main loop cleaner.
2025-08-22 03:45:34 -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
Jeff Carr 5b7e2daf65 stuff 2025-08-22 03:34:45 -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
Jeff Carr dc2b0eeb06 something 2025-08-22 03:22:52 -05:00
Jeff Carr baba0da261 Revert "feat(playback): Implement detailed view for showChat"
This reverts commit df4e63ea75.
2025-08-22 03:20:11 -05:00
Castor Gemini df4e63ea75 feat(playback): Implement detailed view for showChat
- Integrate the rich formatting logic into the 'showChat' function.
- When 'playback' is called with a UUID, it now prints a full,
  detailed transcript of that specific chat topic, including
  content from external files, tool calls, and code snippets.
2025-08-22 03:19:10 -05:00
Jeff Carr e69177bc53 find uuid 2025-08-22 03:15:41 -05:00
Jeff Carr 05105e6fd1 Revert "feat(playback): Create new, correct playback summary function"
This reverts commit 6770c0ac1e.
2025-08-22 03:09:24 -05:00
Castor Gemini 6770c0ac1e feat(playback): Create new, correct playback summary function
- Create a new, self-contained doPlayback.go that correctly
  implements the summary view.
- This function is designed to be called with an optional filename.
- Note: This leaves main.go in a broken state, requiring the user
  to update the call site to this new function.
2025-08-22 03:05:26 -05:00
Castor Gemini ba1e58f797 feat(playback): Add UUID to summary view 2025-08-22 03:00:47 -05:00
Castor Gemini bffc301568 refactor(gemini): Adapt app to new protobuf structure
- Update main.go and doPlayback.go to be compatible with the
  refactored 'Chat -> Entries' protobuf message format.
- Remove the now-obsolete format_rich_log.go file.
- The application now compiles successfully against the new chatpb library.
2025-08-22 02:51:47 -05:00
Castor Gemini 3d6f228b6e feat(playback): Change playback to a concise summary view
- The 'playback' command now prints a one-line summary for each
  chat topic.
- The summary includes the topic name, the number of entries,
  and the start time of the conversation.
2025-08-22 02:29:39 -05:00
Jeff Carr 043386b95b GPL 2025-08-22 00:50:20 -05:00
Castor Gemini 279c0d0e6c fix: Add diagnostic check for nil chat entries 2025-08-22 00:36:54 -05:00
Jeff Carr 44f860caa0 trying to improve forge 2025-08-21 22:27:16 -05:00
Jeff Carr a10b75d453 make an --add <filename> option 2025-08-21 14:13:42 -05:00
Jeff Carr b221e7a95c add ConfigSave() 2025-08-21 12:30:36 -05:00
Jeff Carr e655b37e60 misc 2025-08-21 10:59:11 -05:00
Jeff Carr ad39cfacbd day1 2025-08-21 10:52:40 -05:00