hex/strobe.json
Luke Parker 3b66d3bdc0
Windows listener: stop polling every 5 ms while it records (#1232)
* Windows listener: stop polling every 5 ms while it records

With the microphone streaming, its chunks (about every 10 ms) wake the loop while it records too, as they already did while idle: shortcut events and commands are taken at the next chunk, and a release's tail ends on one. A shortcut's audio boundaries come from its event's own time, so nothing about the clip changes. Only an opening or recovering microphone is still polled. Adds perf/dictation.bench.ts (recording) on HEX_AUDIO_FIXTURE.

* bench: name the fixture PR
2026-11-03 23:42:35 -06:00

107 lines
4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/Hona/strobe/main/schema/strobe.v1.json",
"build": {
"command": "cargo build --locked --release --bin hex",
"output": {
"windows": "{cache}/cargo-target/release/hex.exe",
"macos": "{cache}/cargo-target/release/hex",
"linux": "{cache}/cargo-target/release/hex"
},
"env": {
"CARGO_TARGET_DIR": "{cache}/cargo-target",
"CARGO_PROFILE_RELEASE_DEBUG": "line-tables-only",
"CARGO_PROFILE_RELEASE_STRIP": "false",
"CARGO_PROFILE_RELEASE_INCREMENTAL": "false",
"TRANSCRIBE_CMAKE_ARGS": "-DGGML_NATIVE=OFF"
}
},
"apps": {
"hex": {
"kind": "native",
"exe": {
"windows": "target/release/hex.exe",
"macos": "/Applications/Hex.app/Contents/MacOS/hex",
"linux": "~/.local/share/hex/current/hex"
},
"args": ["app"],
"env": {
"HEX_APPLICATION_SUPPORT_DIR": "{home}/hex-data",
"HEX_DISABLE_UPDATES": "1",
"HF_HUB_CACHE": "{home}/.cache/huggingface/hub"
},
"unset": ["HEX_*", "WGPU_*", "RUNE_*", "HF_HOME", "RUST_LOG"],
"moved": ["~/Library/Application Support/hex"],
"files": {
"hex-data/onboarding-complete": "",
"hex-data/settings.json": {
"enable_on_launch": false,
"history_retention": "forever",
"migrations": ["scrawl-capture-settings", "scrawl-routing-settings"]
}
},
"guard": [
{ "os": "windows", "file": "%APPDATA%/hex/local-api.json", "pid": "pid" },
{ "os": "windows", "file": "%APPDATA%/hex/settings.json" },
{ "os": "macos", "file": "~/Library/Application Support/hex/local-api.json", "pid": "pid" },
{ "os": "macos", "file": "~/Library/Application Support/hex/settings.json" },
{ "os": "linux", "file": "~/.local/share/hex/local-api.json", "pid": "pid" },
{ "os": "linux", "file": "~/.local/share/hex/settings.json" }
]
},
"hex-listening": {
"extends": "hex",
"files": {
"hex-data/settings.json": {
"enable_on_launch": true,
"release_microphone_while_idle": true,
"history_retention": "forever",
"migrations": ["scrawl-capture-settings", "scrawl-routing-settings"]
}
}
},
"hex-listening-warm": {
"extends": "hex",
"files": {
"hex-data/settings.json": {
"enable_on_launch": true,
"release_microphone_while_idle": false,
"history_retention": "forever",
"migrations": ["scrawl-capture-settings", "scrawl-routing-settings"]
}
}
},
"hex-dictation": {
"extends": "hex",
"env": { "HEX_AUDIO_FIXTURE": "{home}/speech.wav" },
"files": {
"hex-data/settings.json": {
"enable_on_launch": true,
"release_microphone_while_idle": false,
"sound_effects": false,
"dictation_hotkey": { "keys": [{ "code": 80, "label": "F19" }] },
"paste_last_hotkey": null,
"capture": { "enabled": true, "hotkey": { "keys": [{ "code": 79, "label": "F18" }] } },
"history_retention": "forever",
"migrations": ["scrawl-capture-settings", "scrawl-routing-settings", "annotate-on-by-default", "anomaly-hex-identity"]
}
}
},
"hex-dictation-released": {
"extends": "hex-dictation",
"files": {
"hex-data/settings.json": {
"enable_on_launch": true,
"release_microphone_while_idle": true,
"sound_effects": false,
"dictation_hotkey": { "keys": [{ "code": 80, "label": "F19" }] },
"paste_last_hotkey": null,
"capture": { "enabled": true, "hotkey": { "keys": [{ "code": 79, "label": "F18" }] } },
"history_retention": "forever",
"migrations": ["scrawl-capture-settings", "scrawl-routing-settings", "annotate-on-by-default", "anomaly-hex-identity"]
}
}
}
},
"benches": ["perf/**/*.bench.ts"],
"metrics": { "equivalence": "2%" }
}