natureco-cli 5.52.0 → 5.52.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.52.0",
3
+ "version": "5.52.1",
4
4
  "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -54,17 +54,35 @@ async function dna(pathArg, opts = {}) {
54
54
  console.log(' ' + chalk.gray(`Taranan dosya: ${data.file_count || 0}`));
55
55
  console.log('');
56
56
 
57
+ // Anlama skoru (1-5): anket varsa onu, yoksa otomatik tahmini kullan
58
+ const uScore = (f) => (f.understanding != null ? f.understanding : f.understanding_estimate);
59
+ const uCol = (v) => (v >= 4 ? chalk.green : v >= 2.5 ? chalk.yellow : chalk.red);
60
+
57
61
  // En yüksek YZ olasılıklı 5 dosya
58
62
  const top = (data.files || []).slice(0, 5);
59
63
  if (top.length) {
60
64
  console.log(' ' + chalk.gray('En yüksek YZ olasılıklı dosyalar:'));
61
65
  for (const f of top) {
62
66
  const fp = Math.round((f.ai_probability || 0) * 100);
63
- const u = f.understanding == null ? '' : chalk.gray(` anlama %${Math.round(f.understanding * 100)}`);
67
+ const uv = uScore(f);
68
+ const u = uv == null ? '' : ' ' + uCol(uv)(`anlama ${uv.toFixed(1)}/5`);
64
69
  console.log(' ' + tone(fp).bold(`%${String(fp).padStart(3)}`) + ' ' + chalk.white(f.file) + u);
65
70
  }
66
71
  console.log('');
67
72
  }
73
+
74
+ // 🧠 Anlama borcu — AI-yoğun ama az-anlaşılan dosyalar (farklılaştırıcı)
75
+ const debt = (data.files || [])
76
+ .filter((f) => { const v = uScore(f); return v != null && v < 3 && (f.ai_probability || 0) >= 0.3; })
77
+ .sort((a, b) => uScore(a) - uScore(b))
78
+ .slice(0, 5);
79
+ if (debt.length) {
80
+ console.log(' ' + chalk.bold('🧠 Anlama borcu') + chalk.gray(' (AI yazdı ama ekip muhtemelen anlamıyor):'));
81
+ for (const f of debt) {
82
+ console.log(' ' + chalk.red(`${uScore(f).toFixed(1)}/5`) + ' ' + chalk.white(f.file) + chalk.gray(` (YZ %${Math.round(f.ai_probability * 100)})`));
83
+ }
84
+ console.log('');
85
+ }
68
86
  console.log(chalk.gray(' Ayrıntı için: ') + chalk.cyan('codedna scan') + chalk.gray(' · Ekosistem: ') + chalk.cyan('natureco.me/ekosistem') + '\n');
69
87
  }
70
88