beast-agent 2.22.0 → 2.22.1

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": "2.22.0",
4
+ "version": "2.22.1",
5
5
  "description": "Ultra-fast local agent shell for Windows.",
6
6
  "author": "algokodcom (AlgoKod)",
7
7
  "license": "MIT",
@@ -4726,13 +4726,15 @@ const skills = require('./skills');
4726
4726
  });
4727
4727
  }
4728
4728
  if (name === 'ocr_read') return JSON.stringify(await this._ocrRead(args || {}, signal));
4729
- /* opencode general-agent portu: alt-ajan da edit/grep/glob kullanır */
4729
+ /* opencode general-agent portu: alt-ajan da edit/grep/glob kullanır.
4730
+ MT5 (mt5_*) araçları da tools.exec'e geçer (finance işçileri/danışma). */
4730
4731
  if (!(name === 'run_command' || name === 'read_file' || name === 'write_file' || name === 'edit_file' ||
4731
4732
  name === 'list_dir' || name === 'grep' || name === 'glob' ||
4732
4733
  name === 'git_commit' || name === 'git_diff_review' || name === 'git_pr_create' ||
4733
4734
  name === 'repo_map' || name === 'repo_symbols' ||
4734
4735
  name === 'xlsx_read' || name === 'xlsx_write' || name === 'xlsx_edit' ||
4735
- name === 'web_search' || name === 'http_fetch' || name === 'webfetch' || name === 'python_run')) {
4736
+ name === 'web_search' || name === 'http_fetch' || name === 'webfetch' || name === 'python_run') &&
4737
+ !FINANCE_TOOL_SET.has(name)) {
4736
4738
  return JSON.stringify({ ok: false, error: `unknown tool ${name}` });
4737
4739
  }
4738
4740
  return await tools.exec(name, args, { cwd: this.workspace, signal });
@@ -5256,10 +5258,16 @@ const skills = require('./skills');
5256
5258
  return JSON.stringify(await apps.call(name, args || {}, signal));
5257
5259
  }
5258
5260
  /* opencode tool registry portu: edit_file/grep/glob ana ajanın da araçları —
5259
- bunlar olmadan model write_file + tam dosya okuma döngüsüne düşer */
5260
- if (!(name === 'run_command' || name === 'read_file' || name === 'write_file' || name === 'edit_file' ||
5261
- name === 'list_dir' || name === 'grep' || name === 'glob' ||
5262
- name === 'web_search' || name === 'http_fetch' || name === 'webfetch' || name === 'python_run')) {
5261
+ bunlar olmadan model write_file + tam dosya okuma döngüsüne düşer.
5262
+ MT5 (mt5_*) araçları tools.exec → financetools.handlers'a yönlendirilir —
5263
+ whitelist'te yoklarsa finance ajanı "unknown tool" yiyordu (işlem açamama
5264
+ hatasının kök nedeni). */
5265
+ if (
5266
+ !(name === 'run_command' || name === 'read_file' || name === 'write_file' || name === 'edit_file' ||
5267
+ name === 'list_dir' || name === 'grep' || name === 'glob' ||
5268
+ name === 'web_search' || name === 'http_fetch' || name === 'webfetch' || name === 'python_run') &&
5269
+ !FINANCE_TOOL_SET.has(name)
5270
+ ) {
5263
5271
  return JSON.stringify({ ok: false, error: `unknown tool ${name}` });
5264
5272
  }
5265
5273
  return await tools.exec(name, args, { cwd: this._sessionWorkspace(sessionId), signal, wantDiff: true });
@@ -5186,7 +5186,12 @@ async function dmClearAll() {
5186
5186
  toast('Ajan DM geçmişi silindi');
5187
5187
  }
5188
5188
 
5189
- if (els.dmBtn) els.dmBtn.addEventListener('click', () => toggleDmRail($('#dmRail').classList.contains('dm-hidden')));
5189
+ if (els.dmBtn) {
5190
+ els.dmBtn.addEventListener('click', () => {
5191
+ /* kapalıyken (dm-hidden VAR) aç: toggle 'hide' SEMANTIĞI tersine çevrilir */
5192
+ toggleDmRail(!$('#dmRail').classList.contains('dm-hidden'));
5193
+ });
5194
+ }
5190
5195
  if (els.dmModalClose) els.dmModalClose.addEventListener('click', closeDmModal);
5191
5196
  if (els.dmModalClear) els.dmModalClear.addEventListener('click', dmClearAll);
5192
5197
  if (els.dmBackBtn) {