Skip to content

Commit 6898fc7

Browse files
committed
chore(changeset): fold the agent-docs changesets into one
Four entries described one capability from four angles, which reads as four features in the release notes. One entry, one paragraph per language. Drops the note about re-exporting `build` and `closeServer` — that change was reverted; feat/export-modern-app-tools-dev exposes the same API properly. Also corrects the pending entry from #8774: it still tells existing projects to run `create agents-md`, the subcommand this PR replaced with a flag. Both ship in the same release, so the notes would have contradicted each other.
1 parent cc4dbf7 commit 6898fc7

5 files changed

Lines changed: 14 additions & 24 deletions

File tree

.changeset/agent-docs.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@modern-js/app-tools': patch
3+
'@modern-js/create': patch
4+
---
5+
6+
feat: ship version-matched docs inside the package so AI coding agents read documentation matching the installed version instead of their training data
7+
8+
`@modern-js/app-tools` now bundles the docs site's build output as `docs/`, with `llms.txt` as its index. `@modern-js/create` writes an `AGENTS.md` / `CLAUDE.md` pair pointing there, and `--agents-md-only` adds or refreshes them in an existing project. Both capabilities are exported for downstream frameworks to reuse.
9+
10+
feat: 随包分发与版本匹配的文档,让 AI 编码助手读到与所装版本一致的内容,而不是训练数据里的旧知识
11+
12+
`@modern-js/app-tools` 将文档站构建产物打包为 `docs/`,并附 `llms.txt` 索引;`@modern-js/create` 生成指向该路径的 `AGENTS.md` / `CLAUDE.md``--agents-md-only` 可为已有项目补齐或更新。两项能力均已导出,供下游框架复用。

.changeset/agent-knowledge-supply.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
'@modern-js/create': minor
44
---
55

6-
feat: agent knowledge supply — bundle version-matched English docs into the app-tools tarball (`docs/`) on publish, and generate `AGENTS.md` / `CLAUDE.md` in new projects created by `@modern-js/create` (skip with `--no-agents-md`). Existing projects can run `npx @modern-js/create agents-md` to add or idempotently refresh these files after an upgrade (managed marker block is updated in place, user content is preserved). Also fixes boolean flags swallowing the following positional argument (e.g. `create --sub my-app`).
6+
feat: agent knowledge supply — bundle version-matched English docs into the app-tools tarball (`docs/`) on publish, and generate `AGENTS.md` / `CLAUDE.md` in new projects created by `@modern-js/create` (skip with `--no-agents-md`). Existing projects can run `npx @modern-js/create --agents-md-only` to add or idempotently refresh these files after an upgrade (managed marker block is updated in place, user content is preserved). Also fixes boolean flags swallowing the following positional argument (e.g. `create --sub my-app`).
77

8-
feat: Agent 知识供给 —— 发布时将版本匹配的英文文档打进 app-tools tarball(`docs/`),并在 `@modern-js/create` 新建项目时默认生成 `AGENTS.md` / `CLAUDE.md``--no-agents-md` 可跳过)。已有项目可运行 `npx @modern-js/create agents-md` 在升级后补齐或幂等更新这两个文件(就地更新托管标记块,保留用户自定义内容)。同时修复布尔参数吞掉后续位置参数的问题(如 `create --sub my-app`)。
8+
feat: Agent 知识供给 —— 发布时将版本匹配的英文文档打进 app-tools tarball(`docs/`),并在 `@modern-js/create` 新建项目时默认生成 `AGENTS.md` / `CLAUDE.md``--no-agents-md` 可跳过)。已有项目可运行 `npx @modern-js/create --agents-md-only` 在升级后补齐或幂等更新这两个文件(就地更新托管标记块,保留用户自定义内容)。同时修复布尔参数吞掉后续位置参数的问题(如 `create --sub my-app`)。

.changeset/agents-md-only-flag.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/bundle-rendered-docs.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/reusable-agent-docs.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)