feat(desktop): tauri 2 POC wrapping canonry serve + SPA#349
Draft
feat(desktop): tauri 2 POC wrapping canonry serve + SPA#349
Conversation
Scaffolds apps/desktop/ — a Tauri 2 shell that picks a free port, spawns canonry serve as a sidecar, polls for readiness, and opens a webview onto the dashboard. Auto-detects packages/canonry/dist/cli.js in dev; falls back to CANONRY_BIN env or PATH. 21 unit tests cover the pure helpers (env resolution, command construction, port binding, sidecar error paths, workspace path arithmetic). Tauri runtime hooks not unit-tested. Distribution work (sidecar binary bundling, real icon, code signing, notarization, install-time CLI symlink, single-instance enforcement, auto-update) deliberately deferred — see apps/desktop/AGENTS.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Tauri 2 desktop wrapper POC. Picks a free port, spawns
canonry serveas a sidecar, polls for readiness, opens a webview onto the dashboard. End-to-end validated on macOS.Status: draft. Paused while we re-evaluate whether desktop is the right primary surface for our target user (agency owner with future cloud-sync needs). The Tauri shell may end up as one of multiple distribution channels — or get re-prioritized behind cloud auth + a hosted dashboard. This branch saves the work for whichever direction we go.
What's in
apps/desktop/— Tauri 2 shell (Rust), capabilities, placeholder icon, AGENTS/CLAUDE/README.packages/canonry/dist/cli.jsin dev; falls back toCANONRY_BINenv orcanonryon PATH otherwise.Deliberately not in (see
apps/desktop/AGENTS.md)Bundled canonry sidecar binary, real icon, code signing/notarization, install-time CLI symlink to
/usr/local/bin/canonry, single-instance enforcement, auto-update plugin.Test plan
pnpm --filter @ainyc/canonry-desktop test— 21 cargo tests pass.pnpm --filter @ainyc/canonry build && pnpm --filter @ainyc/canonry-desktop devopens a native window onto the dashboard.🤖 Generated with Claude Code