Repository navigation
fix(cli): preserve 0.6 docs compatibility - #6695
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
|
There was a problem hiding this comment.
Thanks for isolating the new docs-graph and theme surfaces instead of widening the released ones. The restoration itself checks out: the stable content-block union, legacy topic lookup and error behavior, and the bounded catalog reader all match the published compatibility rules, and the focused compatibility suites and type check pass.
One change is needed before this can ship as the patch release it aims to be:
- Pack verification rejects some valid 0.6.3 catalog packages. For an integration package whose version-1 theme catalog entry names a file such as
index.ts(rather than a<name>Themefile),integration pack --checkreports the themes root as containing no discoverable contribution files and returns not packable — even though discovery in the same run finds the theme, locally and in the packed tarball. The file inventory only recognises theme folders that hold a descriptor or a<name>Themesource, so a catalog-only folder counts as zero files. Enumerating the catalog's listed files (and the manifest) when a version-1 catalog is present at the root, with a regression test for a non-<name>Themeentry, would complete the restoration for these packages.
Everything else in the change is ready: once catalog packages of every released entry form pass pack verification, this is approvable as a patch release.
[Automated review]
There was a problem hiding this comment.
Thanks for isolating the new docs-graph and theme surfaces instead of widening the released ones, and for fixing the pack-check gap from the last round — catalog packages with an entry such as index.ts now verify correctly, and the rest of the restoration (the stable content-block union, legacy topic lookup and error behavior, and the bounded catalog reader) still checks out against the focused suites and type check.
One narrower variant of that same gap remains:
- Pack verification still rejects some valid 0.6.3 catalog packages. When a catalog theme's entry is a
<name>Themefile (for exampleoceanTheme.ts) and its folder contains a file the catalog does not list — a draft or helper the package deliberately does not ship — pack-check requires that unlisted file to be in the tarball and returns not packable, even though discovery finds the theme both locally and in the packed tarball. For anindex.tsentry the catalog's file list correctly governs (your new test covers that); for a<name>Themeentry the whole folder is also enumerated, so the outcome depends only on the entry's filename. Making the inventory use the manifest plus the catalog-listed files for any descriptor-less catalog theme, regardless of entry name, with a regression test for this shape, would complete the fix.
Everything else is ready: once catalog packages of every released entry form pass pack verification, this is approvable as a patch release.
[Automated review]
There was a problem hiding this comment.
Thanks for isolating the new docs-graph and theme surfaces instead of widening the released ones, and for completing the pack-check fix from the last round.
The remaining variant is now covered: when a version-1 catalog theme's entry is a <name>Theme file and its folder contains a file the catalog does not list, pack verification now requires only the manifest and the catalog-listed files — a package whose tarball contains exactly those files passes, with regression tests at both the inventory and pack-check levels. Descriptor-owned folders still enumerate their whole directory, mixed roots still prefer descriptors, and an invalid catalog still surfaces its error through discovery rather than through the inventory.
The rest of the restoration still checks out: the stable six-member content-block union with the additive graph type beside it, the legacy topic lookup and error behavior, the bounded warning-only catalog reader with descriptor-only writers, and the two Changesets reclassified to patch. The focused compatibility suites, the authoring type check, and the Changeset check all pass.
This is ready to ship as the patch release it aims to be.
[Automated review]
a6a60ff to
6fd7e99
Compare
6fd7e99 to
74c319c
Compare
74c319c to
27cd735
Compare
7f3010c to
de6964a
Compare
de6964a to
eb59ab6
Compare
eb59ab6 to
1d3a550
Compare
1d3a550 to
585c737
Compare
…emeTemplate export One change on main after #6695: the docs tree for the CLI and integrations (AST-046), navigable reads with typed links (AST-047), integration templates that replace Core templates (AST-035, from #6265), and the themeTemplate export (from #6702). JSON keeps its 0.6 shapes; the CLI's text reads one level at a time.
…emeTemplate export One change on main after #6695: the docs tree for the CLI and integrations (AST-046), navigable reads with typed links (AST-047), integration templates that replace Core templates (AST-035, from #6265), and the themeTemplate export (from #6702). JSON keeps its 0.6 shapes; the CLI's text reads one level at a time.
User impact
Projects using the published
@astryxdesign/[email protected]documentation authoring contracts can take the next release without source or runtime breakage:ReferenceContentBlockrenderers keep the same six cases;Problem and solution fit
The pending docs-graph Changeset was classified as breaking because it widened an existing discriminated union and changed established section-key, lookup, output, and Doctor behavior. Those new capabilities can instead remain additive.
This change isolates graph-only blocks behind
GraphContentBlock, preserves legacy runtime behavior, and keeps strict validation only for explicitly authored new section IDs.Typed theme descriptors are not changed here. That surface is experimental and its existing patch Changeset remains authoritative.
Expected behavior and authority
The 0.6.3 tag defines the published
ReferenceContentBlock, section lookup, error suggestion, and full-topic text contracts.Smallest restoration
ReferenceContentBlockat its six published members; exposeworkflow,collection, andreferenceseparately asGraphContentBlockforNamespaceDoc.ERR_UNKNOWN_SECTIONsuggestions.section-Nkeys to legacy sections that lack usable unique title keys.--indexpath; preserve existing full-topic text.Evidence
packagefield.0.6.4patch.Scope
GraphContentBlockAPI is explicit and required to keep the existing union stable.Testing
pnpm check:repopnpm lintpnpm buildpnpm exec tsc -p packages/cli/tsconfig.authoring-contract.json --noEmit0.6.4patch