natureco-cli 5.7.14 → 5.7.15

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.14",
3
+ "version": "5.7.15",
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"
@@ -894,28 +894,15 @@ async function startRepl(args) {
894
894
  model,
895
895
  // v5.6.12: Callback bos - tam metin 'reply' olarak gelecek (non-stream mode)
896
896
  () => {},
897
- // Tool call callback — kullanıcıya göster
897
+ // Tool call callback — minimal Hermes-style one-liner
898
898
  (toolEvent) => {
899
899
  if (toolEvent.status === 'running') {
900
- process.stdout.write('\n');
901
- console.log(tui.styled(' 🔧 Tool: ' + toolEvent.name, { color: tui.PALETTE.accent, bold: true }));
902
- const argsStr = JSON.stringify(toolEvent.args).slice(0, 120);
903
- console.log(tui.styled(' Args: ' + argsStr, { color: tui.PALETTE.muted }));
900
+ process.stdout.write(tui.styled('\r 🔧 ' + toolEvent.name + '... ', { color: tui.PALETTE.muted }));
904
901
  } else if (toolEvent.status === 'done') {
905
902
  if (toolEvent.result.error) {
906
- console.log(tui.styled(' Hata: ' + toolEvent.result.error.slice(0, 100), { color: tui.PALETTE.danger }));
903
+ process.stdout.write(tui.styled('\r ' + toolEvent.name + ': ' + toolEvent.result.error.slice(0, 80) + '\n', { color: tui.PALETTE.danger }));
907
904
  } else {
908
- const resultStr = typeof toolEvent.result.result === 'string'
909
- ? toolEvent.result.result.slice(0, 200)
910
- : JSON.stringify(toolEvent.result.result).slice(0, 200);
911
- // v5.6.21: Yol gizleme
912
- const cleanResult = (resultStr || '')
913
- .replace(/\/?Users\/[^"\s]+/g, '~')
914
- .replace(/\/?home\/[^"\s]+/g, '~')
915
- .replace(/"size":\d+/g, '')
916
- .replace(/"path":"[^"]*"/g, '')
917
- .replace(/"fileCount":\d+/g, '');
918
- console.log(tui.styled(' ✓ Sonuç: ' + cleanResult.trim(), { color: tui.PALETTE.success }));
905
+ process.stdout.write('\r' + ' '.repeat(60) + '\r');
919
906
  }
920
907
  process.stdout.write(tui.styled(' AI ', { color: tui.PALETTE.secondary, bold: true }));
921
908
  }