beast-agent 1.2.1 → 1.2.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,7 +1,7 @@
1
1
  {
2
2
  "name": "beast-agent",
3
3
  "productName": "Beast Agent",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "description": "Ultra-fast local agent shell for Windows.",
6
6
  "author": "algokodcom (AlgoKod)",
7
7
  "license": "MIT",
@@ -108,7 +108,17 @@ step('5/5 OneDrive yedek (beast-v' + next + ')');
108
108
  try {
109
109
  const dest = path.join(ONE_DRIVE_DIR, 'beast-v' + next);
110
110
  fs.mkdirSync(dest, { recursive: true });
111
- run(`robocopy "${ROOT}" "${dest}" /E /XD node_modules dist "beast agent web" .git /NFL /NDL /NJH`);
111
+ /* robocopy 0-7 arası TÜM çıkış kodları başarıdır (1 = dosya kopyalandı);
112
+ execSync 0 dışını hata sanır — kodu burada yut, gerçek hatada (>7) dur */
113
+ try {
114
+ execSync(
115
+ `robocopy "${ROOT}" "${dest}" /E /XD node_modules dist "beast agent web" .git /NFL /NDL /NJH`,
116
+ { cwd: ROOT, stdio: 'pipe' }
117
+ );
118
+ } catch (e) {
119
+ const code = e && e.status;
120
+ if (!(typeof code === 'number' && code < 8)) throw e;
121
+ }
112
122
  const info = path.join(dest, `YEDEK-BILGI-v${next}.txt`);
113
123
  fs.writeFileSync(info, `BEAST AGENT v${next} — ${new Date().toLocaleString('tr-TR')}\nKaynak: ${ROOT}\nGitHub: https://github.com/algokodcom/beast-agent/releases/tag/${tag}\nnpm: https://www.npmjs.com/package/beast-agent\n`);
114
124
  ok(dest);
@@ -133,7 +133,7 @@
133
133
  <div id="bcStatus" hidden></div>
134
134
  <div id="bcInputRow">
135
135
  <span id="bcPrompt">code&gt;</span>
136
- <input id="bcInput" spellcheck="false" autocomplete="off" placeholder="Beast Code mesajı yaz — Enter ile gönder…" data-i18n-ph="bc_ph" />
136
+ <textarea id="bcInput" rows="1" spellcheck="false" autocomplete="off" placeholder="Beast Code mesajı yaz — Enter ile gönder…" data-i18n-ph="bc_ph"></textarea>
137
137
  <button id="bcStop" title="Çalışan mesajı durdur" hidden data-i18n-title="bc_stop">&#x25A0;&#xFE0E;</button>
138
138
  </div>
139
139
  </div>
@@ -6800,10 +6800,24 @@ function bcIngest(ev) {
6800
6800
  }
6801
6801
  }
6802
6802
 
6803
+ /* Beast Code input otomatik büyür: textarea'da satır sonuna gelince alan
6804
+ aşağı açılır; 140px (≈6 satır) tavanını aşarsa iç scroll'a döner */
6805
+ function bcInputResize() {
6806
+ const ta = els.bcInput;
6807
+ if (!ta) return;
6808
+ ta.style.height = 'auto';
6809
+ const max = 140;
6810
+ const h = Math.min(ta.scrollHeight, max);
6811
+ ta.style.height = h + 'px';
6812
+ ta.classList.toggle('expand', ta.scrollHeight > max);
6813
+ }
6814
+
6803
6815
  function bcRunCurrent() {
6804
6816
  const msg = els.bcInput.value.trim();
6805
6817
  if (!msg) return;
6806
6818
  els.bcInput.value = '';
6819
+ bcInputResize();
6820
+ els.bcInput.focus();
6807
6821
  bcLine('t-cmd', 'code> ' + msg);
6808
6822
  bcHideTodos(); /* yeni sorgu = eski todo list temizlenir; agent yeniden basacak */
6809
6823
  bcSetBusy(true);
@@ -6830,9 +6844,13 @@ function bcRunCurrent() {
6830
6844
  });
6831
6845
  }
6832
6846
 
6833
- if (els.bcInput) els.bcInput.addEventListener('keydown', (e) => {
6834
- if (e.key === 'Enter') { e.preventDefault(); bcRunCurrent(); }
6835
- });
6847
+ if (els.bcInput) {
6848
+ els.bcInput.addEventListener('input', bcInputResize);
6849
+ els.bcInput.addEventListener('keydown', (e) => {
6850
+ /* Enter gönderir, Shift+Enter alt satıra iner (klasik chat input'u) */
6851
+ if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); bcRunCurrent(); }
6852
+ });
6853
+ }
6836
6854
  if (els.bcStop) els.bcStop.addEventListener('click', () => beast.beastcodeStop().catch(() => {}));
6837
6855
  if (els.bcClear) els.bcClear.addEventListener('click', () => {
6838
6856
  els.bcOut.innerHTML = '';
@@ -974,13 +974,12 @@ body.term-open #settingsOverlay { right: var(--tw, 520px); }
974
974
  user-select: none;
975
975
  }
976
976
  .diff-code { flex: 1; padding-right: 10px; }
977
- /* kırmızı: silinen/eski (sol) — yeşil: eklenen/yeni (sağ) */
978
- .diff-line.del { background: rgba(239, 68, 68, 0.13); }
979
- .diff-line.del .diff-code { color: #fca5a5; }
980
- .diff-line.del .diff-num { color: #f87171; opacity: 0.8; }
981
- .diff-line.add { background: rgba(34, 197, 94, 0.12); }
982
- .diff-line.add .diff-code { color: #86efac; }
983
- .diff-line.add .diff-num { color: #4ade80; opacity: 0.8; }
977
+ /* kırmızı: silinen/eski (sol) — yeşil: eklenen/yeni (sağ)
978
+ YAZI rengi normal kalır (siyah) yalnız ARKA PLAN renkli */
979
+ .diff-line.del { background: rgba(239, 68, 68, 0.18); }
980
+ .diff-line.del .diff-code, .diff-line.del .diff-num { color: var(--text); }
981
+ .diff-line.add { background: rgba(34, 197, 94, 0.2); }
982
+ .diff-line.add .diff-code, .diff-line.add .diff-num { color: var(--text); }
984
983
  .diff-line.ctx .diff-code { color: var(--muted); }
985
984
  .diff-line.space { background: rgba(128, 128, 128, 0.06); }
986
985
  .diff-more {
@@ -2218,13 +2217,15 @@ body.ide-mode #bcPanel { display: flex; }
2218
2217
  #bcInputRow {
2219
2218
  flex: none;
2220
2219
  display: flex;
2221
- align-items: center;
2220
+ align-items: flex-end;
2222
2221
  gap: 6px;
2223
2222
  padding: 10px 12px;
2224
2223
  border-top: 1px solid var(--border);
2225
2224
  background: var(--panel);
2226
2225
  }
2227
- #bcPrompt { color: var(--accent); font-family: Consolas, monospace; font-size: 12px; font-weight: 700; flex: none; }
2226
+ #bcPrompt { color: var(--accent); font-family: Consolas, monospace; font-size: 12px; font-weight: 700; flex: none; padding-bottom: 7px; }
2227
+ /* otomatik büyüyen chat input'u: satır sonunda alt satıra iner, alan açılır;
2228
+ tavanı (140px ≈ 6 satır) aşarsa kendi içinde scroll'a döner */
2228
2229
  #bcInput {
2229
2230
  flex: 1;
2230
2231
  min-width: 0;
@@ -2236,7 +2237,13 @@ body.ide-mode #bcPanel { display: flex; }
2236
2237
  font-family: Consolas, monospace;
2237
2238
  font-size: 12.5px;
2238
2239
  outline: none;
2240
+ resize: none;
2241
+ overflow-y: hidden;
2242
+ max-height: 140px;
2243
+ line-height: 1.45;
2244
+ display: block;
2239
2245
  }
2246
+ #bcInput.expand { overflow-y: auto; }
2240
2247
  #bcInput:focus { border-color: var(--accent); }
2241
2248
  #bcStop {
2242
2249
  flex: none;
@@ -2248,6 +2255,7 @@ body.ide-mode #bcPanel { display: flex; }
2248
2255
  font-size: 11px;
2249
2256
  padding: 4px 8px;
2250
2257
  line-height: 1;
2258
+ margin-bottom: 3px;
2251
2259
  }
2252
2260
  #bcStop[hidden] { display: none; }
2253
2261
  #bcStop:hover { border-color: var(--err); }