context-squeezer-cli 1.0.0 → 1.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/dist/packager.js +3 -5
  2. package/package.json +1 -1
package/dist/packager.js CHANGED
@@ -65,6 +65,8 @@ export function packProject(dirPath) {
65
65
  for (const file of files) {
66
66
  const fullPath = path.join(currentDir, file);
67
67
  const stat = fs.statSync(fullPath);
68
+ // Modüler kontrol: Dosya veya klasörün engellenip engellenmeyeceğini kontrol eder
69
+ // (Çıktı .txt dosyaları da artık tamamen ignorer.ts içinde yakalanıyor)
68
70
  if (shouldIgnore(fullPath, dirPath)) {
69
71
  continue;
70
72
  }
@@ -73,10 +75,6 @@ export function packProject(dirPath) {
73
75
  }
74
76
  else if (stat.isFile()) {
75
77
  const relativePath = path.relative(dirPath, fullPath);
76
- // Çıktı ve test dosyalarının kendi kendini taramasını engeller
77
- if (file.endsWith('.txt') && (file === 'ai_context.txt' || file === 'kodlarim.txt' || file === 'test_output.txt')) {
78
- continue;
79
- }
80
78
  // PERFORMANS & GÜVENLİK: Belirlenen boyuttan büyük dosyaları atlar
81
79
  if (stat.size > MAX_FILE_SIZE_BYTES) {
82
80
  console.warn(`⚠️ Skipped large file (over 500KB): ${relativePath}`);
@@ -97,7 +95,7 @@ export function packProject(dirPath) {
97
95
  combinedContent += `\n--- END OF FILE: ${relativePath} ---\n`;
98
96
  }
99
97
  catch (e) {
100
- // Okunamayan dosyaları es geç
98
+ // Okunamayan dosyalarda çökmesini önlemek için es geçiyoruz
101
99
  }
102
100
  }
103
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-squeezer-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lightweight CLI that packs a repository into a single, LLM-optimized context file.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",