Skip to content

docs: v1.6.0 文档对齐与质量治理更新 - #2

Merged
NovolineGast merged 2 commits into
masterfrom
trae/agent-ZlFH7g
Aug 20, 2026
Merged

NovolineGast merged 2 commits into
masterfrom
trae/agent-ZlFH7g

Conversation

@NovolineGast

Copy link
Copy Markdown
Owner

🎯 Changes

1. 文档全面重写与更新

  • README.md (中文版): 全面重写以匹配 v1.6.0 的新架构,包括默认 Ink TUI 界面、三段式布局、--legacy 回退等新界面说明。
  • README.en.md (英文版): 同步重写,扩充功能特性列表(多 Agent 协作、MCP、沙箱、持久记忆等),更新快速开始、命令行用法、CLI 参数表、斜杠命令清单。
  • CLAUDE.md: 重写目录结构树,补充新模块(tui-ink/, swarm/, channels/, sandbox/, tasks/, auth/, keybindings/),更新核心模块职责表,编码与测试约定改为 ESM + NodeNext,新增“Known Gaps (v1.6.0)”章节。
  • CHANGELOG.md: 新增 v1.6.0 版本条目,记录全仓 TypeScript + ESM 迁移、Ink TUI 成为默认界面、默认模型更新、新增子系统模块、扩展斜杠命令、免 Key 的 web.search 工具和 --sandbox 标志,修复 Anthropic 工具名含点号导致工具调用失败的问题。

2. 示例文档漂移警告与更新

  • examples/batch/README.md: 新增漂移警告,说明 stdin 管道不再受支持,批处理已内置于 src/cli.ts,更新快速开始示例。
  • examples/hub-minimal.js & examples/hub-usage.js: 新增漂移警告注释,说明 src/hub 已移除,示例需迁移到 src/index.ts 包入口的 ESM 导入方式。
  • examples/memory/README.md: 新增漂移警告,说明记忆系统已重写为 ~/.haxagent/memories/ 下的 Markdown 文件 + MEMORY.md 索引,旧自由函数 API 已被 MemoryStore 类取代。
  • examples/plugins/README.md: 新增漂移警告,说明仓库已 ESM 化导致 require() 失效,camelCase 钩子名已替换为 10 个生命周期事件。
  • examples/workflows/README.md: 新增漂移警告,说明 createTeamRuntime 模块已不存在,多 Agent 协作迁移至 src/swarm/。

3. 新增文档与文件

  • docs/superpowers/specs/2026-08-21-v1.7-quality-and-features-spec.md: 新增 v1.7 工程加固与新功能路线规格文档,记录现状体检结论并规划 P0 缺陷修复、P1 质量提升项与三波次新功能路线。
  • .trae-html-share-packages/desktop/renderer/index.html.zip: 新增桌面端渲染器 index.html 的二进制共享包文件。

4. 其他改进

  • .github/workflows/release.yml: 将整个文件的 CRLF 换行符规范化为 LF,工作流内容本身无任何改动。

💡 Technical Highlights

  • 文档与代码同步: 全面更新文档以反映 v1.6.0 版本中 TypeScript + ESM + Ink TUI 的新架构,确保用户和开发者能获取最新、最准确的信息。
  • 质量治理与规划: 新增 v1.7 规格文档,明确识别并规划了现有工程质量问题(如 CI 掩盖失败、测试覆盖缺口等)的修复方案和未来功能路线,为项目长期健康发展奠定基础。
  • 旧示例兼容性提示: 为已过时的示例代码添加明确的漂移警告,指导用户如何迁移到新的 ESM + TypeScript 架构,降低升级成本。
  • 二进制共享包: 新增桌面端渲染器 index.html 的二进制共享包,可能为桌面应用集成或特定渲染需求提供便利。
  • 换行符统一: 统一 release.yml 的换行符为 LF,提升跨平台协作的一致性。

NovolineGast and others added 2 commits August 20, 2026 17:17
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 20, 2026 18:31
@NovolineGast
NovolineGast merged commit 8493465 into master Aug 20, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s documentation to align with the v1.6.0 TypeScript+ESM architecture and the default Ink TUI experience, while adding “drift warnings” to outdated examples and introducing a v1.7 quality/features roadmap spec.

Changes:

  • Rewrite/realign core docs (README CN/EN, CLAUDE.md) to reflect the v1.6.0 architecture, CLI flags, slash commands, toolset, and directories.
  • Add explicit drift warnings across examples/ so readers don’t assume legacy CommonJS / removed APIs still run.
  • Add a v1.7 roadmap spec document and update CHANGELOG.md; normalize release.yml line endings.

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.md Chinese README rewritten for v1.6.0 architecture, CLI usage, tools, commands, and ecosystem modules
README.en.md English README rewritten to match v1.6.0 architecture and usage
CLAUDE.md Developer guide updated for TypeScript+ESM + Ink TUI and refreshed module map
CHANGELOG.md Adds v1.6.0 release notes and reflows older sections
examples/batch/README.md Adds drift warning clarifying current batch-mode behavior
examples/hub-minimal.js Adds drift warning noting src/hub removal and migration guidance
examples/hub-usage.js Adds drift warning noting src/hub removal and migration guidance
examples/memory/README.md Adds drift warning describing the new memory subsystem shape/location
examples/plugins/README.md Adds drift warning about ESM migration and new hook lifecycle events/types
examples/workflows/README.md Adds drift warning about createTeamRuntime removal and swarm migration
docs/superpowers/specs/2026-08-21-v1.7-quality-and-features-spec.md Adds v1.7 engineering hardening + roadmap spec
.github/workflows/release.yml LF normalization only (no content changes intended)
Suppressed comments (6)

README.md:394

  • file.read is documented as supporting offset/limit pagination, but the tool schema only supports maxBytes truncation (src/tools/registry.ts). This can mislead users about how to page large files.
| `file.read` | 读取工作区内文本文件(支持 offset/limit 分页) | 路径限制在工作区根目录内 |

README.md:399

  • file.search is documented as having case options and ReDoS protection, but the current implementation always builds a JS RegExp with gi and has no dedicated ReDoS guard (src/tools/registry.ts). The table should avoid claiming protections/options that do not exist.
| `file.search` | 在文本文件中搜索内容(支持正则/大小写配置) | 支持 ReDoS 防护 |

README.en.md:401

  • web.fetch is documented as doing URL validation, but the tool currently calls fetch(url) directly without validation (src/tools/registry.ts). The README should not claim URL validation if it is not implemented.
| `web.fetch` | Fetch a URL as plain text | URL validation |

README.md:401

  • web.fetch is documented as doing URL validation, but the tool currently calls fetch(url) directly without validation (src/tools/registry.ts). The README should not claim URL validation if it is not implemented.
| `web.fetch` | 获取网页内容并转为纯文本 | URL 校验 |

README.en.md:394

  • file.read is documented as offset/limit pagination, but the tool only supports maxBytes truncation (src/tools/registry.ts). This can mislead users about how to page large files.
| `file.read` | Read a workspace text file (offset/limit pagination) | Path confined to workspace root |

README.en.md:399

  • file.search is documented as having case options and ReDoS protection, but the current implementation always uses a JS RegExp with gi and has no dedicated ReDoS guard (src/tools/registry.ts). The table should avoid claiming protections/options that do not exist.
| `file.search` | Search file contents (regex/case options) | ReDoS protection |

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md
## 本地工具

Agent Shell 内置一个受限制的工具注册表,所有文件操作均限定在工作区根目录内,防止路径穿越攻击。
Agent 内置一个受限制的工具注册表,所有文件操作均限定在工作区根目录内,防止路径穿越攻击。
Comment thread README.en.md
| `shell.run` | Execute local commands | Permission prompt decides in non-yolo mode |
| `web.fetch` | Fetch web pages and convert to plain text | URL fetching |
| `web.search` | Search the web for information | Requires search API config |
The agent has a restricted tool registry; all file operations are confined to the workspace root to prevent path traversal attacks.
Comment thread examples/hub-minimal.js
* programmatic entry point is now the package root `src/index.ts` (default
* export with `engine`, `tools`, `api`, `config`, `skills`, `memory`,
* `commands`, `swarm`, … namespaces). The repo is also ESM + TypeScript now,
* so migrate to `import hax from "hax-agent"` style code.
Comment thread examples/hub-usage.js
* programmatic entry point is now the package root `src/index.ts` (default
* export with `engine`, `tools`, `api`, `config`, `skills`, `memory`,
* `commands`, `swarm`, … namespaces). The repo is also ESM + TypeScript now,
* so migrate to `import hax from "hax-agent"` style code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants