Skip to content

feat: add DictionaryPredictor to text expander engine#354

Merged
bartekplus merged 8 commits intomasterfrom
feat/text-expander-dictionary-predictor
Mar 27, 2026
Merged

feat: add DictionaryPredictor to text expander engine#354
bartekplus merged 8 commits intomasterfrom
feat/text-expander-dictionary-predictor

Conversation

@bartekplus
Copy link
Copy Markdown
Owner

Summary

  • Adds DefaultDictionaryPredictor to the text expander Presage profile, enabling user-provided custom dictionary words to be suggested even without a language engine enabled
  • Restores PREFIX_ONLY_MODE setting that was missing from the template
  • Closes [Feature]: Custom dictionary/words only #353

Test plan

  • E2e tests pass (26/26)
  • Verify text expansions still work correctly
  • Verify custom dictionary words appear as suggestions with text expander mode

🤖 Generated with Claude Code

Enable user-provided custom dictionary words in the text expander
Presage profile, allowing predictions from the user dictionary even
without a language engine enabled.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bartekplus and others added 7 commits March 27, 2026 15:04
- Update @mlc-ai/web-runtime to 0.24.0-dev2
- Update typescript-eslint to 8.57.2
- Add nick-fields/retry@v3 for unit tests to handle intermittent
  JSDOM failures on Linux CI runners

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SuggestionManager tests consistently fail on ubuntu CI with bun 1.3.10
due to dynamic import resolution issues with query string nonces.
Bumping to 1.3.11 (matching local dev version) to resolve.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reverting the emscripten-rebuilt JS and wasm back to master versions
to test whether these files are causing SuggestionManager test
failures on Linux CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Revert dependency updates, bun version bump, and libpresage.js/wasm
to master. Only keep presage.xml template changes, textExpander.data,
and CI retry wrapper.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tignore

Re-run rebuild_all.py --repack to generate matching libpresage.js/wasm
for the updated textExpander presage.xml that includes
DefaultDictionaryPredictor. Also add .claude/ to .gitignore.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Update @mlc-ai/web-runtime to 0.24.0-dev2
- Update typescript-eslint to 8.57.2
- Bump bun to 1.3.11 in CI
- Isolate SuggestionManager.test.ts into its own bun test process
  to work around dynamic import issues on updated ubuntu runners
- Add nick-fields/retry@v3 for unit tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove nick-fields/retry (failures are deterministic, not flaky).
Isolate utils.test.ts into its own bun process alongside
SuggestionManager.test.ts to work around JSDOM shadow DOM focus
behavior differences on updated ubuntu-24.04 runners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bartekplus bartekplus merged commit 53ee473 into master Mar 27, 2026
8 checks passed
@bartekplus bartekplus deleted the feat/text-expander-dictionary-predictor branch March 27, 2026 14:50
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.

[Feature]: Custom dictionary/words only

1 participant