natureco-cli 1.0.8 → 1.0.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 +1 -1
- package/src/commands/gateway.js +53 -24
package/package.json
CHANGED
package/src/commands/gateway.js
CHANGED
|
@@ -25,15 +25,18 @@ async function gateway() {
|
|
|
25
25
|
// Normal gateway ekranı
|
|
26
26
|
const version = packageJson.version;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
console.clear();
|
|
29
|
+
|
|
30
|
+
// Ana logo kutusu - daha büyük ve etkileyici
|
|
29
31
|
const title = boxen(
|
|
30
|
-
chalk.green.bold(
|
|
31
|
-
chalk.
|
|
32
|
-
chalk.gray('
|
|
33
|
-
chalk.gray('edin
|
|
32
|
+
chalk.green.bold('🌿 NatureCo Terminal\n') +
|
|
33
|
+
chalk.green.bold(` v${version}\n\n`) +
|
|
34
|
+
chalk.gray('AI botlarınızla terminal\'den konuşun\n') +
|
|
35
|
+
chalk.gray('Workflow\'ları otomatize edin\n') +
|
|
36
|
+
chalk.gray('Yetenekler ekleyin, MCP entegre edin'),
|
|
34
37
|
{
|
|
35
|
-
padding: 1,
|
|
36
|
-
margin: 1,
|
|
38
|
+
padding: { top: 1, bottom: 1, left: 3, right: 3 },
|
|
39
|
+
margin: { top: 1, bottom: 0, left: 0, right: 0 },
|
|
37
40
|
borderStyle: 'round',
|
|
38
41
|
borderColor: 'green',
|
|
39
42
|
align: 'center',
|
|
@@ -41,43 +44,69 @@ async function gateway() {
|
|
|
41
44
|
);
|
|
42
45
|
|
|
43
46
|
console.log(title);
|
|
47
|
+
console.log(chalk.gray('─'.repeat(60)));
|
|
48
|
+
console.log('');
|
|
44
49
|
|
|
45
|
-
// Durum bilgileri
|
|
50
|
+
// Durum bilgileri - emoji ve ikonlarla
|
|
46
51
|
if (config.apiKey) {
|
|
47
52
|
const maskedKey = config.apiKey.substring(0, 7) + '...';
|
|
48
|
-
console.log(chalk.cyan('
|
|
53
|
+
console.log(chalk.cyan('🔑 Giriş yapıldı:'), chalk.white(maskedKey));
|
|
49
54
|
} else {
|
|
50
|
-
console.log(chalk.yellow('
|
|
55
|
+
console.log(chalk.yellow('🔑 Giriş yapılmadı'), chalk.gray('(natureco login)'));
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
if (config.defaultBot) {
|
|
54
|
-
console.log(chalk.cyan('
|
|
59
|
+
console.log(chalk.cyan('🤖 Aktif bot:'), chalk.white(config.defaultBot));
|
|
55
60
|
} else {
|
|
56
|
-
console.log(chalk.gray('
|
|
61
|
+
console.log(chalk.gray('🤖 Aktif bot: Yok'));
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
const skills = getSkills();
|
|
60
65
|
const skillCount = skills.length;
|
|
61
|
-
console.log(chalk.cyan('
|
|
66
|
+
console.log(chalk.cyan('✨ Skills:'), chalk.white(`${skillCount} yüklü`));
|
|
62
67
|
|
|
63
68
|
const mcpServers = getMcpServers();
|
|
64
69
|
const mcpCount = Object.keys(mcpServers).length;
|
|
65
70
|
const activeMcpCount = Object.values(mcpServers).filter(s => !s.disabled).length;
|
|
66
|
-
console.log(chalk.cyan('
|
|
71
|
+
console.log(chalk.cyan('🔌 MCP:'), chalk.white(`${activeMcpCount}/${mcpCount} aktif`));
|
|
67
72
|
|
|
73
|
+
console.log('');
|
|
74
|
+
console.log(chalk.gray('─'.repeat(60)));
|
|
68
75
|
console.log('');
|
|
69
76
|
|
|
70
|
-
// Komutlar
|
|
71
|
-
console.log(chalk.bold('Komutlar
|
|
72
|
-
|
|
73
|
-
console.log(chalk.yellow('
|
|
74
|
-
console.log(chalk.
|
|
75
|
-
|
|
76
|
-
console.log(chalk.yellow('
|
|
77
|
-
console.log(chalk.
|
|
78
|
-
|
|
77
|
+
// Komutlar - daha okunabilir format
|
|
78
|
+
console.log(chalk.green.bold('Komutlar:\n'));
|
|
79
|
+
|
|
80
|
+
console.log(chalk.yellow(' natureco chat <bot>'));
|
|
81
|
+
console.log(chalk.gray(' Bot ile interaktif sohbet başlat\n'));
|
|
82
|
+
|
|
83
|
+
console.log(chalk.yellow(' natureco bots'));
|
|
84
|
+
console.log(chalk.gray(' Tüm botlarını listele\n'));
|
|
85
|
+
|
|
86
|
+
console.log(chalk.yellow(' natureco ask "soru"'));
|
|
87
|
+
console.log(chalk.gray(' Tek seferlik soru sor\n'));
|
|
88
|
+
|
|
89
|
+
console.log(chalk.yellow(' natureco skills'));
|
|
90
|
+
console.log(chalk.gray(' Skill\'leri yönet (install, remove, list)\n'));
|
|
91
|
+
|
|
92
|
+
console.log(chalk.yellow(' natureco mcp'));
|
|
93
|
+
console.log(chalk.gray(' MCP sunucularını yönet\n'));
|
|
94
|
+
|
|
95
|
+
console.log(chalk.yellow(' natureco init'));
|
|
96
|
+
console.log(chalk.gray(' Mevcut dizinde proje başlat\n'));
|
|
97
|
+
|
|
98
|
+
console.log(chalk.yellow(' natureco config'));
|
|
99
|
+
console.log(chalk.gray(' Ayarları görüntüle ve düzenle\n'));
|
|
100
|
+
|
|
101
|
+
console.log(chalk.yellow(' natureco help'));
|
|
102
|
+
console.log(chalk.gray(' Tüm komutları ve örnekleri göster\n'));
|
|
103
|
+
|
|
104
|
+
console.log(chalk.gray('─'.repeat(60)));
|
|
79
105
|
console.log('');
|
|
80
|
-
|
|
106
|
+
|
|
107
|
+
// Hızlı başlat ve döküman
|
|
108
|
+
console.log(chalk.cyan('💬 Hızlı başlat:'), chalk.white('natureco chat'));
|
|
109
|
+
console.log(chalk.cyan('📚 Döküman:'), chalk.white('natureco.me/docs'));
|
|
81
110
|
console.log('');
|
|
82
111
|
}
|
|
83
112
|
|