# Athena Desktop

Tauri v2 desktop wrapper for `apps/web`.

## Development

1. Start desktop app (this also starts `apps/web` through Tauri `beforeDevCommand`):

```bash
pnpm --dir apps/desktop dev
```

2. Build desktop app:

```bash
pnpm --dir apps/desktop build
```

## Notes

- Runtime frontend source is `apps/web` via `devUrl` in development.
- Production assets are statically exported from `apps/web/out` and bundled by Tauri.
- Rust commands are registered in `apps/desktop/src-tauri/src/lib.rs`.
- Desktop startup automatically launches a bundled local `athena_rs` API on `http://localhost:4052`.
- The main window stays hidden until the local API health check succeeds.
- Desktop settings now default to the local API endpoint (instead of cloud mirrors) unless overridden.
- In desktop mode with a local base URL and no API key, Settings provides a one-click local API key bootstrap action.
