@vincentbanana/bananacli 0.8.11 → 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.10 · 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.10 · 终端 + 图形界面
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
@@ -4219,10 +4219,17 @@ input:focus-visible, textarea:focus-visible { outline: none; }
4219
4219
  .msg-body h2,
4220
4220
  .msg-body h3 { font-size: 14.5px; margin: 18px 0 8px; font-weight: 600; }
4221
4221
  .msg-role {
4222
+ display: flex;
4223
+ align-items: center;
4224
+ gap: 6px;
4222
4225
  font-size: 10.5px;
4223
4226
  letter-spacing: 0.09em;
4224
4227
  margin-bottom: 6px;
4225
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); }
4226
4233
  .msg.user .msg-body {
4227
4234
  background: var(--panel);
4228
4235
  border-color: var(--line-strong);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincentbanana/bananacli",
3
- "version": "0.8.11",
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": {