combicode 1.7.1 → 1.7.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.2](https://github.com/aaurelions/combicode/compare/combicode-js-v1.7.1...combicode-js-v1.7.2) (2025-01-XX)
4
+
5
+ ### Bug Fixes
6
+
7
+ - **skip-content:** fix total size calculation to exclude files with skipped content
8
+ - **skip-content:** remove extra blank line after placeholder text in output
9
+
3
10
  ## [1.7.1](https://github.com/aaurelions/combicode/compare/combicode-js-v1.7.0...combicode-js-v1.7.1) (2025-01-XX)
4
11
 
5
12
  ### Bug Fixes
package/index.js CHANGED
@@ -329,9 +329,15 @@ async function main() {
329
329
  });
330
330
  }
331
331
 
332
- // Calculate total size of included files
332
+ // Calculate total size of included files (excluding files with skipped content)
333
333
  const totalSizeBytes = includedFiles.reduce(
334
- (acc, file) => acc + file.size,
334
+ (acc, file) => {
335
+ // Don't count files with skipped content in the total size
336
+ if (skipContentSet.has(file.relativePath)) {
337
+ return acc;
338
+ }
339
+ return acc + file.size;
340
+ },
335
341
  0
336
342
  );
337
343
 
@@ -386,7 +392,7 @@ async function main() {
386
392
  outputStream.write(`### **FILE:** \`${relativePath}\`\n`);
387
393
  outputStream.write("```\n");
388
394
  if (shouldSkipContent) {
389
- outputStream.write(`(Content omitted - file size: ${fileObj.formattedSize})\n`);
395
+ outputStream.write(`(Content omitted - file size: ${fileObj.formattedSize})`);
390
396
  totalLines += 1;
391
397
  } else {
392
398
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "combicode",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "A CLI tool to combine a project's codebase into a single file for LLM context.",
5
5
  "main": "index.js",
6
6
  "bin": {