Scaffold Devcontainers.app — Tauri 2 conversion (steps 1–4) - #1
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/wiki3-ai/devcontainers-cli/sessions/f6f68626-4932-4fa5-abf8-c0f96210ad97 Co-authored-by: jimwhite <890972+jimwhite@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wiki3-ai/devcontainers-cli/sessions/f6f68626-4932-4fa5-abf8-c0f96210ad97 Co-authored-by: jimwhite <890972+jimwhite@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jimwhite
April 27, 2026 02:49
View session
Copilot stopped work on behalf of
jimwhite due to an error
April 27, 2026 03:54
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.
Foundation for converting
devcontainers-cli(Node TS CLI) into Devcontainers.app, a Tauri 2 macOS app driving Apple Containers as the v1 backend, with seams for Podman and Docker. Node is removed from the runtime; the surviving devcontainer-spec TS slice is bundled by Deno and runs in the WebView, while all I/O moves to Rust behind aContainerRuntimetrait. The legacy CLI undersrc/is left intact in this PR and will be removed in a follow-up (step 9 ofROADMAP.md).Spec slice carve-out (
spec/)spec-configuration/,spec-common/,spec-utils/) for cheap periodic merges.pfs.tsreduced to theFileHostinterface only — noncp, nocontainerFeaturesConfiguration/taredges.spec-utils/workspaces.tsno longer imports a runtimepathmodule; uses a string-suffix check so theFileHost.pathseam is the single source of truth.tsc -p spec/tsconfig.jsonanddeno check.Deno build pipeline
deno.jsonwith import map (vscode-uri,jsonc-parser,esbuild,esbuild-plugin-polyfill-node,@tauri-apps/api) andunstable: ["sloppy-imports"]so extensionless imports work for both toolchains.scripts/build-engine.tsemits a singledist/devcontainer-engine.jsESM bundle (esbuild + curated polyfills forpath/crypto/url).scripts/check-no-node-builtins.tsis a deny-list (fs,child_process,tar,ncp,node-pty,proxy-agent, …) run in CI; the build fails if any sneak into the bundle.Tauri 2 app shell (
src-tauri/)lib.rs/main.rs,Cargo.toml,tauri.conf.json,build.rs.beforeBuildCommandchainsdeno task buildand the Vite frontend build.default-src 'self'; img-src 'self' data: blob:; style-src 'self'; script-src 'self'. No remote content, no'unsafe-inline'.host/{config,permissions,window_state,menu}.rs— ported in shape fromwiki3-ai/wiki3-app.HostStatepersists to<app-data>/state.json.commands/{workspace,runtime,lifecycle,fs}.rs— Tauri command surface.container/{traits,apple_containers,podman,docker}.rs—ContainerRuntimetrait +RuntimeRegistry;apple_containersprobes thecontainerCLI,podman/dockerreturnUnsupported.devcontainer/{translate,lifecycle}.rs—ContainerSpectranslation with image-ref parsing tests, lifecycle hook enum.pty/— placeholder forportable-ptyintegration.commands/fs.rs) canonicalises every requested path against a registered workspace root and rejects anything outside it; writes are gated separately.Frontend (
frontend/)lib/bridge.tstyped wrapper aroundinvoke()/listen().devcontainer-engine/index.tscomposes aFileHostwhose methods proxy tofs_*Tauri commands — the seam by which the bundled spec slice will parse realdevcontainer.jsonfiles end-to-end (wired in step 6).CI, docs, attribution
.github/workflows/devcontainers-app.yml:cargo fmt --check / check / clippy -D warnings / test,deno task check / build / build:check-no-node-builtins, andtsc -p spec/tsconfig.json --noEmit.ROADMAP.mdtracks steps 5–11 (Apple Containers impl, FileHost wiring, lifecycle orchestrator, MVP UI, legacy removal, Features/templates/compose, Podman/Docker).NOTICE.mdrecords the MIT/Microsoft attribution for the surviving slice.Follow-ups
Steps 5–11 land in subsequent PRs; the legacy Node CLI,
esbuild.js,azure-pipelines.yml, and thenode-pty/proxy-agent/yargs/chalkdependency surface are removed in step 9 once the Rust runtime path is functional.