-
Notifications
You must be signed in to change notification settings - Fork 0
feat(f11): add native macOS fleet desktop #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gnanirahulnutakki
merged 3 commits into
dev
from
gnanirahulnutakki/feat/f11-native-desktop-shell
Jul 15, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,5 +37,6 @@ coverage.* | |
| node_modules/ | ||
| dist/ | ||
| build/ | ||
| cmd/sith-desktop/frontend/wailsjs/ | ||
| .next/ | ||
| coverage/ | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| // Sith desktop starts the native macOS shell for the local fleet IDE. | ||
| package main | ||
|
|
||
| import ( | ||
| "os" | ||
|
|
||
| "github.com/ArdurAI/sith/internal/cli" | ||
| ) | ||
|
|
||
| func main() { | ||
| os.Exit(cli.ExecuteDesktop()) | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "$schema": "https://wails.io/schemas/config.v2.json", | ||
| "name": "Sith", | ||
| "outputfilename": "Sith", | ||
| "frontend:dir": "frontend", | ||
| "frontend:install": "", | ||
| "frontend:build": "true", | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| "author": { | ||
| "name": "ArdurAI", | ||
| "email": "security@ardur.ai" | ||
| }, | ||
| "info": { | ||
| "companyName": "ArdurAI", | ||
| "productName": "Sith", | ||
| "productVersion": "0.0.0-dev", | ||
| "comments": "Local-first Kubernetes fleet IDE" | ||
| } | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # ADR 0010: Use a Wails v2 native shell for the local fleet IDE | ||
|
|
||
| - Status: Accepted | ||
| - Date: 2026-07-14 | ||
|
|
||
| ## Context | ||
|
|
||
| Sith already provides a build-free, loopback-only browser IDE through `sith ui`. | ||
| Operators also need a macOS application that feels local, including a native folder | ||
| chooser for a directory of kubeconfig files. The desktop form must retain the same | ||
| source-abstract engine, cache, local-operation boundaries, and privacy posture. | ||
|
|
||
| ## Decision | ||
|
|
||
| Use Wails v2 as a thin macOS shell around the existing Go web UI handler. | ||
|
|
||
| - Wails v2 is the upstream stable release line; Wails v3 is alpha and is not used. | ||
| - The app serves `webui.Application` through the Wails in-process asset server at | ||
| the exact `wails://wails` origin. It opens no TCP listener. | ||
| - The existing API handler, strict Host/Origin checks, per-process CSRF capability, | ||
| CSP, cache, hydrator, and local operation client remain the only implementation. | ||
| - The sole native binding opens a directory chooser. It returns success, | ||
| cancellation, or a sanitized failure category to the UI; the selected path | ||
| and kubeconfig contents never cross the UI bridge, persist, or enter diagnostics. | ||
| - A successful selection builds a new bounded importer session before atomically | ||
| replacing the current in-memory session. A failing selection leaves the current | ||
| session intact. | ||
|
|
||
| ## Consequences | ||
|
|
||
| The normal CLI remains browser-capable through `sith ui`, while `sith desktop` | ||
| opens the same fleet IDE as a local macOS window. `make desktop-build` produces a | ||
| development ARM64 `.app` with the stable `com.ardurai.sith` bundle identifier and | ||
| an ad-hoc signature. It is deliberately not a public release artifact until E9 | ||
| supplies Developer ID signing, notarization, stapling, and release provenance. | ||
|
|
||
| The first native shell does not add complete Lens parity, telemetry, an updater, | ||
| remote control-plane access, Windows/Linux desktop support, or a second Kubernetes | ||
| client. Its Wails dependency and macOS runtime therefore become explicit package | ||
| review and release-gate responsibilities. | ||
|
|
||
| ## References | ||
|
|
||
| - https://wails.io/docs/introduction/ | ||
| - https://wails.io/docs/guides/dynamic-assets/ | ||
| - https://wails.io/docs/guides/signing/ |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.