hex/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Luke Parker 71502a5e28
feat: one shared desktop app and settings.json on macOS, Windows, and Linux (#142)
* feat(settings): one settings.json on every OS with a one-time Windows and Linux migration

AppSettings compiles on macOS, Windows, and Linux and is the only persisted
settings file. Shortcuts use one HotkeyBinding: macOS identifies the key by
its layout-resolved code; Windows and Linux by the key name in its label,
which their input layers translate. The first launch adopts
windows-settings.json or linux-settings.json and keeps the old file as
*.migrated. WindowsSettings and LinuxSettings remain as runtime views
projected from AppSettings for the dictation loops, and their save merges
back into settings.json.

* feat(ui): open the shared AppWindow on macOS, Windows, and Linux

app_window.rs is the one desktop window. Each OS supplies a platform
module (app_window/macos.rs, windows.rs, linux.rs) with the same items:
its window state, a Capabilities struct that decides which panes and rows
exist, window chrome, and the actions only its runtime can perform.

- macOS keeps its look; Meetings, Commands, the HUD Lab, permission
  prompts, Sparkle, and the Dock icon move into app_window/macos.rs.
- Windows opens AppWindow under its 40 px caption with a full-height
  sidebar, Segoe UI, and Fluent icons. The tray, HUD window, and listener
  host stay in windows_app.rs; saved settings reach the host through
  WindowsDesktopHost::apply_settings. Shortcuts record by polling the
  keyboard state.
- Linux's Settings process opens AppWindow, saves settings.json, and asks
  hex.service to reload it (Request::ReloadSettings).
- New shared rows, shown only where a capability allows: the
  Enabled/Disabled listener card, Enable on launch, Recording indicator,
  Interface language, Software updates, and Terminal paste.
- onboarding, login_item, application_catalog, transcription_preparation,
  personal_commands, and the command modules compile on every OS.
- HEX_LEGACY_UI=1 keeps the previous Windows and Linux screens until they
  are deleted.

* test(linux): service IPC checks read settings.json and cover ReloadSettings

* fix(ui): drag the window by its caption and empty sidebar, and keep settings controls unclipped

- The Windows caption row occludes the shared window's focus-on-click so
  Windows receives the press for dragging, Aero Snap, double-click
  maximize, and the caption buttons.
- Empty sidebar space moves the window on every OS: the caption hit test
  on Windows, performWindowDragWithEvent on macOS, start_window_move on
  Linux.
- Settings rows keep their controls at intrinsic width; the copy column
  shrinks and wraps, and a control wraps below the copy only when the row
  is narrower than both. Shortcut controls size word keycaps (Ctrl,
  Space) by their labels.

* fix(macos): pass the main-thread marker to NSEvent::window

* refactor(windows): delete the legacy Windows screens and WindowsSettings

The Windows host keeps the listener, tray, and HUD and reads AppSettings
directly. WindowsHotkey moves into windows_input as the keyboard hook's
binding type; windows_migration reads the beta's windows-settings.json once.
The Windows-only desktop_* panes, windows_desktop_host, and HEX_LEGACY_UI
on Windows are gone.

* refactor(linux): delete LinuxApp and LinuxSettings; the service records shortcuts and prepares models

The Settings window asks hex.service to record the dictation shortcut
(Wayland reads physical keys in the service; X11 records in the window and
the service registers it) and to prepare models, so closing Settings never
cancels a download. The service saves only what it owns on top of the
current settings.json. LinuxHotkey moves into linux_input; linux_migration
reads the beta's linux-settings.json once. Modes > Transformations shows the
custom transformations workspace setup where there is no Commands pane.

* fix(linux): compile the service tests and IPC check against settings.json

* fix(ui): hide While dictating, Microphone mode, and Double-tap only where the runtime lacks them

* feat(settings): switch English dictation to Parakeet Unified English once

On the first load of settings that predate it, every user dictating in
English moves to the streaming English model, on every OS and for migrated
Windows and Linux beta files. settings.json records the switch in a new
migrations list, so it runs once and a later choice sticks. The previous
model stays downloaded and in the recent models. Other languages and Auto
keep their model.

* fix(linux): start the listener at service launch only when Enable on launch is on
2026-10-19 13:59:19 +10:00
..
launchd feat: Hex 2.2.0 — faster dictation and the Meetings beta (#133) 2026-10-16 09:59:27 -07:00
build-app.sh refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
build-service-app.sh refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
capture-dictation-fixtures.sh test: add dictation fixture recorder 2026-07-22 12:25:47 -04:00
capture-preview.sh feat(ui): consolidate the desktop design system (#138) 2026-10-18 16:59:43 -07:00
dictation-corpus.sh feat: Hex 2.2.0 — faster dictation and the Meetings beta (#133) 2026-10-16 09:59:27 -07:00
dictation-pause-fixtures.sh feat: Hex 2.2.0 — faster dictation and the Meetings beta (#133) 2026-10-16 09:59:27 -07:00
install-app.sh fix(release): sign Hex with the approved personal identity (#33) 2026-08-27 22:37:03 -04:00
install-linux-release.sh fix(downloads): publish Hex 2.1.17 through a custom host and GitHub mirror 2026-09-11 12:00:52 -07:00
install-linux.sh feat: unify desktop modes and platform runtime 2026-07-23 17:33:22 -04:00
install-windows.ps1 feat: Windows beta with streaming dictation, Hold/Toggle shortcut mode, and x64 + ARM64 release (#141) 2026-10-19 11:00:46 +10:00
macos-signing.sh refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
prepare-service-app.sh refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
prepare-typescript-sdk.sh feat: expand dictation tooling and TypeScript SDK 2026-07-22 20:58:27 -04:00
publish-app-mirror.sh fix(downloads): publish Hex 2.1.17 through a custom host and GitHub mirror 2026-09-11 12:00:52 -07:00
release-app.sh refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
release-linux.sh fix(downloads): publish Hex 2.1.17 through a custom host and GitHub mirror 2026-09-11 12:00:52 -07:00
release-windows.sh feat: Windows beta with streaming dictation, Hold/Toggle shortcut mode, and x64 + ARM64 release (#141) 2026-10-19 11:00:46 +10:00
setup-parakeet.sh feat: default to Parakeet Unified English 2026-08-04 16:33:52 -04:00
setup-sparkle.sh feat: prepare permanent macOS identity transition 2026-07-30 20:31:02 -04:00
setup-windows.ps1 feat: Windows beta with streaming dictation, Hold/Toggle shortcut mode, and x64 + ARM64 release (#141) 2026-10-19 11:00:46 +10:00
setup.sh fix: improve local transcription behavior 2026-08-06 10:22:00 -04:00
smoke-commands-workspace.sh fix(commands): migrate workspaces pinned to the previous Effect release candidate (#119) 2026-10-03 13:09:27 -07:00
smoke-embedded-service.sh refactor: consolidate settings commits, transcription padding, and SDK framing 2026-09-22 17:08:43 -07:00
smoke-service-app.sh refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
smoke-transcription-api.sh feat: default to Parakeet Unified English 2026-08-04 16:33:52 -04:00
sync-meetings-mirror.sh feat: Hex 2.2.0 — faster dictation and the Meetings beta (#133) 2026-10-16 09:59:27 -07:00
test-app-identity.sh refactor: consolidate settings commits, transcription padding, and SDK framing 2026-09-22 17:08:43 -07:00
test-cohere-long-form.sh feat: add model quick switching and fix long Cohere dictation 2026-09-04 11:52:09 -04:00
test-install-linux-release.sh feat: run Linux dictation as a user service 2026-09-04 20:14:13 -04:00
test-linux-dictation.sh feat(dictation): stream every dictation on macOS and Linux (#144) 2026-10-19 13:00:12 +10:00
test-linux-service.py feat: one shared desktop app and settings.json on macOS, Windows, and Linux (#142) 2026-10-19 13:59:19 +10:00
test-wayland-paste.sh feat(ui): consolidate the desktop design system (#138) 2026-10-18 16:59:43 -07:00
validate-app.sh fix(downloads): publish Hex 2.1.17 through a custom host and GitHub mirror 2026-09-11 12:00:52 -07:00
windows-icon.ps1 feat: Windows beta with streaming dictation, Hold/Toggle shortcut mode, and x64 + ARM64 release (#141) 2026-10-19 11:00:46 +10:00