repomix
Version:
A tool to pack repository contents to single file for AI consumption
85 lines (66 loc) • 1.35 kB
JavaScript
import { registerHandlebarsHelpers } from '../outputStyleUtils.js';
registerHandlebarsHelpers();
export const getMarkdownTemplate = () => {
return `
{{
{{{generationHeader}}}
{{{summaryPurpose}}}
{{{summaryFileFormat}}}
5. Multiple file entries, each consisting of:
a. A header with the file path (## File: path/to/file)
b. The full contents of the file in a code block
## Usage Guidelines
{{{summaryUsageGuidelines}}}
{{{summaryNotes}}}
{{/if}}
{{
{{{headerText}}}
{{/if}}
{{
\`\`\`
{{{treeString}}}
\`\`\`
{{/if}}
{{
{{
{{{../markdownCodeBlockDelimiter}}}{{{getFileExtension this.path}}}
{{{this.content}}}
{{{../markdownCodeBlockDelimiter}}}
{{/each}}
{{/if}}
{{
\`\`\`diff
{{{gitDiffWorkTree}}}
\`\`\`
\`\`\`diff
{{{gitDiffStaged}}}
\`\`\`
{{/if}}
{{
{{
**Message:** {{{this.message}}}
**Files:**
{{
- {{{this}}}
{{/each}}
{{/each}}
{{/if}}
{{
{{{instruction}}}
{{/if}}
`;
};