Skip to content

Latest commit

 

History

History
109 lines (76 loc) · 5.29 KB

CONTRIBUTING.md

File metadata and controls

109 lines (76 loc) · 5.29 KB

Contribute to FluentTyper

FluentTyper / Contributing

Help improve writing assistance that keeps text local and works offline. This guide takes you from a checkout to a pull request.

Choose your starting point

I want to… Read
Understand the product User guide
Fix a bug or add a feature Start with the setup below.
Find the right code Architecture
Change runtime behavior Feature workflows
Measure resource use Performance guide
Report a vulnerability Private security reporting

Check open issues before starting substantial work. Keep changes focused. Preserve unrelated work in your checkout.

Run the extension locally

Use Bun 1.4.4, as pinned in package.json. bun.lock is the canonical lockfile. Run commands from the repository root.

  1. Fork the repository.

  2. Clone your fork.

  3. Create a branch from master.

  4. Install dependencies:

    bun install --frozen-lockfile
  5. Build for your browser:

    bun run build                   # Chrome
    bun run build --platform=edge   # Edge
    bun run build --platform=firefox # Firefox
  6. Load the output from build/:

    • Chrome or Edge: enable Developer mode on the extensions page, then select Load unpacked.
    • Firefox: open about:debugging, select This Firefox, then load build/manifest.json as a temporary add-on.

Use bun run watch for a development build that updates when source files change. See build commands for release builds and generated assets.

Keep these boundaries

Follow the core principles. Also:

  • Follow the layer and import rules.
  • Never log reviewed text. Keep development traces out of production builds.

Autocomplete uses Presage. Optional Local AI belongs to Review and must not become a requirement for ordinary typing or standard Review.

Check your change

Run every baseline check before you open or update a pull request. Runtime changes also require the relevant Chrome, Firefox, and development suites. The testing guide defines those requirements and the coverage policy. Every bug fix needs a regression test that fails without the fix.

Use bun run test:e2e:wordpress --platform=chrome or --platform=firefox for fast Gutenberg tests. These tests require no Docker or WordPress server. Add --runtime=playground for native WordPress history and persistence checks. See the Gutenberg support matrix for setup and remaining checks.

Use bun run fix to apply lint and formatting fixes. Review the resulting diff before committing.

Prepare the pull request

  1. Update the relevant documentation when behavior changes.
  2. Keep commits focused and descriptive.
  3. Open the pull request against master.
  4. Describe the user-visible change and list the checks you ran.
  5. Include screenshots when a UI change needs visual evidence.
  6. Resolve failing CI checks before merging.

User documentation should explain tasks, expected results, and limits. Place implementation detail in a linked reference or a guide under docs/agents/.

Specialized work

If the Chrome test browser cannot start

If the error names a missing “Google Chrome for Testing Framework”, the browser installation may be incomplete. Check the browser path under ~/.cache/puppeteer/chrome and the downloaded archive before replacing that version's extracted directory. Re-extract the matching archive, then repeat the test. Do not remove unrelated browser versions or personal profiles.

Project foundations

FluentTyper uses Presage. By contributing, you agree that your contributions are licensed under the MIT License.

Report a bug · Suggest a feature · Support development