natureco-cli 5.7.3 → 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"
|
|
@@ -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
|
|