mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 14:03:49 +00:00
Use XML tags for file operations in branch summary
<read-files> and <modified-files> with one path per line
This commit is contained in:
parent
e7bfb5afe7
commit
04f2fcf004
1 changed files with 3 additions and 3 deletions
|
|
@ -251,17 +251,17 @@ function formatFileOperations(fileOps: FileOperations): string {
|
|||
const sections: string[] = [];
|
||||
|
||||
if (readOnly.length > 0) {
|
||||
sections.push(`**Read:** ${readOnly.join(", ")}`);
|
||||
sections.push(`<read-files>\n${readOnly.join("\n")}\n</read-files>`);
|
||||
}
|
||||
|
||||
if (modified.size > 0) {
|
||||
const files = [...modified].sort();
|
||||
sections.push(`**Modified:** ${files.join(", ")}`);
|
||||
sections.push(`<modified-files>\n${files.join("\n")}\n</modified-files>`);
|
||||
}
|
||||
|
||||
if (sections.length === 0) return "";
|
||||
|
||||
return `\n\n---\n**Files:**\n${sections.join("\n")}`;
|
||||
return `\n\n${sections.join("\n\n")}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue