Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
e854dcc
persist toast
bojackduy Aug 30, 2026
dd7f306
wave
bojackduy Aug 30, 2026
0e4e8e8
suffix endpoints
bojackduy Aug 30, 2026
21751fb
halluciation
bojackduy Aug 30, 2026
5d1a6af
better wave UI
bojackduy Aug 30, 2026
9e5daaf
keybind fix -> using command palette
bojackduy Aug 30, 2026
3b6db63
add keybinding
bojackduy Aug 30, 2026
0d692f3
fix: address copilot reviews — sticky, wave, llm, keybinds
bojackduy Aug 30, 2026
78d25d1
UX react enhance
bojackduy Aug 31, 2026
88fdbd5
vi TTS
bojackduy Aug 31, 2026
08306a0
enhance tts and stt model
bojackduy Aug 31, 2026
5e842e9
input to focus fields not always primary chat box
bojackduy Aug 31, 2026
dc061aa
Merge origin/main (trimSilence option #8) into main - keep personal w…
bojackduy Sep 18, 2026
4adfdaf
Merge main (with origin/main trimSilence #8) into master - keep TTS/S…
bojackduy Sep 18, 2026
f197a69
fix(llm): send x-opencode-session for session-scoped gateways
bojackduy Sep 19, 2026
8633403
fix(stt): keep Transcribing/Normalizing toast visible until stage com…
bojackduy Sep 20, 2026
9dacbcc
feat(voice): hands-free conversation mode + context-aware STT normali…
bojackduy Sep 22, 2026
51dc469
convo
bojackduy Sep 22, 2026
b4ff45f
feat(voice): single-key conversation states, grouping, latency cuts
bojackduy Sep 23, 2026
1bf05f9
convo
bojackduy Sep 23, 2026
9be1ecb
fix(tts): single-voice-per-utterance language detection, streaming re…
bojackduy Sep 23, 2026
a9c6bb7
feat(stt): interpretive normalization by default, strict opt-out
bojackduy Sep 23, 2026
2b23889
feat(live-notes): continuous meeting transcription with voice preproc…
bojackduy Sep 24, 2026
a81a66e
feat(stt): local streaming dictation with zero quota
bojackduy Sep 24, 2026
437c354
feat(stt): multi-TUI server ports and never-silent streaming status
bojackduy Sep 24, 2026
4f798ce
fix(review): address PR #23 Copilot review findings (9 fixes + regres…
bojackduy Sep 24, 2026
4f4c4f4
chore(publish): re-scope package to @bojackduy/opencode-voice
bojackduy Sep 24, 2026
3328f3d
chore(license): AGPL-3.0-or-later for fork, keep upstream MIT attribu…
bojackduy Sep 25, 2026
1785338
chore(release): copy tag-push publish pattern from prompt-left
bojackduy Sep 25, 2026
13875c3
docs(release): rewrite for tag-push npm-publish flow
bojackduy Sep 25, 2026
bdd1340
chore: release 0.7.0
bojackduy Sep 25, 2026
1215047
feat(voice): global cancel for in-flight voice operations
bojackduy Oct 5, 2026
db8e9dd
chore: release 0.8.0
bojackduy Oct 5, 2026
614dd40
feat(voice): push-to-talk turns with one-press barge-in
bojackduy Oct 5, 2026
5584793
feat(tts): never go silent when the narrator is unavailable
bojackduy Oct 5, 2026
c4746ad
chore: release 0.9.0
bojackduy Oct 5, 2026
870050c
feat(tts): optional Chatterbox engine alongside Piper default
bojackduy Oct 7, 2026
e1928a4
chore: release 0.10.0
bojackduy Oct 7, 2026
13dcd73
fix(lifecycle): unsubscribe TTS events and release owned resources on…
bojackduy Oct 9, 2026
fb69487
chore: release 0.10.1
bojackduy Oct 9, 2026
ef8e5cc
test(lifecycle): pin dispose stability and sub-ms init across re-regi…
bojackduy Oct 11, 2026
2a8e205
feat(v2-compat): dual v1+v2 package over shared boot core
bojackduy Oct 11, 2026
2ee374b
chore: release 0.11.0
bojackduy Oct 11, 2026
a52aa16
fix(v2): restore voice keys, home turns, preview and reply playback
bojackduy Oct 11, 2026
20235d0
chore: release 0.11.1
bojackduy Oct 11, 2026
c19113f
fix(v2): resolve provider models and dictate into the focused input
bojackduy Oct 23, 2026
a4f69e8
chore: release 0.11.2
bojackduy Oct 23, 2026
01bb2af
feat(v2): show the live waveform beside the streaming transcript
bojackduy Oct 23, 2026
4b87eed
fix(v2): mount the live preview in vertical slots
bojackduy Oct 23, 2026
f974ec3
fix(v2): emit status toasts once instead of polling
bojackduy Oct 23, 2026
6f2a4dc
fix(v2): hoist preview runtime bindings so slot render can draw
bojackduy Oct 28, 2026
01117de
feat(v2): add local streaming diagnosis log
bojackduy Oct 28, 2026
34b4f16
feat(v2): log plugin option keys at register
bojackduy Oct 28, 2026
ee0c7d1
feat(v2): tag diagnosis log lines with pid
bojackduy Oct 28, 2026
3e425eb
fix(v2): persist dictation mode and auto-submit in kv
bojackduy Oct 28, 2026
1d51dc8
feat(v2): log first wave PCM sizes and levels per session
bojackduy Oct 28, 2026
e3ed2eb
feat(tts): summarize tables and diagrams for speech, add code-switchi…
bojackduy Oct 28, 2026
b44c0b7
fix(tts): repair test header dropped by edit, apply formatting
bojackduy Oct 28, 2026
1d2284a
feat(tts): per-sentence vi/en routing, media now-playing line, honest…
bojackduy Oct 28, 2026
0b150d9
feat(tts): measured media player core with exact frame-based totals
bojackduy Oct 28, 2026
a61b9b8
fix(tts): unbind tts.stop default key, global cancel covers it
bojackduy Oct 28, 2026
997cc7b
feat(tts): clickable now-playing controls with speed cycling
bojackduy Oct 28, 2026
f8cd47d
feat(tts): loading line plus trace logging for silent synth gaps
bojackduy Oct 28, 2026
fb98d08
feat(tts): log play spawn/feed/close to the shared debug log
bojackduy Oct 28, 2026
c890438
fix(tts): put sox input before effects in play argv
bojackduy Oct 28, 2026
ef3c332
feat(tts): log rendered status shape once per mount
bojackduy Oct 28, 2026
7d52950
fix(tts): create all status segments up front so buttons survive loading
bojackduy Oct 28, 2026
4d893c2
style(tts): oxfmt formatting for status segments fix
bojackduy Oct 28, 2026
3b2c912
test: parse import timing robustly in fresh-process test
bojackduy Oct 28, 2026
8250d49
chore: release 0.11.3
bojackduy Oct 28, 2026
45b20d0
feat(stt): pausable live dictation with clickable preview toggle
bojackduy Oct 28, 2026
6666636
fix(stt): stop duplicated dictation from diacritic jitter and stop-ta…
bojackduy Oct 29, 2026
f5a0898
fix(tts): sanitize successful narrator output, strengthen prompts
bojackduy Oct 29, 2026
bf12ba7
fix(tts): restore Speak via Chatterbox log line dropped in vieneu edit
bojackduy Oct 29, 2026
46b492d
feat(tts): add VieNeu-TTS bilingual engine (vi+en code-switching)
bojackduy Oct 29, 2026
26f0c11
test(tts): add tests for successful narrator sanitization
bojackduy Oct 29, 2026
3e4b47a
feat(tts): add /tts-engine command for runtime engine switching
bojackduy Oct 29, 2026
c51f210
docs: update README and index header for new TTS commands
bojackduy Oct 29, 2026
9afaebb
feat(conversation): hands-free auto-silence finalize + auto-listen af…
bojackduy Oct 29, 2026
0990f2d
feat(conversation): phase-aware clickable status line for v2
bojackduy Oct 29, 2026
422684d
feat(stt): auto-scrolling transcript + separate wave/toggle/auto-subm…
bojackduy Oct 29, 2026
817cae0
feat(tts): seed engine from opts + log at register
bojackduy Oct 29, 2026
fbd1cbd
fix(stt): auto-end toggle + silence auto-finalize, test slice fix
bojackduy Oct 29, 2026
41dcd96
fix(stt): auto-end timer always runs, checks toggle state internally
bojackduy Oct 29, 2026
7861b3e
fix(vieneu): default to venv python, log stderr on exit
bojackduy Oct 29, 2026
c8a686d
chore: add demo assets and recording scripts
bojackduy Oct 29, 2026
55be999
fix(stt): auto-end uses audio-level silence + partial dedup
bojackduy Oct 29, 2026
6250971
fix(stt): add RMS + elapsed logging to auto-end timer
bojackduy Oct 29, 2026
8d89241
chore: marketing assets, positioning, landing page, content calendar
bojackduy Oct 30, 2026
bb157db
chore: release 0.11.4
bojackduy Oct 30, 2026
d1cf219
feat(landing): redesign with terminal aesthetic, JetBrains Mono, gree…
bojackduy Oct 30, 2026
b6cc37b
chore: favicon png, demo gif/mp4, landing screenshots
bojackduy Oct 30, 2026
3c09fce
fix: oxfmt formatting for landing page
bojackduy Oct 30, 2026
9793ee6
fix(conversation): state machine + UI overlap + streaming parity + re…
bojackduy Oct 30, 2026
057bc75
fix(stt): submit:false must not auto-submit (fixes double send in con…
bojackduy Oct 30, 2026
4b41114
fix(vieneu): raise synthesize timeout 30s -> 120s for long replies
bojackduy Oct 30, 2026
9c84189
fix: proper favicon (ico+svg+png green), og image green theme, restor…
bojackduy Oct 30, 2026
1e80200
feat(landing): replace demo with user's voice-demo-2 (full STT→agent→…
bojackduy Oct 30, 2026
12ee0fc
fix(stt): auto-end tracks audio-silence duration (not partial timing)
bojackduy Oct 30, 2026
df1dbc7
fix(tts): default Chatterbox/VieNeu to venv python (host truncates opts)
bojackduy Oct 30, 2026
a74256b
feat(tts): add /tts-vieneu-voice picker (25 voices)
bojackduy Oct 30, 2026
8e4245e
fix(tts): smaller sox buffer reduces pause tail
bojackduy Oct 30, 2026
a903899
fix(conversation): avoid composer insertion; fallback reply detection…
bojackduy Oct 30, 2026
5165bc1
debug(conversation): verbose reply detection/speak logs
bojackduy Oct 30, 2026
3b53550
debug(conversation): log finishTurnFlow entry and auto-finalize callback
bojackduy Oct 30, 2026
8f6d707
debug(conversation): route logs to stt.log via stt.log
bojackduy Oct 30, 2026
86838fc
debug(conversation): probe candidate events + full last message
bojackduy Oct 30, 2026
6db3938
fix(conversation): fail-open delta handler; resolve on quiet deltas
bojackduy Oct 30, 2026
94c8ba9
fix(conversation+tts): speak fallback robustness; no auto-listen on n…
bojackduy Oct 30, 2026
4fee929
fix(conversation): auto-end silence 1.5s -> 2.5s
bojackduy Oct 30, 2026
8a158ac
debug(tts): log speakAssistantTurn start
bojackduy Oct 30, 2026
c2ffc4d
debug(tts): log getTurnAssistantText details
bojackduy Oct 30, 2026
7ff7716
debug(conversation): log around speakAssistantTurn call
bojackduy Oct 30, 2026
eadd71b
fix(conversation): flush streamed reply before speak
bojackduy Oct 30, 2026
d2a0c0b
fix(conversation): auto-end respects stt.autoEndOfSpeech toggle
bojackduy Oct 30, 2026
8b216a1
fix(conversation): disable auto-listen to stop loops
bojackduy Oct 30, 2026
b6a5c24
fix(conversation): re-enable hands-free auto-listen with empty/garbag…
bojackduy Oct 30, 2026
429f243
fix(conversation): wait for terminal finish, not intermediate tool-ca…
bojackduy Oct 30, 2026
fa4910f
fix(voice): finalize conversation turns through the conversation loop
bojackduy Oct 31, 2026
3d39d07
fix(tts): adopt an already-running VieNeu sidecar
bojackduy Oct 31, 2026
187f525
style: apply oxfmt line wrapping to tts tests
bojackduy Oct 31, 2026
6b0141a
chore: add wrangler docs deploy config
bojackduy Oct 31, 2026
85fd3b5
chore: release 0.11.5
bojackduy Oct 31, 2026
c190c4f
feat: env var fallback for remote audio backend (STT_CAPTURE_CMD, TTS…
bojackduy Oct 31, 2026
aea78d5
feat(landing): add remote audio + 25 vieleu voices features, update h…
bojackduy Oct 31, 2026
c9734ad
feat(landing): add GSAP scroll-triggered animations (hero reveal, sec…
bojackduy Oct 31, 2026
f765fdd
feat(landing): enhance scroll animations - parallax hero, pinned tran…
bojackduy Oct 31, 2026
2e54b54
feat(landing): pinned hero parallax - frame fixed, content moves on s…
bojackduy Oct 31, 2026
a05dd60
feat(landing): add before/after comparison section + hero glow, manyc…
bojackduy Oct 31, 2026
15929c2
feat(landing): sticky-frame scrollytelling - hero pins while content …
bojackduy Oct 31, 2026
2adef98
fix(landing): remove lazy loading from demo gif, fix initial visibility
bojackduy Oct 31, 2026
a08e675
fix(landing): pinSpacing true to prevent section overlap and dark ove…
bojackduy Oct 31, 2026
fedc176
feat(landing): add hero visual elements - rings, floating badges, wav…
bojackduy Oct 31, 2026
f4d0cb7
feat(landing): put demo video in sticky hero frame instead of separat…
bojackduy Oct 31, 2026
c382a4f
feat(landing): rebuild site around sticky voice workflow
bojackduy Oct 31, 2026
fd32d0b
feat(landing): add spinning sticky demo decorations
bojackduy Oct 31, 2026
53aef81
feat(landing): make decorations orbit sticky demo on scroll
bojackduy Nov 1, 2026
13183f3
fix(landing): improve mobile layout and guard orbit script
bojackduy Nov 1, 2026
e2ea187
fix(landing): keep demo sticky on mobile without covering text
bojackduy Nov 1, 2026
c5c290b
fix(seo): point npm homepage at landing page, redact README demo
bojackduy Nov 1, 2026
51b1a06
feat: TTS engine adapters + Kokoro, STT unified turn (phase 1), conve…
bojackduy Nov 1, 2026
25d4bba
feat: persistent quick-action buttons (mic speak / speak reply) above…
bojackduy Nov 2, 2026
08105c6
fix: remote TTS pause actually stops (pauseHard) + STT busy note
bojackduy Nov 2, 2026
ea20cfa
fix: remote TTS pause/stop kills phone audio, offset-aware remote fee…
bojackduy Nov 2, 2026
1d6ecf3
fix: /tts-output switches live, no TUI restart (resolve play cmd per …
bojackduy Nov 2, 2026
6309483
diag: defer quick-actions begin + toast on ready
bojackduy Nov 2, 2026
e8c22f1
feat: voice action dispatcher + slot-view extraction + wired surfaces
bojackduy Nov 2, 2026
1281304
feat: voice action dispatcher + slot-view + wired surfaces (voice-act…
bojackduy Nov 2, 2026
b0a6246
fix: voice-actions-unify follow-ups (worker remainder)
bojackduy Nov 2, 2026
bc59f93
fix: stringify object sidecar error bodies (no more [object Object])
bojackduy Nov 2, 2026
0462bc9
feat: explicit kokoro lifecycle logging to file log (setup/ready/spaw…
bojackduy Nov 2, 2026
e3203f9
fix(kokoro): fail fast on failed-model health, verify venv imports ko…
bojackduy Nov 2, 2026
4d60030
feat(kokoro): build venv with uv on Python 3.12 (pip/scipy broken on …
bojackduy Nov 2, 2026
057cd2a
fix(kokoro): install spacy model in setup, fail preload on BaseExcept…
bojackduy Nov 2, 2026
78650df
fix(vieneu): single retry with client reset on 429 busy slot
bojackduy Nov 2, 2026
6126dc5
fix(tts): chunk long synth groups, chatterbox timeout 15s->120s parity
bojackduy Nov 2, 2026
4e33d7b
fix(tts): single remote-output check shared by spawn/feed/pause/stop
bojackduy Nov 2, 2026
a4ed4eb
chore: tsc --checkJs gate (no build step) + JSDoc types, fix real bug…
bojackduy Nov 2, 2026
b3ddf4f
refactor: folder split (pure moves + re-exports) - Step B
bojackduy Nov 2, 2026
9817206
chore: fold Step B remainder (dead consts, input-device helper)
bojackduy Nov 2, 2026
ccfc6c7
refactor: finish slot-view unification (conversation-status via share…
bojackduy Nov 2, 2026
75f9305
fix(tests): stt-context uses inert capture cmd, batch-status degrades…
bojackduy Nov 2, 2026
2e22772
refactor(stt): commands array + controller into lib/stt/commands.js, …
bojackduy Nov 2, 2026
58bb318
refactor(tts): registerTTS assembly-only via context/controller/comma…
bojackduy Nov 2, 2026
84c3b18
refactor(conversation): registerConversation assembly-only via contex…
bojackduy Nov 2, 2026
6bd5b2d
refactor(conversation): registerConversation assembly-only via contex…
bojackduy Nov 2, 2026
257e202
refactor(lib): C4 grouping - sidecars/, stt/streaming/, shared/ popul…
bojackduy Nov 2, 2026
84805f9
feat(stt): one-click remote profile (mic+output+batch) plus remote-fo…
bojackduy Nov 2, 2026
93c30ac
refactor: cache synth assets; group lib/ into tts/stt/voice/host/shar…
bojackduy Nov 2, 2026
76528f9
feat: synth audio cache (repeat playback skips inference); group lib …
bojackduy Nov 2, 2026
3fb65b3
feat: synth audio cache (repeat playback skips inference); group lib …
bojackduy Nov 2, 2026
ed824f3
feat(ui): colored quick-action buttons with instant tap feedback + de…
bojackduy Nov 2, 2026
7f6c6cd
feat: chunked long-transcription, colored status views, auto-submit q…
bojackduy Nov 2, 2026
2a1381d
feat: chunked long-transcription, colored status views, auto-submit q…
bojackduy Nov 2, 2026
ae87eb1
feat(quick-actions): persistent red Stop state while recording, live …
bojackduy Nov 2, 2026
227a09d
fix(kv): hoist shared store to facade scope + live-read on get (cross…
bojackduy Nov 2, 2026
636bf24
feat: one-tap remote profiles (/stt-remote-host), honed auto-submit h…
bojackduy Nov 2, 2026
3dd208e
fix(remote): name the target machine in SSH test failures
bojackduy Nov 2, 2026
06d16da
feat: one-tap remote profiles, unified auto-submit, respeak-to-correct
bojackduy Nov 2, 2026
53d4976
feat(stt): session-model LLM, normalize cache, shared recording fixes
bojackduy Nov 4, 2026
b016113
fix: satisfy release gate (format + types)
bojackduy Nov 4, 2026
fd16b8b
chore: release 0.12.0
bojackduy Nov 4, 2026
4f020d8
feat(stt): chain whisper model picker after engine select
bojackduy Nov 4, 2026
87f3bcb
fix(streaming): name the real capture process on unexpected exit
bojackduy Nov 4, 2026
35d0a8f
fix: stuck busy flags, cancel races, and stale status in STT/TTS
bojackduy Nov 20, 2026
fa21c00
feat!: rebuild voice dictation and bilingual playback in strict TypeS…
bojackduy Nov 20, 2026
e1149c0
fix: share one VieNeu across OpenCode instances and tighten dictation…
bojackduy Nov 21, 2026
98ed7aa
chore: release 2.0.1
bojackduy Nov 21, 2026
37ae691
feat(tts): reading speed (0.75x-2x, pitch kept) and 5-second skip
bojackduy Nov 21, 2026
1babeab
chore: release 2.0.2
bojackduy Nov 21, 2026
4c6053a
docs: speed and 5-second skip controls
bojackduy Nov 21, 2026
61a2c7f
feat(stt): engine picker always opens and chains into the whisper model
bojackduy Nov 21, 2026
8669ec6
chore: release 2.0.3
bojackduy Nov 21, 2026
9b28784
feat: voice node — speak and listen on whichever device you are using
bojackduy Nov 21, 2026
6b5426e
chore: release 2.1.0
bojackduy Nov 21, 2026
5036967
feat(ui): auto-stop button on the status line
bojackduy Nov 21, 2026
f18cba4
chore: release 2.1.1
bojackduy Nov 21, 2026
18f8675
fix(node): rewinding into the previous part works on the voice node
bojackduy Nov 21, 2026
ea8dcd0
chore: release 2.1.2
bojackduy Nov 21, 2026
2f65dd3
feat(tts): whole-reply time on the status line; seek across parts by …
bojackduy Nov 21, 2026
4901902
chore: release 2.1.3
bojackduy Nov 21, 2026
c933e71
fix(ui): status line wraps on narrow terminals instead of cutting but…
bojackduy Nov 21, 2026
b3e2277
chore: release 2.1.4
bojackduy Nov 21, 2026
47231a4
fix(node): phone audio survives a lost USB forward; skip the phone wh…
bojackduy Nov 21, 2026
8ef3acd
chore: release 2.1.5
bojackduy Nov 21, 2026
a8c2a8e
fix(node): back off probing devices that keep failing
bojackduy Nov 21, 2026
ddffd48
chore: release 2.1.6
bojackduy Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
id: plugin-version
attributes:
label: Plugin version
description: "Run: npm list @renjfk/opencode-voice"
description: "Run: npm list @bojackduy/opencode-voice"
placeholder: "0.1.2"
validations:
required: true
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [main]
branches: [main, master]
pull_request:

permissions:
Expand All @@ -19,6 +19,8 @@ jobs:
with:
node-version: 24

- uses: oven-sh/setup-bun@v2

- run: npm install

- name: Check formatting
Expand All @@ -27,6 +29,9 @@ jobs:
- name: Lint
run: npx oxlint .

- name: Typecheck
run: npx tsc --noEmit -p tsconfig.json

test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -38,10 +43,12 @@ jobs:
with:
node-version: 24

- uses: oven-sh/setup-bun@v2

- run: npm install

- name: Run unit tests
run: npm test
run: bun test src

build:
name: Build
Expand All @@ -54,6 +61,8 @@ jobs:
with:
node-version: 24

- uses: oven-sh/setup-bun@v2

- run: npm install

- name: Verify package
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Publish npm package

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
package-manager-cache: false

- name: Install dependencies
run: npm install

- name: Verify release version
id: package
run: |
name=$(jq -r .name package.json)
version=$(jq -r .version package.json)
tag_version="${GITHUB_REF_NAME#v}"
if [ "$tag_version" != "$version" ]; then
echo "::error::Git tag $GITHUB_REF_NAME != package.json version $version"
exit 1
fi
if npm view "$name@$version" version &>/dev/null; then
echo "::error::$name@$version already published"
exit 1
fi
echo "name=$name" >> "$GITHUB_OUTPUT"
echo "version=$version" >> "$GITHUB_OUTPUT"

- name: Check, test & pack
run: npm run prepack && npm pack --dry-run

- name: Publish to npm
run: npm publish --access public

- name: Create GitHub release
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" \
--title "$GITHUB_REF_NAME" \
--notes "Published ${{ steps.package.outputs.name }}@${{ steps.package.outputs.version }}"
118 changes: 0 additions & 118 deletions .github/workflows/release.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
node_modules/
*.tgz
.opencode/loopd/
graphify-out/

# wrangler files
.wrangler
.dev.vars*
!.dev.vars.example
.env*
!.env.example
__pycache__/
6 changes: 3 additions & 3 deletions .opencode/skills/opencode-voice-benchmark/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ Use this skill to produce actual STT normalization benchmark numbers. Keep the b

## Steps

1. Read `lib/stt.js` and copy the exact `STT_SYSTEM_PROMPT` from the tool plus user prompt format. Do not rely on a stale prompt from memory or from this skill if the source file differs:
1. Read `src/llm/prompts.ts` and copy the exact `STT_NORMALIZE_PROMPT` (and `buildSttUser`) from the tool plus user prompt format. Do not rely on a stale prompt from memory or from this skill if the source file differs:

```js
prompt = `Clean up this speech-to-text transcription:\n\n${rawText}`;
```

2. Read `lib/llm-client.js` to confirm the request body fields and supported options.
2. Read `src/llm/client.ts` to confirm the request body fields and supported options.

3. Create a temporary benchmark script outside the repo.

Use this working script as the starting point and edit endpoints/models as needed. Before running it, replace `STT_SYSTEM_PROMPT` with the current prompt copied from `lib/stt.js`:
Use this working script as the starting point and edit endpoints/models as needed. Before running it, replace `STT_SYSTEM_PROMPT` with the current prompt copied from `src/llm/prompts.ts`:

```js
import { performance } from "node:perf_hooks";
Expand Down
48 changes: 27 additions & 21 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,43 @@
# AGENTS.md - opencode-voice

Guidelines for AI agents working in this repository. Keep this file concise -
only document constraints and rules an agent would get wrong without being told.
Guidelines for AI agents working in this repository. Only constraints an agent
would get wrong without being told.

## Architecture

Single TUI plugin exported from `index.js` with logic split into `lib/`.
OpenCode v2 TUI plugin, strict TypeScript shipped as source (Bun runs it
inside OpenCode; no build step). `index.ts`/`tui.ts` re-export `src/entry.ts`.

- `src/plugin.ts` is the composition root: builds every module and wires them.
- `src/stt/session.ts` and `src/tts/session.ts` are the only state machines.
Every async step checks its operation id; every path ends in `idle`.
- `src/ui/status.ts` renders one status line as a pure function of both
machines (`statusSegments`).
- `src/host.ts` is the only place that touches the host `Context`.
- Leaf modules (`src/audio`, `src/stt/{whisper,streaming,transcript,...}`,
`src/tts/{vieneu,piper,text}`, `src/llm`) take injectable `deps` and know
nothing about the host.

## Key invariants

- Single default export: `{ id, tui }`. No server-side plugin.
- LLM calls use the OpenAI chat completions API, not the Anthropic messages API.
- Configuration uses `options` (static) and `api.kv` (runtime). No dotfile I/O.
- No build step. Plain ESM JavaScript, shipped as-is.
- Single default export `{ id, setup }` (v2 only).
- Shared contracts live in `src/types.ts`.
- `solid-js` / `@opentui/solid` are host-provided: import them with literal
dynamic `import("...")` only (variable specifiers fail to resolve at runtime);
their types are in `src/host-modules.d.ts`.
- Settings use the old kv keys in storage key `"opencode-voice"`; keep them.
- Never log transcript or speech text. Stored provider keys go only to their
own provider; `x-opencode-session` only to opencode.ai hosts.

## Scripts

```bash
npm run test # node --test
npm run check # lint + fmt
npm run lint # oxlint .
npm run fmt # oxfmt --check .
npm test # bun test src
npm run check # oxlint + oxfmt --check + tsc --noEmit
npm run fmt:fix # oxfmt --write .
```

Verify changes: `npm run check` with zero errors.

CI runs on every PR and push to main (lint, test, build). See
RELEASE_PROCESS.md for release steps.

## Code style
Verify changes: `npm run check` and `npm test`, zero errors. Tests use fakes in
`src/testing/fakes.ts`; never spawn real audio, binaries or network in tests.

- **ESM only** - `import`/`export`, `"type": "module"` in package.json
- **No build step** - no TypeScript, no bundler
- **Formatting** - enforced by oxfmt
- **Linting** - enforced by oxlint
See RELEASE_PROCESS.md for releases.
Loading