hex/CONTRIBUTING.md
Dax Raad 5adf40861b docs: Rune is the only UI; GPUI is gone
Rewrite the design system as a short rune-kit and OpenCode theme page, and
update AGENTS.md, the feature maps, the Linux, Windows, and Nix guides, the
roadmap, and the port plans: --snap scenes replace GPUI previews, and checks
that went with GPUI are recorded as gaps.
2026-10-22 17:12:15 -04:00

1.7 KiB

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 before changing behavior; it defines the architecture and invariants.

Set Up

On macOS, install Rust, Xcode 26 with the Metal toolchain, uv, and Bun, then run:

./scripts/setup.sh
./scripts/setup-parakeet.sh
bun run --cwd sdk/commands build

The command SDK build supplies sdk/commands/dist, which workspace-provisioning tests and source-run personal commands need. Repeat it after changing that SDK.

Linux dependencies and installation are documented in docs/linux.md; Nix development is covered in 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 the Hex window 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

cargo fmt --check
cargo test
cargo clippy --all-targets --all-features -- -D warnings
git diff --check

For TypeScript SDK changes:

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.