UNPKG

repomix

Version:

A tool to pack repository contents to single file for AI consumption

90 lines (75 loc) 1.41 kB
export const getXmlTemplate = () => { return ` {{#if fileSummaryEnabled}} {{{generationHeader}}} <file_summary> This section contains a summary of this file. <purpose> {{{summaryPurpose}}} </purpose> <file_format> {{{summaryFileFormat}}} 5. Multiple file entries, each consisting of: - File path as an attribute - Full contents of the file </file_format> <usage_guidelines> {{{summaryUsageGuidelines}}} </usage_guidelines> <notes> {{{summaryNotes}}} </notes> </file_summary> {{/if}} {{#if headerText}} <user_provided_header> {{{headerText}}} </user_provided_header> {{/if}} {{#if directoryStructureEnabled}} <directory_structure> {{{treeString}}} </directory_structure> {{/if}} {{#if filesEnabled}} <files> This section contains the contents of the repository's files. {{#each processedFiles}} <file path="{{{this.path}}}"> {{{this.content}}} </file> {{/each}} </files> {{/if}} {{#if gitDiffEnabled}} <git_diffs> <git_diff_work_tree> {{{gitDiffWorkTree}}} </git_diff_work_tree> <git_diff_staged> {{{gitDiffStaged}}} </git_diff_staged> </git_diffs> {{/if}} {{#if gitLogEnabled}} <git_logs> {{#each gitLogCommits}} <git_log_commit> <date>{{{this.date}}}</date> <message>{{{this.message}}}</message> <files> {{#each this.files}} {{{this}}} {{/each}} </files> </git_log_commit> {{/each}} </git_logs> {{/if}} {{#if instruction}} <instruction> {{{instruction}}} </instruction> {{/if}} `; };