natureco-cli 5.7.3 → 5.7.4
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 +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.4",
|
|
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,6 +728,13 @@ 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
|
+
|
|
731
738
|
// Slash komutlar
|
|
732
739
|
if (line.startsWith('/')) {
|
|
733
740
|
const parts = line.slice(1).split(/\s+/);
|