@vincentbanana/bananacli 0.8.14 → 0.8.15
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.en.md +1 -1
- package/README.md +1 -1
- package/design-tokens.json +1 -0
- package/dist/ui/app.js +8 -2
- package/dist/ui/style.css +25 -19
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -36,7 +36,7 @@ A multi-provider AI agent for the terminal, with a local GUI. It can read and wr
|
|
|
36
36
|
| |_) | (_| | | | | (_| | |_) | (_| | | | |
|
|
37
37
|
|____/ \__,_|_| |_|\__,_|_.__/ \__,_|_| |_|
|
|
38
38
|
|
|
39
|
-
BananaCLI v0.8.
|
|
39
|
+
BananaCLI v0.8.15 · terminal + GUI
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
- **No frontend framework**: the CLI uses Node built-ins only; runtime dependencies are `ws` and `@lydell/node-pty` (prebuilt native module).
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
| |_) | (_| | | | | (_| | |_) | (_| | | | |
|
|
35
35
|
|____/ \__,_|_| |_|\__,_|_.__/ \__,_|_| |_|
|
|
36
36
|
|
|
37
|
-
BananaCLI v0.8.
|
|
37
|
+
BananaCLI v0.8.15 · 终端 + 图形界面
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- **无前端框架依赖**:CLI 只用 Node 内置模块;运行时依赖 `ws`(GUI/终端 WebSocket)和 `@lydell/node-pty`(预编译原生模块)。
|
package/design-tokens.json
CHANGED
package/dist/ui/app.js
CHANGED
|
@@ -1963,7 +1963,9 @@ function renderThreadPlan() {
|
|
|
1963
1963
|
function renderPendingPlan(plan) {
|
|
1964
1964
|
THREAD.querySelector('.plan-card')?.remove();
|
|
1965
1965
|
if (!plan || plan.status === 'cancelled') return;
|
|
1966
|
-
|
|
1966
|
+
const card = planCardNode(plan);
|
|
1967
|
+
card.classList.add('is-new');
|
|
1968
|
+
THREAD.appendChild(card);
|
|
1967
1969
|
scrollToEnd();
|
|
1968
1970
|
}
|
|
1969
1971
|
|
|
@@ -3596,10 +3598,14 @@ function renderAppearanceSettings(body) {
|
|
|
3596
3598
|
section.appendChild(card);
|
|
3597
3599
|
|
|
3598
3600
|
const lively = settingsCard();
|
|
3601
|
+
const motionSuppressed =
|
|
3602
|
+
document.documentElement.dataset.reduceMotion === '1' ||
|
|
3603
|
+
window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
3599
3604
|
lively.appendChild(
|
|
3600
3605
|
settingsRow(
|
|
3601
3606
|
'灵动动效',
|
|
3602
|
-
'测试功能:消息、按钮和面板带自然弹力与阻尼;终端与代码区不受影响。'
|
|
3607
|
+
'测试功能:消息、按钮和面板带自然弹力与阻尼;终端与代码区不受影响。' +
|
|
3608
|
+
(motionSuppressed ? ' 当前“减少动效”已开启,开启后也不会生效。' : ''),
|
|
3603
3609
|
settingsSwitch(motionOn(), (on) => {
|
|
3604
3610
|
setMotion(on);
|
|
3605
3611
|
renderSettings();
|
package/dist/ui/style.css
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--bg-deep: #fafafa;
|
|
4
4
|
--bg: #ffffff;
|
|
5
5
|
--panel: #f2f2f2;
|
|
6
|
+
--surface: #fbfbfb;
|
|
6
7
|
--panel-2: #ededed;
|
|
7
8
|
--panel-3: #e6e6e6;
|
|
8
9
|
--line: rgba(0, 0, 0, 0.08);
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
--bg-deep: #080808;
|
|
74
75
|
--bg: #161616;
|
|
75
76
|
--panel: #1e1e1e;
|
|
77
|
+
--surface: #1c1c1c;
|
|
76
78
|
--panel-2: #242424;
|
|
77
79
|
--panel-3: #2e2e2e;
|
|
78
80
|
--line: rgba(255, 255, 255, 0.08);
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
--bg-deep: #080808;
|
|
107
109
|
--bg: #161616;
|
|
108
110
|
--panel: #1e1e1e;
|
|
111
|
+
--surface: #1c1c1c;
|
|
109
112
|
--panel-2: #242424;
|
|
110
113
|
--panel-3: #2e2e2e;
|
|
111
114
|
--line: rgba(255, 255, 255, 0.08);
|
|
@@ -4231,8 +4234,8 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4231
4234
|
.msg.assistant .msg-role::before { background: var(--accent-ink); opacity: 0.45; }
|
|
4232
4235
|
.msg.assistant .msg-role { color: var(--text-3); }
|
|
4233
4236
|
.msg.user .msg-body {
|
|
4234
|
-
background: var(--
|
|
4235
|
-
border-color: var(--line
|
|
4237
|
+
background: var(--surface);
|
|
4238
|
+
border-color: var(--line);
|
|
4236
4239
|
padding: 10px 14px;
|
|
4237
4240
|
}
|
|
4238
4241
|
|
|
@@ -4278,8 +4281,8 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4278
4281
|
|
|
4279
4282
|
/* 输入区:与聊天区同宽,工具栏与输入框分层 */
|
|
4280
4283
|
.composer {
|
|
4281
|
-
background: var(--
|
|
4282
|
-
border-color: var(--line
|
|
4284
|
+
background: var(--surface);
|
|
4285
|
+
border-color: var(--line);
|
|
4283
4286
|
padding: 8px 10px 8px 14px;
|
|
4284
4287
|
}
|
|
4285
4288
|
.composer textarea { font-size: 14.5px; line-height: 1.6; }
|
|
@@ -4328,23 +4331,26 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4328
4331
|
|
|
4329
4332
|
/* ---------- 灵动动效(测试功能,默认关闭) ---------- */
|
|
4330
4333
|
:root[data-motion='1'] {
|
|
4331
|
-
--motion-dur:
|
|
4332
|
-
--motion-dur-slow:
|
|
4333
|
-
--motion-spring:
|
|
4334
|
+
--motion-dur: 340ms;
|
|
4335
|
+
--motion-dur-slow: 380ms;
|
|
4336
|
+
--motion-spring: linear(0, 0.026 5%, 0.091 10%, 0.179 15%, 0.278 20%, 0.379 25%, 0.478 30%, 0.569 35%, 0.652 40%, 0.724 45%, 0.786 50%, 0.837 55%, 0.88 60%, 0.915 65%, 0.942 70%, 0.963 75%, 0.979 80%, 0.991 85%, 0.999 90%, 1.005 95%, 1 100%);
|
|
4337
|
+
--motion-spring-panel: linear(0, 0.021 5%, 0.073 10%, 0.143 15%, 0.224 20%, 0.308 25%, 0.391 30%, 0.471 35%, 0.545 40%, 0.612 45%, 0.672 50%, 0.725 55%, 0.771 60%, 0.811 65%, 0.845 70%, 0.874 75%, 0.898 80%, 0.918 85%, 0.935 90%, 0.949 95%, 1 100%);
|
|
4334
4338
|
--motion-shift: 7px;
|
|
4335
4339
|
--motion-press: 0.96;
|
|
4336
4340
|
}
|
|
4337
4341
|
:root[data-motion='1'][data-motion-level='subtle'] {
|
|
4338
|
-
--motion-dur:
|
|
4339
|
-
--motion-dur-slow:
|
|
4340
|
-
--motion-spring:
|
|
4342
|
+
--motion-dur: 260ms;
|
|
4343
|
+
--motion-dur-slow: 300ms;
|
|
4344
|
+
--motion-spring: linear(0, 0.019 5%, 0.068 10%, 0.135 15%, 0.211 20%, 0.291 25%, 0.37 30%, 0.446 35%, 0.517 40%, 0.582 45%, 0.641 50%, 0.694 55%, 0.74 60%, 0.781 65%, 0.816 70%, 0.846 75%, 0.872 80%, 0.894 85%, 0.913 90%, 0.928 95%, 1 100%);
|
|
4345
|
+
--motion-spring-panel: linear(0, 0.018 5%, 0.062 10%, 0.123 15%, 0.193 20%, 0.267 25%, 0.34 30%, 0.412 35%, 0.479 40%, 0.541 45%, 0.599 50%, 0.65 55%, 0.696 60%, 0.737 65%, 0.774 70%, 0.805 75%, 0.833 80%, 0.857 85%, 0.878 90%, 0.896 95%, 1 100%);
|
|
4341
4346
|
--motion-shift: 4px;
|
|
4342
4347
|
--motion-press: 0.975;
|
|
4343
4348
|
}
|
|
4344
4349
|
:root[data-motion='1'][data-motion-level='playful'] {
|
|
4345
|
-
--motion-dur:
|
|
4346
|
-
--motion-dur-slow:
|
|
4347
|
-
--motion-spring:
|
|
4350
|
+
--motion-dur: 420ms;
|
|
4351
|
+
--motion-dur-slow: 460ms;
|
|
4352
|
+
--motion-spring: linear(0, 0.041 5%, 0.143 10%, 0.278 15%, 0.424 20%, 0.567 25%, 0.696 30%, 0.806 35%, 0.895 40%, 0.962 45%, 1.011 50%, 1.042 55%, 1.06 60%, 1.067 65%, 1.067 70%, 1.062 75%, 1.053 80%, 1.044 85%, 1.034 90%, 1.024 95%, 1 100%);
|
|
4353
|
+
--motion-spring-panel: linear(0, 0.024 5%, 0.085 10%, 0.167 15%, 0.26 20%, 0.356 25%, 0.449 30%, 0.537 35%, 0.617 40%, 0.688 45%, 0.749 50%, 0.802 55%, 0.847 60%, 0.883 65%, 0.913 70%, 0.937 75%, 0.956 80%, 0.971 85%, 0.982 90%, 0.99 95%, 1 100%);
|
|
4348
4354
|
--motion-shift: 10px;
|
|
4349
4355
|
--motion-press: 0.94;
|
|
4350
4356
|
}
|
|
@@ -4355,7 +4361,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4355
4361
|
}
|
|
4356
4362
|
|
|
4357
4363
|
:root[data-motion='1'] .msg.enter,
|
|
4358
|
-
:root[data-motion='1'] .plan-card {
|
|
4364
|
+
:root[data-motion='1'] .plan-card.is-new {
|
|
4359
4365
|
animation: motionIn var(--motion-dur-slow) var(--motion-spring) both;
|
|
4360
4366
|
}
|
|
4361
4367
|
|
|
@@ -4369,14 +4375,15 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4369
4375
|
}
|
|
4370
4376
|
|
|
4371
4377
|
:root[data-motion='1'] .review.is-opening {
|
|
4372
|
-
animation: reviewIn var(--motion-dur) var(--motion-spring) both;
|
|
4378
|
+
animation: reviewIn var(--motion-dur) var(--motion-spring-panel) both;
|
|
4373
4379
|
}
|
|
4374
4380
|
:root[data-motion='1'] .model-pop,
|
|
4375
|
-
:root[data-motion='1'] .reasoning-pop
|
|
4376
|
-
|
|
4381
|
+
:root[data-motion='1'] .reasoning-pop,
|
|
4382
|
+
:root[data-motion='1'] .modal-card {
|
|
4383
|
+
animation: pop var(--motion-dur) var(--motion-spring-panel) both;
|
|
4377
4384
|
}
|
|
4378
4385
|
:root[data-motion='1'] .sidebar {
|
|
4379
|
-
transition-timing-function: var(--motion-spring);
|
|
4386
|
+
transition-timing-function: var(--motion-spring-panel);
|
|
4380
4387
|
transition-duration: var(--motion-dur);
|
|
4381
4388
|
}
|
|
4382
4389
|
|
|
@@ -4394,5 +4401,4 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4394
4401
|
.topbar { height: 50px; }
|
|
4395
4402
|
.chat-head { height: 46px; }
|
|
4396
4403
|
.chat-title { font-size: 13.5px; }
|
|
4397
|
-
.chat-card { box-shadow: var(--shadow-sm); }
|
|
4398
4404
|
|
package/package.json
CHANGED