feat(desktop): electron shell + tray + daemon bootstrap#29
Open
Codename-11 wants to merge 1 commit into
Open
Conversation
Adds @axiom-labs/arc-desktop — a minimal Electron main process that:
- boots the daemon via startDaemon({version}) from @axiom-labs/arc-daemon
- waits for /health on 127.0.0.1:7272 before loading the window
- falls back to the :3700 dev dashboard until Unit 4 wires dashboard
assets into the daemon
- installs a tray icon with show / hide / quit
- calls daemon.stop() on app before-quit for a clean shutdown
Ships as a tsup build (src/main.ts + src/preload.ts -> dist/) so the
workspace path-aliased @axiom-labs/arc-daemon import resolves through the
daemon's compiled dist at runtime rather than its TypeScript sources.
No code signing, no auto-update; electron-builder.yml emits unsigned
per-platform artifacts to dist-electron/.
Co-Authored-By: Claude Opus 4.7 (1M context) <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
Scaffolds
@axiom-labs/arc-desktop— a minimal Electron shell for the ARC v3 daemon pivot (Unit: Electron desktop scaffold).src/main.ts): onapp.whenReady, callsstartDaemon({ version })from@axiom-labs/arc-daemon, pollshttp://127.0.0.1:7272/healthuntil ready, then opens aBrowserWindowat the daemon root./returns 404 — the window falls back to the :3700 dev dashboard when reachable, with a clearTODO(Unit 4)comment.assets/tray.pngplaceholder (16x16 transparent PNG, hand-built — no "real" icon shipped), with Show / Hide / Quit.app.on("before-quit")awaitsdaemon.stop()before letting the app exit.requestSingleInstanceLockfocuses the existing window on re-launch.electron) emitsdist/main.js+dist/preload.js;electron-builder.ymlconfigured for unsigned mac/linux/win dir targets (pnpm pack).Root
tsconfig.jsongains the@axiom-labs/arc-desktoppath alias and includespackages/desktop/src/**/*.ts.No code signing, no auto-update, no installer — all out of scope per unit brief.
Test plan
pnpm install— ok (pnpm warns thatelectronpostinstall is ignored; that's the workspace policy, expected)npx tsc --noEmitat repo root — passespnpm --filter @axiom-labs/arc-desktop build— emitsdist/main.js(2.14 KB) +dist/preload.jspnpm --filter @axiom-labs/arc-daemon build— emitsdist/index.js(required at runtime since the desktop bundle externalises the daemon import)electronpostinstall blocked (Error: Electron failed to install correctly). Unblock withpnpm approve-buildson a dev machine, thenpnpm --filter @axiom-labs/arc-desktop dev.pnpm --filter @axiom-labs/arc-desktop pack— blocked by the same postinstall gate; rerun after approving electron builds.🤖 Generated with Claude Code