Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fetch-depth: 1
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.10"
bun-version: "1.3.11"
- run: bun install --frozen-lockfile
- name: ESLint
run: bun run lint
Expand All @@ -44,7 +44,7 @@ jobs:
fetch-depth: 1
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.10"
bun-version: "1.3.11"
- run: bun install --frozen-lockfile
- run: bun run test
- run: bun run check:e2e:coverage
Expand All @@ -65,7 +65,7 @@ jobs:
fetch-depth: 1
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.10"
bun-version: "1.3.11"
- run: bun install --frozen-lockfile
- name: Install Firefox for Puppeteer
if: matrix.browser == 'firefox'
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
fetch-depth: 1
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.10"
bun-version: "1.3.11"
- run: bun install --frozen-lockfile
- name: Install Firefox for Puppeteer
if: matrix.browser == 'firefox'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ scripts/community-oscar
.DS_Store
.cache
.worktrees
.claude
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FluentTyper is a privacy-first browser extension that provides local autocomplete, spellcheck, and text expansion across the web.

- Package manager: `bun@1.3.10`
- Package manager: `bun@1.3.11`
- Build: `bun run build`
- Firefox build: `bun run build --platform=firefox`
- Full repo check: `bun run check`
Expand Down
24 changes: 12 additions & 12 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@lexical/plain-text": "^0.42.0",
"@lexical/rich-text": "^0.42.0",
"@lexical/utils": "^0.42.0",
"@mlc-ai/web-runtime": "^0.24.0-dev1",
"@mlc-ai/web-runtime": "^0.24.0-dev2",
"@mlc-ai/web-tokenizers": "^0.1.6",
"@mlc-ai/web-xgrammar": "^0.1.27",
"@types/chrome": "^0.1.38",
Expand All @@ -59,7 +59,7 @@
"quill": "^2.0.3",
"rimraf": "^6.1.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.1"
"typescript-eslint": "^8.57.2"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.82",
Expand Down
8 changes: 7 additions & 1 deletion public/third_party/libpresage/textExpander.data
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Presage>
<PredictorRegistry>
<LOGGER>ERROR</LOGGER>
<PREDICTORS>DefaultAbbreviationExpansionPredictor</PREDICTORS>
<PREDICTORS>DefaultAbbreviationExpansionPredictor DefaultDictionaryPredictor</PREDICTORS>
</PredictorRegistry>
<ContextTracker>
<LOGGER>ERROR</LOGGER>
Expand Down Expand Up @@ -34,5 +34,11 @@
<ABBREVIATIONS>/resources_js/common/abbreviations.txt</ABBREVIATIONS>
<PREPEND_BACKSPACES>no</PREPEND_BACKSPACES>
</DefaultAbbreviationExpansionPredictor>
<DefaultDictionaryPredictor>
<PREDICTOR>DictionaryPredictor</PREDICTOR>
<LOGGER>ERROR</LOGGER>
<DICTIONARY>/resources_js/common/userDict.txt</DICTIONARY>
<PROBABILITY>0.0000001</PROBABILITY>
</DefaultDictionaryPredictor>
</Predictors>
</Presage>
8 changes: 7 additions & 1 deletion resources_js/textExpander/presage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Presage>
<PredictorRegistry>
<LOGGER>ERROR</LOGGER>
<PREDICTORS>DefaultAbbreviationExpansionPredictor</PREDICTORS>
<PREDICTORS>DefaultAbbreviationExpansionPredictor DefaultDictionaryPredictor</PREDICTORS>
</PredictorRegistry>
<ContextTracker>
<LOGGER>ERROR</LOGGER>
Expand Down Expand Up @@ -34,5 +34,11 @@
<ABBREVIATIONS>/resources_js/common/abbreviations.txt</ABBREVIATIONS>
<PREPEND_BACKSPACES>no</PREPEND_BACKSPACES>
</DefaultAbbreviationExpansionPredictor>
<DefaultDictionaryPredictor>
<PREDICTOR>DictionaryPredictor</PREDICTOR>
<LOGGER>ERROR</LOGGER>
<DICTIONARY>/resources_js/common/userDict.txt</DICTIONARY>
<PROBABILITY>0.0000001</PROBABILITY>
</DefaultDictionaryPredictor>
</Predictors>
</Presage>
9 changes: 8 additions & 1 deletion resources_js_template/textExpander/presage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
<Presage>
<PredictorRegistry>
<LOGGER>ERROR</LOGGER>
<PREDICTORS>DefaultAbbreviationExpansionPredictor</PREDICTORS>
<PREDICTORS>DefaultAbbreviationExpansionPredictor DefaultDictionaryPredictor</PREDICTORS>
</PredictorRegistry>
<ContextTracker>
<LOGGER>ERROR</LOGGER>
<SLIDING_WINDOW_SIZE>0</SLIDING_WINDOW_SIZE>
<LOWERCASE_MODE>yes</LOWERCASE_MODE>
<PREFIX_ONLY_MODE>no</PREFIX_ONLY_MODE>
<ONLINE_LEARNING>no</ONLINE_LEARNING>
</ContextTracker>
<Selector>
Expand All @@ -33,5 +34,11 @@
<ABBREVIATIONS>/resources_js/common/abbreviations.txt</ABBREVIATIONS>
<PREPEND_BACKSPACES>no</PREPEND_BACKSPACES>
</DefaultAbbreviationExpansionPredictor>
<DefaultDictionaryPredictor>
<PREDICTOR>DictionaryPredictor</PREDICTOR>
<LOGGER>ERROR</LOGGER>
<DICTIONARY>/resources_js/common/userDict.txt</DICTIONARY>
<PROBABILITY>0.0000001</PROBABILITY>
</DefaultDictionaryPredictor>
</Predictors>
</Presage>
13 changes: 10 additions & 3 deletions scripts/run-unit-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { globSync } from "glob";

const POPUP_TEST = "tests/popup.dashboard.retry.test.ts";
const SUGGESTION_MANAGER_TEST = "tests/SuggestionManager.test.ts";

const UTILS_TEST = "tests/utils.test.ts";

const ISOLATED_TESTS = new Set([POPUP_TEST, SUGGESTION_MANAGER_TEST, UTILS_TEST]);

function sortedUnique(entries: string[]): string[] {
return [...new Set(entries)].sort((left, right) => left.localeCompare(right));
Expand All @@ -26,8 +31,10 @@ const rootTests = sortedUnique(globSync("tests/*.test.ts"));
const jsTests = sortedUnique(globSync("tests/*.test.js"));
const grammarTests = sortedUnique(globSync("tests/grammar/*.test.ts"));

const isolatedTests = rootTests.filter((path) => path === POPUP_TEST);
const remainingRootTests = rootTests.filter((path) => path !== POPUP_TEST);
const isolatedTests = rootTests.filter((path) => ISOLATED_TESTS.has(path));
const remainingRootTests = rootTests.filter((path) => !ISOLATED_TESTS.has(path));

await runSuite(isolatedTests, "Isolated popup unit tests");
for (const testFile of isolatedTests) {
await runSuite([testFile], `Isolated: ${testFile}`);
}
await runSuite([...remainingRootTests, ...jsTests, ...grammarTests], "Main unit test suite");
2 changes: 1 addition & 1 deletion src/third_party/libpresage/libpresage.js

Large diffs are not rendered by default.

Binary file modified src/third_party/libpresage/libpresage.wasm
Binary file not shown.
Loading