Skip to content

fix(dictation): CLI executable builds again with local dictation - #48

Closed
collissimo wants to merge 1 commit into
collin/mainfrom
t3/fix-cli-exe-dictation
Closed

collissimo wants to merge 1 commit into
collin/mainfrom
t3/fix-cli-exe-dictation

Conversation

@collissimo

Copy link
Copy Markdown
Owner

The fork release has failed since #46 added the CLI archive: build-exe rejects package imports a single-executable cannot resolve, and local dictation imported koffi and transcribe-cpp with import().

Both now load from disk through createRequire, the way node-pty and the other native packages do. transcribe-cpp only exports an import entry, so its dist/index.js is required by path, as speech/native.ts does.

Checked: node apps/server/scripts/cli.ts build-exe passes locally (it failed before), and both packages load through the new path in Node. Not checked: dictation on Windows and in the desktop app.

check:changed fails only in react compiler on DictationHistoryDialog.tsx, which this PR does not touch.

Claude Fable 5.2, Claude Code.

🤖 Generated with Claude Code

The single-executable build refuses package imports it cannot resolve, and local dictation
imported koffi and transcribe-cpp that way, so the fork release failed once it started
building the CLI archive. Both now load from disk through require, as node-pty does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@collissimo

Copy link
Copy Markdown
Owner Author

Superseded by #47, which fixed the same imports and is already merged.

@collissimo collissimo closed this Nov 13, 2026
@collissimo
collissimo deleted the t3/fix-cli-exe-dictation branch November 13, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant