feat: 增强聊天 UI 与终端配置

- 重构消息列表、思考块与工具调用块样式
- ChatContext 支持 agent 分段与 markdown 渲染优化
- 后端增加 PI 命令配置与 Web 终端改进
- 新增 run-backend.sh 启动脚本,忽略 backend/dist 构建产物
This commit is contained in:
2026-06-26 13:21:15 +08:00
parent bd2251e89a
commit 33717d742b
27 changed files with 803 additions and 475 deletions

View File

@@ -100,7 +100,7 @@ function extensionCategory(extension: ExtensionInfo): "local" | "npm" {
}
if (extension.source?.startsWith("npm:")) return "npm";
const pathHint = `${extension.path || ""} ${extension.location || ""}`.replace(/\\/g, "/");
if (pathHint.includes("/.sproutclaw/agent/npm/node_modules/")) return "npm";
if (pathHint.includes("/agent/npm/node_modules/")) return "npm";
return "local";
}
@@ -1366,7 +1366,7 @@ export function SettingsPage() {
</span>
</label>
<p className={styles.fieldHint}>
AI
AI
</p>
</div>
</div>
@@ -1464,7 +1464,7 @@ export function SettingsPage() {
["数据目录", envInfo.dataDir],
["项目根目录", envInfo.repoRoot],
["工作目录", envInfo.cwd],
["Pi 命令", envInfo.piCmd],
["SproutClaw 命令", envInfo.sproutclawCmd || envInfo.piCmd],
] as [string, string | undefined][]
)
.filter(([, v]) => v !== undefined && v !== "")