natureco-cli 2.15.1 → 2.15.2

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.15.1",
3
+ "version": "2.15.2",
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.15.1</div>
214
+ <div class="version-badge" id="version-badge">v2.15.2</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.15.1',
344
+ version: 'v2.15.2',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
@@ -242,31 +242,37 @@ async function setup() {
242
242
  mask: '*',
243
243
  validate: (v) => v.trim() ? true : L.apiKeyRequired,
244
244
  }]);
245
- // Model listesi
246
- let modelChoices = [L.customModelEntry];
247
- for (const [domain, models] of Object.entries(COMMON_MODELS)) {
248
- if (providerUrl.includes(domain)) {
249
- modelChoices = [...models, L.customModelEntry];
250
- break;
251
- }
252
- }
253
245
 
254
- const { modelChoice } = await inquirer.prompt([{
255
- type: 'list',
256
- name: 'modelChoice',
257
- message: L.modelQ,
258
- choices: modelChoices,
259
- }]);
246
+ // Model listesi NatureCo seçildiyse atla
247
+ let providerModel;
248
+ if (isNatureCo) {
249
+ providerModel = 'natureco-default';
250
+ } else {
251
+ let modelChoices = [L.customModelEntry];
252
+ for (const [domain, models] of Object.entries(COMMON_MODELS)) {
253
+ if (providerUrl.includes(domain)) {
254
+ modelChoices = [...models, L.customModelEntry];
255
+ break;
256
+ }
257
+ }
260
258
 
261
- let providerModel = modelChoice;
262
- if (modelChoice === L.customModelEntry) {
263
- const { customModel } = await inquirer.prompt([{
264
- type: 'input',
265
- name: 'customModel',
266
- message: L.customModel,
267
- validate: (v) => v.trim() ? true : L.modelRequired,
259
+ const { modelChoice } = await inquirer.prompt([{
260
+ type: 'list',
261
+ name: 'modelChoice',
262
+ message: L.modelQ,
263
+ choices: modelChoices,
268
264
  }]);
269
- providerModel = customModel.trim();
265
+
266
+ providerModel = modelChoice;
267
+ if (modelChoice === L.customModelEntry) {
268
+ const { customModel } = await inquirer.prompt([{
269
+ type: 'input',
270
+ name: 'customModel',
271
+ message: L.customModel,
272
+ validate: (v) => v.trim() ? true : L.modelRequired,
273
+ }]);
274
+ providerModel = customModel.trim();
275
+ }
270
276
  }
271
277
 
272
278
  printDone(L, `${providerUrl.replace('https://', '').split('/')[0]} · ${providerModel}`);