docs(agents): slim AGENTS.md to repo-global rules, single-source the API reference

AGENTS.md (546 -> 63 lines) now carries only project-global development
rules: hard constraints, mount-smoke CI, DSH 0.1.2-alpha.1 adaptation
notes, npm release, a quick-rule list, and a docs/tests map. The
consumer plugin API reference lives solely in
docs/external-plugin-guide.md.

Reference sync:
- README/README_EN: collapse the dual 'full integration docs' links to
  the guide; AGENTS.md stays linked as the repo rules
- shell-presets.ts / mount.e2e.ts comments: skinning contract pointer
  moved from AGENTS.md §8 to guide §12
This commit is contained in:
Menghuan1918
2026-08-28 21:42:39 +08:00
parent 9bfe5ccb66
commit 50e05ecea0
5 changed files with 39 additions and 725 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ test('plugin mounts into the DSH shell and survives a built-in tab sweep', async
await expect(expandButton, 'the collapsed toggle cluster must offer the expand button').toHaveCount(1)
await expandButton.click()
// The skinning contract is token-driven (AGENTS.md §8): the panels consume
// The skinning contract is token-driven (docs/external-plugin-guide.md §12): the panels consume
// `--dsw-alias-bg-layer-1`, so switching a skin re-skins the sidebar with
// no per-skin code. The layout push variable must be live once the panel
// mounts (its absence would mean the panel never opened with the session).