natureco-cli 5.7.15 → 5.7.16
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 +6 -3
- package/src/utils/skill-index.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.16",
|
|
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
|
@@ -567,10 +567,13 @@ async function startRepl(args) {
|
|
|
567
567
|
|
|
568
568
|
// === TOOL KURALLARI ===
|
|
569
569
|
`ONEMLI: <tool_call>, <invoke>, function_call veya benzeri XML/JSON formatinda tool cagirma SIMULE ETME. Sadece duz metin cevap ver. Islem yapmak gerekirse tool'u gercekten cagir.`,
|
|
570
|
-
`KRITIK:
|
|
571
|
-
`KRITIK:
|
|
570
|
+
`KRITIK: Skill index'teki skill'lerden biri gorevle eslesiyorsa mutlaka skill_view(name) ile yukle ve talimatlarini uygula.`,
|
|
571
|
+
`KRITIK: Kullanici kisisel bilgi verdiginde (ad, tercih, is, vb.) MUTLAKA memory(action=add, target=user, content=...) ile kaydet. Boylece sonraki oturumlarda hatirlayabilirsin.`,
|
|
572
|
+
`KRITIK: Kendinle ilgili notlari (ortam bilgisi, proje kurallari, arac ipuclari) memory(action=add, target=memory, content=...) ile kaydet.`,
|
|
573
|
+
`KRITIK: Kullanici adini veya hitap seklinin degismesini istediginde memory(action=add, target=user, content=...) ile kaydet.`,
|
|
574
|
+
`Kullanici hakkinda bilgin gerektiginde memory(action=list, target=user) ile hatirlanani getir.`,
|
|
572
575
|
|
|
573
|
-
// === HAFIZA ENTEGRASYONU ===
|
|
576
|
+
// === HAFIZA ENTEGRASYONU (eski JSON memory) ===
|
|
574
577
|
memory.facts && memory.facts.length > 0
|
|
575
578
|
? `Kullanici hakkinda bildiklerin (MUTLAKA kullan, dogal sekilde referans ver): ${memory.facts.slice(0, 8).map(f => f.value || f).join('; ')}`
|
|
576
579
|
: '',
|
package/src/utils/skill-index.js
CHANGED
|
@@ -66,8 +66,8 @@ function buildSkillIndex() {
|
|
|
66
66
|
if (!byCategory[s.category]) byCategory[s.category] = [];
|
|
67
67
|
byCategory[s.category].push(s);
|
|
68
68
|
}
|
|
69
|
-
const lines = ['## Skills'];
|
|
70
|
-
lines.push('Before replying, scan the skills below. If a skill matches your task, load it with skill_view(name) and follow its instructions.');
|
|
69
|
+
const lines = ['## Skills (mandatory)'];
|
|
70
|
+
lines.push('Before replying, scan the skills below. If a skill matches or is even partially relevant to your task, you MUST load it with skill_view(name) and follow its instructions. Err on the side of loading — it is always better to have context you do not need than to miss critical steps, pitfalls, or established workflows.');
|
|
71
71
|
lines.push('<available_skills>');
|
|
72
72
|
for (const [cat, catSkills] of Object.entries(byCategory)) {
|
|
73
73
|
lines.push(` ${cat}:`);
|