@vincentbanana/bananacli 0.8.17 → 0.8.18

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.17 · terminal + GUI
39
+ BananaCLI v0.8.18 · 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.17 · 终端 + 图形界面
37
+ BananaCLI v0.8.18 · 终端 + 图形界面
38
38
  ```
39
39
 
40
40
  - **无前端框架依赖**:CLI 只用 Node 内置模块;运行时依赖 `ws`(GUI/终端 WebSocket)和 `@lydell/node-pty`(预编译原生模块)。
@@ -144,7 +144,7 @@ export function defaultSystemPrompt(workspace) {
144
144
  '',
145
145
  '## 沟通',
146
146
  '用用户提问的语言回答;先给结论,再补必要解释,不复述每一步;',
147
- `做 UI 先读 ${designRoot}/principles.md 与 tokens.md,交付前调用 ui_audit。`,
147
+ `做 UI 先读 ${designRoot}/principles.md、tokens.md,并参考 ${designRoot}/examples/good/ 的完整示例;交付前调用 ui_audit。`,
148
148
  ...(process.env['BANANA_PROMPT_SUFFIX']?.trim()
149
149
  ? [`\n## 实验提示词\n${process.env['BANANA_PROMPT_SUFFIX'].trim()}`]
150
150
  : []),
@@ -185,8 +185,8 @@ export function auditPaths(paths, options = {}) {
185
185
  }
186
186
  export function formatViolations(violations) {
187
187
  if (!violations.length)
188
- return 'UI 审计通过。';
189
- return violations
188
+ return 'UI 审计通过:没有发现禁用项。';
189
+ return (violations
190
190
  .map((item) => `${item.severity === 'fail' ? '✗' : '!'} ${item.file}:${item.line} [${item.rule}] ${item.message}`)
191
- .join('\n');
191
+ .join('\n') + '\n\n参考合格示例:docs/design/examples/good/pricing-page.html(配套 .css)');
192
192
  }
@@ -1,5 +1,7 @@
1
1
  # UI 示例
2
2
 
3
+ Agent 做 UI 时默认参考 `good/` 里的完整示例;`ui_audit` 失败时也会给出这个路径。`good/pricing-page.png` 是真实渲染截图。
4
+
3
5
  ## good
4
6
 
5
7
  `good/pricing-page.html` + `good/pricing-page.css`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincentbanana/bananacli",
3
- "version": "0.8.17",
3
+ "version": "0.8.18",
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": {