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 +1 -1
- package/src/main.js +5 -2
- package/src/renderer/renderer.js +3 -2
package/package.json
CHANGED
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
|
-
|
|
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',
|
|
4115
|
+
['/c', 'start', 'Beast Guncelleme', 'cmd', '/k', inner],
|
|
4113
4116
|
{ detached: true, stdio: 'ignore', windowsHide: false }
|
|
4114
4117
|
).unref();
|
|
4115
4118
|
} catch {}
|
package/src/renderer/renderer.js
CHANGED
|
@@ -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"
|
|
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
|
-
|
|
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 = '';
|