refactor: replace ts-parser with TypeDoc-based normalizer#39
Open
grdsdev wants to merge 9 commits into
Open
Conversation
- CLAUDE.md: remove stale ts-parser/parse-ts rows; add normalize-typedoc.ts
and normalize-typedoc-cli.ts; clarify parse-ignore.ts is Swift-only
- docs/specs: add Behavioral Notes section explaining .sdk-parse-ignore no
longer applies to TypeScript (TypeDoc uses entrypoint resolution instead)
- validate-sdk-compliance.yml: quote \${{ inputs.entrypoint }} in both
TypeDoc run steps to handle paths with spaces
- normalize-typedoc.test.ts: replace vacuous _cache test with meaningful
accessor fixture test; add Namespace (kind 4) traversal test
d3c9dab to
c147046
Compare
grdsdev
added a commit
that referenced
this pull request
Jun 23, 2026
…icts Merge origin/main (PRs #37–#40) into this branch: - #37: sdk-parse-ignore → .sdk-parse-ignore (already synced) - #38: Dart symbol extractor - #39: Swift symbolgraph parser (replaces regex parser, deletes swift-parser.test.ts) - #40: CODEOWNERS, README, CLAUDE.md updates Conflict resolutions: - package.json: keep both normalize-griffe (ours) and normalize-symbolgraph (main) - validate-sdk-compliance.yml: add Python steps alongside Dart/Swift symbolgraph steps; conditions on Resolve/Parse steps now exclude python, swift, and dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ts-parser.ts(TypeScript compiler API, syntactic-only) andparse-ts.tswith a thin normalizer (normalize-typedoc.ts) over TypeDoc 0.27 JSON outputinterface,enum,typealiases, re-exports, and namespace merging that the old parser missedentrypointinput tovalidate-sdk-compliance.yml(default:src/index.ts); SDK repos using the standard layout need no changesChanges
Added:
scripts/capability-matrix/src/normalize-typedoc.ts— TypeDoc JSON →ParseResultnormalizerscripts/capability-matrix/src/normalize-typedoc-cli.ts— CLI entry point (normalize-typedocnpm script)scripts/capability-matrix/test/normalize-typedoc.test.ts— 29 unit + fixture testsscripts/capability-matrix/test/fixtures/typedoc-sample.json— real TypeDoc 0.27 output (hermetic, no build at test time)Deleted:
scripts/capability-matrix/src/ts-parser.tsscripts/capability-matrix/src/parse-ts.tsscripts/capability-matrix/test/ts-parser.test.tsscripts/capability-matrix/test/fixtures/ts-sample/Modified:
.github/workflows/validate-sdk-compliance.yml— TypeDoc steps forjavascriptlanguage;entrypointinputscripts/capability-matrix/package.json—normalize-typedocscript replacesparse-tsCLAUDE.md— updated source file tableTest plan
npm test— 116 tests pass (11 test files, including 29 new normalizer tests)npm run typecheck— cleannpm run validate— schema + structural checks pass