Skip to content

GRAL-5437: Restructure README into Overview/Setup/Testing/Architecture/Endpoints/References - #74

Merged
SpaceOven merged 2 commits into
masterfrom
GRAL-5437
Aug 31, 2026
Merged

SpaceOven merged 2 commits into
masterfrom
GRAL-5437

Conversation

@SpaceOven

Copy link
Copy Markdown
Contributor

Related Tickets & Documents

GRAL-5437

Description

Reorganizes README.md into a standard doc template (Overview, Setup, Testing, Architecture, Endpoints (Commands & Events), References/Links) while validating it against package.json and src/. All existing Command/Event API reference content (parameters, responses, examples) is preserved verbatim.

Fixes/flags found during validation:

  • Added a missing "Page visibility state" table-of-contents entry — the section existed in the README body but was never linked from the TOC.
  • Flagged watch:sync's npm-utils dependency (not in devDependencies) and the current absence of test files as "Needs verification" rather than presenting them as verified/working.
  • Confirmed demo/, custom-modal-test/, and issue-63/ are untracked local scratch dirs (not part of the repo) and excluded them from the docs.

Also adds the docs:ai npm script (invokes Claude Code headlessly with .claude/prompts/readme-docs.md to reconcile the README against source) and its prompt file, and updates CLAUDE.md with notes for future documentation reconciliation passes (anchor-slug stability across heading-level changes, no images to preserve yet, scratch dirs to ignore, etc).

No changes to src/ or the public API — documentation only.

Type of PR?

  • 🚧 Maintenance

Manual testing

  • Verified every heading referenced in the new table of contents matches an actual heading in the document (GitHub anchor slugs are heading-level independent, so nesting Commands/Events under a new Endpoints section does not break any existing #anchor links).
  • Cross-checked all documented Command/Event enum members, script names, and Node/npm version requirements against src/types.ts and package.json.

Automated tests added?

  • 👍 Unit tests
  • 👍 Functional tests
  • 👍 E2E tests
  • 🙅 N/A

…/References

Reorganizes README.md into the standard doc template while preserving all
existing Command/Event API reference content, fixes a missing "Page
visibility state" TOC entry, and flags a couple of unverified items
(watch:sync's npm-utils dependency, absence of test files). Adds the
docs:ai npm script and its prompt, and documents the new structure in
CLAUDE.md for future reconciliation passes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SpaceOven
SpaceOven requested a review from a team as a code owner August 28, 2026 13:14
@SpaceOven

Copy link
Copy Markdown
Contributor Author

/review

The "Open modal" section linked to #json-modal, but the actual heading
is "JSON modal action" (slug #json-modal-action). Found during a
follow-up review of the README/CLAUDE.md restructure.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SpaceOven
SpaceOven merged commit f5e8601 into master Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants