Repository navigation
Generate the canonical polyglot AppHost API reference - #1637
David Pine (IEvangelist) wants to merge 6 commits into
Conversation
2b10e77 to
4e285f4
Compare
4e285f4 to
089cd61
Compare
089cd61 to
be9a304
Compare
be9a304 to
ff0e82a
Compare
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
ff0e82a to
4170bc2
Compare
4170bc2 to
fa2dd4a
Compare
fa2dd4a to
5772bfc
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The AppHost API language auto-correction dispatch can be missed on first load, leaving URL/localStorage unsynchronized.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Generates and wires up the canonical polyglot AppHost API reference for aspire.dev, including new semantic module data, a language-support matrix, canonical /reference/api/apphost/** routes, and legacy TypeScript route compatibility via redirects/aliases.
Changes:
- Adds AtsJsonGenerator test coverage for upstream drift locking, generation script contract, and projection adapter golden outputs.
- Introduces support-matrix aggregation in AtsJsonGenerator and integrates it into the CLI tool surface.
- Migrates frontend API reference UX/routes to the canonical AppHost tree, adds legacy TypeScript redirect/alias plumbing, and updates unit/e2e tests accordingly.
File summaries
| File | Description |
|---|---|
| tests/AtsJsonGenerator.Tests/UpstreamDriftTests.cs | Verifies pinned upstream lock + aggregate hash stability. |
| tests/AtsJsonGenerator.Tests/Golden/typescript.golden | Golden output for TS projection adapter. |
| tests/AtsJsonGenerator.Tests/Golden/rust.golden | Golden output for Rust projection adapter. |
| tests/AtsJsonGenerator.Tests/Golden/python.golden | Golden output for Python projection adapter. |
| tests/AtsJsonGenerator.Tests/Golden/java.golden | Golden output for Java projection adapter. |
| tests/AtsJsonGenerator.Tests/Golden/go.golden | Golden output for Go projection adapter. |
| tests/AtsJsonGenerator.Tests/GenerationScriptContractTests.cs | Locks contract for PowerShell generator args/env handling. |
| tests/AtsJsonGenerator.Tests/AtsJsonGenerator.Tests.csproj | Copies fixtures/golden + tool artifacts to test output. |
| tests/AtsJsonGenerator.Tests/AdapterGoldenTests.cs | Ensures adapter projections match golden baselines. |
| src/tools/AtsJsonGenerator/upstream-sources.lock.json | Adds pinned upstream blob lock manifest. |
| src/tools/AtsJsonGenerator/SupportMatrixCommand.cs | Adds CLI command to generate language support matrix JSON. |
| src/tools/AtsJsonGenerator/Program.cs | Registers support subcommand. |
| src/tools/AtsJsonGenerator/Helpers/SupportMatrixAggregator.cs | Aggregates per-module data into support matrix model. |
| src/tools/AtsJsonGenerator/BatchGenerateCommand.cs | Adds dump provenance args + renames --version to --package-version. |
| src/frontend/tests/unit/validate-generated-api-data.vitest.test.ts | Extends validation tests for semantic modules + support matrix. |
| src/frontend/tests/unit/twoslash-types-generator.vitest.test.ts | Updates fixture shape/env vars for apphost-modules. |
| src/frontend/tests/unit/page-metadata.vitest.test.ts | Updates generated-route OG metadata assertions for apphost routes. |
| src/frontend/tests/unit/normalize-generated-api-data.vitest.test.ts | Updates normalization expectations for semantic projections. |
| src/frontend/tests/unit/integration-card-language-support.vitest.test.ts | Adds tests for support-aware integration language pills. |
| src/frontend/tests/unit/diagnostics-language.vitest.test.ts | Switches diagnostics scan to apphost-modules semantic shape. |
| src/frontend/tests/unit/custom-components.vitest.test.ts | Adjusts expected integration card language markup. |
| src/frontend/tests/unit/container-images-language-support.vitest.test.ts | Adds tests for projected container API labels per language. |
| src/frontend/tests/unit/api-reference-routes.vitest.test.ts | Adds apphost markdown-route recognition coverage. |
| src/frontend/tests/e2e/ts-api-search.spec.ts | Migrates TS API search e2e to apphost landing + lang param. |
| src/frontend/tests/e2e/site-search.spec.ts | Updates search dialog API buttons behavior for generated languages. |
| src/frontend/tests/e2e/og-metadata.spec.ts | Migrates generated API OG fallback coverage to apphost routes. |
| src/frontend/tests/e2e/api-markdown-routes.spec.ts | Adds canonical apphost markdown routes + legacy TS redirect test. |
| src/frontend/src/utils/apphost-typescript-route-aliases.ts | Adds helpers for legacy TS route alias manifest + targets. |
| src/frontend/src/utils/apphost-api-sidebar.ts | Adds sidebar builder for apphost API tree. |
| src/frontend/src/utils/apphost-api-search.ts | Builds apphost search index across languages + member routes. |
| src/frontend/src/utils/apphost-api-search-stats.ts | Adds stats helpers for apphost search landing UI. |
| src/frontend/src/utils/apphost-api-routes.ts | Adds slugging + top-level/member routing helpers for apphost. |
| src/frontend/src/utils/apphost-api-markdown.ts | Adds Markdown renderers for apphost module/item/member pages. |
| src/frontend/src/pages/reference/api/typescript/[module]/[item]/[member].md.ts | Converts legacy TS markdown member route into redirect. |
| src/frontend/src/pages/reference/api/typescript/[module]/[item].md.ts | Converts legacy TS markdown item route into redirect. |
| src/frontend/src/pages/reference/api/typescript/[module].md.ts | Converts legacy TS markdown module route into redirect. |
| src/frontend/src/pages/reference/api/typescript.md.ts | Converts legacy TS markdown index into redirect. |
| src/frontend/src/pages/reference/api/apphost/index.astro | Adds canonical apphost API landing/search page. |
| src/frontend/src/pages/reference/api/apphost/[module]/index.astro | Adds canonical module overview page. |
| src/frontend/src/pages/reference/api/apphost/[module]/[item]/index.astro | Adds canonical item page with per-language projections + members list. |
| src/frontend/src/pages/reference/api/apphost/[module]/[item]/[member]/index.astro | Adds canonical member page with per-language projections. |
| src/frontend/src/pages/reference/api/apphost/[module]/[item]/[member].md.ts | Adds canonical member Markdown route. |
| src/frontend/src/pages/reference/api/apphost/[module]/[item].md.ts | Adds canonical item Markdown route. |
| src/frontend/src/pages/reference/api/apphost/[module].md.ts | Adds canonical module Markdown route. |
| src/frontend/src/pages/reference/api/apphost.md.ts | Adds canonical apphost index Markdown route. |
| src/frontend/src/middleware.ts | Expands nested markdown redirect matcher to include apphost. |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Umami.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Squad.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.SqlServer.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Rust.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Redis.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Python.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.PowerShell.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.MySql.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.MongoDB.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Keycloak.Extensions.13.5.1-beta.748.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Flyway.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Elasticsearch.Extensions.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.DuckDB.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Deno.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Dbx.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Bun.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/CommunityToolkit.Aspire.Hosting.Adminer.13.5.0.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Dotnet.13.5.3-preview.1.26425.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Browsers.13.5.3-preview.1.26425.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Blazor.13.5.3-preview.1.26425.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Azure.Search.13.5.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Azure.OperationalInsights.13.5.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Azure.FrontDoor.13.5.3-preview.1.26425.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/data/ts-modules/Aspire.Hosting.Azure.ApplicationInsights.13.5.3.json | Removes legacy TS module JSON (migration to semantic modules). |
| src/frontend/src/content.config.ts | Defines semantic apphostModules collection + schema validation. |
| src/frontend/src/components/starlight/Sidebar.astro | Treats typescript/apphost as the same API grouping for sidebar logic. |
| src/frontend/src/components/starlight/Search.astro | Replaces TS API button with generated-language AppHost API buttons. |
| src/frontend/src/components/IntegrationCard.astro | Filters language pills based on per-package semantic support. |
| src/frontend/src/components/api-reference/MemberCardBase.astro | Expands lang union to generated languages for highlighting. |
| src/frontend/src/components/api-reference/inpage-search-sync.ts | Exports class for direct imports while keeping window binding. |
| src/frontend/src/components/api-reference/AppHostProjection.astro | Renders a single item projection for a selected language. |
| src/frontend/src/components/api-reference/AppHostApiLanguageSelector.astro | Adds generated-language pivot selector for apphost API pages. |
| src/frontend/scripts/update-ts-api.ts | Regenerates semantic apphost-modules data and support matrix. |
| src/frontend/scripts/normalize-generated-api-data.ts | Normalizes terminology in apphost-modules + support matrix. |
| src/frontend/package.json | Adds update:apphost-api and aliases update:ts-api. |
| src/frontend/config/sidebar/reference.topics.ts | Renames sidebar link to “Search AppHost APIs” and points to new route. |
| .github/workflows/update-release-branch.yml | Includes apphost-modules + support matrix in generated outputs. |
| .github/workflows/update-integration-data.yml | Includes apphost-modules + support matrix in integration update outputs. |
| .gitattributes | Enforces LF + stable whitespace handling for golden files. |
Review details
- Files reviewed: 32/327 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
c0ce5dc to
0ab55b2
Compare
## Summary The [Keycloak integration page](https://aspire.dev/integrations/security/keycloak/) suggests initializing realms with the "[Keycloak Admin Client](https://www.nuget.org/packages/Keycloak.AuthServices.Sdk.Admin)". That package doesn't exist on NuGet, so readers land on a "package not found" page. The Admin REST API client from the same project ships in **`Keycloak.AuthServices.Sdk`**. This PR points the link there; the link text is unchanged. **Evidence** - NuGet v3 flat container: - `api.nuget.org/v3-flatcontainer/keycloak.authservices.sdk.admin/index.json` returns **404**. - `.../keycloak.authservices.sdk/index.json` returns **200** (latest 3.0.0). - NuGet search for `Keycloak.AuthServices` lists Authentication, Authorization, Common, Sdk, Sdk.Kiota, OpenTelemetry, Aspire.Hosting, Authorization.TokenIntrospection, Templates and Authorization.Uma. There's no `Sdk.Admin`. - The `Keycloak.AuthServices.Sdk` 3.0.0 NuGet description reads: "HttpClient integration with Keycloak. Includes HTTP Admin REST API, Protection API." - The upstream [Keycloak.AuthServices README](https://github.com/NikiforovAll/keycloak-authorization-services-dotnet#example---invoke-admin-api) "Invoke Admin API" example uses this package's `AddKeycloakAdminHttpClient` and `IKeycloakRealmClient` to create and read realms. That matches the docs context: creating and configuring realms, clients and users. `Keycloak.AuthServices.Sdk.Kiota` also exists, but it's the Kiota-generated alternative; the primary admin client is `Sdk`. - Overlap: no open aspire.dev issue or PR mentions `Keycloak.AuthServices`. Open PRs #1737 and #1637 touch only generated Keycloak API data, not `keycloak.mdx`. This change isn't visual. Only the link target changes. ## Third-party links and affiliations Changes one third-party link from `https://www.nuget.org/packages/Keycloak.AuthServices.Sdk.Admin` (nonexistent) to `https://www.nuget.org/packages/Keycloak.AuthServices.Sdk`, published by the community Keycloak.AuthServices project. No affiliation. ## Validation - Before/after NuGet API evidence: 404 → 200, as listed above. I didn't add a unit regression check, because the repo's unit tests run offline and have no NuGet existence check to extend. - `npx vitest run`: 1,119 passed, 1 skipped. - `npx eslint . --max-warnings 0`: clean. - `keycloak.mdx` already has Prettier warnings on `main`; this one-line change doesn't affect them. **🤖 Posted by AspireAgent (AI Agent)** Co-authored-by: davidfowl <[email protected]> Co-authored-by: Copilot <[email protected]>
David Pine (IEvangelist)
left a comment
There was a problem hiding this comment.
[partial - phase A: 21 of 26534 claim groups evaluated; phase B: TypeScript UX sampled, generation prerequisite and multi-language validation incomplete]
Automation: user-approved hourly local documentation PR reviewer for David Pine (@IEvangelist). This is its single combined report for this PR, including this partial result; it will not automatically review this PR again on later commits.
Inspected head: 0ab55b2b21604e3e9a104de2ee737af103b15cd5; target ievangelist-core-diagnostics-pr at a4204d6470c411b805f69eae0e49180675027891. All 327 changed-file paths/content were inventoried; introduced generated JSON was parsed and complete raw groups preserved. Reading/inventorying is not semantic verification. This is documentation accuracy and user-experience review, not standard code review.
Trusted policy: default-branch doc-pr-reviewer, doc-tester, playwright-cli and relevant Astro instructions at 708ea2758b6ac970a661e34cf72ed1f706e90c30. Native reviewer skill loading was unavailable; trusted file policy was executed directly for doc-pr-reviewer https://github.com/microsoft/aspire.dev/pull/1637. PR-head policy was not authoritative.
Source of truth: microsoft/aspire / main / 0efbfcb095bf85ccf89678193d64b46022e7657e. No source branch named ievangelist-core-diagnostics-pr exists, so main is the documented fallback. Also queried the PR's exact historical provenance pin 62028348b5d02dfc8f8baf03a4472946537b0d16 read-only to check its 20 file blobs and corroborate the fluent-return rule; historical provenance does not automatically verify present package/API semantics. Owning Toolkit/Azure surfaces remain unfinished, not inferred from core sources.
Coverage: 26,534 inventoried logical claim groups: 20 verified, 1 contradicted, 0 verified-with-nuance, 0 evaluated-as-unverifiable, 26,513 not evaluated. The verified groups establish only the 20 declared source-lock file identities. Counting groups are module identity/provenance, complete semantic items, complete per-language projections, and complete other changed-file assertions. Nested parameters, descriptions, fields and return metadata remain in those groups. This is not a count of fully extracted atomic prose claims, nor clearance of unfinished groups.
Independent Phase B: sampled canonical index/module/item/member routes, TypeScript aliases, markdown, search/sidebar and Redis gallery language links passed; 0 critical issues established, 4 reported warnings. Only TypeScript generated-reference projection was enabled. The literal README dump command exited zero but produced empty API/package collections on available CLI 13.4.0; no successful API generation or five-language runtime validation occurred.
Why this is a partial COMMENT, not approval
A compatible populated live dump/generation walkthrough was not established: the available 13.4.0 CLI produced empty input, while the README provenance example and displayed package versions differ. The full generated surface has not been independently matched against all owning language generators and product/package refs. No undocumented AppHost, PR-authored generation/build scripts, certificate-store action, provisioning flow or full site build was used to manufacture a passing result. Phase A is explicitly unfinished and Phase B is sampled with concrete runtime/language limits. Per the automation rules, incomplete checks require a labeled partial COMMENT even though the evaluated source-backed contradiction below warrants correction. There is no approval or complete REQUEST_CHANGES verdict.
The tester's disabled-language observation is a coverage limit, not a request to enable hidden languages. Its tester-created heading fragment is an optional enhancement, not an advertised broken-link defect. Its Astro dev-audit error has no established PR causality or production impact. These observations are preserved verbatim below, not promoted to source-proven contradictions. Fixed provenance/package versions are not automatically treated as erroneous current-release installation instructions.
Phase A - claim verification
C01 - source-backed contradiction (also submitted inline)
C01 — contradicted: the source-derived TypeScript declaration loses the fluent return type.
This declares:
addRedis(name: string, options?: AddRedisOptions): Promise<RedisResource>In the pinned source of truth, AddRedis returns IResourceBuilder<RedisResource>. The owning TypeScript projector selects the resource-specific fluent promise interface for builder returns, resolves the target resource wrapper, and names it <resource>Promise. The actual SDK emitter uses that return. This is RedisResourcePromise, not native Promise<RedisResource>; the latter drops the fluent methods needed to understand chaining without awaiting.
This is not only a newer-main difference: the PR's own locked generator provenance at 62028348b5d02dfc8f8baf03a4472946537b0d16 has the same fluent-return rule. In contrast, the new docs adapter unconditionally wraps nonvoid returns in native Promise<T>.
Please align the projection producer with the owning TypeScript generator and regenerate affected declarations/return metadata, rather than hand-editing this generated JSON. The independent browser run also observed this exact native-Promise signature on the rendered addRedis page. This is one source-backed finding, not a claim that the remaining generated surface was fully checked.
The complete local catalog preserves exact raw groups/file content, JSON pointers, source targets, inspected-file SHA256 hashes, stable unique IDs and explicit not-evaluated status. The other 26,513 groups still require claim extraction/source verification; none is silently marked verified or declared false.
20 verified upstream source-lock file identity assertions
For each entry, git rev-parse 62028348b5d02dfc8f8baf03a4472946537b0d16:<path> returned exactly the PR's declared blob. This establishes immutable provenance only; it does not establish that the independently implemented local adapter is semantically equivalent. Aggregate hash generation was not separately checked.
Phase B - independent, source-blind doc-tester report (complete)
Documentation Test Report — independent Phase B
Focus area: Exactly microsoft/aspire.dev PR 1637; generated AppHost reference and associated navigation, integration indicators, markdown routes, and generation instructions.
Date: 2026-11-02; browser testing approximately 20:16–20:22 UTC.
Tester: Source-blind doc-tester.
Docs HEAD before and after: 0ab55b2b21604e3e9a104de2ee737af103b15cd5.
Trusted policy: Read using git show 708ea2758b6ac970a661e34cf72ed1f706e90c30:.agents/skills/doc-tester/SKILL.md and the corresponding playwright-cli/SKILL.md.
Summary
Disposition: sampled browser UX passed for the enabled TypeScript reference; generation walkthrough has a concrete runtime limitation. Multi-language reference validation remains incomplete. This is not exhaustive approval of 327 changed files or generated API correctness.
| Category | Result | Exact scope |
|---|---|---|
| Browser/content presentation | Sampled pass | Index, Redis module, core addContainer, Redis addRedis, RedisResource, BloomFilter, nested withDataVolume, nested host |
| Language selector | Single enabled language verified | TypeScript only; clicking it preserves the active search; Python/Go/Java/Rust query requests normalize to TypeScript |
| Search/sidebar | Sampled pass | addRedis search, result click, query persistence, RedisResource sidebar filtering |
| Canonical/alias navigation | Sampled pass | HTML index/module/item/member hierarchy; old TypeScript index/module/item/member routes resolve to canonical AppHost routes |
| Markdown | Sampled pass | Canonical index/module/item/member; old TypeScript addRedis.md alias |
| Integration indicators | Sampled pass | Redis gallery TypeScript and C# links select the corresponding Redis hosting examples |
| Literal CLI instructions | Warning | Exact README dump command exits zero but writes an empty 153-byte document on installed CLI 13.4.0 |
| Code execution/API semantics | Not validated | Reference signatures are declarations, not complete runnable AppHost instructions; no generated SDK integration or Redis/container execution |
Input was the actual checkout documentation and pr-1637-files.json. No PR body, comments, reviews, Phase A artifacts, product source, toolkit source, or SDK source were read. Documentation-site browser access used only playwright-cli, session aspire-doc-review-1637, tracked Edge config .playwright\cli.config.json, and the parent's existing http://localhost:4321 server. No second server or full build was started.
Critical Issues
No critical documentation defect established within this bounded sample.
The empty dump below is a real observed failure to obtain useful API input, but the tested CLI differs from the README's provenance version and the displayed API package versions. It is not evidence that the generator, all advertised language projections, or the intended pinned runtime are incorrect.
Warnings
W1 — Literal generation prerequisite produces empty API input on available runtime
Location: src/tools/AtsJsonGenerator/README.md, “Generate one package.”
Type: CLI / reproducibility.
Severity: Medium warning; execution blocked beyond the first generation prerequisite.
Documentation says:
Transforms one
aspire sdk dump --format jsondocument into one language-neutral AppHost API package
The first command is:
aspire sdk dump --format json -o Aspire.Hosting.dump.jsonActual reproduction: In a newly created, empty .doc-tester-workspace\pr-1637-phase-b, run that command unchanged using the installed CLI after isolating all user/cache/temp locations.
Installed version:
13.4.0+3f0998a95833d5fef96b3159d56b667889b71166
Actual result: exit code 0, “Capabilities written to …Aspire.Hosting.dump.json”, but the complete output is:
{
"Packages": [],
"Capabilities": [],
"HandleTypes": [],
"DtoTypes": [],
"EnumTypes": [],
"ExportedValues": [],
"Diagnostics": []
}aspire sdk dump --help independently states:
If not specified, dumps core Aspire.Hosting capabilities.
Thus command recognition and JSON output succeeded, but obtaining core API contents did not. No API/package generation success is claimed. The README example labels provenance with --dump-cli-version 13.2.0; those metadata arguments do not themselves install/select that runtime. Browser module pages identify core and Redis packages as 13.5.3, also different from the available CLI.
Evidence: cli-version.txt, literal-sdk-dump.txt, Aspire.Hosting.dump.json, sdk-dump-validation.json, sdk-dump-help.txt.
Recommendation: State the required compatible CLI/build and input prerequisites before the first command; include a small output sanity check showing nonempty core package/capability data. Re-run the exact walkthrough on that runtime. Do not paper over this by assuming a successful process exit proves a populated dump.
W2 — Multi-language reference UX cannot be exercised in the served configuration
Location: /reference/api/apphost/ and sampled core/Redis pages.
Displayed text:
Select the generated AppHost API language
Browse the generated AppHost SDK surface. Support is determined per API item, so a package can expose different capabilities in each language.
Actual: The selector contains exactly one button, TypeScript. Clicking it does not expose a menu or additional languages. Direct core addContainer requests with aspire-lang=python, go, java, and rust all resolve back to aspire-lang=typescript and render the TypeScript signature. A Redis Python request behaves the same way.
This is an observed coverage limit, not an assertion that disabled languages should be enabled. No same-page switch between two generated reference projections was possible. Five stored projections described in the README were not validated through a hidden configuration override.
Evidence: core-language-probes.txt, search-sidebar.txt, screenshot nested-member.png.
Recommendation: If review acceptance requires five-language UX, provide an explicitly authorized configuration enabling those languages and repeat browser and compatible-runtime checks. Otherwise document that this review covers only the exposed TypeScript projection.
W3 — Heading-fragment deep links are not available for sampled reference sections
Location: /reference/api/apphost/aspire.hosting.redis/addredis/?aspire-lang=typescript#parameters.
Displayed heading: “Parameters.”
Actual: The page resolves and retains #parameters, but document.getElementById('parameters') is null. Rendered “Parameters” and “Returns” headings have empty IDs. An old TypeScript alias retains the fragment when resolving to the canonical route, but there is likewise no fragment target.
This fragment was a tester-created deep-link probe, not a broken link advertised by the documentation. It is therefore an enhancement warning rather than a critical broken-link claim. Member-path deep links do work.
Evidence: deep-anchor.txt, routes-markdown-aliases.txt.
Recommendation: Add stable section IDs if heading-level sharing is intended.
W4 — Development-server console error
Initial navigation recorded:
Error while running audit's match function: TypeError: Failed to fetch
@ http://localhost:4321/@vite/client:524
The reference content, search, sidebar, and navigation remained usable. This is an Astro development audit error; no production impact or PR causality was established.
Evidence: console-2026-11-02T20-16-31-732Z.log.
Passed Checks
Displayed reference content, not runtime API verification
The following actual rendered declarations were read:
addContainer(name: string, image: string | AddContainerOptions): Promise<ContainerResource>
addRedis(name: string, options?: AddRedisOptions): Promise<RedisResource>
export interface RedisResource extends HandleReference { }
export const BloomFilter = "/usr/local/lib/redis/modules/redisbloom.so";
withDataVolume(options?: WithDataVolumeOptions): Promise<RedisResource>
host(): Promise<EndpointReferenceExpression>addRedis displays optional port and password fields and a name description explaining the connection-string name. Nested withDataVolume displays optional name and isReadOnly fields. host displays “Gets the host endpoint reference for this resource.” These declarations, parameters, and returns are visible; this does not establish that they compile or match every generated SDK.
An initial immediate client-navigation extraction preceded syntax-render completion on the nested member. Direct navigation and a subsequent extraction confirmed the full signature and visible code; the early extraction is not treated as missing documentation.
Search and sidebar
- Open
/reference/api/apphost/. - Fill the actual searchbox with
addRedis. - Observe one matching result: “addRedis method Aspire.Hosting.Redis Adds a Redis container to the application model.”
- Click the result and read
/reference/api/apphost/aspire.hosting.redis/addredis/?aspire-lang=typescript. - On the index with
q=addRedis, click the selectedTypeScriptbutton. URL, search text, and result remain intact. - Fill “Filter sidebar entries” with
RedisResource. Observe “2 matching entries”:AzureManagedRedisResourceandRedisResource, with canonical links under their respective packages.
Evidence: search-sidebar.txt, saved initial/member snapshots.
Canonical routes, aliases, and markdown
Successfully browsed:
/reference/api/apphost//reference/api/apphost/aspire.hosting/addcontainer//reference/api/apphost/aspire.hosting.redis//reference/api/apphost/aspire.hosting.redis/addredis//reference/api/apphost/aspire.hosting.redis/redisresource//reference/api/apphost/aspire.hosting.redis/bloomfilter//reference/api/apphost/aspire.hosting.redis/redisresource/withdatavolume//reference/api/apphost/aspire.hosting.redis/redisresource/host/
Followed the module breadcrumb and a real RedisResource member link. Sampled module/member links use site-relative canonical paths with trailing slashes.
The following old paths resolved to canonical AppHost HTML pages with the expected titles and TypeScript content:
/reference/api/typescript//reference/api/typescript/aspire.hosting.redis//reference/api/typescript/aspire.hosting.redis/addredis//reference/api/typescript/aspire.hosting.redis/redisresource/host/
The browser received HTTP 200 and text/markdown; charset=utf-8 on canonical:
/reference/api/apphost.md/reference/api/apphost/aspire.hosting.redis.md/reference/api/apphost/aspire.hosting.redis/addredis.md/reference/api/apphost/aspire.hosting.redis/redisresource.md/reference/api/apphost/aspire.hosting.redis/redisresource/host.md
Old /reference/api/typescript/aspire.hosting.redis/addredis.md resolves to the corresponding canonical markdown route. Markdown contains package/member links and sampled TypeScript declarations. .md endpoints intentionally do not use HTML trailing-slash conventions.
Evidence: routes-markdown-aliases.txt, additional-route-levels.txt, redis-module.txt, nested-signature-confirmation.txt, redis-property.txt.
Integration language indicators and container content
Browsed /integrations/, /integrations/gallery/?search=redis, Redis getting started, and Redis hosting.
The Redis gallery card provides actual accessible links:
- “View Aspire.Hosting.Redis documentation by language: TypeScript” →
/integrations/caching/redis/redis-host/?aspire-lang=typescript. - “View Aspire.Hosting.Redis documentation by language: C#” → the same route with
aspire-lang=csharp.
Both links were clicked. The C# route shows aria-selected="true" on C# tabs and visible C# package installation examples. The TypeScript route shows the configuration JSON and apphost.mts example. Initial tester waits incorrectly looked for reference-selector attributes on these integration tabs; inspecting their actual role="tab" markup corrected the assertions. Those locator timeouts are test-harness mistakes, not product failures.
Redis container content displays:
Redis container image
docker.io/library/redis:8.6
Added by addRedis().
Tags reflect the latest defaults on the microsoft/aspire main branch, and may be newer than the version pinned by the package you install.
The Docker Hub link is present. No separate supported-language badge/link was exposed in the sampled ContainerImages card extraction, so its multi-language indicator behavior is not certified. The gallery language links are positively verified. External registry/product-source links were not followed.
Evidence: integration-card-full-dom.txt, indicator-click-csharp.txt, indicator-click-typescript.txt, redis-host-container.txt.
Recommendations
- Resolve the generation runtime/prerequisite gap and verify a populated dump before calling the README walkthrough runnable.
- Treat TypeScript-only UX results separately from five-language projection validation.
- Consider stable IDs for “Parameters” and “Returns.”
- Repeat representative SDK compilation/runtime checks with an explicitly supplied compatible, isolated environment; do not infer them from these page loads.
Knowledge Gaps and Incomplete Areas
- Compatible generator runtime: The README's required CLI/build context was not established. Available 13.4.0 produced empty input. No guessed CLI options or alternate package acquisition were used to turn that into success.
- Runnable example context: Generated reference signatures omit a complete project, imports, SDK generation, and runtime setup. I recognized them as declarations using prior TypeScript knowledge; I did not silently construct an undocumented AppHost or claim those signatures execute.
- Generation pipeline: Did not run PR-authored
dotnet run, PowerShell generation scripts, generator tests, upstream builds, or the full package set. The README references a product checkout and generation tooling; its existence was not treated as execution permission. - Integration execution: Redis installation/AppHost examples were read only to test related indicators. No
aspire add,aspire new, AppHost run, container, endpoint, deployment, account login, or cloud resource action was performed. - Language scope: No Python/Go/Java/Rust generated-reference UX or runtime behavior; only disabled-query normalization. Integration C# tabs are not C# generated-reference coverage.
- Data scope: No exhaustive traversal of the 117 modules reported by the index, 2,186 capabilities, 2,194 types, 327 changed files, every overload, DTO/enum projection, unsupported-language reason, every internal link, every alias, or all container/integration cards.
- Additional UX: Copy Markdown clipboard fidelity, browser-history edge cases, version/kind filtering, mobile layout, accessibility audit, localization, and production rendering were not exhaustively tested.
- Identity caveat: Rendered footer shows
SHA 61fe0a9, whereas the actual checkout remains the required0ab55b2.... This report records both facts without inferring the footer identifies the running source revision.
Cleanup and Preservation
- Closed only named browser
aspire-doc-review-1637. - Before the first Aspire command, isolated
ASPIRE_HOME,DOTNET_CLI_HOME,HOME,USERPROFILE,APPDATA,LOCALAPPDATA,NUGET_PACKAGES,NUGET_HTTP_CACHE_PATH,NUGET_PLUGINS_CACHE_PATH,TEMP, andTMPbeneath the dedicated sample workspace; disabled CLI/.NET telemetry for those command processes. - Preserved the literal dump and validation evidence alongside this report, then removed only
.doc-tester-workspace\pr-1637-phase-b. - No owned product host was launched; the parent's documentation server was left running.
.playwright\cli.config.jsonpreserved.- No tracked files were edited by this tester. Final status does show generated
.starlight-iconschanges inlanguage-map.json,material-icons.json,safelist.json, andversion.txt; these were not reverted because the parent-owned dev process/shared checkout may own them. - Final checkout HEAD verified unchanged:
0ab55b2b21604e3e9a104de2ee737af103b15cd5. Seecleanup-and-head.json. - No GitHub writes. Report frozen here; browser evidence, actual command results, and screenshot are adjacent.
| "status": "supported", | ||
| "validation": "source-derived", | ||
| "identifier": "addRedis", | ||
| "signature": "addRedis(name: string, options?: AddRedisOptions): Promise<RedisResource>", |
There was a problem hiding this comment.
C01 — contradicted: the source-derived TypeScript declaration loses the fluent return type.
This declares:
addRedis(name: string, options?: AddRedisOptions): Promise<RedisResource>In the pinned source of truth, AddRedis returns IResourceBuilder<RedisResource>. The owning TypeScript projector selects the resource-specific fluent promise interface for builder returns, resolves the target resource wrapper, and names it <resource>Promise. The actual SDK emitter uses that return. This is RedisResourcePromise, not native Promise<RedisResource>; the latter drops the fluent methods needed to understand chaining without awaiting.
This is not only a newer-main difference: the PR's own locked generator provenance at 62028348b5d02dfc8f8baf03a4472946537b0d16 has the same fluent-return rule. In contrast, the new docs adapter unconditionally wraps nonvoid returns in native Promise<T>.
Please align the projection producer with the owning TypeScript generator and regenerate affected declarations/return metadata, rather than hand-editing this generated JSON. The independent browser run also observed this exact native-Promise signature on the rendered addRedis page. This is one source-backed finding, not a claim that the remaining generated surface was fully checked.
Stack 4/5. Depends on #1636.
This change generates the canonical polyglot AppHost API reference:
/reference/api/apphost/**HTML and Markdown routesPython, Go, Java, and Rust remain disabled until stack 5.
Validation:
git diff --checkpassed