2026-06-10 07:12:53 +08:00

53 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# v0.5.7
## 新功能
- **代理路由强化**。三件改动让主代理更稳:
- 哨兵复核(`sentinelCheck``code-reviewer` / `security-reviewer` 子代理给出 `APPROVE` / `PASS` 但同时
`[CRITICAL]` / `[HIGH]` 标记时harness 在最终文本上重写为 `CHANGES_NEEDED`,避免主代理把矛盾结论
当作通过。
- 调用限流(`invocationLimiter`):每会话内对同一专家代理的调用次数加上限。
- 验证门禁(`verificationGate`):积累 ≥3 次 Edit / Write / NotebookEdit 但没调用 `verification`
代理时,下一轮注入 `<system-reminder>` 提醒。
- **MCP 市场**。`设置 → MCP` 新增 "市场" 入口14 个内置项 × 8 个分类,可按类型筛选并一键安装;同时支持
从外部源拉取(远程 manifest
- **MCP 工具可见性**。每个 MCP 服务器细节页新增"工具"标签,列出真实暴露给 AI 的工具,并支持单工具开关
(隐藏后会显示"已对 AI 隐藏"标记)。修复 Claude Code 的 `tengu_mcp_tool_search` 在子代理上下文里只露
出 6 个工具时 AI 误判 "MCP 不可用" 的问题。
- **插件列表内联管理**。设置 → 插件列表上现在每行都有启用/禁用 / 卸载按钮,不用再进详情页。共享
`ToggleSwitch` 组件抽出供他处复用。
- **欢迎页面 & 最近活动**。新建会话页加 "试试这些任务" 卡片 + 最近活动卡(含未提交文件数 / 最后分支
/ 一键 "从这里继续")。后端新增 `projectActivityService` 提供活动数据。
- **浏览器 MCP 烟雾测试**。`docs/desktop/10-local-mcp-testing.md` 文档化了用 Chrome DevTools MCP
对接本地桌面端的流程,配套脚本 `scripts/dev-mcp-test.ps1` 一键完成健康检查 / 允许源 / H5 token
/ URL 拷贝,方便子代理远程驱动 UI。
## 修复
- **第三方 Anthropic 兼容网关默认开启思考显示**。mimo / lgfzer / 本地 kiro-account-manager 等代理
会原样转发 Anthropic 的 `thinking` content block`modelSupportsThinking` 仅按 host 白名单识别。
改为:当 API provider 为 firstParty 但 baseUrl 不是 Anthropic 自家域名时,默认按支持思考处理;
`SUPPORTED_CAPABILITIES=none` 仍可显式 opt-out。同时移除不再使用的 `isMiniMaxAnthropicEndpoint`
- **思考块默认展开**。`ThinkingBlock` 渲染时默认 `expanded=true`,思考增量到达时即可见,匹配主流推理
模型的展示惯例。点击仍可折叠。
## 范围
- 代理路由:`src/tools/AgentTool/`sentinelCheck / invocationLimiter / specialistRouter /
agentToolUtils / UI`src/utils/verificationGate.test.ts``src/coordinator/workerAgent.ts`
`src/server/orchestrationPrompt.ts`
- MCP`src/server/api/mcp.ts``src/server/services/mcpMarketplace.ts`
`src/services/mcp/client.ts``src/services/mcp/toolOverrides.ts``desktop/src/pages/McpMarketplace.tsx`
`desktop/src/pages/Settings.tsx`
- 思考:`src/utils/thinking.ts``desktop/src/components/chat/ThinkingBlock.tsx`
- 欢迎页 & 活动:`src/server/services/projectActivityService.ts`、桌面端新建会话页相关组件。
- 工具:`scripts/dev-mcp-test.ps1``docs/desktop/10-local-mcp-testing.md`
## 验证
- `bunx vitest run src/components/chat/`24 files, 229 tests pass ✅
- `cd desktop && bun run lint`tsc --noEmit 通过 ✅
- 单元测试:`sentinelCheck.test.ts` 11 cases / `invocationLimiter.test.ts` / `specialistRouter.test.ts`
/ `verificationGate.test.ts` / `mcp.test.ts` 全部通过 ✅
- 浏览器 MCP 端到端mimo-v2.5-pro 复杂题流式思考 ~3 秒内 584 → 1065 字符递增显示,思考块默认展开 ✅