revert: remove the non-branch changes introduced during the rebase

This commit is contained in:
imccyu
2026-06-21 23:57:00 +08:00
parent 7f131dd4d8
commit fd55d20548
4 changed files with 3 additions and 23 deletions

View File

@@ -97,8 +97,7 @@ pnpm run verify-event-taxonomy # assert the event-taxonomy table in docs/archit
# matches the interface Events declarations in source
pnpm run verify-md-wrap # assert no hard-wrapped prose paragraphs in README.md,
# docs/**/*.md, packages/*/README.md, AGENTS.md (one line per paragraph)
pnpm run verify-md-links # assert relative Markdown links resolve in checked docs
pnpm run doc-sync # doc-typecheck + verify-event-taxonomy + verify-md-wrap + verify-md-links (CI runs this)
pnpm run doc-sync # doc-typecheck + verify-event-taxonomy + verify-md-wrap (CI runs this)
pnpm run demo:echo # run examples/echo-agent (no API key; type "echo hi" to
# see a tool call) — the mock skeleton
pnpm run demo:coding # run examples/coding-agent — the real agent (needs

View File

@@ -95,7 +95,6 @@ pnpm run lint:fix # eslint . --fix
pnpm run doc-typecheck # compile checked TypeScript snippets in Markdown docs
pnpm run verify-event-taxonomy # compare docs/architecture.md event names with source
pnpm run verify-md-wrap # fail on hard-wrapped prose paragraphs in docs/README markdown
pnpm run verify-md-links # fail on broken relative Markdown links in checked docs
pnpm run doc-sync # doc-typecheck, event taxonomy, markdown wrap, and link verification
pnpm run gen-module-graph # regenerate docs/module-graph.md from package peerDeps
pnpm run verify-module-graph # fail if docs/module-graph.md is stale

View File

@@ -19,8 +19,6 @@ Both run via a shared `doc-sync` package.json script that the lefthook pre-push
**Amendment (2026-06-17):** a third gate, **`verify-md-wrap`**, was later folded into `doc-sync`. It parses each in-scope Markdown file (`README.md`, `docs/**`, `packages/*/README.md`, plus `AGENTS.md` / `packages/AGENTS.md`) with `mdast-util-from-markdown` + GFM and fails on any `paragraph` node spanning more than one source line, enforcing the AGENTS.md "Markdown is not hard-wrapped" convention. Same verify-don't-generate principle: it reports hard-wraps and never rewrites, so it adds no formatting churn. `doc-sync` is now three gates.
**Amendment (2026-06-18):** a fourth gate, **`verify-md-links`**, was later folded into `doc-sync` by the [Markdown cross-link validity linting RFC](2026-06-18-markdown-cross-link-lint.md). It checks that every relative Markdown link in the checked docs resolves to an existing file, so the RFC tree can use date-based filenames and relative links instead of stale numeric prose references. `doc-sync` is now four gates.
## Consequences
- Doc drift in the checkable classes now fails the pre-push hook and CI instead of waiting for a reviewer to notice. This is an instance of the "mechanical gates over prose" principle.

20
pnpm-lock.yaml generated
View File

@@ -49,7 +49,7 @@ importers:
version: 0.3.21
tsdown:
specifier: ^0.22.2
version: 0.22.2(oxc-resolver@11.20.0)(publint@0.3.21)(tsx@4.22.4)(typescript@6.0.3)(unrun@0.3.1)
version: 0.22.2(oxc-resolver@11.20.0)(publint@0.3.21)(tsx@4.22.4)(typescript@6.0.3)
tsx:
specifier: ^4.22.4
version: 4.22.4
@@ -2620,16 +2620,6 @@ packages:
unist-util-visit@5.1.0:
resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==}
unrun@0.3.1:
resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==}
engines: {node: ^22.13.0 || >=24.0.0}
hasBin: true
peerDependencies:
synckit: ^0.11.11
peerDependenciesMeta:
synckit:
optional: true
uri-js@4.4.1:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
@@ -4943,7 +4933,7 @@ snapshots:
optionalDependencies:
typescript: 6.0.3
tsdown@0.22.2(oxc-resolver@11.20.0)(publint@0.3.21)(tsx@4.22.4)(typescript@6.0.3)(unrun@0.3.1):
tsdown@0.22.2(oxc-resolver@11.20.0)(publint@0.3.21)(tsx@4.22.4)(typescript@6.0.3):
dependencies:
ansis: 4.3.1
cac: 7.0.0
@@ -4964,7 +4954,6 @@ snapshots:
publint: 0.3.21
tsx: 4.22.4
typescript: 6.0.3
unrun: 0.3.1
transitivePeerDependencies:
- '@ts-macro/tsc'
- '@typescript/native-preview'
@@ -5026,11 +5015,6 @@ snapshots:
unist-util-is: 6.0.1
unist-util-visit-parents: 6.0.2
unrun@0.3.1:
dependencies:
rolldown: 1.1.1
optional: true
uri-js@4.4.1:
dependencies:
punycode: 2.3.1