natureco-cli 2.16.2 → 2.16.3

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": "2.16.2",
3
+ "version": "2.16.3",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
@@ -211,7 +211,7 @@ body::before{
211
211
  <div class="header-bot-name" id="header-bot-name">Nature Bot</div>
212
212
  <div class="header-bot-model" id="header-bot-model">NatureCo</div>
213
213
  </div>
214
- <div class="version-badge" id="version-badge">v2.16.2</div>
214
+ <div class="version-badge" id="version-badge">v2.16.3</div>
215
215
  </div>
216
216
  <div class="messages" id="messages"></div>
217
217
  <div class="input-area">
@@ -341,7 +341,7 @@ function dashboard(action) {
341
341
  apiKey: cfg.apiKey,
342
342
  defaultBot: cfg.defaultBot,
343
343
  defaultBotId: cfg.defaultBotId,
344
- version: 'v2.16.2',
344
+ version: 'v2.16.3',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
@@ -1,79 +1,136 @@
1
1
  const chalk = require('chalk');
2
+ const { getConfig } = require('../utils/config');
2
3
 
3
4
  function help() {
4
- console.log(chalk.green.bold('\n╭─ NatureCo CLI ─╮'));
5
- console.log(chalk.green('│ AI Bot Terminal │'));
6
- console.log(chalk.green('╰─────────────────╯\n'));
7
-
8
- console.log(chalk.cyan.bold('Commands:\n'));
9
-
10
- const commands = [
11
- { cmd: 'natureco', desc: 'Show gateway screen (runs setup if needed)' },
12
- { cmd: 'natureco setup', desc: 'Run initial setup wizard' },
13
- { cmd: 'natureco login', desc: 'Login with your API key' },
14
- { cmd: 'natureco logout', desc: 'Logout and remove credentials' },
15
- { cmd: 'natureco bots', desc: 'List your AI bots' },
16
- { cmd: 'natureco chat <bot-name>', desc: 'Start chat with a bot' },
17
- { cmd: 'natureco chat <bot> --resume', desc: 'Resume latest session' },
18
- { cmd: 'natureco ask "<question>"', desc: 'Ask a single question' },
19
- { cmd: 'natureco run <script.md>', desc: 'Run a markdown script' },
20
- { cmd: 'natureco init', desc: 'Initialize project' },
21
- { cmd: 'natureco skills [action]', desc: 'Manage skills' },
22
- { cmd: 'natureco mcp [action]', desc: 'Manage MCP servers' },
23
- { cmd: 'natureco commands [action]', desc: 'Manage custom commands' },
24
- { cmd: 'natureco cron [action]', desc: 'Manage cron jobs' },
25
- { cmd: 'natureco hooks [action]', desc: 'Manage hooks' },
26
- { cmd: 'natureco sessions [action]', desc: 'Manage chat sessions' },
27
- { cmd: 'natureco git <action>', desc: 'Git integration' },
28
- { cmd: 'natureco tasks [action]', desc: 'Manage background tasks' },
29
- { cmd: 'natureco config <action>', desc: 'Manage configuration' },
30
- { cmd: 'natureco update', desc: 'Check for updates' },
31
- { cmd: 'natureco help', desc: 'Show this help message' },
32
- ];
33
-
34
- commands.forEach(({ cmd, desc }) => {
35
- console.log(chalk.yellow(` ${cmd.padEnd(30)}`), chalk.gray(desc));
36
- });
37
-
38
- console.log(chalk.cyan.bold('\n\nExamples:\n'));
39
- console.log(chalk.gray(' $ natureco'));
40
- console.log(chalk.gray(' $ natureco login'));
41
- console.log(chalk.gray(' $ natureco init'));
42
- console.log(chalk.gray(' $ natureco bots'));
43
- console.log(chalk.gray(' $ natureco chat "Nature Bot V3"'));
44
- console.log(chalk.gray(' $ natureco chat "Bot" --resume'));
45
- console.log(chalk.gray(' $ natureco ask "bu haftaki görevlerimi listele"'));
46
- console.log(chalk.gray(' $ natureco run script.md'));
47
- console.log(chalk.gray(' $ natureco skills install github'));
48
- console.log(chalk.gray(' $ natureco skills install clawhub:github'));
49
- console.log(chalk.gray(' $ natureco commands create review'));
50
- console.log(chalk.gray(' $ natureco cron add'));
51
- console.log(chalk.gray(' $ natureco cron start'));
52
- console.log(chalk.gray(' $ natureco hooks create pre-message'));
53
- console.log(chalk.gray(' $ natureco sessions list'));
54
- console.log(chalk.gray(' $ natureco git review'));
55
- console.log(chalk.gray(' $ natureco git commit'));
56
- console.log(chalk.gray(' $ natureco tasks list'));
57
- console.log(chalk.gray(' $ natureco mcp add'));
58
- console.log(chalk.gray(' $ natureco config list'));
59
- console.log(chalk.gray(' $ natureco update'));
60
- console.log(chalk.gray(' $ natureco logout\n'));
61
-
62
- console.log(chalk.cyan.bold('Chat Commands:\n'));
63
- console.log(chalk.gray(' Type your message and press Enter'));
64
- console.log(chalk.gray(' /clear - Clear screen'));
65
- console.log(chalk.gray(' /bot [name] - Switch bot'));
66
- console.log(chalk.gray(' /skills - Show active skills'));
67
- console.log(chalk.gray(' /memory - Show memory'));
68
- console.log(chalk.gray(' /memory clear - Clear memory'));
69
- console.log(chalk.gray(' /commands - List custom commands'));
70
- console.log(chalk.gray(' /<command-name> - Use custom command'));
71
- console.log(chalk.gray(' /help - Show chat help'));
72
- console.log(chalk.gray(' Ctrl+B - Move task to background'));
73
- console.log(chalk.gray(' Type "exit" or "quit" to leave chat\n'));
74
-
75
- console.log(chalk.cyan.bold('Get API Key:\n'));
76
- console.log(chalk.gray(' Visit: https://developers.natureco.me\n'));
5
+ const config = getConfig() || {};
6
+ const version = require('../../package.json').version;
7
+
8
+ console.clear();
9
+
10
+ // Header
11
+ console.log('');
12
+ console.log(chalk.green.bold(' (\\_/)'));
13
+ console.log(chalk.green.bold(' (•ᴥ•)'));
14
+ console.log(chalk.green(' />🌿'));
15
+ console.log('');
16
+ console.log(chalk.green.bold(` NatureCo CLI `) + chalk.gray(`v${version}`));
17
+ console.log(chalk.gray(' Terminal-native AI agent\n'));
18
+ console.log(chalk.gray(' ' + ''.repeat(48)));
19
+
20
+ // ── Kurulum & Giriş ──────────────────────────────────────────
21
+ console.log(chalk.cyan.bold('\n Kurulum & Giriş\n'));
22
+ printCmd('natureco setup', 'İlk kurulum sihirbazı (provider, bot, entegrasyon)');
23
+ printCmd('natureco login', 'API key ile giriş yap');
24
+ printCmd('natureco logout', 'Çıkış yap');
25
+ printCmd('natureco update', 'Yeni versiyon kontrolü');
26
+ printCmd('natureco doctor', 'Sistem sağlığı kontrolü');
27
+
28
+ // ── Chat ─────────────────────────────────────────────────────
29
+ console.log(chalk.cyan.bold('\n Chat\n'));
30
+ printCmd('natureco chat', 'Varsayılan bot ile sohbet başlat');
31
+ printCmd('natureco chat <bot>', 'Belirli bot ile sohbet (boşluklu isim desteklenir)');
32
+ printCmd('natureco chat --resume', 'Son oturuma devam et');
33
+ printCmd('natureco ask "<soru>"', 'Tek seferlik soru sor');
34
+ printCmd('natureco run script.md', 'Markdown dosyasını prompt olarak gönder');
35
+ printCmd('natureco bots', 'Bot listesini göster');
36
+
37
+ // ── Entegrasyonlar ───────────────────────────────────────────
38
+ console.log(chalk.cyan.bold('\n Entegrasyonlar\n'));
39
+ printCmd('natureco telegram connect', 'Telegram bot bağla');
40
+ printCmd('natureco whatsapp connect', 'WhatsApp QR kod ile bağla');
41
+ printCmd('natureco discord connect', 'Discord bot bağla');
42
+ printCmd('natureco slack connect', 'Slack workspace bağla');
43
+
44
+ // ── Gateway & Dashboard ──────────────────────────────────────
45
+ console.log(chalk.cyan.bold('\n Gateway & Dashboard\n'));
46
+ printCmd('natureco gateway start', 'Gateway\'i arka planda başlat (WhatsApp dahil)');
47
+ printCmd('natureco gateway stop', 'Gateway\'i durdur');
48
+ printCmd('natureco gateway status', 'Gateway durumu ve son loglar');
49
+ printCmd('natureco dashboard', 'Web arayüzünü aç (localhost:3848)');
50
+
51
+ // ── Skill & MCP ──────────────────────────────────────────────
52
+ console.log(chalk.cyan.bold('\n Skill & MCP\n'));
53
+ printCmd('natureco skills', 'Yüklü skill\'leri listele');
54
+ printCmd('natureco skills install <s>', 'NatureHub\'dan skill yükle');
55
+ printCmd('natureco skills install clawhub:<s>', 'ClawHub\'dan skill yükle');
56
+ printCmd('natureco skills browse', 'Popüler skill\'leri gözat');
57
+ printCmd('natureco mcp list', 'MCP sunucularını listele');
58
+ printCmd('natureco mcp add', 'MCP sunucusu ekle');
59
+ printCmd('natureco mcp templates', 'Hazır MCP şablonları');
60
+
61
+ // ── Otomasyon ────────────────────────────────────────────────
62
+ console.log(chalk.cyan.bold('\n Otomasyon\n'));
63
+ printCmd('natureco cron add', 'Zamanlanmış görev oluştur');
64
+ printCmd('natureco cron list', 'Cron görevlerini listele');
65
+ printCmd('natureco cron start', 'Cron daemon\'unu başlat');
66
+ printCmd('natureco hooks create <tip>', 'Hook oluştur (pre-message, post-message...)');
67
+ printCmd('natureco commands create <ad>','Özel /komut oluştur');
68
+ printCmd('natureco ultrareview <dosya>','Kod inceleme — güvenlik, performans, kalite');
69
+ printCmd('natureco git review', 'Staged değişiklikleri incele');
70
+ printCmd('natureco git commit', 'AI ile commit mesajı üret');
71
+ printCmd('natureco migrate --from openclaw', 'OpenClaw\'dan geçiş');
72
+
73
+ // ── Diğer ────────────────────────────────────────────────────
74
+ console.log(chalk.cyan.bold('\n Diğer\n'));
75
+ printCmd('natureco sessions list', 'Geçmiş oturumları listele');
76
+ printCmd('natureco tasks list', 'Arka plan görevlerini listele');
77
+ printCmd('natureco config list', 'Tüm ayarları göster');
78
+ printCmd('natureco config set <k> <v>', 'Ayar değiştir');
79
+ printCmd('natureco init', 'Proje klasörü oluştur (.natureco/)');
80
+
81
+ // ── Chat içi komutlar ────────────────────────────────────────
82
+ console.log(chalk.cyan.bold('\n Chat İçi Komutlar\n'));
83
+ console.log(chalk.gray(' ' + '─'.repeat(48)));
84
+ printInChat('/clear', 'Ekranı temizle');
85
+ printInChat('/bot [ad]', 'Bot değiştir');
86
+ printInChat('/skills', 'Aktif skill\'leri göster');
87
+ printInChat('/memory', 'Hafıza durumunu göster');
88
+ printInChat('/memory clear', 'Hafızayı temizle');
89
+ printInChat('/commands', 'Özel komutları listele');
90
+ printInChat('/ultrareview', 'Son kod bloğunu detaylı incele');
91
+ printInChat('/help', 'Chat yardımını göster');
92
+ printInChat('Ctrl+B', 'Görevi arka plana al');
93
+ printInChat('exit / quit', 'Sohbetten çık');
94
+
95
+ // ── Mevcut config özeti ──────────────────────────────────────
96
+ if (config.providerUrl || config.botName) {
97
+ console.log(chalk.cyan.bold('\n Mevcut Yapılandırma\n'));
98
+ if (config.providerUrl) {
99
+ const provider = config.providerUrl.replace('https://', '').split('/')[0];
100
+ console.log(chalk.gray(' Provider : ') + chalk.white(provider));
101
+ }
102
+ if (config.providerModel) {
103
+ console.log(chalk.gray(' Model : ') + chalk.white(config.providerModel));
104
+ }
105
+ if (config.botName) {
106
+ console.log(chalk.gray(' Bot : ') + chalk.cyan(config.botName));
107
+ }
108
+ if (config.userName) {
109
+ console.log(chalk.gray(' Kullanıcı: ') + chalk.white(config.userName));
110
+ }
111
+ }
112
+
113
+ // ── Footer ───────────────────────────────────────────────────
114
+ console.log('');
115
+ console.log(chalk.gray(' ' + '─'.repeat(48)));
116
+ console.log(chalk.gray(' Döküman : ') + chalk.cyan('natureco.me/cli'));
117
+ console.log(chalk.gray(' API Key : ') + chalk.cyan('developers.natureco.me'));
118
+ console.log(chalk.gray(' npm : ') + chalk.cyan('npmjs.com/package/natureco-cli'));
119
+ console.log('');
120
+ }
121
+
122
+ function printCmd(cmd, desc) {
123
+ console.log(
124
+ chalk.yellow(' ' + cmd.padEnd(38)) +
125
+ chalk.gray(desc)
126
+ );
127
+ }
128
+
129
+ function printInChat(cmd, desc) {
130
+ console.log(
131
+ chalk.green(' ' + cmd.padEnd(20)) +
132
+ chalk.gray(desc)
133
+ );
77
134
  }
78
135
 
79
136
  module.exports = help;