natureco-cli 2.8.2 → 2.8.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.8.2",
3
+ "version": "2.8.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.8.2</div>
214
+ <div class="version-badge" id="version-badge">v2.8.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.8.2',
344
+ version: 'v2.8.3',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
@@ -9,7 +9,18 @@ const LOG_FILE = path.join(os.homedir(), '.natureco', 'gateway.log');
9
9
 
10
10
  // WhatsApp imports
11
11
  let makeWASocket, useMultiFileAuthState, DisconnectReason, fetchLatestBaileysVersion, Browsers;
12
- const pino = require('pino');
12
+
13
+ // Silent logger for Baileys
14
+ const silentLogger = {
15
+ level: 'silent',
16
+ trace: () => {},
17
+ debug: () => {},
18
+ info: () => {},
19
+ warn: () => {},
20
+ error: () => {},
21
+ fatal: () => {},
22
+ child: () => silentLogger
23
+ };
13
24
 
14
25
  // Lazy load Baileys
15
26
  function loadBaileys() {
@@ -127,7 +138,7 @@ async function startGateway() {
127
138
 
128
139
  async function runGatewayWorker() {
129
140
  // This runs in the background
130
- log('gateway', 'Starting NatureCo Gateway v2.8.2...', 'green');
141
+ log('gateway', 'Starting NatureCo Gateway v2.8.3...', 'green');
131
142
 
132
143
  // Load config
133
144
  const { getConfig } = require('../utils/config');
@@ -207,7 +218,7 @@ async function startWhatsAppProvider(sessionDir, config) {
207
218
  version,
208
219
  auth: state,
209
220
  printQRInTerminal: false,
210
- logger: pino({ level: 'silent' }),
221
+ logger: silentLogger,
211
222
  browser: Browsers.ubuntu('Chrome'),
212
223
  connectTimeoutMs: 60000,
213
224
  defaultQueryTimeoutMs: 60000,