From 76a9175674033c02c7142a4d8fdb59c45ce47e02 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 8 Sep 2026 16:05:42 +0000 Subject: [PATCH] docs(types): let package.json own the spec floor, and fold the duplicate Links section (objectui#8037) The architecture diagram named `@objectstack/spec (v15.x)` as the "Highest Law" while `packages/types/package.json` declares `^17.3.0`, so the page told a reader to pin a version this package refuses to install against. The repair does not write `v17.x`: that recreates the identical defect one major later, and the manifest is a moving target by design -- `scripts/check-spec-range-floors.mjs` tightens these floors as symbols land (it is why this one already moved `^17.0.0` -> `^17.3.0` while the card was open). The diagram now names `package.json` as the authority and carries no version of its own, so the next bump cannot silently falsify it. Second repair: the page carried two `## Links` sections separated by `## License`, disagreeing on host -- `https://www.objectui.org/...` against `https://objectui.org/...`. The `www.` form is this package's own stated homepage (`packages/types/package.json` "homepage" is exactly that Documentation URL) and the repo's dominant spelling, so the first section stays and the second is deleted, keeping its one unique entry (the repository root link) as a new bullet. Nothing links to either anchor. Neither item is reachable by a gate: line 32 sits in an unlabelled fenced diagram, which `check-doc-snippet-types.mjs` does not see even though the page has left its `UNGATED_DOCS` ledger, and `check-doc-links.mjs` judges reachability rather than canonicity. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w --- packages/types/README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/types/README.md b/packages/types/README.md index d1ba9bc394..08a68ae24d 100644 --- a/packages/types/README.md +++ b/packages/types/README.md @@ -29,7 +29,9 @@ pnpm add @object-ui/types Object UI follows a strict **"Protocol First"** approach with a clear inheritance hierarchy: ``` -@objectstack/spec (v15.x) ← The "Highest Law" - Universal protocol +@objectstack/spec ← The "Highest Law" - Universal protocol. The + required range is declared in package.json, + the authority; a copy here goes stale unnoticed. ↓ BaseSchema (@object-ui/types) ← A component node: the base interface every UI component schema extends, carrying `type` @@ -326,6 +328,7 @@ We follow these constraints for this package: - πŸ“š [Documentation](https://www.objectui.org/docs/api/schema-reference) - πŸ“¦ [npm package](https://www.npmjs.com/package/@object-ui/types) - πŸ“ [Changelog](./CHANGELOG.md) +- πŸ’» [GitHub repository](https://github.com/objectstack-ai/objectui) - πŸ› [Report an issue](https://github.com/objectstack-ai/objectui/issues) - 🀝 [Contributing Guide](https://github.com/objectstack-ai/objectui/blob/main/CONTRIBUTING.md) - πŸ—ΊοΈ [Roadmap](https://github.com/objectstack-ai/objectui/blob/main/ROADMAP.md) @@ -333,9 +336,3 @@ We follow these constraints for this package: ## License MIT - -## Links - -- [Documentation](https://objectui.org/docs/api/schema-reference) -- [GitHub](https://github.com/objectstack-ai/objectui) -- [NPM](https://www.npmjs.com/package/@object-ui/types)