natureco-cli 5.7.4 → 5.7.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.7.
|
|
3
|
+
"version": "5.7.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"
|
package/src/commands/repl.js
CHANGED
|
@@ -728,13 +728,6 @@ async function startRepl(args) {
|
|
|
728
728
|
const line = restoreNewlines(input).trim();
|
|
729
729
|
if (!line) { rl.prompt(); return; }
|
|
730
730
|
|
|
731
|
-
// Çok satırlı paste display'ini temizle (readline tek satır modeli
|
|
732
|
-
// yüzünden terminalde biriken eski satırlar kalıcı oluyordu).
|
|
733
|
-
const newlineCount = (line.match(/\n/g) || []).length;
|
|
734
|
-
if (newlineCount > 0) {
|
|
735
|
-
process.stdout.write(`\x1b[${newlineCount + 1}A\x1b[J`);
|
|
736
|
-
}
|
|
737
|
-
|
|
738
731
|
// Slash komutlar
|
|
739
732
|
if (line.startsWith('/')) {
|
|
740
733
|
const parts = line.slice(1).split(/\s+/);
|
|
@@ -80,12 +80,13 @@ function isLoneEnterKeystroke(str) {
|
|
|
80
80
|
function escapeEmbeddedNewlines(str) {
|
|
81
81
|
if (!str || isLoneEnterKeystroke(str)) return str;
|
|
82
82
|
const newlineCount = (str.match(/\r\n|\r|\n/g) || []).length;
|
|
83
|
-
// Terminal-agnostik paste tespiti:
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
//
|
|
83
|
+
// Terminal-agnostik paste tespiti:
|
|
84
|
+
// Gerçek terminalde tuş vuruşları tek tek karakter olarak gelir.
|
|
85
|
+
// İçinde satır sonu BARINDIRAN ve sadece bir satır sonundan İBARET
|
|
86
|
+
// OLMAYAN her chunk paste'tir — kaç satır olduğu fark etmez.
|
|
87
|
+
// (Tek istisna: test ortamında PassThrough kullanılır, orada da
|
|
88
|
+
// testler karakter-karakter yazacak şekilde güncellenmiştir.)
|
|
87
89
|
if (newlineCount === 0) return str;
|
|
88
|
-
if (newlineCount === 1 && str.length < 100) return str;
|
|
89
90
|
return str.replace(/\r\n|\r|\n/g, NEWLINE_PLACEHOLDER);
|
|
90
91
|
}
|
|
91
92
|
|