natureco-cli 4.6.4 → 4.6.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 +1 -1
- package/src/commands/help.js +198 -129
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.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"
|
package/src/commands/help.js
CHANGED
|
@@ -1,154 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* natureco help — Modern TUI help screen (v4.6+)
|
|
3
|
+
*
|
|
4
|
+
* Kategorize edilmiş komut listesi, TUI box + table kullanır.
|
|
5
|
+
* v2.23 ASCII art yerine modern TUI engine.
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
const chalk = require('chalk');
|
|
2
|
-
const
|
|
9
|
+
const tui = require('../utils/tui');
|
|
3
10
|
const { getConfig } = require('../utils/config');
|
|
4
11
|
|
|
5
12
|
function help() {
|
|
6
13
|
const config = getConfig() || {};
|
|
7
14
|
const version = require('../../package.json').version;
|
|
15
|
+
const width = 64;
|
|
8
16
|
|
|
9
|
-
console.clear();
|
|
10
|
-
|
|
11
|
-
// Header
|
|
12
17
|
console.log('');
|
|
13
|
-
console.log(chalk.green.bold(' (\\_/)'));
|
|
14
|
-
console.log(chalk.green.bold(' (•ᴥ•)'));
|
|
15
|
-
console.log(chalk.green(' />🌿'));
|
|
16
|
-
console.log('');
|
|
17
|
-
console.log(chalk.green.bold(` NatureCo CLI `) + chalk.gray(`v${version}`));
|
|
18
|
-
console.log(chalk.gray(' Terminal-native AI agent\n'));
|
|
19
|
-
F.divider();
|
|
20
|
-
|
|
21
|
-
// ── Kurulum & Giriş ──────────────────────────────────────────
|
|
22
|
-
F.section('Kurulum & Giriş');
|
|
23
|
-
printCmd('natureco setup', 'İlk kurulum sihirbazı (provider, bot, entegrasyon)');
|
|
24
|
-
printCmd('natureco login', 'API key ile giriş yap');
|
|
25
|
-
printCmd('natureco logout', 'Çıkış yap');
|
|
26
|
-
printCmd('natureco update', 'Yeni versiyon kontrolü');
|
|
27
|
-
printCmd('natureco doctor', 'Sistem sağlığı kontrolü');
|
|
28
|
-
|
|
29
|
-
// ── Chat ─────────────────────────────────────────────────────
|
|
30
|
-
F.section('Chat');
|
|
31
|
-
printCmd('natureco chat', 'Varsayılan bot ile sohbet başlat');
|
|
32
|
-
printCmd('natureco chat <bot>', 'Belirli bot ile sohbet (boşluklu isim desteklenir)');
|
|
33
|
-
printCmd('natureco chat --resume', 'Son oturuma devam et');
|
|
34
|
-
printCmd('natureco ask "<soru>"', 'Tek seferlik soru sor');
|
|
35
|
-
printCmd('natureco run script.md', 'Markdown dosyasını prompt olarak gönder');
|
|
36
|
-
printCmd('natureco bots', 'Bot listesini göster');
|
|
37
|
-
|
|
38
|
-
// ── Entegrasyonlar ───────────────────────────────────────────
|
|
39
|
-
F.section('Entegrasyonlar');
|
|
40
|
-
printCmd('natureco telegram connect', 'Telegram bot bağla');
|
|
41
|
-
printCmd('natureco whatsapp connect', 'WhatsApp QR kod ile bağla');
|
|
42
|
-
printCmd('natureco discord connect', 'Discord bot bağla');
|
|
43
|
-
printCmd('natureco slack connect', 'Slack workspace bağla');
|
|
44
|
-
printCmd('natureco signal connect', 'Signal REST API bağla');
|
|
45
|
-
printCmd('natureco irc connect', 'IRC sunucusuna bağlan');
|
|
46
|
-
printCmd('natureco mattermost connect', 'Mattermost bot bağla');
|
|
47
|
-
printCmd('natureco imessage connect', 'iMessage bridge bağla');
|
|
48
|
-
printCmd('natureco sms connect', 'Twilio SMS bağla');
|
|
49
|
-
printCmd('natureco webhooks connect', 'Webhook ekle');
|
|
50
|
-
|
|
51
|
-
// ── Gateway & Dashboard ──────────────────────────────────────
|
|
52
|
-
F.section('Gateway & Dashboard');
|
|
53
|
-
printCmd('natureco gateway start', 'Gateway\'i arka planda başlat (WhatsApp dahil)');
|
|
54
|
-
printCmd('natureco gateway stop', 'Gateway\'i durdur');
|
|
55
|
-
printCmd('natureco gateway status', 'Gateway durumu ve son loglar');
|
|
56
|
-
printCmd('natureco dashboard', 'Web arayüzünü aç (localhost:3848)');
|
|
57
|
-
|
|
58
|
-
// ── Skill & MCP ──────────────────────────────────────────────
|
|
59
|
-
F.section('Skill & MCP');
|
|
60
|
-
printCmd('natureco skills', 'Yüklü skill\'leri listele');
|
|
61
|
-
printCmd('natureco skills install <s>', 'NatureHub\'dan skill yükle');
|
|
62
|
-
printCmd('natureco skills install clawhub:<s>', 'ClawHub\'dan skill yükle');
|
|
63
|
-
printCmd('natureco skills search <q>', 'ClawHub\'da skill ara');
|
|
64
|
-
printCmd('natureco skills browse', 'Popüler skill\'leri gözat');
|
|
65
|
-
printCmd('natureco skills create <ad>', 'Yeni skill şablonu oluştur');
|
|
66
|
-
printCmd('natureco mcp list', 'MCP sunucularını listele');
|
|
67
|
-
printCmd('natureco mcp add', 'MCP sunucusu ekle');
|
|
68
|
-
printCmd('natureco mcp templates', 'Hazır MCP şablonları');
|
|
69
18
|
|
|
70
|
-
//
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
19
|
+
// Header — TUI box
|
|
20
|
+
const headerLines = [
|
|
21
|
+
tui.styled(' ╭' + '─'.repeat(width) + '╮', { color: tui.PALETTE.primary }),
|
|
22
|
+
tui.styled(' │', { color: tui.PALETTE.primary }) + ' 🌿 ' + tui.styled('NatureCo CLI', { color: tui.PALETTE.primary, bold: true }) + tui.C.muted(' v' + version) + ' ' + tui.C.muted('Terminal-native AI agent') + tui.styled(' │', { color: tui.PALETTE.primary }),
|
|
23
|
+
tui.styled(' ╰' + '─'.repeat(width) + '╯', { color: tui.PALETTE.primary }),
|
|
24
|
+
];
|
|
25
|
+
console.log(headerLines.join('\n'));
|
|
26
|
+
|
|
27
|
+
const sections = [
|
|
28
|
+
{
|
|
29
|
+
icon: '⚙️ ',
|
|
30
|
+
title: 'Kurulum & Giriş',
|
|
31
|
+
rows: [
|
|
32
|
+
{ name: 'natureco setup', desc: 'İlk kurulum sihirbazı (provider, bot)' },
|
|
33
|
+
{ name: 'natureco login', desc: 'API key ile giriş yap' },
|
|
34
|
+
{ name: 'natureco logout', desc: 'Çıkış yap' },
|
|
35
|
+
{ name: 'natureco update', desc: 'Yeni versiyon kontrolü' },
|
|
36
|
+
{ name: 'natureco doctor', desc: 'Sistem sağlığı kontrolü (10 check)' },
|
|
37
|
+
{ name: 'natureco status', desc: 'Sistem durumu (TUI kart)' },
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
icon: '💬',
|
|
42
|
+
title: 'Chat & Agent',
|
|
43
|
+
rows: [
|
|
44
|
+
{ name: 'natureco chat', desc: 'Sohbet başlat (→ REPL engine)' },
|
|
45
|
+
{ name: 'natureco chat <bot>', desc: 'Belirli bot ile sohbet' },
|
|
46
|
+
{ name: 'natureco chat --resume', desc: 'Son oturuma dön' },
|
|
47
|
+
{ name: 'natureco repl', desc: 'İnteraktif REPL (persistent memory)' },
|
|
48
|
+
{ name: 'natureco repl --resume <id>', desc: 'Önceki oturumu yükle' },
|
|
49
|
+
{ name: 'natureco ask "<soru>"', desc: 'Tek seferlik soru' },
|
|
50
|
+
{ name: 'natureco code <file>', desc: 'Code agent (Claude Code alternatifi)' },
|
|
51
|
+
{ name: 'natureco run <script.md>', desc: 'Markdown script çalıştır' },
|
|
52
|
+
{ name: 'natureco bots', desc: 'Bot listesi' },
|
|
53
|
+
{ name: 'natureco team list', desc: 'Multi-agent tipleri (8 uzman)' },
|
|
54
|
+
{ name: 'natureco team spawn <type> <task>', desc: 'Sub-agent çalıştır' },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
icon: '🛡️ ',
|
|
59
|
+
title: 'Güvenlik & Gözlem',
|
|
60
|
+
rows: [
|
|
61
|
+
{ name: 'natureco audit today', desc: "Bugünkü loglar" },
|
|
62
|
+
{ name: 'natureco audit stats', desc: '24 saat istatistik' },
|
|
63
|
+
{ name: 'natureco audit files', desc: 'Log dosyaları' },
|
|
64
|
+
{ name: 'natureco audit search <q>', desc: 'Log ara' },
|
|
65
|
+
{ name: 'natureco security audit', desc: 'Güvenlik denetimi' },
|
|
66
|
+
{ name: 'natureco doctor check <name>', desc: 'Tek sağlık check' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
icon: '💰',
|
|
71
|
+
title: 'Maliyet',
|
|
72
|
+
rows: [
|
|
73
|
+
{ name: 'natureco cost today', desc: 'Bugünkü maliyet' },
|
|
74
|
+
{ name: 'natureco cost week', desc: 'Bu hafta' },
|
|
75
|
+
{ name: 'natureco cost month', desc: 'Bu ay' },
|
|
76
|
+
{ name: 'natureco cost budget', desc: 'Bütçe durumu' },
|
|
77
|
+
{ name: 'natureco cost prices', desc: 'Model fiyatları (21+ model)' },
|
|
78
|
+
{ name: 'natureco cost model "<prompt>"', desc: 'Model önerisi (router)' },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
icon: '🌐',
|
|
83
|
+
title: 'Entegrasyonlar (10 kanal)',
|
|
84
|
+
rows: [
|
|
85
|
+
{ name: 'natureco telegram connect', desc: 'Telegram bot bağla' },
|
|
86
|
+
{ name: 'natureco whatsapp connect', desc: 'WhatsApp QR ile bağla' },
|
|
87
|
+
{ name: 'natureco discord connect', desc: 'Discord bot bağla' },
|
|
88
|
+
{ name: 'natureco slack connect', desc: 'Slack workspace bağla' },
|
|
89
|
+
{ name: 'natureco signal connect', desc: 'Signal REST API' },
|
|
90
|
+
{ name: 'natureco irc connect', desc: 'IRC sunucusu' },
|
|
91
|
+
{ name: 'natureco mattermost connect', desc: 'Mattermost bot' },
|
|
92
|
+
{ name: 'natureco imessage connect', desc: 'iMessage bridge' },
|
|
93
|
+
{ name: 'natureco sms connect', desc: 'Twilio SMS' },
|
|
94
|
+
{ name: 'natureco webhooks connect', desc: 'Webhook ekle' },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
icon: '🌿',
|
|
99
|
+
title: 'NatureCo Native',
|
|
100
|
+
rows: [
|
|
101
|
+
{ name: 'natureco naturehub post "<text>"', desc: 'Nature Hub\'a içerik yayınla' },
|
|
102
|
+
{ name: 'natureco medium draft <file.md>', desc: 'Medium makale taslağı' },
|
|
103
|
+
{ name: 'natureco medium publish <file.md>', desc: 'Medium\'da yayınla' },
|
|
104
|
+
{ name: 'natureco seo audit <url>', desc: 'SEO denetimi (skor 0-100)' },
|
|
105
|
+
{ name: 'natureco xp', desc: 'XP/Level durumu' },
|
|
106
|
+
{ name: 'natureco xp rewards', desc: 'Ödül listesi' },
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
icon: '📊',
|
|
111
|
+
title: 'Skill & MCP',
|
|
112
|
+
rows: [
|
|
113
|
+
{ name: 'natureco skills list', desc: 'Yüklü skill\'ler' },
|
|
114
|
+
{ name: 'natureco skills suggest', desc: 'Self-evolving öneriler' },
|
|
115
|
+
{ name: 'natureco skills accept <id>', desc: 'Öneriyi kabul et' },
|
|
116
|
+
{ name: 'natureco skills reject <id>', desc: 'Öneriyi reddet' },
|
|
117
|
+
{ name: 'natureco skills install <slug>', desc: 'NatureHub\'dan yükle' },
|
|
118
|
+
{ name: 'natureco mcp list', desc: 'MCP sunucuları' },
|
|
119
|
+
{ name: 'natureco mcp add <name>', desc: 'MCP sunucusu ekle' },
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
icon: '⏰',
|
|
124
|
+
title: 'Otomasyon & Dashboard',
|
|
125
|
+
rows: [
|
|
126
|
+
{ name: 'natureco cron list', desc: 'Cron görevleri' },
|
|
127
|
+
{ name: 'natureco cron add', desc: 'Cron ekle' },
|
|
128
|
+
{ name: 'natureco hooks create <tip>', desc: 'Hook oluştur' },
|
|
129
|
+
{ name: 'natureco dashboard', desc: 'Web dashboard (port 7421)' },
|
|
130
|
+
{ name: 'natureco gateway start', desc: 'Gateway arka plan' },
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
icon: '⚙️ ',
|
|
135
|
+
title: 'Yapılandırma',
|
|
136
|
+
rows: [
|
|
137
|
+
{ name: 'natureco config list', desc: 'Tüm ayarlar' },
|
|
138
|
+
{ name: 'natureco config set <key> <val>', desc: 'Ayar değiştir' },
|
|
139
|
+
{ name: 'natureco configure', desc: 'İnteraktif yapılandırma' },
|
|
140
|
+
{ name: 'natureco sessions list', desc: 'Geçmiş oturumlar' },
|
|
141
|
+
{ name: 'natureco sessions show <id>', desc: 'Oturum detayı' },
|
|
142
|
+
{ name: 'natureco memory', desc: 'Memory yönetimi' },
|
|
143
|
+
{ name: 'natureco init', desc: 'Proje başlat (.natureco/)' },
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
icon: '🛠️ ',
|
|
148
|
+
title: 'Diğer',
|
|
149
|
+
rows: [
|
|
150
|
+
{ name: 'natureco agents list', desc: 'Agent listesi' },
|
|
151
|
+
{ name: 'natureco models list', desc: 'Model listesi' },
|
|
152
|
+
{ name: 'natureco channels', desc: 'Bağlı kanallar' },
|
|
153
|
+
{ name: 'natureco logs', desc: 'Gateway logları' },
|
|
154
|
+
{ name: 'natureco tasks list', desc: 'Arka plan görevleri' },
|
|
155
|
+
{ name: 'natureco nodes', desc: 'Network nodes' },
|
|
156
|
+
{ name: 'natureco security', desc: 'Güvenlik denetimi' },
|
|
157
|
+
{ name: 'natureco reset', desc: 'Sıfırla' },
|
|
158
|
+
{ name: 'natureco uninstall', desc: 'Kaldır' },
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
icon: '💬',
|
|
163
|
+
title: 'REPL İçi Komutlar (chat/repl)',
|
|
164
|
+
rows: [
|
|
165
|
+
{ name: '/help', desc: 'Yardım' },
|
|
166
|
+
{ name: '/clear', desc: 'Ekranı temizle' },
|
|
167
|
+
{ name: '/memory', desc: 'Memory\'i göster' },
|
|
168
|
+
{ name: '/forget', desc: 'Memory\'i sil' },
|
|
169
|
+
{ name: '/sessions', desc: 'Geçmiş oturumlar' },
|
|
170
|
+
{ name: '/resume [id|last]', desc: 'Önceki oturuma dön' },
|
|
171
|
+
{ name: '/system <text>', desc: 'System prompt' },
|
|
172
|
+
{ name: '/model <name>', desc: 'Model değiştir' },
|
|
173
|
+
{ name: '/identity [ad]', desc: 'Bot adı değiştir' },
|
|
174
|
+
{ name: '/tokens', desc: 'Token kullanımı' },
|
|
175
|
+
{ name: '/doctor, /cost, /audit, /team, /xp', desc: 'REPL içinden TUI komutlar' },
|
|
176
|
+
{ name: '/save, /exit, /quit', desc: 'Kaydet / Çıkış' },
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
];
|
|
180
|
+
|
|
181
|
+
for (const section of sections) {
|
|
182
|
+
console.log('\n' + tui.styled(` ${section.icon} ${section.title}`, { color: tui.PALETTE.secondary, bold: true }));
|
|
183
|
+
console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
|
|
184
|
+
console.log('\n' + tui.table(section.rows, [
|
|
185
|
+
{ key: 'name', label: 'Komut', minWidth: 36, render: r => tui.styled(r.name, { color: tui.PALETTE.primary, bold: true }) },
|
|
186
|
+
{ key: 'desc', label: 'Açıklama', minWidth: 35, render: r => tui.C.muted(r.desc) },
|
|
187
|
+
], { borderStyle: 'round', zebra: false }));
|
|
188
|
+
}
|
|
114
189
|
|
|
115
|
-
//
|
|
190
|
+
// Mevcut config (varsa)
|
|
116
191
|
if (config.providerUrl || config.botName) {
|
|
117
|
-
|
|
192
|
+
console.log('\n' + tui.styled(' ⚙️ Mevcut Yapılandırma', { color: tui.PALETTE.accent, bold: true }));
|
|
193
|
+
console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
|
|
194
|
+
const cardW = 54;
|
|
195
|
+
const cardLines = [
|
|
196
|
+
tui.styled(' ╭' + '─'.repeat(cardW) + '╮', { color: tui.PALETTE.border }),
|
|
197
|
+
];
|
|
118
198
|
if (config.providerUrl) {
|
|
119
|
-
const provider = config.providerUrl.replace('https
|
|
120
|
-
|
|
199
|
+
const provider = config.providerUrl.replace('https?:\/\/', '').split('/')[0];
|
|
200
|
+
cardLines.push(tui.styled(' │ ', { color: tui.PALETTE.border }) + tui.C.muted('Provider ') + tui.styled(provider.padEnd(38), { color: tui.PALETTE.text, bold: true }) + tui.styled(' │', { color: tui.PALETTE.border }));
|
|
121
201
|
}
|
|
122
202
|
if (config.providerModel) {
|
|
123
|
-
|
|
203
|
+
cardLines.push(tui.styled(' │ ', { color: tui.PALETTE.border }) + tui.C.muted('Model ') + tui.styled((config.providerModel || '—').padEnd(38), { color: tui.PALETTE.primary, bold: true }) + tui.styled(' │', { color: tui.PALETTE.border }));
|
|
124
204
|
}
|
|
125
205
|
if (config.botName) {
|
|
126
|
-
|
|
206
|
+
cardLines.push(tui.styled(' │ ', { color: tui.PALETTE.border }) + tui.C.muted('Bot ') + tui.styled((config.botName || '—').padEnd(38), { color: tui.PALETTE.text }) + tui.styled(' │', { color: tui.PALETTE.border }));
|
|
127
207
|
}
|
|
128
208
|
if (config.userName) {
|
|
129
|
-
|
|
209
|
+
cardLines.push(tui.styled(' │ ', { color: tui.PALETTE.border }) + tui.C.muted('Kullanıcı ') + tui.styled((config.userName || '—').padEnd(38), { color: tui.PALETTE.text }) + tui.styled(' │', { color: tui.PALETTE.border }));
|
|
130
210
|
}
|
|
211
|
+
cardLines.push(tui.styled(' ╰' + '─'.repeat(cardW) + '╯', { color: tui.PALETTE.border }));
|
|
212
|
+
console.log(cardLines.join('\n'));
|
|
131
213
|
}
|
|
132
214
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
215
|
+
// Linkler
|
|
216
|
+
console.log('\n' + tui.styled(' 🔗 Kaynaklar', { color: tui.PALETTE.secondary, bold: true }));
|
|
217
|
+
console.log(' ' + tui.C.muted('Döküman ') + tui.C.brand('https://natureco.me/cli'));
|
|
218
|
+
console.log(' ' + tui.C.muted('SDK ') + tui.C.brand('https://natureco.me/developer'));
|
|
219
|
+
console.log(' ' + tui.C.muted('npm ') + tui.C.brand('https://npmjs.com/package/natureco-cli'));
|
|
137
220
|
console.log('');
|
|
138
221
|
}
|
|
139
222
|
|
|
140
|
-
function printCmd(cmd, desc) {
|
|
141
|
-
console.log(
|
|
142
|
-
' ' + F.flag(cmd.padEnd(38)) +
|
|
143
|
-
chalk.dim(desc)
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function printInChat(cmd, desc) {
|
|
148
|
-
console.log(
|
|
149
|
-
' ' + F.cmd(cmd.padEnd(20)) +
|
|
150
|
-
chalk.dim(desc)
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
223
|
module.exports = help;
|