natureco-cli 5.7.7 → 5.7.9
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.9",
|
|
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,11 +728,12 @@ 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
|
|
732
|
-
//
|
|
731
|
+
// Çok satırlı paste: placeholder'lar output'tan gizlendiği için
|
|
732
|
+
// terminalde tek satırda birikmiş olan paste ekosunu temizle,
|
|
733
|
+
// yerine özet yaz.
|
|
733
734
|
const newlineCount = (line.match(/\n/g) || []).length;
|
|
734
735
|
if (newlineCount > 0) {
|
|
735
|
-
process.stdout.write(`\x1b[
|
|
736
|
+
process.stdout.write(`\x1b[1A\x1b[J[Pasted ~${newlineCount + 1} lines]\n`);
|
|
736
737
|
}
|
|
737
738
|
|
|
738
739
|
// Slash komutlar
|
|
@@ -183,9 +183,11 @@ function restoreNewlines(line) {
|
|
|
183
183
|
/**
|
|
184
184
|
* createOutputFilter — Readline'ın output'unda dolaşan placeholder
|
|
185
185
|
* karakterlerini (NEWLINE_PLACEHOLDER) TAMAMEN gizleyen bir wrapper.
|
|
186
|
-
* Kullanıcı terminalde
|
|
187
|
-
*
|
|
188
|
-
*
|
|
186
|
+
* Kullanıcı terminalde ne placeholder yazılarını ne de satır sonlarını
|
|
187
|
+
* görür — paste içeriği terminal ekosunda yer kaplamaz.
|
|
188
|
+
*
|
|
189
|
+
* Paste'in içeriği terminalde görünmez; repl.js line handler'ı paste
|
|
190
|
+
* algılandığında "[Pasted ~N lines]" gibi kısa bir özet yazar.
|
|
189
191
|
*
|
|
190
192
|
* Kullanım:
|
|
191
193
|
* const outFilter = createOutputFilter(process.stdout);
|
|
@@ -218,7 +220,7 @@ function createOutputFilter(output = process.stdout) {
|
|
|
218
220
|
partial += ch;
|
|
219
221
|
i++;
|
|
220
222
|
if (partial === NEWLINE_PLACEHOLDER) {
|
|
221
|
-
// Placeholder'ı terminalde
|
|
223
|
+
// Placeholder'ı terminalde gösterme — output'tan tamamen çıkar
|
|
222
224
|
partial = '';
|
|
223
225
|
}
|
|
224
226
|
} else {
|