mkctx 4.0.1 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/mkctx.js +2 -2
  2. package/package.json +1 -1
package/bin/mkctx.js CHANGED
@@ -388,8 +388,8 @@ function toMarkdown(files, config) {
388
388
 
389
389
  const sources = files.map(file => {
390
390
  const body = file.content.endsWith('\n') ? file.content : file.content + '\n';
391
- return `### ${file.path}\n\n\`\`\`${file.language}\n${body}\`\`\`\n`;
392
- }).join('\n');
391
+ return `### ${file.path}\n<!-- ${file.lines} lines -->\n\n\`\`\`${file.language}\n${body}\`\`\`\n`;
392
+ }).join('\n---\n');
393
393
 
394
394
  return [
395
395
  config.first_comment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mkctx",
3
- "version": "4.0.1",
3
+ "version": "5.0.1",
4
4
  "description": "Generate markdown context files from your project code and chat with AI using Ollama",
5
5
  "main": "bin/mkctx.js",
6
6
  "bin": {