Repository navigation
Add Deno support to the TypeScript AppHost toolchain resolver - #18627
Sébastien Ros (sebastienros) merged 18 commits into
Conversation
Extends the CLI TypeScript AppHost toolchain resolver to detect and drive
a Deno toolchain, mirroring the existing npm/bun/yarn/pnpm support.
- Detect Deno via a `packageManager: "deno@x"` hint or deno.lock/deno.json/
deno.jsonc markers (before the npm package-lock fallback).
- Generate `deno install`, `deno check {appHostFile}` (native no-emit
type-check), `deno run -A {appHostFile}`, and `deno run -A --check --watch
{appHostFile}`. Deno is not permissive for package.json projects, so `-A`
grants the host access the AppHost needs; `--check` makes each watch restart
type-check to match the nodemon "typecheck && run" behavior. The native
watcher replaces nodemon.
- Root delegate scripts use `deno task --cwd <dir> <script>` (Deno has no
`run <script>` for package.json scripts).
- Register deno in CommandPathResolver, the missing-tool warning, and the E2E
toolchain helpers; make the watch-mode banner assertion toolchain-aware
(Deno prints "Watcher Process started." instead of nodemon's banner).
- Install a pinned Deno 2.9.0 in the e2e and polyglot-base Docker images.
The doctor tooling check needs no change as it drives off the resolver and
CommandPathResolver.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18627Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 18627" |
|
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Pull request overview
This PR adds Deno as a supported runtime/package-manager to the CLI's TypeScript AppHost toolchain resolver (TypeScriptAppHostToolchainResolver), slotting a Deno branch alongside the existing npm/Bun/Yarn/pnpm cases. It is the CLI/toolchain half of Deno support tracked by issue #16218, and is designed to be additive and independently shippable (no AddDenoApp hosting resource). Detection keys on packageManager: "deno@…", deno.lock, deno.json, and deno.jsonc; command vectors are deno install, deno check {file}, deno run -A {file}, deno run -A --check --watch {file}, and deno task --cwd <dir> <script> for root delegate scripts.
I verified against the official Deno release notes that the command vectors are correct: deno install (no args) installs dependencies from package.json/deno.json (Deno 2.0+), deno task runs package.json scripts and supports --cwd (Deno 2.1+), and the runtime preserves the existing node extension launch capability (matching the issue's "reuse V8 inspector for a first pass" guidance).
Changes:
- Add
Denotoolchain (enum,packageManagerparsing,deno.lock/deno.json/deno.jsoncdetection, install/type-check/execute/watch/delegate command vectors). - Wire Deno into doctor/missing-tool handling (
CommandPathResolver,MissingJavaScriptToolWarning) and add unit/E2E test coverage. - Install Deno v2.9.0 in the two E2E Docker images.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs |
Core change: Deno enum value, detection markers, and install/check/run/watch command vectors. |
src/Aspire.Cli/Scaffolding/ScaffoldingService.cs |
Adds deno task --cwd root delegate script for nested brownfield AppHosts. |
src/Aspire.Cli/Utils/CommandPathResolver.cs |
Adds Deno install display name + link metadata. |
src/Aspire.Cli/Utils/MissingJavaScriptToolWarning.cs |
Adds the Deno missing-tool warning prefix. |
tests/Aspire.Cli.Tests/Projects/TypeScriptAppHostToolchainResolverTests.cs |
Resolver detection + runtime-spec tests for Deno (missing a deno.jsonc case). |
tests/Aspire.Cli.Tests/Commands/TypeScriptAppHostToolingCheckTests.cs |
Doctor availability/missing-link Deno cases. |
tests/Aspire.Cli.Tests/Utils/CommandPathResolverTests.cs |
Deno install message/link assertions. |
tests/Aspire.Cli.Tests/Utils/MissingJavaScriptToolWarningTests.cs |
Deno missing-tool match assertion. |
tests/Aspire.Cli.EndToEnd.Tests/TypeScriptPolyglotTests.cs |
Adds Deno to the toolchain matrix; uses helper for watch-ready text. |
tests/Aspire.Cli.EndToEnd.Tests/Helpers/TypeScriptAppHostToolchainTestHelpers.cs |
Deno command/metadata helpers; introduces GetWatchModeReadyText (Deno value appears mismatched). |
tests/Shared/Docker/Dockerfile.e2e / Dockerfile.e2e-polyglot-base |
Install Deno v2.9.0 for E2E. |
Key findings:
- Moderate: In the E2E helper,
GetWatchModeReadyText("deno")returns"Watcher Process started.", but the watch test runsdeno task aspire:dev, andaspire:devistsc --watchfor all toolchains — which emits"Watching for file changes.". The Deno-native banner is never produced by that script, so the watch assertion will time out. - Nit:
deno.jsoncdetection has no resolution test, unlikedeno.lockanddeno.json.
The E2E watch path runs deno task aspire:dev, which executes the scaffolded tsc --watch script. Wait for the TypeScript compiler watch banner instead of Deno's native watcher banner. Co-authored-by: Copilot <[email protected]>
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
…apphost-toolchain
Enable sloppy import resolution for generated TypeScript AppHost modules when checking, running, and watching with Deno. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 78507e61-c138-4759-9a53-97833a687099
There was a problem hiding this comment.
🟡 Changes recommended
Deno 1.x is accepted even though the implemented install workflow requires Deno 2.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 33/33 changed files
- Comments generated: 1
- Review effort level: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 78507e61-c138-4759-9a53-97833a687099
There was a problem hiding this comment.
🔵 Needs a closer look
The configured-version check still accepts pre-1 Deno versions despite requiring Deno 2 or later.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
tests/Aspire.Cli.EndToEnd.Tests/Helpers/TypeScriptAppHostToolchainTestHelpers.cs:103
- This comment no longer matches the test: the Deno branch runs the
watchconvenience task, notaspire:dev(TypeScriptPolyglotTests.cs:305-309). Both currently invoketsc --watch, but documenting the actual shared compiler-watch behavior avoids misleading future changes.
src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs:437
- This check only rejects major version 1, so valid pre-1 specifications such as
"packageManager": "[email protected]"still resolve as Deno even though every command added here requires Deno 2 or later. Parse the configured major version and reject every major below 2 (and add a pre-1 regression case) rather than matching the first character against1.
var version = packageManager[denoPackageManagerPrefix.Length..];
return version.Length > 0 &&
version[0] == '1' &&
(version.Length == 1 || !char.IsAsciiDigit(version[1]));
- Files reviewed: 34/34 changed files
- Comments generated: 0 new
- Review effort level: Balanced
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 78507e61-c138-4759-9a53-97833a687099
There was a problem hiding this comment.
🟡 Changes recommended
Accepted Deno 2.0–2.3 runtimes reject the command vectors’ --sloppy-imports alias, which was introduced in Deno 2.4.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (2)
src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs:263
deno runwill reject--sloppy-importson Deno 2.0–2.3 even though those versions pass the new resolver and doctor checks. The alias was only introduced in Deno 2.4.0; use--unstable-sloppy-importsfor the promised Deno 2+ compatibility, or enforce 2.4+ consistently.
Args = ["run", "-A", "--sloppy-imports", "{appHostFile}"]
src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs:324
- The watch path has the same Deno 2 compatibility break: Deno 2.0–2.3 do not accept the
--sloppy-importsalias, so watch mode exits before starting despite doctor reporting success. Use--unstable-sloppy-imports, or reject versions below 2.4 across detection and diagnostics.
Args = ["run", "-A", "--sloppy-imports", "--check", "--watch", "{appHostFile}"]
- Files reviewed: 34/34 changed files
- Comments generated: 1
- Review effort level: Balanced
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 78507e61-c138-4759-9a53-97833a687099
There was a problem hiding this comment.
🔵 Needs a closer look
Deno 2.0–2.7 inherit an unsupported certificate environment variable, preventing Aspire development certificate trust.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs:182
- Deno inherits
NODE_EXTRA_CA_CERTSfrom the Node runtime spec here, but Deno only began honoring that variable in 2.8. Since this resolver accepts every Deno 2.x release, versions 2.0–2.7 ignore Aspire's injected development certificate bundle and can fail outbound TLS to Aspire-managed HTTPS endpoints. Override this with Deno's long-supportedDENO_CERTvariable, and assert that value in the Deno runtime-spec test.
- Files reviewed: 34/34 changed files
- Comments generated: 0 new
- Review effort level: Balanced
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 78507e61-c138-4759-9a53-97833a687099
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-platform runtime and debugger integration warrants final human validation despite comprehensive automated coverage.
Review details
- Files reviewed: 34/34 changed files
- Comments generated: 0 new
- Review effort level: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
8bbe483
into
microsoft:main
|
The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests. Suspected flaky test(s):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
…ps (#1780) ## Summary <!-- Describe what this pull request changes and why. --> Reconcile the 13.6 wiki audit and **all 25 open `docs-from-code` proposals targeting `release/13.6`** against the actual release source. Add missing canonical guidance rather than putting all coverage in What's new. This is a new, isolated feature PR into `release/13.6`; it does not update the release rollup #1599, merge or close another proposal, or push directly to a release branch. **Draft with explicit remaining packaging/validation gates:** the six REPL walkthroughs are source-verified, but current publicly available 13.6 packages do not contain the late `WithRepl` exports. Generated API catalogs have deliberately not been fabricated or refreshed from 14.x. See the open checklist below. ### Evidence baseline - Documentation base: `717442f6666948bcf77f3d704dc2dadf7c080ec2`. - Product source of truth: [`microsoft/aspire@e8fd6fbb954f50ccd2e66479538392f65e13e71d`](https://github.com/microsoft/aspire/tree/e8fd6fbb954f50ccd2e66479538392f65e13e71d), current `release/13.6` at audit time. Source was read from that Git object, not the stale source working directory. - [13.6 wiki](https://github.com/microsoft/aspire/wiki/13.6-Change-log) snapshot `8e01a371d4f16a1306e48174d4cf1fdeca714348`, whose cutoff is product PR 20511. Later backports 20541/20546/20548 are included here. - Proposal base branches alone were **not** used as proof of release membership. Direct ancestry and known release backports were checked. Four fallback-targeted proposals are excluded below. - Wiki link corrections: its REPL link #1752 actually covers Sandboxes; the REPL proposal is #1740. Its AOT link #1714 covers PFX certificates, not AOT. ### Complete audit-gap checklist Checked items mean documentation coverage is implemented, not that cloud deployment or every product runtime scenario was executed. - [x] **1. Dotnet API graduation:** correct removal to **13.6**, not 14.0, in What's new, both Dotnet guides, and the diagnostic page; preserve the prerelease package caveat. This applies to core `AddDotnetProject`, `DotnetProjectResource`, and related `WithBuildEnvironment` overloads, not all uses of the diagnostic. Source: microsoft/aspire#20496. - [x] **2. Sandboxes:** remove obsolete API suppressions in the article and deployment guide while preserving Azure service preview/access and prerelease package limitations. Source: microsoft/aspire#20483. - [x] **3. Docked REPL documentation:** all six PostgreSQL/MySQL/MongoDB/SQL Server/Redis/Valkey guides plus the article now cover opt-in `WithRepl`/`withRepl`, run-only availability, actual client privileges, credential handling, and explicit exit versus closing a viewer. Source: microsoft/aspire#20419, backport of microsoft/aspire#20231. Package-backed checks remain open below. - [x] **4. Terminal CLI flag:** update current 13.6 article, `with-terminal`, and all three terminal command references. Preserve `terminals.v1` and experimental hosting API distinctions. Current configuration/schema data had no flag entry to remove; historical 13.5 notes remain historical. Source: microsoft/aspire#20548. - [x] **5. First-party Rust:** rewrite both canonical Rust guides around `Aspire.Hosting.Rust`; document Cargo versus application arguments, typed targets, debugging, generated Dockerfiles, workspace context, ABI constraints, and Toolkit migration. Bacon remains explicitly Toolkit-only. Add exact first-party package mapping. Source: microsoft/aspire#18906 and current Rust README. - [x] **6. Agent setup:** align command reference, skills guide, AI-agent guide, and article on MCP opt-in, `--mcp`, chained/non-interactive behavior, seven-skill catalog, Project v2 migration, and Copilot app detection. Also fix stale default-selection text: all applicable bundle skills are preselected; companion tools remain opt-in. Sources: microsoft/aspire#19893, microsoft/aspire#20405, microsoft/aspire#19820. - [x] **7. Deno AppHost runtime:** document Deno 2+ detection, commands, permissions, native watch/type checking, doctor, and `DENO_CERT`, separately from Deno guest hosting. Source: microsoft/aspire#18627, distinct from microsoft/aspire#18628. - [x] **8. Native AOT / Fluent UI v5:** concise article, dashboard exploration, and standalone guidance; automatic packaged-dashboard selection, no invented performance figures. Source: microsoft/aspire#19565 and release packaging sources. - [x] **9. NuGet:** document bundled in-process operations, credential providers, non-interactive authentication, and realistic troubleshooting. Correct the proposal's `dotnet nuget locals` authentication advice: cache commands do not authenticate a feed. Source: microsoft/aspire#20391. - [x] **10. Multithreaded builds:** article and coordinated-build guide explain `-mt`, SDK detection, distinct project/file-based SDK floors, and fallback. Source: microsoft/aspire#20441. - [x] **11. Radius:** add a real deployment guide with C#/TypeScript setup, recipe-backed connections versus local endpoints, per-resource credential behavior, unauthenticated Redis limitation, secret exposure boundaries, and actionable runtime diagnostics 070–091. Wire navigation and exact package mapping. Source: microsoft/aspire#19555 and release README. - [x] **12. Connection aliases:** replace contradictory no-encoding guidance, retain composed logical-key-first lookup and portable-target behavior, explain collision detection and custom-publisher metadata. Source: microsoft/aspire#19729. - [x] **13. Connector Namespace / Toolbox / provisioning:** add Connector Namespace walkthrough, security/consent/revocation limits and mapping/sidebar; add Foundry Toolbox walkthrough, connection properties, roles, index prerequisites, approval enforcement boundaries, immutable versions, and existing-resource behavior. Extend existing Azure provisioning guide without a duplicate page. Sources: microsoft/aspire#19024, microsoft/aspire#17742, microsoft/aspire#20131. - [x] **14. Remaining high-impact items:** article covers opt-in manifest-aware DNX and new-template CLI bundling (existing SDK guides retained), migration skill and Copilot app detection; canonical inline `CsiVolumeSourceV1`/`VolumeV1.Csi` example, management links, Cosmos vNext telemetry, and AI Inference `GetModelInfoAsync`/`/info` health checks with `DisableHealthChecks`. No Azure OpenAI health-check claim. Sources: microsoft/aspire#19310, microsoft/aspire#19076, microsoft/aspire#19826, microsoft/aspire#20070, microsoft/aspire#15671, microsoft/aspire#15969. - [x] **15. All 25 proposal dispositions:** listed below, including newer dashboard backports and four exclusions. Existing Sandbox inference coverage is retained rather than copied from a stale draft. - [ ] **16. Refresh generated API/catalog/Twoslash data from an official post-backport 13.6 build.** Existing `26473.12`/`a11eca96` data remains untouched. The newest public `dotnet9` feed package checked, `13.6.0-preview.1.26474.10` at `43496a2a306c81c862c947b11b4f4e5494b6fe08`, still has no Redis `WithRepl` in its actual package XML. Do not use 14.x, hand-edit declarations, or attribute source changes to older binaries. - [ ] **Validate the six REPL examples against that actual post-backport SDK and running clients.** Their new TypeScript fences are plain TypeScript, not annotated with unsupported Twoslash data. No existing diagnostics are allowlisted or suppressed; no generated API exports are fabricated. Enable Twoslash when the genuine catalog catches up. ### All 25 open proposal dispositions and provenance Text is selectively adapted from these proposals, not merged wholesale. #1778 and #1748 are authored by @sebastienros; the other proposals are authored by the Aspire repo bot. The table credits the associated product-change authors where supplied by the proposals. Existing PRs remain open and unchanged. | Docs PR | Release source / credited product author | Disposition | | --- | --- | --- | | #1778 | microsoft/aspire#19729 — @sebastienros | **Adopted:** canonical connection-string alias correction, including logical-first resolution and migration. | | #1771 | microsoft/aspire#20481 — @sebastienros | **Excluded:** flat polyglot feature keys are not in the audited release tip; no verified backport. Preserve release key names. | | #1770 | microsoft/aspire#20525 → microsoft/aspire#20548 — @mitchdenny | **Corrected/adopted:** command guides plus the still-current 13.6 article, which the proposal incorrectly treats as historical. | | #1769 | microsoft/aspire#20416 — @JamesNK | **Excluded:** brand hover change has no verified 13.6 membership/backport. | | #1768 | microsoft/aspire#20523 → microsoft/aspire#20546 — @JamesNK | **Adopted:** run pin/unpin preserves selector and current selection. | | #1766 | microsoft/aspire#20537 → microsoft/aspire#20541 — @mitchdenny | **Adopted:** terminal dock empty state. | | #1761 | microsoft/aspire#20490 → microsoft/aspire#20496 — @eerhardt | **Corrected:** graduation is 13.6, package remains prerelease, Blazor-specific exception retained. | | #1760 | microsoft/aspire#20436 — @eerhardt | **Excluded:** CLI net11/tools-any retarget is not in the audited release; no fallback-base inference. | | #1748 | microsoft/aspire#20131 — @sebastienros | **Adopted:** extend existing provisioning guide with service-specific models/lookups and projection limits. | | #1744 | microsoft/aspire#20337 → microsoft/aspire#20441 — @karolz-ms | **Adopted:** precise SDK-conditional multithreaded build coverage. | | #1740 | microsoft/aspire#20231 → microsoft/aspire#20419 — @mitchdenny | **Adapted:** all six guides; TypeScript-first tabs, source-verified lifecycle/security. Actual post-backport SDK/runtime gate is open above. | | #1738 | microsoft/aspire#20158 → microsoft/aspire#20405 — @karolz-ms | **Partly already covered / completed:** existing seven-skill catalog retained; add project migration guidance and correct command catalog/defaults. Do not misclassify the bundled skill as a companion tool. | | #1735 | microsoft/aspire#20334 — @karolz-ms | **Excluded:** enhanced startup errors are not in the audited release; no verified backport. | | #1731 | microsoft/aspire#19847 → microsoft/aspire#20391 — @eerhardt | **Corrected/adopted:** in-process NuGet and real authenticated-restore troubleshooting, not cache-command authentication. | | #1719 | microsoft/aspire#20299 → microsoft/aspire#20407 — @JamesNK | **Corrected/adopted:** cookie naming/scoping; identical names can collide but do not guarantee cross-dashboard cookie decryptability or shared sign-in. | | #1664 | microsoft/aspire#20011 — @maddymontaquila | **Adopted:** concise Azure environment icon release note. | | #1628 | microsoft/aspire#17742 — @davidfowl | **Adapted/expanded:** canonical Toolbox examples, consumer contract, role/index prerequisites, approval/security and concurrency limits. | | #1623 | microsoft/aspire#19810 — @mitchdenny | **Already covered:** current Sandbox guide/article already describe compute inference, explicit selection and external endpoints. Preserve that guidance while removing obsolete suppressions. | | #1620 | microsoft/aspire#19243 — @sebastienros | **Adapted:** AKS credential-before-Helm cleanup and destructive-operation warning; omit misleading ambient-context workaround. | | #1614 | microsoft/aspire#19870 — @sebastienros | **Adopted:** typed callback handle behavior in extension authoring and article. | | #1574 | microsoft/aspire#19430 — @mitchdenny | **Adapted:** canonical hostname inheritance, explicit-host precedence, catch-all default backend. | | #1570 | microsoft/aspire#19590 — @karolz-ms | **Adopted:** Dev Tunnel URL regression troubleshooting. | | #1565 | microsoft/aspire#19429 — @mitchdenny | **Corrected/adopted:** Helm embedded parameters with real `refExpr` and `addParameter(name, { value })`, not stringifying a handle or using an invalid actual-SDK overload. | | #1564 | microsoft/aspire#19026 — @karolz-ms | **Corrected/adopted:** C#/TypeScript Dotnet gateway walkthrough. Retain both experimental diagnostics; remove obsolete run-only restriction after microsoft/aspire#19997 publishing support. Avoid imported ambiguous API reference. | | #1499 | microsoft/aspire#19248 — @IEvangelist | **Adopted:** describe exact secret-value redaction and embedded-secret limit; release article already covered the fix. | ### Important source-verified corrections to proposals / earlier audit assumptions - [`BlazorGatewayExtensions.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Hosting.Blazor/BlazorGatewayExtensions.cs): `AddDotnetProjectBlazorGateway` and the Dotnet `WithBlazorClientApp` overload still carry `ASPIREDOTNETPROJECT001`; the class carries `ASPIREBLAZOR001`. They share `WithBlazorClientAppCore`/`WithBlazorApp` and the publish-companion path. Thus neither blanket diagnostic retirement nor the proposal's old run-only claim is correct. - [`SkillDefinition.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Cli/Agents/SkillDefinition.cs) sets bundled skills' `IsDefault=true`; [`AgentInitCommand.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Cli/Commands/AgentInitCommand.cs) selects the applicable catalog defaults for both flows. MCP has its own standalone-only binding. - [`TypeScriptAppHostToolchainResolver.cs`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Cli/Projects/TypeScriptAppHostToolchainResolver.cs) is the source for Deno flags and certificate variable; guest Deno hosting is separate. - [`Radius README`](https://github.com/microsoft/aspire/blob/e8fd6fbb954f50ccd2e66479538392f65e13e71d/src/Aspire.Hosting.Radius/README.md) supplies the resource-specific credential rules and publish diagnostics, not assumptions about local endpoints. ## Third-party links and affiliations <!-- List third-party links and disclose material affiliations. --> Links point to official Microsoft Learn, VS Code Marketplace debugger extensions, Rust/Cargo/Bacon documentation, Radius documentation, and source repositories. No sponsorship, commercial endorsement, or affiliation claim is introduced. Maintainers should supply any personal affiliation disclosure required by policy; automation has not inferred one. ## Validation <!-- List the checks you ran or explain why validation isn't needed. --> - **97 passing focused unit checks** across API-reference authoring/rendering, Twoslash blocks, file-tree formatting, CLI configuration schema, SEO lengths, and resource catalog. - **82 passing structured-data checks**, including exact integration mapping uniqueness and page resolution. - **11 C# samples compile**, zero warnings/errors, using genuine `13.6.0-preview.1.26473.12` packages. Scope: Rust, Connector Namespace, Radius, Toolbox, inline CSI, Helm, Blazor gateway, and provisioning. `Projects.Api/Worker/Client` use compile-only `IProjectMetadata` stand-ins; no claim of running those apps or provisioning cloud resources. - **10 TypeScript samples pass `tsc`** under `strict`, `NodeNext`, and `ES2022` against three **unmodified actual SDK files**, not just the site's declaration bundle. The fixture uses the exact `e8fd6fbb` release `AtsCapabilityScanner` and genuine `26473.12` TypeSystem/code-generator/integration binaries, whose informational source is `a11eca96`. This is an isolated local generation fixture, **not** a claim that official CLI generation or a new packaged release was tested. An attempted restore with the older handed-off local CLI could not discover an AppHost server; the bounded direct generator fixture was used instead. - The SDK scan is **not globally warning-free**: it reports a Radius `withContainerImage` collision on `CSharpAppResource` and an App Configuration `createRoleAssignment` overload collision. None of the compiled examples calls those colliding methods; the warnings are retained in evidence, not suppressed, and no generated declarations were edited. - Browser: Connector Namespace, Radius, both Rust pages, Foundry hosting, and What's new return **HTTP 200**, correct headings, and no rendered Twoslash errors. New guide/article page-local anchors and the cross-page Blazor anchor resolve. Connector/Radius mobile layouts have no horizontal overflow; Connector language-tab interaction works. Standalone Astro preview emits expected `/api/live` 404s because StaticHost is not running. - `git diff --check` passes. No production `pnpm build`, cloud deployment, REPL runtime session, full product suite, or blanket validation of every pre-existing example was performed. - Generated C#/TypeScript API data, declaration bundles, integration catalogs, image catalogs, and contributor data are unchanged. Only the authored package-to-guide mapping is updated. **Before merging:** complete the two packaging/REPL checkboxes above, inspect CI, and obtain human review. This PR intentionally does not close or merge the source documentation proposals. --------- Co-authored-by: David Pine <[email protected]> Co-authored-by: Copilot App <[email protected]>
Add Deno support to the TypeScript AppHost toolchain resolver
Closes #16218.
What
Adds Deno 2+ support to the CLI TypeScript AppHost toolchain resolver and the related dependency checks, scaffolding, doctor diagnostics, CI images, and VS Code debugger handoff.
Deno is detected from either:
package.jsonwith"packageManager": "deno@..."deno.lockdeno.jsondeno.jsoncConfigured Deno versions earlier than 2 are rejected because the no-argument dependency-install command requires Deno 2. For marker-based projects,
aspire doctorprobesdeno --versionand reports an actionable failure when the installed runtime is older than Deno 2 or its version cannot be determined.Command vectors:
deno installdeno check --unstable-sloppy-imports {file}deno run -A --unstable-sloppy-imports {file}deno run -A --unstable-sloppy-imports --check --watch {file}deno task --cwd <dir> <script>DENO_CERTSloppy imports are required because generated TypeScript SDK sources use
.mtsfiles while their ESM import specifiers use the emitted.mjsnames. The command vectors use the--unstable-sloppy-importsspelling because it works across the supported Deno 2 range; the shorter--sloppy-importsalias was introduced in Deno 2.4.Why
Bun established the existing alternative-runtime shape, while Deno adds native TypeScript checking and execution without
tsx. Deno remains deny-by-default, so run and watch use-Abecause the AppHost requires unrestricted host access, matching the effective access available to Node.js and Bun AppHosts.Debugging
The first-pass debugger path reuses VS Code's built-in
pwa-nodeadapter. The CLI reports the versioneddeno.v1launch capability together withruntimeExecutable = deno; the extension advertises that capability and forwards the Deno runtime and resolver arguments to js-debug. Unit and Extension Host E2E coverage validate that handoff.Test plan
packageManager,deno.lock,deno.json, anddeno.jsoncdetection and reason strings, including rejection of configured pre-2 Deno versions.DENO_CERTcertificate bundle configuration.DENO_CERTcertificate trust verified with Deno 2.0.0.deno task --cwddelegates.PATH, and missing-tool doctor diagnostics.pwa-nodewithruntimeExecutable = denoand the resolver arguments.Scope
This PR covers TypeScript AppHost toolchain support. It does not add a separate Deno hosting resource such as
AddDenoApp.