Open jwmatthews opened 1 week ago
@pranavgaikwad On the IDE side we anticipated this functionality and introduced following Change type inspired by Git extension types.
export interface Change {
// relative file path before the change, may be empty if file was created in this change
original: string;
// relative file path after the change, may be empty if file was deleted in this change
modified: string;
// diff in unified format - tested with git diffs
diff: string;
}
Can you send array of such objects instead of the current response?
// current types
export interface SolutionResponse {
diff: string;
modified_files: string[];
// ...other fields
}
@rszwajko Note that we have not talked about adding the rename feature yet for the mvp (probably won't). But from an api standpoint, this makes sense to me.
This issue is tracking our ability to detect and execute when the LLM tells us that a given file should be renamed/moved.
For this specific example we would want to:
src/main/resources/application.properties
src/main/resources/application.properties
with entries derived from the oldersrc/main/resources/META-INF/persistence.xml
src/main/resources/META-INF/persistence.xml
See src/main/resources/META-INF/persistence.xml from coolstore sample and recommendation to change its contents and rename/move to application.properties
Note this is both rename AND move, as persistence.xml was under
src/main/resources/META-INF/
and we are moving up 1 directory, so no longer underMETA-INF