natureco-cli 5.14.4 → 5.14.5

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.14.4",
3
+ "version": "5.14.5",
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"
@@ -729,9 +729,20 @@ async function startRepl(args) {
729
729
  }
730
730
  console.log(tui.C.muted(' Komutlar: ') + tui.C.yellow('/help') + tui.C.muted(' · ') + tui.C.yellow('/memory') + tui.C.muted(' · ') + tui.C.yellow('/sessions') + tui.C.muted(' · ') + tui.C.yellow('/exit'));
731
731
  console.log('');
732
- // v5.4.7: Hard-coded kimlik
732
+ // v5.4.7: Hard-coded kimlik — v5.14.5: memory fact'lerinden kullanici adini tespit et
733
733
  const displayBotName = memory.botName || 'Asistan';
734
- const displayUserName = userName || 'kanka';
734
+ const nameFromFact = (() => {
735
+ const facts = memory.facts || [];
736
+ for (const f of facts) {
737
+ const v = (f.value || f || '').trim();
738
+ const lv = v.toLowerCase();
739
+ // "Kullanici adi: Gencay" veya "Kullanıcı adı Gencay" veya "isim: Gencay"
740
+ const match = lv.match(/(?:kullanici\s*adi|kullanıcı\s*adı|isim|name|adı?)\s*:?\s*(.+)/);
741
+ if (match) return match[1].trim();
742
+ }
743
+ return null;
744
+ })();
745
+ const displayUserName = memory.name || nameFromFact || memory.nickname || 'kanka';
735
746
  console.log(tui.C.brand(' 👋 Ben ' + displayBotName + ', ' + displayUserName + '. Sen nasilsin?'));
736
747
  console.log('');
737
748