feat(ui): 美化启动界面并重构 /is 工具/插件展示
Some checks failed
npm audit / audit (push) Has been cancelled
CI / build-check-test (push) Has been cancelled

- 缩小标题加 ❯ 引导符、彩色版本号、中文说明
- 去除启动头部段落间空行
- /is 本地扩展和 npm 扩展合并为 [插件] 分组展示
- /is 新增 [工具] 区块显示所有注册工具及激活状态

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 14:32:16 +08:00
parent 675dd18182
commit 731ba23515
5 changed files with 122 additions and 21 deletions

View File

@@ -73,8 +73,11 @@ function renderSproutclawLogo(theme: any, width: number): string[] {
if (width < 96) {
return [
[
rgb(" ", [100, 200, 255]),
theme.bold(gradientText("SproutClaw")),
theme.fg("dim", ` v${VERSION}`),
rgb(` v${VERSION}`, [170, 235, 255]),
rgb(" · ", [80, 100, 130]),
rgb("萌芽运维开发助手", [190, 170, 255]),
].join(""),
];
}
@@ -134,16 +137,13 @@ export default function (pi: ExtensionAPI) {
divider,
...renderSproutclawLogo(theme, width),
divider,
rgb("萌芽运维开发 Agent 助手", [170, 235, 255]),
"",
rgb("萌芽运维开发Agent助手", [170, 235, 255]),
];
if (expanded) {
lines.push(expandedInstructions);
lines.push("");
lines.push(onboarding);
} else {
lines.push(compactOnboarding);
lines.push("");
lines.push(onboarding);
}
return lines;