beast-agent 1.6.0 → 1.7.0
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/README.md +7 -0
- package/package.json +2 -1
- package/scripts/fix-electron.js +12 -0
- package/src/agent/bots.js +13 -0
- package/src/agent/engine.js +4962 -4906
- package/src/agent/mem0.js +605 -0
- package/src/agent/memory.js +8 -0
- package/src/agent/tools.js +278 -37
- package/src/main.js +32 -18
- package/src/preload.js +1 -0
- package/src/renderer/i18n.js +4 -0
- package/src/renderer/index.html +5 -0
- package/src/renderer/renderer.js +72 -13
- package/src/renderer/style.css +38 -2
package/README.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
  
|
|
6
6
|
|
|
7
|
+
> [!IMPORTANT]
|
|
8
|
+
> **This is a desktop app — it must be installed GLOBALLY:**
|
|
9
|
+
> ```bash
|
|
10
|
+
> npm install -g beast-agent
|
|
11
|
+
> ```
|
|
12
|
+
> ⚠️ The npm sidebar box (`npm i beast-agent`) performs a **local** install — the `beast-agent` command will NOT be on your PATH and the app won't start. If you already installed locally, either re-run the command above, or launch with `npx beast-agent`. Global install also sets up the desktop shortcut and Windows startup automatically on first launch.
|
|
13
|
+
|
|
7
14
|
**Website:** [beast.algokod.com](https://beast.algokod.com) · **AlgoKod:** [algokod.com](https://algokod.com)
|
|
8
15
|
|
|
9
16
|
Beast Agent is a personal AI agent that runs on your machine and connects to **any OpenAI-compatible provider**. Define all your models in a single `config.yaml`; Beast handles the rest.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beast-agent",
|
|
3
3
|
"productName": "Beast Agent",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"description": "Ultra-fast local agent shell for Windows.",
|
|
6
6
|
"author": "algokodcom (AlgoKod)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"openai"
|
|
25
25
|
],
|
|
26
26
|
"main": "src/main.js",
|
|
27
|
+
"preferGlobal": true,
|
|
27
28
|
"bin": {
|
|
28
29
|
"beast-agent": "bin/beast-agent.js",
|
|
29
30
|
"beast": "bin/beast-agent.js"
|
package/scripts/fix-electron.js
CHANGED
|
@@ -114,6 +114,18 @@ module.exports = { electronDir, status, repair };
|
|
|
114
114
|
elle çağrı → hata durumunda exit 1 */
|
|
115
115
|
if (require.main === module) {
|
|
116
116
|
const soft = process.argv.includes('--soft');
|
|
117
|
+
/* npm sitesindeki Install kutusu hep `npm i <isim>` yazar — lokal kurulumda
|
|
118
|
+
`beast-agent` komutu PATH'e girmez ve kullanıcı uygulama başlamadı sanır.
|
|
119
|
+
npm_config_global yalnız `npm i -g` kurulumlarında 'true' gelir → lokalse uyar. */
|
|
120
|
+
const isGlobal =
|
|
121
|
+
String(process.env.npm_config_global || process.env.NPM_CONFIG_GLOBAL || '').trim() === 'true';
|
|
122
|
+
if (soft && !isGlobal) {
|
|
123
|
+
console.log('');
|
|
124
|
+
console.log('\u26A0\uFE0F Beast Agent bu klas\u00F6re LOKAL kuruldu \u2014 `beast-agent` komutu \u00E7al\u0131\u015Fmaz (PATH\u2019te de\u011Fil).');
|
|
125
|
+
console.log(' Do\u011Fru kurulum (\u00F6nerilen): npm install -g beast-agent');
|
|
126
|
+
console.log(' Bu klas\u00F6rde denemek: npx beast-agent');
|
|
127
|
+
console.log('');
|
|
128
|
+
}
|
|
117
129
|
const r = repair({ quiet: false });
|
|
118
130
|
if (r.ok) {
|
|
119
131
|
console.log(r.skipped ? '\u2713 electron binary tamam' : '\u2713 electron binary onar\u0131ld\u0131');
|
package/src/agent/bots.js
CHANGED
|
@@ -416,6 +416,13 @@ function writeMemoryFile(id, file, content) {
|
|
|
416
416
|
const d = botDir(id);
|
|
417
417
|
fs.mkdirSync(d, { recursive: true });
|
|
418
418
|
fs.writeFileSync(path.join(d, file), String(content ?? ''), 'utf8');
|
|
419
|
+
/* admin MEMORY.md'yi elle değiştirdiyse botun mem0 store'unu yeniden kur */
|
|
420
|
+
if (file === 'MEMORY.md') {
|
|
421
|
+
try {
|
|
422
|
+
const mem0 = require('./mem0');
|
|
423
|
+
mem0.reindexFromLines('bot:' + id, String(content ?? '').split('\n').map((l) => l.replace(/^[-*]\s*/, '').trim()).filter(Boolean));
|
|
424
|
+
} catch {}
|
|
425
|
+
}
|
|
419
426
|
logChange(id, `${file} admin tarafından güncellendi`);
|
|
420
427
|
return { ok: true };
|
|
421
428
|
} catch (e) {
|
|
@@ -423,6 +430,11 @@ function writeMemoryFile(id, file, content) {
|
|
|
423
430
|
}
|
|
424
431
|
}
|
|
425
432
|
|
|
433
|
+
/* botun MEMORY.md ayna dosyasının yolu (mem0 syncMirror kullanır) */
|
|
434
|
+
function memPath(id) {
|
|
435
|
+
return path.join(botDir(id), 'MEMORY.md');
|
|
436
|
+
}
|
|
437
|
+
|
|
426
438
|
/* ---------- BOT OTURUMU hafıza operasyonları ----------
|
|
427
439
|
Bot oturumlarında memory_write/memory_search GLOBAL Beast hafızasına DEĞİL,
|
|
428
440
|
botun kendi SOUL/USER/MEMORY dosyalarına gider (tam izolasyon). */
|
|
@@ -559,6 +571,7 @@ module.exports = {
|
|
|
559
571
|
readMemoryFiles,
|
|
560
572
|
writeMemoryFile,
|
|
561
573
|
readMem,
|
|
574
|
+
memPath,
|
|
562
575
|
appendMem,
|
|
563
576
|
appendUserMem,
|
|
564
577
|
searchMem,
|