beast-agent 0.24.2 → 0.24.4

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.24.2",
4
+ "version": "0.24.4",
5
5
  "description": "Ultra-fast local agent shell for Windows.",
6
6
  "author": "algokodcom (AlgoKod)",
7
7
  "license": "MIT",
package/src/main.js CHANGED
@@ -4106,10 +4106,13 @@ const NPM_ONLY_TEXT =
4106
4106
  function npmUpdateViaCmd() {
4107
4107
  try {
4108
4108
  const shim = path.join(process.env.APPDATA || '', 'npm', 'beast-agent.cmd');
4109
- const cmdLine = fs.existsSync(shim) ? `"${shim}" update` : 'beast update';
4109
+ /* TIRNAKSIZ komut: cmd /k tırnaklı yol alırsa komutu 'yazılmış ama çalıştırılmamış'
4110
+ gösterir. Önce PATH'ten dene; %APPDATA% değişkeni cmd içinde genişler. */
4111
+ const shimOk = fs.existsSync(shim);
4112
+ const inner = shimOk ? '%APPDATA%\\npm\\beast-agent.cmd update' : 'beast update';
4110
4113
  spawn(
4111
4114
  'cmd.exe',
4112
- ['/c', 'start', 'Beast Guncelleme', 'cmd', '/k', cmdLine],
4115
+ ['/c', 'start', 'Beast Guncelleme', 'cmd', '/k', inner],
4113
4116
  { detached: true, stdio: 'ignore', windowsHide: false }
4114
4117
  ).unref();
4115
4118
  } catch {}
@@ -1820,7 +1820,7 @@ async function renderUpdatePane(autoCheck) {
1820
1820
  if (st.npm) {
1821
1821
  actions = `<div class="form-grid" style="grid-template-columns:auto auto;gap:8px;margin-top:12px">
1822
1822
  <button id="upCheck" class="btn ghost">${_t('up_check_now')}</button>
1823
- <button id="upInstall" class="btn">${st.available ? '🔄 ' + _t('up_install_now') : _t('up_install_now')}</button>
1823
+ <button id="upInstall" class="btn">↻ ${_t('up_install_now')}</button>
1824
1824
  </div>
1825
1825
  <div class="sub" style="margin-top:8px">${_t('up_npm_only')}</div>`;
1826
1826
  } else if (isDev) {
@@ -2472,7 +2472,8 @@ function renderGuestBotMenu() {
2472
2472
  if (!btn || !menu) return;
2473
2473
  const isAdmin = activeBotId === 'beast';
2474
2474
  const show = isAdmin && !!activeId;
2475
- btn.style.display = show ? '' : 'none';
2475
+ /* DİKKAT: hidden ATTRIBUTUE'sünü kaldırmak şart — style.display ile açılmaz */
2476
+ btn.hidden = !show;
2476
2477
  if (!show) { menu.hidden = true; return; }
2477
2478
  const candidates = botsCache.filter((b) => !b.admin && b.vis !== false);
2478
2479
  menu.innerHTML = '';