natureco-cli 1.0.49 → 1.0.51

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/bin/natureco.js CHANGED
@@ -45,10 +45,11 @@ program
45
45
  .action(bots);
46
46
 
47
47
  program
48
- .command('chat [bot-name]')
48
+ .command('chat [bot-name...]')
49
49
  .description('Start interactive chat with a bot (uses default bot if not specified)')
50
50
  .option('--resume [session-id]', 'Resume a previous session')
51
- .action((botName, options) => {
51
+ .action((botNameParts, options) => {
52
+ const botName = Array.isArray(botNameParts) ? botNameParts.join(' ') : botNameParts;
52
53
  chat(botName, options);
53
54
  });
54
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
@@ -35,7 +35,7 @@ async function chat(botName, options = {}) {
35
35
  process.exit(1);
36
36
  }
37
37
 
38
- // Bot adı verilmediyse config'den defaultBot'u kullan
38
+ // Bot adı verilmediyse config'den defaultBot'u kullan veya interaktif seçim sun
39
39
  let bot;
40
40
  if (!botName) {
41
41
  const { getConfig } = require('../utils/config');
@@ -49,12 +49,24 @@ async function chat(botName, options = {}) {
49
49
  }
50
50
 
51
51
  if (!bot) {
52
- console.log(chalk.red('\n❌ No default bot configured.\n'));
53
- console.log(chalk.gray('Available bots:'));
54
- botList.bots.forEach(b => console.log(chalk.cyan(` - ${b.name}`)));
52
+ // Interaktif bot seçimi
53
+ console.log(chalk.yellow('Varsayılan bot bulunamadı. Lütfen bir bot seçin:\n'));
54
+ botList.bots.forEach((b, i) => {
55
+ console.log(chalk.cyan(` ${i + 1}. ${b.name}`));
56
+ });
55
57
  console.log('');
56
- console.log(chalk.yellow('Usage: natureco chat <bot-name>\n'));
57
- process.exit(1);
58
+
59
+ process.stdin.resume();
60
+ const { selectedBot } = await inquirer.prompt([
61
+ {
62
+ type: 'list',
63
+ name: 'selectedBot',
64
+ message: 'Bot seçin:',
65
+ choices: botList.bots.map((b, i) => ({ name: b.name, value: b.id })),
66
+ },
67
+ ]);
68
+
69
+ bot = botList.bots.find(b => b.id === selectedBot);
58
70
  }
59
71
  } else {
60
72
  // Bot adı ile eşleşen botu bul
@@ -43,7 +43,7 @@ const HTML = `<!DOCTYPE html>
43
43
  *{margin:0;padding:0;box-sizing:border-box;font-family:system-ui,-apple-system,sans-serif}
44
44
  html,body{height:100%;overflow:hidden}
45
45
  body{
46
- background:#0d1117;
46
+ background:#0B0E11;
47
47
  color:#eceff1;
48
48
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
49
49
  display:flex;
@@ -53,29 +53,16 @@ body{
53
53
  }
54
54
  body::before{
55
55
  content:'';
56
- position:absolute;
57
- top:0;left:0;right:0;bottom:0;
56
+ position:fixed;
57
+ top:0;left:0;
58
+ width:100%;height:100%;
58
59
  background:
59
- radial-gradient(ellipse 80% 50% at 50% -20%,rgba(16,185,129,0.15),transparent 60%),
60
- radial-gradient(ellipse 60% 40% at 80% 80%,rgba(59,130,246,0.08),transparent 50%),
61
- radial-gradient(ellipse 40% 30% at 20% 60%,rgba(16,185,129,0.06),transparent 40%);
62
- animation:gradientShift 15s ease-in-out infinite alternate;
60
+ radial-gradient(circle at 20% 80%,rgba(16,185,129,0.3) 0%,transparent 50%),
61
+ radial-gradient(circle at 80% 20%,rgba(99,102,241,0.2) 0%,transparent 50%),
62
+ radial-gradient(circle at 40% 40%,rgba(245,158,11,0.1) 0%,transparent 50%),
63
+ linear-gradient(180deg,#06080A 0%,#0B0E11 100%);
64
+ z-index:-1;
63
65
  pointer-events:none;
64
- z-index:0;
65
- }
66
- @keyframes gradientShift{
67
- 0%{
68
- background:
69
- radial-gradient(ellipse 80% 50% at 50% -20%,rgba(16,185,129,0.15),transparent 60%),
70
- radial-gradient(ellipse 60% 40% at 80% 80%,rgba(59,130,246,0.08),transparent 50%),
71
- radial-gradient(ellipse 40% 30% at 20% 60%,rgba(16,185,129,0.06),transparent 40%);
72
- }
73
- 100%{
74
- background:
75
- radial-gradient(ellipse 80% 50% at 30% 120%,rgba(16,185,129,0.12),transparent 60%),
76
- radial-gradient(ellipse 60% 40% at 90% 20%,rgba(59,130,246,0.1),transparent 50%),
77
- radial-gradient(ellipse 40% 30% at 10% 80%,rgba(16,185,129,0.08),transparent 40%);
78
- }
79
66
  }
80
67
  .app{display:flex;height:100vh}
81
68
  .sidebar{
@@ -224,7 +211,7 @@ body::before{
224
211
  <div class="header-bot-name" id="header-bot-name">Nature Bot</div>
225
212
  <div class="header-bot-model" id="header-bot-model">NatureCo</div>
226
213
  </div>
227
- <div class="version-badge" id="version-badge">v1.0.49</div>
214
+ <div class="version-badge" id="version-badge">v1.0.51</div>
228
215
  </div>
229
216
  <div class="messages" id="messages"></div>
230
217
  <div class="input-area">
@@ -354,7 +341,7 @@ function dashboard(action) {
354
341
  apiKey: cfg.apiKey,
355
342
  defaultBot: cfg.defaultBot,
356
343
  defaultBotId: cfg.defaultBotId,
357
- version: 'v1.0.49',
344
+ version: 'v1.0.51',
358
345
  bots: cfg.bots || [],
359
346
  telegramToken: cfg.telegramToken || null,
360
347
  whatsappConnected: cfg.whatsappConnected || false,