-
Notifications
You must be signed in to change notification settings - Fork 159
Show file change diffs in the Rill developer AI response #8436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
add package. Update package-lock.json
ericpgreen2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, we'll have to reconcile the message rendering code in this PR with the message rendering refactor in this PR, but I'm happy to merge this as-is and do that myself.
Though before merge, tagging @begelundmuller for the backend review.
| /** | ||
| * Data structure for write_file tool call arguments | ||
| */ | ||
| export interface WriteFileCallData { | ||
| path: string; | ||
| contents: string; | ||
| } | ||
|
|
||
| /** | ||
| * Data structure for write_file tool result | ||
| */ | ||
| export interface WriteFileResultData { | ||
| diff?: string; | ||
| is_new_file?: boolean; | ||
| resources?: Array<{ | ||
| kind: string; | ||
| name: string; | ||
| reconcile_status: string; | ||
| reconcile_error: string; | ||
| }>; | ||
| parse_error?: string; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@begelundmuller can we define these types in a protobuf file & generate Typescript types for the frontend to use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets take that as a follow up.
a2a6484 to
052398b
Compare
|
Merging for now to be available for tomorrow's demo. |
* Sample show file change diffs in the AI response add package. Update package-lock.json * Touch-up CSS * Fix CI --------- Co-authored-by: Eric P Green <ericpgreen2@gmail.com> Co-authored-by: Aditya Hegde <adityahegderocks@gmail.com>
This is a prototype to show edit diff in AI responses. The UI code needs a deeper review as its claude gen.
Checklist: