mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* Rename voice-control to hex everywhere, without migrations The Cargo package and binary are now hex, every OS keeps its data in a hex folder, and VOICE_CONTROL_* variables are HEX_*. Hex is a fresh app: the macOS voice-control rename, its symlink, and the Windows and Linux beta settings imports are gone. The Windows installer gets a new AppId so it never takes over an old voice-control install's entry. * Format * Drop the Windows paste-last default only the beta import used
3.2 KiB
3.2 KiB
| name | description | license |
|---|---|---|
| hex-personal-commands | Configure Hex personal voice commands, voice-dictation control phrases, and deterministic transcript transformations. Use when the user wants to add or change commands or transformations for the Hex macOS voice app. | MIT |
Hex Personal Commands
Use Hex's managed command workspace rather than creating an independent package.
- Check for
~/.config/hex/hex.config.ts. If it is missing, ask the user to open Hex's Commands pane and choose Create Config. If thehexCLI is available,hex commands initperforms the same provisioning. Bun must be installed separately. - Read
~/.config/hex/AGENTS.mdand~/.config/hex/.agents/skills/personal-commands/SKILL.md. Check.hex-sdk/package.jsonand its exported declarations for the installed API and exact Effect requirement; scaffolded instructions are not overwritten on upgrades and may be older than the SDK. - Edit only user-owned workspace files, normally
hex.config.ts. Never edit.hex-sdk; Hex refreshes that managed SDK from the app bundle. - Use
defineHexConfigfrom@hex/commandsfor Promise handlers, dictation controls, and transformations. For Effect handlers, importdefineHexConfigandHexfrom@hex/commands/effect, and Effect APIs fromeffect. - Keep command phrases unambiguous and use only the capabilities required by
the request. Treat config and dependencies as trusted executable code with
the user's filesystem, network, environment, and subprocess authority.
Use
digit()for zero through nine,digit({ min, max })for a restricted range,choice(["left", "right"] as const)for exact choices, an object-formchoice()to normalize one-word aliases to canonical keys,union(letter(), digit(), choice(["home", "end"] as const))for disjoint bounded one-token alternatives, and trailingtext()for explicit text captures.letter()accepts literal, common spoken, and one-word NATO letter names and returns lowercase"a" | ... | "z". With acapturesschema, every phrase alias must bind every declared name exactly once. - Spoken commands and dictation controls need the Commands opt-in, which defaults off; creating a config does not enable it. Transformations must be selected in the mode's Transformations section and can run with Commands off. They run after mode corrections and optional AI rewriting, not for Voice Action or meetings. Do not enable voice commands merely to run a transformation.
- Run
bun run checkin~/.config/hex. Do not finish until it passes. This checks TypeScript; runtime validation can still reject phrase overlaps. A running host watches workspace.tsand.jsonfiles and reports reload failures in the Commands pane. If startup stopped because the config, Bun, or dependencies were unavailable, restart Hex after repairing them. Confirm runtime activation when the host is enabled, or report that it was not tested.
Completion criterion: the requested behavior is represented in
hex.config.ts, the managed SDK was not modified, bun run check passes, and
runtime activation is confirmed or its verification gap is reported.