mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
* feat(linux): add wlroots Wayland support and Nix packaging * fix(linux): preserve pending status and verify native coexistence * test(linux): verify real dictation through a virtual microphone * test(linux): bound smoke cleanup and check microphone release * test(linux): isolate installer XDG paths from the host * test(linux): exercise the desktop dictation lifecycle * refactor(linux): simplify worker completion and input snapshots
47 lines
1.4 KiB
Markdown
47 lines
1.4 KiB
Markdown
# Contributing To HEX
|
|
|
|
HEX is a native Rust macOS application with an explicit x86_64 Linux beta for
|
|
X11 and compatible wlroots Wayland compositors. Read [`AGENTS.md`](AGENTS.md)
|
|
before changing behavior; it defines the architecture and invariants.
|
|
|
|
## Set Up
|
|
|
|
On macOS:
|
|
|
|
```sh
|
|
./scripts/setup.sh
|
|
./scripts/setup-parakeet.sh
|
|
```
|
|
|
|
Linux dependencies and installation are documented in
|
|
[`docs/linux.md`](docs/linux.md); Nix development is covered in
|
|
[`docs/nix.md`](docs/nix.md). The Linux pull-request workflow builds and tests
|
|
native code, exercises X11 grabs on Xvfb, and tests native Wayland clipboard
|
|
insertion into a GTK target with Settings open under isolated headless Sway.
|
|
It also builds the Nix package with its tests and checks the installed wrapper.
|
|
An X11 virtual-microphone test exercises real capture, local inference, paste,
|
|
and shutdown using a public speech sample. These checks do not replace physical
|
|
input, microphone, or broader target-application smoke tests.
|
|
|
|
## Validate Changes
|
|
|
|
```sh
|
|
cargo fmt --check
|
|
cargo test
|
|
cargo clippy --all-targets --all-features -- -D warnings
|
|
git diff --check
|
|
```
|
|
|
|
For TypeScript SDK changes:
|
|
|
|
```sh
|
|
cd sdk
|
|
bun install --frozen-lockfile
|
|
cd typescript
|
|
bun run check
|
|
bun run test
|
|
bun run build
|
|
```
|
|
|
|
Keep changes focused. Do not add platform, plugin, or provider abstractions
|
|
without a second implemented adapter that needs the seam.
|