hex/src/personal_commands
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 74e8914261
labs: voice prompt, speak an instruction to rewrite one dictation (#1716)
* labs: add a spoken voice prompt for one-off OpenCode instructions

A new Output lab, off by default, splits a dictation at a spoken trigger phrase and replaces the mode's rewrite with one request applying the instruction after it to the text before it. The phrase is validated, saved as labs.voice_prompt_phrase, and shown on its card while the lab is on.

* labs: refine voice prompt matching and quiet empty output

Hyphens and apostrophes inside a word are ignored instead of breaking it, the pieces keep their own punctuation, and Windows/Linux finish a deliberately empty voice prompt quietly through a Processed flag. Also keeps the phrase field's caret through unrelated saves, resyncs it when the lab toggles elsewhere, maps it to the OpenCode lock, reads the browser host on every OS, and extends courtesy phrases.

* labs: read the quiet voice prompt signal on macOS

macOS skips the output through CompletedTranscript.nothing, and its Processing stage now uses the same prepared text and replacements the request does, so it shows only when a request would actually run.

* labs: trim the marks around a spoken voice prompt

Quotes, brackets, and spaced dashes that only set the phrase off leave the split, while punctuation inside the text survives. Windows and Linux treat a deliberately empty prompt as a discard rather than an empty paste, macOS reads the browser host for the request, and the OpenCode lock covers the phrase setting too.

* labs: keep quotes that don't touch the spoken phrase

A quote or bracket pair leaves the split only when its opening mark touches the phrase, and terminal punctuation inside the pair is allowed. The empty outcome closes the oldest Linux HUD job directly and records a discard reason Activity names, with translations.

* labs: keep the voice prompt discard helper out of macOS builds
2026-11-12 07:18:02 -05:00
..
tests labs: voice prompt, speak an instruction to rewrite one dictation (#1716) 2026-11-12 07:18:02 -05:00
AGENTS.md Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
child_process.js Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
commands.js Run personal commands in embedded QuickJS instead of Bun (#300) 2026-10-28 15:06:45 -04:00
fetch.rs Managed feature locks for macOS (#985) (#994) 2026-11-02 07:47:47 -05:00
hex.config.ts Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
hex.d.ts Labs: Transform typed text shortcut (Linux) (#1525) 2026-11-08 05:43:46 -05:00
host.js Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
io.rs Managed feature locks for macOS (#985) (#994) 2026-11-02 07:47:47 -05:00
process.rs Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
script.rs Managed feature locks for macOS (#985) (#994) 2026-11-02 07:47:47 -05:00
trust.rs Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
tsconfig.json Run personal commands in embedded QuickJS instead of Bun (#300) 2026-10-28 15:06:45 -04:00
typescript.rs Run personal commands in embedded QuickJS instead of Bun (#300) 2026-10-28 15:06:45 -04:00
util.js Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00
web.js Transforms get fetch and node:child_process behind a trust prompt (#888) 2026-11-01 15:00:05 -05:00