mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-21 02:09:25 +08:00
A new build's first launch compiles the GPU driver's shaders while the model loads. On a busy machine that ran past the fixed 10 s setup into the measured runs, so listening-at-rest read 1-2.5 s of cpu.work instead of about 10 ms. Setup now waits for session_started in the copy's event log, then 2 s, and at least 10 s. The listening profiles also move the copy's shortcuts to F19 and F18, as the dictation profiles do.
119 lines
4.7 KiB
JSON
119 lines
4.7 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/anomalyco/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"
|
|
},
|
|
"windows": {
|
|
"env": { "RUSTUP_TOOLCHAIN": "stable-x86_64-pc-windows-msvc" }
|
|
}
|
|
},
|
|
"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", "anomaly-hex-identity"]
|
|
}
|
|
},
|
|
"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,
|
|
"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-listening-warm": {
|
|
"extends": "hex",
|
|
"files": {
|
|
"hex-data/settings.json": {
|
|
"enable_on_launch": true,
|
|
"release_microphone_while_idle": 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": {
|
|
"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,
|
|
"show_dock_icon": 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,
|
|
"show_dock_icon": 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%" }
|
|
}
|