natureco-cli 2.13.19 → 2.13.20

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.13.19",
3
+ "version": "2.13.20",
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.13.19</div>
214
+ <div class="version-badge" id="version-badge">v2.13.20</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.13.19',
344
+ version: 'v2.13.20',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
@@ -205,7 +205,7 @@ async function migrate(options) {
205
205
  }
206
206
 
207
207
  // Fallback: Extract botName from cron job names if still not found
208
- // "Ichigo Brain — ..." → Ichigo
208
+ // "Ichigo Brain — 3 Saatlik Döngü" → "Ichigo"
209
209
  if (!memory.botName) {
210
210
  try {
211
211
  const cronJobsPath = path.join(openclawDir, 'cron', 'jobs.json');
@@ -214,9 +214,13 @@ async function migrate(options) {
214
214
  const cronData = JSON.parse(fs.readFileSync(cronJobsPath, 'utf8'));
215
215
  const jobs = cronData.jobs || cronData || [];
216
216
 
217
+ // Skip list: generic names that are not bot names
218
+ const skipNames = ['Natureco', 'Gmail', 'Product', 'NatureCo', 'Twitter', 'Forum', 'Main'];
219
+
217
220
  for (const job of jobs) {
218
- const nameMatch = job.name?.match(/^([A-ZÇĞİÖŞÜa-zçğıöşü]+)\s+(Brain|Briefing|Report)/i);
219
- if (nameMatch && nameMatch[1].toLowerCase() !== 'natureco') {
221
+ // Extract first capitalized word from job name
222
+ const nameMatch = job.name?.match(/^([A-ZÇĞİÖŞÜ][a-zçğıöşü]+)\s/);
223
+ if (nameMatch && !skipNames.includes(nameMatch[1])) {
220
224
  memory.botName = nameMatch[1];
221
225
  break;
222
226
  }