natureco-cli 4.6.9 → 4.7.1
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/setup.js +46 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.1",
|
|
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/setup.js
CHANGED
|
@@ -127,7 +127,50 @@ async function cmdWizard() {
|
|
|
127
127
|
cfg.providerApiKey = apiKey;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
// Step 3:
|
|
130
|
+
// Step 3: Bot & User identity
|
|
131
|
+
console.log('');
|
|
132
|
+
console.log(chalk.white(' Step 3: Bot & Kullanıcı'));
|
|
133
|
+
console.log(chalk.gray(' ─────────────────────────────────────────────'));
|
|
134
|
+
const userName = await rlQuestion(` Sizin adınız (${cfg.userName || 'gencay'}): `);
|
|
135
|
+
if (userName) cfg.userName = userName;
|
|
136
|
+
const botName = await rlQuestion(` Bot adı (${cfg.botName || 'İchigo'}): `);
|
|
137
|
+
if (botName) cfg.botName = botName;
|
|
138
|
+
|
|
139
|
+
// Step 4: Kanal Entegrasyonları (isteğe bağlı, isteyen atlayabilir)
|
|
140
|
+
console.log('');
|
|
141
|
+
console.log(chalk.white(' Step 4: Kanal Entegrasyonları (opsiyonel)'));
|
|
142
|
+
console.log(chalk.gray(' ─────────────────────────────────────────────'));
|
|
143
|
+
console.log(chalk.gray(' Telegram, WhatsApp, Discord, Slack bağlamak ister misiniz?'));
|
|
144
|
+
console.log(chalk.gray(' Atlamak için hepsini boş bırakın, sonra: natureco <kanal> connect\n'));
|
|
145
|
+
|
|
146
|
+
const integrations = [
|
|
147
|
+
{ key: 'telegramToken', name: 'Telegram', hint: 'BotFather\'dan al (@BotFather → /newbot → token)' },
|
|
148
|
+
{ key: 'whatsappPhone', name: 'WhatsApp', hint: 'Telefon numaranızı girin (örn: +905422842631)' },
|
|
149
|
+
{ key: 'discordToken', name: 'Discord', hint: 'Discord bot token (Discord Developer Portal)' },
|
|
150
|
+
{ key: 'slackToken', name: 'Slack', hint: 'Slack bot token (api.slack.com/apps)' },
|
|
151
|
+
{ key: 'signalBotId', name: 'Signal', hint: 'Signal bot numarası veya ID' },
|
|
152
|
+
{ key: 'ircBotId', name: 'IRC', hint: 'IRC bot kullanıcı adı (örn: NatureCoBot)' },
|
|
153
|
+
{ key: 'mattermostBotId', name: 'Mattermost', hint: 'Mattermost bot kullanıcı adı' },
|
|
154
|
+
{ key: 'imessageBotId', name: 'iMessage', hint: 'iMessage bridge endpoint veya ad' },
|
|
155
|
+
{ key: 'smsBotId', name: 'SMS (Twilio)', hint: 'Twilio hesap SID veya bot ID' },
|
|
156
|
+
{ key: 'webhooks', name: 'Webhooks', hint: 'Webhook URL (veya boş bırakın, sonra: natureco webhooks add)' },
|
|
157
|
+
];
|
|
158
|
+
|
|
159
|
+
for (const integ of integrations) {
|
|
160
|
+
const current = cfg[integ.key] || '';
|
|
161
|
+
if (current) {
|
|
162
|
+
console.log(chalk.gray(` ${integ.name}: zaten ayarlı, boş bırakırsanız korunur`));
|
|
163
|
+
} else {
|
|
164
|
+
console.log(chalk.gray(` ${integ.hint}`));
|
|
165
|
+
}
|
|
166
|
+
const val = await rlQuestion(` ${integ.name} ${current ? '(mevcut - boş bırakın)' : '(boş = atla)'}: `);
|
|
167
|
+
if (val) {
|
|
168
|
+
cfg[integ.key] = val;
|
|
169
|
+
console.log(chalk.green(` ✓ ${integ.name} ayarlandı`));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Save
|
|
131
174
|
cfg.providerUrl = providerUrl;
|
|
132
175
|
cfg.providerModel = providerModel;
|
|
133
176
|
cfg.setupCompleted = true;
|
|
@@ -145,7 +188,8 @@ async function cmdWizard() {
|
|
|
145
188
|
console.log('');
|
|
146
189
|
console.log(chalk.white(' Next steps:'));
|
|
147
190
|
console.log(chalk.cyan(' natureco chat Start chatting'));
|
|
148
|
-
console.log(chalk.cyan(' natureco
|
|
191
|
+
console.log(chalk.cyan(' natureco repl İnteraktif REPL (persistent memory)'));
|
|
192
|
+
console.log(chalk.cyan(' natureco telegram connect Telegram bot bağla (henüz yapılmadıysa)'));
|
|
149
193
|
console.log(chalk.cyan(' natureco help View all commands'));
|
|
150
194
|
console.log('');
|
|
151
195
|
}
|