beast-agent 2.4.5 → 2.6.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/package.json +1 -1
- package/src/agent/engine.js +46 -0
- package/src/agent/nightref.js +35 -0
- package/src/agent/perception.js +95 -47
- package/src/main.js +321 -108
- package/src/preload.js +4 -0
- package/src/renderer/i18n.js +18 -10
- package/src/renderer/index.html +8 -12
- package/src/renderer/renderer.js +199 -130
- package/src/renderer/style.css +98 -51
package/src/renderer/style.css
CHANGED
|
@@ -362,57 +362,6 @@ body.rail-hidden #rail { display: none; }
|
|
|
362
362
|
/* telefon modu: aktif buton vurgulu + dar dockta mobil çerçeve hissi */
|
|
363
363
|
#bbPhone.on { color: var(--accent); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
|
|
364
364
|
body.phone-mode #bbPhone { color: var(--accent); }
|
|
365
|
-
/* mobil önizleme: telefon silueti çerçevesi */
|
|
366
|
-
#bbMobile.on { color: var(--accent); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
|
|
367
|
-
body.mobile-preview #bbMobile { color: var(--accent); }
|
|
368
|
-
/* cihaz seçici: telefonun ALTINDA yüzen modern pill picker (konumu renderPhoneFrame) */
|
|
369
|
-
#bbDevice {
|
|
370
|
-
position: fixed;
|
|
371
|
-
display: none;
|
|
372
|
-
z-index: 10000;
|
|
373
|
-
height: 34px;
|
|
374
|
-
padding: 0 34px 0 16px;
|
|
375
|
-
border-radius: 17px;
|
|
376
|
-
border: 1px solid var(--border);
|
|
377
|
-
background-color: var(--panel2);
|
|
378
|
-
color: var(--text);
|
|
379
|
-
font-size: 12px;
|
|
380
|
-
font-weight: 600;
|
|
381
|
-
letter-spacing: .2px;
|
|
382
|
-
outline: none;
|
|
383
|
-
appearance: none;
|
|
384
|
-
-webkit-appearance: none;
|
|
385
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
386
|
-
background-repeat: no-repeat;
|
|
387
|
-
background-position: right 14px center;
|
|
388
|
-
box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
|
|
389
|
-
}
|
|
390
|
-
#bbDevice:hover { border-color: var(--accent); }
|
|
391
|
-
#bbDevice:focus { border-color: var(--accent); }
|
|
392
|
-
|
|
393
|
-
/* ---------- MOBİL ÖNİZLEME: telefon silueti çerçevesi ----------
|
|
394
|
-
WebContentsView ekranın kendisidir (main'deki PHONE_* sabitleriyle birebir);
|
|
395
|
-
çerçeve/çentik/durum çubuğu/home bar DOM'da çizilir — pointer-events yok,
|
|
396
|
-
native view'a asla dokunmaz (kenar şeritleri view sınırlarının dışındadır) */
|
|
397
|
-
#phoneFrame {
|
|
398
|
-
position: fixed;
|
|
399
|
-
display: none;
|
|
400
|
-
pointer-events: none;
|
|
401
|
-
z-index: 9999;
|
|
402
|
-
box-sizing: border-box; /* border rect sınırlarının İÇİNDE kalır — view ile birebir hizalı */
|
|
403
|
-
border: 12px solid #0a0a0e;
|
|
404
|
-
border-radius: 42px;
|
|
405
|
-
filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .55));
|
|
406
|
-
}
|
|
407
|
-
#phoneFrame .pf-home {
|
|
408
|
-
/* alt kenar çerçeve bandının İÇİNDE — native view'ın dışında, görünür */
|
|
409
|
-
position: absolute;
|
|
410
|
-
bottom: -9px; left: 50%;
|
|
411
|
-
transform: translateX(-50%);
|
|
412
|
-
width: 38%; height: 4px;
|
|
413
|
-
border-radius: 3px;
|
|
414
|
-
background: rgba(255, 255, 255, .8);
|
|
415
|
-
}
|
|
416
365
|
|
|
417
366
|
/* sürükle-boyutlandır tutamacı (görünmez) */
|
|
418
367
|
/* Beast Code chat ↔ tarayıcı arası ayırıcı: ideSplit ile BİREBİR aynı çizgi
|
|
@@ -2621,6 +2570,83 @@ body.ide-mode #bcPanel { display: flex; }
|
|
|
2621
2570
|
text-overflow: ellipsis;
|
|
2622
2571
|
}
|
|
2623
2572
|
#fileTree { flex: 1; overflow-y: auto; padding: 6px 4px; }
|
|
2573
|
+
|
|
2574
|
+
/* ---------- Beast Code sohbet geçmişi (dosya panelinin ALT YARISI) ----------
|
|
2575
|
+
Yalnız IDE (Beast Code) modunda görünür; ana sohbet listesinden ayrıdır.
|
|
2576
|
+
Üst yarı klasör ağacı, alt yarı eski Beast Code oturumları. */
|
|
2577
|
+
#bcHistWrap {
|
|
2578
|
+
display: none;
|
|
2579
|
+
flex-direction: column;
|
|
2580
|
+
height: 50%;
|
|
2581
|
+
min-height: 140px;
|
|
2582
|
+
border-top: 1px solid var(--border);
|
|
2583
|
+
background: var(--panel);
|
|
2584
|
+
}
|
|
2585
|
+
body.ide-mode #bcHistWrap { display: flex; }
|
|
2586
|
+
#bcHistHead {
|
|
2587
|
+
flex: none;
|
|
2588
|
+
display: flex;
|
|
2589
|
+
align-items: center;
|
|
2590
|
+
gap: 6px;
|
|
2591
|
+
padding: 7px 10px;
|
|
2592
|
+
border-bottom: 1px solid var(--border);
|
|
2593
|
+
}
|
|
2594
|
+
#bcHistTitle { font-size: 10.5px; letter-spacing: 2px; color: var(--muted); font-weight: 800; }
|
|
2595
|
+
#bcHistHead button {
|
|
2596
|
+
margin-left: auto;
|
|
2597
|
+
background: none;
|
|
2598
|
+
border: 1px solid var(--border);
|
|
2599
|
+
border-radius: 7px;
|
|
2600
|
+
color: var(--muted);
|
|
2601
|
+
cursor: pointer;
|
|
2602
|
+
font-size: 11px;
|
|
2603
|
+
padding: 2px 7px;
|
|
2604
|
+
line-height: 1.4;
|
|
2605
|
+
}
|
|
2606
|
+
/* ikinci buton (çöp) yenile butonunun sağına BİTİŞİK — segmented görünüm */
|
|
2607
|
+
#bcHistHead #bcHistClear {
|
|
2608
|
+
margin-left: -6px; /* flex gap'i iptal et — iki buton yan yana yapışık */
|
|
2609
|
+
border-top-left-radius: 0;
|
|
2610
|
+
border-bottom-left-radius: 0;
|
|
2611
|
+
}
|
|
2612
|
+
#bcHistHead #bcHistRefresh { border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
2613
|
+
#bcHistHead button:hover { color: var(--text); background: var(--panel2); }
|
|
2614
|
+
#bcHistList { flex: 1; overflow-y: auto; padding: 4px; }
|
|
2615
|
+
.bc-hist-item {
|
|
2616
|
+
display: flex;
|
|
2617
|
+
align-items: flex-start;
|
|
2618
|
+
gap: 8px;
|
|
2619
|
+
padding: 7px 8px;
|
|
2620
|
+
border-radius: 8px;
|
|
2621
|
+
cursor: pointer;
|
|
2622
|
+
}
|
|
2623
|
+
.bc-hist-item:hover { background: var(--panel2); }
|
|
2624
|
+
.bc-hist-item.active { background: var(--accent-dim); }
|
|
2625
|
+
.bh-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-top: 5px; }
|
|
2626
|
+
.bc-hist-item.active .bh-dot { background: var(--accent); }
|
|
2627
|
+
.bh-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
|
|
2628
|
+
.bh-title { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
2629
|
+
.bh-meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
2630
|
+
/* satır silme: hover'da belirir */
|
|
2631
|
+
.bh-del {
|
|
2632
|
+
flex: none;
|
|
2633
|
+
width: 20px;
|
|
2634
|
+
height: 20px;
|
|
2635
|
+
border: none;
|
|
2636
|
+
background: none;
|
|
2637
|
+
color: var(--muted);
|
|
2638
|
+
font-size: 13px;
|
|
2639
|
+
line-height: 1;
|
|
2640
|
+
padding: 0;
|
|
2641
|
+
border-radius: 6px;
|
|
2642
|
+
cursor: pointer;
|
|
2643
|
+
opacity: 0;
|
|
2644
|
+
margin-top: 2px;
|
|
2645
|
+
}
|
|
2646
|
+
.bc-hist-item:hover .bh-del,
|
|
2647
|
+
.bc-hist-item.active .bh-del { opacity: 1; }
|
|
2648
|
+
.bh-del:hover { color: var(--err); background: var(--panel2); }
|
|
2649
|
+
.bc-hist-empty { padding: 10px 8px; font-size: 11.5px; color: var(--muted); }
|
|
2624
2650
|
/* görev listesi + geri alma paneli (dosya paneli başlığından açılır) */
|
|
2625
2651
|
#tasksPanel {
|
|
2626
2652
|
position: absolute;
|
|
@@ -2747,6 +2773,27 @@ body.ide-mode #codePane { display: flex; }
|
|
|
2747
2773
|
body.ide-mode.editor-hidden #codePane,
|
|
2748
2774
|
body.ide-mode.editor-hidden #ideSplit { display: none; }
|
|
2749
2775
|
body.ide-mode.editor-hidden #ideRow #bcPanel { flex: 1 1 auto; min-width: 0; }
|
|
2776
|
+
|
|
2777
|
+
/* ---------- paylaşılan kod bölmesi: editör ↔ terminal ----------
|
|
2778
|
+
IDE modunda terminal ALT DOCK'ta değil; #codePane İÇİNDE yaşar.
|
|
2779
|
+
Terminal açılınca editör kapanır (term-pane), editör açılınca terminal kapanır. */
|
|
2780
|
+
body.ide-mode #termPanel {
|
|
2781
|
+
flex: 1 1 auto;
|
|
2782
|
+
height: auto;
|
|
2783
|
+
min-height: 0;
|
|
2784
|
+
border-top: none;
|
|
2785
|
+
z-index: auto;
|
|
2786
|
+
}
|
|
2787
|
+
body.ide-mode #termResize { display: none; }
|
|
2788
|
+
body.ide-mode.term-pane #codeTabsBar,
|
|
2789
|
+
body.ide-mode.term-pane #codeBody { display: none; }
|
|
2790
|
+
/* terminal açıkken bölme editör pref'inden bağımsız GÖRÜNÜR kalır */
|
|
2791
|
+
body.ide-mode.term-pane #codePane { display: flex; }
|
|
2792
|
+
/* terminal açıkken bölme düzeni geçerli kalır (editör pref'i ne olursa olsun) */
|
|
2793
|
+
body.ide-mode.term-pane #ideSplit { display: block; }
|
|
2794
|
+
body.ide-mode.term-pane #ideRow #bcPanel { flex: 0 0 var(--ideSplit, 420px); min-width: 280px; }
|
|
2795
|
+
/* IDE'de terminal altta değil — tarayıcı tutamacı tam boy kalır */
|
|
2796
|
+
body.ide-mode.term-open #bbResize { height: calc(100vh - 46px); }
|
|
2750
2797
|
#codeHide {
|
|
2751
2798
|
flex: none;
|
|
2752
2799
|
width: 24px;
|