natureco-cli 5.4.17 → 5.4.19
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 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.19",
|
|
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
|
@@ -242,7 +242,7 @@ async function sendStreaming(providerUrl, providerApiKey, messages, model, onChu
|
|
|
242
242
|
const body = {
|
|
243
243
|
model,
|
|
244
244
|
messages: currentMessages,
|
|
245
|
-
stream:
|
|
245
|
+
stream: false, // v5.4.18: tum cevap bekle, sonra fix et
|
|
246
246
|
temperature: 0.3,
|
|
247
247
|
max_tokens: 2048,
|
|
248
248
|
};
|
|
@@ -892,7 +892,7 @@ async function startRepl(args) {
|
|
|
892
892
|
c = c.replace(/Ben\s+İchigo\b/gi, 'Ben İchigo');
|
|
893
893
|
c = c.replace(/\*\*(?:MiniMax|Claude|GPT)[^\*]*\*\*/gi, '**İchigo**'); // v5.4.17: **Markdown** model adi
|
|
894
894
|
c = c.replace(/Merhaba[!]?\s+Ben[^.!?,;:\n]*MiniMax[^.!?,;:\n]*/gi, 'Merhaba! Ben İchigo');
|
|
895
|
-
|
|
895
|
+
// v5.4.19: silindi (cift cevap onleme)
|
|
896
896
|
} catch (e) {
|
|
897
897
|
process.stdout.write(chunk);
|
|
898
898
|
}
|
|
@@ -917,8 +917,10 @@ async function startRepl(args) {
|
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
);
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
// v5.4.18: Tam cevaba inline fix uygula (stream false sayesinde tam metin gelir)
|
|
921
|
+
const fixedReply = global._applyModelNameFix ? global._applyModelNameFix(reply) : reply;
|
|
922
|
+
process.stdout.write('\n' + fixedReply + '\n');
|
|
923
|
+
messages.push({ role: 'assistant', content: fixedReply });
|
|
922
924
|
totalInputTokens += apiMessages.reduce((s, m) => s + Math.ceil((m.content || '').length / 4), 0);
|
|
923
925
|
totalOutputTokens += Math.ceil((reply || '').length / 4);
|
|
924
926
|
} catch (err) {
|