* docs: fix dangling internal links and widen the link gate
`docs/legal/README.md` and `docs/README.md` still linked the two WeChat
compliance records that 1260b7c4 ("chore(docs): remove wechat related
documents") deleted, and `openai-chat-dual-channel-plan.md` pointed at two
files that never existed in this repository's history.
- `docs/legal/README.md`: drop the now-empty "人工维护的合规记录" section.
- `docs/README.md`: drop the index row for the deleted record.
- `openai-chat-dual-channel-plan.md`: `subscription-bridge.md` has no
successor doc, so reference `packages/anthropic-responses-bridge` (whose
description covers exactly that Anthropic Messages -> OpenAI Responses
bridge) instead; repoint `configuration-design-principles.md` to its
successor `dev-rules/configuration-and-overrides.md`, which owns the
override / restore-default semantics the sentence relies on.
The existing "developer documentation links resolve" test only covered
CONTRIBUTING plus three canonical docs, so none of these were caught. Widen
it to AGENTS.md, both CONTRIBUTING files and every markdown file under
`docs/` (5 -> 47 documents).
Extending the coverage requires ignoring code, because design-rules/DESIGN.md
demonstrates markdown link syntax inline (`[x](y)`). `stripCodeSpans` removes
fenced blocks before inline spans (fences contain backticks, so the reverse
order eats the fence itself). Links written as [`foo.md`](./foo.md) keep
working: stripping leaves [](./foo.md) and the target is still inside the
parentheses.
Note: the WeChat connector itself still ships (`packages/wechat-ilink`); this
change only removes references to files that are already gone. Whether those
compliance records should be restored is a maintainer/legal call, not part of
this change.
Verification:
- `node --test scripts/__tests__/dev-docs-contract.test.mjs` -> 6/6 pass.
- Negative check: re-adding one dangling link fails the widened test with
`broken local link in docs/legal/README.md: ./wechat-open-sdk-compliance.md`;
reverting it goes back to green.
- `pnpm test:unit` -> 56 workspaces PASS, 0 FAIL.
- No package with a `typecheck` script is touched (docs plus the root
`scripts/` test), so the per-package typecheck step is a no-op.
Signed-off-by: Zymonody7 <2196905367@qq.com>
* test(docs-contract): strip indented fences and multi-backtick code spans
Review follow-up (Greptile): `stripCodeSpans` only recognised fences at column
0 and single-backtick inline spans, and both forms already exist in the docs it
now checks:
- indented fences (inside list items) — `docs/design-rules/DESIGN.md:435` and
`docs/dev-rules/pi-remaining-work.md:27`;
- a multi-backtick span whose content itself contains backticks —
`docs/product-rules/task-and-conversation-naming.md:390`
(`` `${n} 个会话` ``).
Neither currently holds markdown-link syntax, so the gate passes either way.
The risk is latent: adding a link example inside one of them would fail the
gate on something that is not a link.
- Fences now allow leading whitespace on both the opener and the closer.
- Inline spans pair on equal-length backtick runs, so a span containing
backticks is removed whole. Deliberately does not cross newlines — a stray
backtick must not silently disable link checking for the rest of the file.
Verification:
- `node --test scripts/__tests__/dev-docs-contract.test.mjs` -> 6/6 pass
(unchanged across all 47 documents).
- Behaviour spot-checks on the stripper: links inside an indented fence, inside
a single-backtick span, and inside a multi-backtick span are all dropped,
while a plain link and [`foo.md`](./foo.md) both survive.
- Negative check still holds: re-adding a dangling link fails with
`broken local link in docs/legal/README.md: ./wechat-open-sdk-compliance.md`.
- `pnpm test:unit` -> 56 workspaces PASS, 0 FAIL.
Signed-off-by: Zymonody7 <2196905367@qq.com>
---------
Signed-off-by: Zymonody7 <2196905367@qq.com>
* ci: 并行拆分 Windows 单测门禁
Signed-off-by: david <david@xd.com>
* fix(ci): 收窄空分片兼容范围
Signed-off-by: david <david@xd.com>
---------
Signed-off-by: david <david@xd.com>
* test: 建立 Windows 路径单测门禁
Signed-off-by: david <david@xd.com>
* fix(scripts): 统一 Windows worktree 实路径
Signed-off-by: david <david@xd.com>
* test(desktop): 覆盖 Windows no-follow 回退
Signed-off-by: david <david@xd.com>
* test(desktop): 对齐 Windows 真实路径夹具
Signed-off-by: david <david@xd.com>
---------
Signed-off-by: david <david@xd.com>