natureco-cli 5.14.4 → 5.14.6
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 +1 -1
- package/src/commands/repl.js +14 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.6",
|
|
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"
|
package/src/commands/repl.js
CHANGED
|
@@ -691,7 +691,7 @@ async function startRepl(args) {
|
|
|
691
691
|
// System prompt oluştur (memory + identity + persistent bağlam)
|
|
692
692
|
// v5.6.5: Kucuk model tespiti (Groq, Mistral Small, Ollama) - SOUL injection skip
|
|
693
693
|
const botName = memory.botName || 'Asistan';
|
|
694
|
-
const userName = memory.name || memory.nickname ||
|
|
694
|
+
const userName = memory.name || memory.nickname || cfg.userName;
|
|
695
695
|
const isSmallModel = (cfg.providerUrl || '').includes('groq.com') ||
|
|
696
696
|
(cfg.providerUrl || '').includes('mistral.ai') ||
|
|
697
697
|
(cfg.providerUrl || '').includes('localhost') ||
|
|
@@ -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
|
|
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 || cfg.userName;
|
|
735
746
|
console.log(tui.C.brand(' 👋 Ben ' + displayBotName + ', ' + displayUserName + '. Sen nasilsin?'));
|
|
736
747
|
console.log('');
|
|
737
748
|
|