@vincentbanana/bananacli 0.8.10 → 0.8.12

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 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.9 · terminal + GUI
39
+ BananaCLI v0.8.12 · 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.9 · 终端 + 图形界面
37
+ BananaCLI v0.8.12 · 终端 + 图形界面
38
38
  ```
39
39
 
40
40
  - **无前端框架依赖**:CLI 只用 Node 内置模块;运行时依赖 `ws`(GUI/终端 WebSocket)和 `@lydell/node-pty`(预编译原生模块)。
package/dist/ui/app.js CHANGED
@@ -157,6 +157,7 @@ const STRINGS = {
157
157
  'time.days': '天前',
158
158
  'time.today': '今天',
159
159
  'time.yesterday': '昨天',
160
+ 'msg.you': '你',
160
161
  },
161
162
  en: {
162
163
  'sidebar.toggle': 'Conversations (Ctrl+B)',
@@ -234,6 +235,7 @@ const STRINGS = {
234
235
  'time.days': 'd ago',
235
236
  'time.today': 'Today',
236
237
  'time.yesterday': 'Yesterday',
238
+ 'msg.you': 'You',
237
239
  },
238
240
  };
239
241
 
@@ -1189,7 +1191,7 @@ function renderMessage(message) {
1189
1191
  node.className = `msg ${message.role}`;
1190
1192
  const role = document.createElement('div');
1191
1193
  role.className = 'msg-role';
1192
- role.textContent = message.role === 'user' ? '你' : 'Banana';
1194
+ role.textContent = message.role === 'user' ? t('msg.you') : 'Banana';
1193
1195
  const body = document.createElement('div');
1194
1196
  body.className = 'msg-body';
1195
1197
  if (message.role === 'user') {
package/dist/ui/style.css CHANGED
@@ -4201,3 +4201,109 @@ input:focus-visible, textarea:focus-visible { outline: none; }
4201
4201
  .think-peek { display: none; }
4202
4202
  .think-len { margin-left: auto; }
4203
4203
  }
4204
+
4205
+ /* ---------- 细节统一:更宽的内容区、更清楚的结构 ---------- */
4206
+
4207
+ /* 内容宽度:主对话、输入区、计划卡、任务栏统一到同一列 */
4208
+ .msg { max-width: 900px; content-visibility: visible; }
4209
+ .composer,
4210
+ .composer-hint,
4211
+ .attachments { max-width: 900px; }
4212
+ .plan-card { max-width: 880px; }
4213
+ .todo-dock { max-width: 900px; }
4214
+
4215
+ /* 正文节奏 */
4216
+ .msg-body { font-size: 14.5px; line-height: 1.7; }
4217
+ .msg-body p { margin-bottom: 12px; }
4218
+ .msg-body h1,
4219
+ .msg-body h2,
4220
+ .msg-body h3 { font-size: 14.5px; margin: 18px 0 8px; font-weight: 600; }
4221
+ .msg-role {
4222
+ display: flex;
4223
+ align-items: center;
4224
+ gap: 6px;
4225
+ font-size: 10.5px;
4226
+ letter-spacing: 0.09em;
4227
+ margin-bottom: 6px;
4228
+ }
4229
+ .msg.user .msg-role { justify-content: flex-end; }
4230
+ .msg.user .msg-role::before { display: none; }
4231
+ .msg.assistant .msg-role::before { background: var(--accent-ink); opacity: 0.45; }
4232
+ .msg.assistant .msg-role { color: var(--text-3); }
4233
+ .msg.user .msg-body {
4234
+ background: var(--panel);
4235
+ border-color: var(--line-strong);
4236
+ padding: 10px 14px;
4237
+ }
4238
+
4239
+ /* 工具与思考:同一套卡片结构,标题行更像分组头 */
4240
+ .work-group,
4241
+ .think {
4242
+ background: var(--panel);
4243
+ border-color: var(--line);
4244
+ }
4245
+ .work-group > summary,
4246
+ .think > summary {
4247
+ min-height: 32px;
4248
+ padding: 0 12px;
4249
+ font-size: 12px;
4250
+ }
4251
+ .work-group > .tool-group-body { padding: 4px 6px 6px; }
4252
+ .work-group .tool-row { padding: 5px 8px; }
4253
+ .think-body { padding: 8px 12px 10px; font-size: 12.5px; }
4254
+
4255
+ /* 计划卡:头部与正文分开,按钮区更清楚 */
4256
+ .plan-card {
4257
+ padding: 12px 14px;
4258
+ border-color: color-mix(in srgb, var(--accent-ink) 30%, var(--line));
4259
+ }
4260
+ .plan-head {
4261
+ padding-bottom: 8px;
4262
+ border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 16%, var(--line));
4263
+ font-size: 12.5px;
4264
+ }
4265
+ .plan-list { margin-top: 8px; }
4266
+ .plan-item { font-size: 13px; line-height: 20px; }
4267
+ .plan-actions { margin-top: 10px; padding-top: 10px; }
4268
+
4269
+ /* 任务栏:和输入框同一列,信息更紧凑 */
4270
+ .todo-dock {
4271
+ background: var(--panel);
4272
+ border-color: var(--line);
4273
+ }
4274
+ .todo-summary { height: 34px; padding: 0 12px; }
4275
+ .todo-title { font-size: 12px; }
4276
+ .todo-bar { height: 4px; }
4277
+ .todo-item { font-size: 12px; line-height: 19px; }
4278
+
4279
+ /* 输入区:与聊天区同宽,工具栏与输入框分层 */
4280
+ .composer {
4281
+ background: var(--panel);
4282
+ border-color: var(--line-strong);
4283
+ padding: 8px 10px 8px 14px;
4284
+ }
4285
+ .composer textarea { font-size: 14.5px; line-height: 1.6; }
4286
+ .composer-hint { text-align: left; padding-left: 2px; }
4287
+ .send-btn { width: 30px; height: 30px; }
4288
+
4289
+ /* 侧栏:会话项有明确边界,当前项更醒目 */
4290
+ .session-list { padding: 6px 10px 12px; gap: 2px; }
4291
+ .session-item {
4292
+ border: 1px solid transparent;
4293
+ padding: 8px 11px;
4294
+ }
4295
+ .session-item:hover { border-color: var(--line); }
4296
+ .session-item.is-active {
4297
+ background: var(--panel);
4298
+ border-color: var(--line-strong);
4299
+ box-shadow: inset 2px 0 0 var(--accent-ink);
4300
+ }
4301
+ .sb-search { border-radius: 8px; }
4302
+ .sidebar-foot { padding: 10px; gap: 8px; }
4303
+
4304
+ /* 顶栏和聊天头部:少一点装饰,多一点边界 */
4305
+ .topbar { height: 50px; }
4306
+ .chat-head { height: 46px; }
4307
+ .chat-title { font-size: 13.5px; }
4308
+ .chat-card { box-shadow: var(--shadow-sm); }
4309
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincentbanana/bananacli",
3
- "version": "0.8.10",
3
+ "version": "0.8.12",
4
4
  "description": "A multi-provider AI agent for your terminal: file tools, shell, web search, persistent sessions, diff preview and undo",
5
5
  "type": "module",
6
6
  "engines": {