Repository navigation
feat(stream): custom replacements (0.7.1) - #113
Merged
Merged
Conversation
…ode (0.7.1) Like custom keywords, but the user picks what is displayed instead of bullets: each pair replaces every case-insensitive match of `from` with `to` (possibly empty), in pages, subframes, link previews, the browser UI and the Go-Live preflight. - maskText/hasAnyMask take the pairs as a new optional argument. They run first, on the raw text, in one pass (a replacement is never re-scanned), longest match first; the built-in masks still apply to the result. - The page and fallback maskers now re-mask their own write from the original: a replacement holding its `from` would otherwise grow on every mutation, and an edited list would never reach rewritten nodes. - sameMaskingConfig compares arrays by value (pairs are objects). - New "Remplacements personnalisés" card on voksa://stream (FR/EN), the `from` side concealed while Stream Mode is live. - Unit tests and smoke scenario 6b (STREAM CUSTOM REPLACEMENTS). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HowmationFr
enabled auto-merge
October 30, 2026 08:26
This was the one call on the popup that was not retried, and it failed once on macOS CI with "CDP socket closed (popup level 1)". Only CDP errors are retried: a popup that is really gone still fails on the deadline, and a call that landed before its socket closed is not repeated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New Stream Mode feature: Remplacements personnalisés. It works like "Mots-clés personnalisés", except the user picks the text shown instead of bullets. Each pair replaces every case-insensitive match of from with to, and to can be empty. Version bumped to 0.7.1.
It applies everywhere custom keywords already apply:
How
maskText/hasAnyMasktake the pairs as a new optional argument,customReplacements.192.168.1.10→mon-serveurshows the chosen text and not the IP placeholder. A replacement that itself looks like an email or IP is still masked: the safe outcome wins.tomay containfrom).my-my-my-server). An edited or removed pair would also never reach nodes that were already rewritten.sameMaskingConfigcompares arrays by value, because the pairs are objects rebuilt on every settings load.voksa://stream(FR + EN). While Stream Mode is live, the from side is concealed and the to side stays readable. Re-adding the same from updates its pair.Tests
npm run typecheck: OK.npm run lint: 0 errors, 4 pre-existing warnings.npx vitest run: 458/458 passed. New tests cover replacement behaviour andsameMaskingConfigvalue comparison.npm run build: OK.node scripts/smoke.mjs: OK on Windows. New scenario 6b, STREAM CUSTOM REPLACEMENTS:🤖 Generated with Claude Code