beast-agent 0.25.8 → 0.25.10

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,7 +1,7 @@
1
1
  {
2
2
  "name": "beast-agent",
3
3
  "productName": "Beast Agent",
4
- "version": "0.25.8",
4
+ "version": "0.25.10",
5
5
  "description": "Ultra-fast local agent shell for Windows.",
6
6
  "author": "algokodcom (AlgoKod)",
7
7
  "license": "MIT",
@@ -479,7 +479,7 @@
479
479
  q_flushed: '${n} kuyruktaki mesaj gönderiliyor',
480
480
  bot_num_ro_hint: 'Numara ekleme/kişi adı Ayarlar → Entegrasyonlar (WhatsApp izin listesi) üzerinden yapılır; burada yalnızca bağlı numaralar görünür.',
481
481
  tipStore: 'Skills Store',
482
- tipGithub: 'GitHub Trending — depoları favorile, chate at, ajana araştır',
482
+ tipGithub: 'GitHub Trending — repoları favorile, chate at, ajana araştır',
483
483
  tipIde: 'IDE Modu — dosyalar + chat + preview',
484
484
  ide_files: 'DOSYALAR',
485
485
  ide_pick: 'Klasör seç',
@@ -279,7 +279,7 @@
279
279
  <div id="ghBody">
280
280
  <section id="ghTrendPane" class="gh-pane">
281
281
  <div class="gh-pane-tabs">
282
- <button class="gh-tab on" data-ghtab="trend">Trend Depolar</button>
282
+ <button class="gh-tab on" data-ghtab="trend">Trend Repolar</button>
283
283
  <button class="gh-tab" data-ghtab="all">Tüm Repolar</button>
284
284
  </div>
285
285
  <div class="gh-pane-subline" id="ghTrendSub">— son 2 haftanın yıldız yükselenleri</div>
@@ -472,20 +472,17 @@ async function renderSessions(list) {
472
472
  } catch {}
473
473
  els.sessList.innerHTML = '';
474
474
  /* aktif botun oturumları — botlar arası geçişte liste de o bota göre değişir.
475
- BOT BAĞLAMA MİGRASYONU: bot kaydı olmayan (eski) oturumlar HER botun
476
- listesinde de görünür kullanıcı botunda açıp ilk mesajı yazınca
477
- oturum KALICI olarak o bota bağlanır (agent:send auto-bind; notlar dahil).
478
- Başka bir bota AÇIKÇA bağlı olanlar yalnız o botun listesinde. */
475
+ KATI KURAL: her oturum yalnız BAĞLI OLDUĞU botun listesinde görünür;
476
+ bot kaydı olmayan (eski) oturumlar Beast (varsayılan sahip) altında görünür. */
479
477
  for (const s of list) {
480
- if (s.botId && s.botId !== activeBotId) continue;
481
- const unbound = !s.botId && activeBotId !== 'beast';
478
+ if ((s.botId || 'beast') !== activeBotId) continue;
482
479
  const row = document.createElement('div');
483
480
  row.className = 'sess' + (s.id === activeId ? ' active' : '');
484
481
  row.innerHTML =
485
482
  (waSet.has(s.id) ? '<span class="sess-wa" title="WhatsApp">W</span>' : '') +
486
483
  (tgSet.has(s.id) ? '<span class="sess-tg" title="Telegram">T</span>' : '') +
487
484
  `<span class="sess-title">${escapeHtml(s.title || 'Yeni Sohbet')}</span>` +
488
- `<span class="sess-code" title="${unbound ? 'bağlantı bekliyor — ilk mesajda bu bota bağlanır' : 'Oturum kodu'}">${escapeHtml(s.code || '')}${unbound ? ' ·?' : ''}</span>` +
485
+ `<span class="sess-code" title="Oturum kodu">${escapeHtml(s.code || '')}</span>` +
489
486
  `<button class="sess-del" title="Sil">×</button>`;
490
487
  row.addEventListener('click', () => openSession(s.id));
491
488
  row.querySelector('.sess-del').addEventListener('click', async (e) => {
@@ -2784,10 +2781,9 @@ async function switchBot(id) {
2784
2781
  }
2785
2782
  } catch {}
2786
2783
  try { localStorage.setItem('beast.activeBot', id); } catch {}
2787
- /* o botun en son oturumuna geç; hiç yoksa o bot için yeni sohbet aç.
2788
- (bot kaydı olmayan eski oturumlar da sayılır — ilk mesajda bağlanır) */
2784
+ /* o botun en son oturumuna geç; hiç yoksa o bot için yeni sohbet aç */
2789
2785
  try {
2790
- const list = (await beast.listSessions()).filter((s) => !s.botId || s.botId === id);
2786
+ const list = (await beast.listSessions()).filter((s) => (s.botId || 'beast') === id);
2791
2787
  if (list.length) await openSession(list[0].id);
2792
2788
  else { const v = await beast.createSession(); await openSession(v.id); }
2793
2789
  } catch {}
@@ -2894,7 +2890,7 @@ async function renderBotNotes(pane, b) {
2894
2890
  pane.innerHTML = `<h2>${_t('notes_h2')}</h2><div class="sub">${_t('notes_sub')}</div>`;
2895
2891
  let all = [];
2896
2892
  try { all = await beast.listNotes(); } catch {}
2897
- const list = (b.admin ? all : all.filter((n) => !n.botId || n.botId === b.id))
2893
+ const list = (b.admin ? all : all.filter((n) => (n.botId || 'beast') === b.id))
2898
2894
  .slice()
2899
2895
  .sort((x, y) => String(y.updatedAt).localeCompare(String(x.updatedAt)));
2900
2896
  if (!list.length) {
@@ -2955,8 +2951,7 @@ async function renderBotChats(b) {
2955
2951
  const sessions = [];
2956
2952
  try {
2957
2953
  for (const s of await beast.listSessions()) {
2958
- /* bot kaydı olmayan (eski) oturumlar da gösterilir — ilk mesajda bu bota bağlanır */
2959
- if (!s.botId || s.botId === b.id) sessions.push(s);
2954
+ if ((s.botId || 'beast') === b.id) sessions.push(s);
2960
2955
  }
2961
2956
  } catch {}
2962
2957
  sessions.sort((x, y) => String(y.updatedAt).localeCompare(String(x.updatedAt)));
@@ -3192,7 +3187,7 @@ async function renderBotWatcher(pane, b) {
3192
3187
  try { items = (await beast.watchersList()) || []; } catch {}
3193
3188
  let botSessions = new Set();
3194
3189
  try {
3195
- for (const s of await beast.listSessions()) if (!s.botId || s.botId === b.id) botSessions.add(s.id);
3190
+ for (const s of await beast.listSessions()) if ((s.botId || 'beast') === b.id) botSessions.add(s.id);
3196
3191
  } catch {}
3197
3192
  const mine = items.filter((w) => botSessions.has(w.sessionId));
3198
3193
  if (!mine.length) {
@@ -5287,7 +5282,7 @@ function ghCard(repo, isFav) {
5287
5282
  </div>
5288
5283
  ${repo.description ? `<div class="gh-desc" title="${escapeHtml(repo.description)}">${escapeHtml(repo.description)}</div>` : ''}
5289
5284
  <div class="gh-actions">
5290
- <button class="gh-fav ${isFav ? 'on' : ''}" data-act="fav">${isFav ? '★ Favoride' : '☆ Favorile'}</button>
5285
+ <button class="gh-fav ${isFav ? 'on' : ''}" data-act="fav">${isFav ? '★ Favori' : '☆ Favorile'}</button>
5291
5286
  <button data-act="chat"><svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-1px;margin-right:4px"><path d="M22 2 11 13"/><path d="M22 2 15 22l-4-9-9-4z"/></svg>Chate at</button>
5292
5287
  <button data-act="copy">⧉ Kopyala</button>
5293
5288
  </div>
@@ -5377,7 +5372,7 @@ $('#ghSearch').addEventListener('keydown', (e) => {
5377
5372
  updateGhSub();
5378
5373
  loadGhTrend();
5379
5374
  });
5380
- /* sol sekme: Trend Depolar ⇄ Tüm Repolar (eşit bölünmüş, ortalanmış) */
5375
+ /* sol sekme: Trend Repolar ⇄ Tüm Repolar (eşit bölünmüş, ortalanmış) */
5381
5376
  document.querySelectorAll('.gh-tab').forEach((b) =>
5382
5377
  b.addEventListener('click', () => {
5383
5378
  ghState.ghTab = b.dataset.ghtab;
@@ -2828,7 +2828,7 @@ body.browser-open #ghOverlay { right: var(--bw, 480px); }
2828
2828
  width: auto;
2829
2829
  text-overflow: ellipsis;
2830
2830
  }
2831
- /* sol bölme sekmeleri: Trend Depolar ⇄ Tüm Repolar — eşit genişlik, ortalanmış metin */
2831
+ /* sol bölme sekmeleri: Trend Repolar ⇄ Tüm Repolar — eşit genişlik, ortalanmış metin */
2832
2832
  .gh-pane-tabs { display: flex; flex: none; }
2833
2833
  .gh-tab {
2834
2834
  flex: 1 1 0;