The first tag run of the split release workflow (v1.1.0) failed in "Gate +
package": actions/upload-artifact skips hidden paths by default, `.output`
is one, so `.output/*-chrome.zip` and `.output/SHA256SUMS.txt` matched
nothing and `if-no-files-found: error` stopped the job. The publish job was
skipped, so no Release or asset was created.
The build job now copies both files into a plain `dist/` and uploads that.
The artifact layout the publish and store jobs download is unchanged, and
`include-hidden-files` stays off, so nothing else under `.output` can be
swept into a release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second adversarial review, of the review-fix commits themselves, found
six problems. All are fixed here.
- Focus after a delete: a delete from the duplicate panel, or from the trash
button of a row that did not have focus, left keyboard focus on <body>.
The dialog cannot hand focus back to a button that went with what it
deleted. `confirmDelete` now says where the delete was asked for: the
tree gets focus back, and the panel moves it to the next copy's button,
else to its close button. Checking for <body> was not enough: after a
dialog closes, focus sits on its button until the browser's next
rendering update, so a control in a closed dialog, or a detached one,
now counts as lost too. Confirmed in the harness for all three paths.
- Import step 04: confirming the safety backup removed both of its buttons
and dropped focus. A phase change now hands focus back to the heading.
- WebRTC: both gates matched `\bRTCPeerConnection\b`, which no word
boundary lets match `webkitRTCPeerConnection`, an alias Chrome still
ships. Prefixed aliases now count. The evasion comment in guard.mjs no
longer claims to cover every way of hiding a member name.
- New folder: Chrome fires onCreated before create() resolves, so the live
event could insert the folder first and newFolder then inserted a second
row with the same id. It now inserts only when the folder is not already
there, with a test that loses the race on purpose.
- Screenshot harness: `wxt build` empties .output first, and re-listing it
threw inside the request handler, which ended the process. It now answers
404 or 503 and recovers once the build is back.
- The duplicate summary uses one wrapper key instead of two fragments glued
together in markup (docs/07 §2); Japanese gets its own separator again.
- Docs: the popup's tabId and `tabs.getCurrent` (docs/02 §6, 08 §2), the
new-folder race (03 §3), focus after deletes and import phases (06 §5).
SonarCloud's scan job now also receives the generated .wxt/, so
tsconfig.json's `extends` and the `@/` alias resolve (12 §2.5).
- Tests for edit/tree-keys.ts, which had none, and for the focus helpers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SonarCloud's quality gate failed PR #27 on two findings in new code.
- S2083 (blocker): the screenshot harness built the file path from the
request and then checked it stayed inside the build. The check held, but
taint analysis cannot see a prefix test, so the harness now lists the
build once and serves only files from that index; a request can name a
file only by looking it up. It re-lists once on a miss, so a rebuild
while it runs still works. Probed: valid files 200; `..`, `%2e%2e`,
`%2F` and `%5C` traversals 404; a malformed escape 400.
- S8786: `^\s*\d*\s*$` in the CSV sanitizer let two `\s*` compete for the
same blanks. `^\d*$` on the trimmed value means the same and is linear.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docs/03 §3: one bulk command at a time, focus that stays on a rendered
row, the search that remembers closed folders, the new-folder path.
- docs/05 §9: the 500-row window around the focus replaces the growing
prefix; measured numbers in place of the old "not done".
- docs/06: rename focus, the pinned failure toast, step-heading focus and
the import's live region, dialog naming, the new component names.
- docs/02 layout, docs/07 plurals (eighteen since v1.1.0), docs/08 §3 CSP
with default-src 'none' and the wider bundle gate, docs/09 §7 typed
diagnostics, docs/12 the Sonar job split and the ops build job's plain
`npm ci`, docs/15 decision rows and the review's backlog.
- README and PRIVACY say what the CSP refuses instead of "any request".
- capture/: the README set regenerated by `screenshots.mjs --shoot` from
neutral sample data, lowercase names as the harness writes them; the
1.0.0 shots are gone. store/screenshots/: 1280×800 dark candidates.
- CHANGELOG [1.1.0] Fixed; CLAUDE.md size figures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Findings 5–9 of the security review of 1.1.0. None broke the zero-network
or permission promises of the shipped build; each made a claim stronger
than the code behind it.
- Diagnostics: every DiagEvent string field is now a union of fixed values
(import phases, FileFormat, the ErrorKeys describeError returns, the two
edit actions, the three storage issues), and error names pass an
allowlist, logged as 'other' otherwise. `@ts-expect-error` cases keep a
title from compiling instead of trusting review.
- guard.mjs: optional-chained computed access on globals, `Reflect`, and
member names assembled from strings or templates (`el['inner' + 'HTML']`)
all got past it.
- check-manifest.mjs: the bundle is scanned for the same identifiers as the
source, as bare words — `fetch.call`, aliases, RTCPeerConnection and
importScripts shipped unseen — and every src/href in the built pages must
exist inside the package.
- CSP: `default-src 'none'` closes everything unlisted. Every directive the
pages use is listed, so nothing changes for them; the harness pages load
with no violation.
- screenshots.mjs: listens on 127.0.0.1 only, checks `OUT + sep` rather than
a bare prefix, decodes paths safely, and runs Chrome asynchronously — the
synchronous exec blocked the very server Chrome was waiting on, so
`--shoot` hung forever.
- SonarCloud: coverage runs in a job with no secret; the scan job installs
nothing and receives lcov as an artifact. A job's secrets are readable by
every step on its runner.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The adversarial review of the 1.1.0 UI found fifteen problems that the unit
tests and svelte-check could not see; all but one were reproduced in the
built harness first.
- Edit tree: F2 and New folder now focus and select the rename box (Svelte's
autofocus only acts when nothing else has focus, which was never the case
here), and Enter or Esc returns focus to the tree. A folder created during
a search is inserted at once and every folder above it is opened as the
user's own, so clearing the search no longer hides it and locks the keys.
A focused row that leaves the screen hands focus to its nearest visible
folder (edit/focus-repair.ts), and a rename whose row is hidden is
dropped. A folder closed during a search stays closed until the text
changes. Right arrow on an empty folder does nothing.
- One bulk command at a time: sort and keep-first now lock every other
write in the session itself, not just the toolbar, and only the command
that set `busy` clears it.
- #edit mounts a 500-row window around the focus (edit/row-window.ts) with
"Show earlier" / "Show more": End on 20k rows mounted all of them.
- Failures get a pinned toast slot; later toasts still show and announce.
- Import: the preview's new/dup badges show again (`$state.raw` — a deep
proxy broke the WeakMap lookups, already broken in 1.0.x), each step's
heading takes focus, and one live region announces the outcome.
- Dialogs name their close button "Dismiss" and are described by their
body, so the counts are read with the title.
- 375 px: the edit toolbar wraps; titles keep their room before the domain.
- Wording: untitled items named by their address in dialogs; plurals for
show-more and the duplicate summary; a diagnostics copy failure says so;
the Move dialog's filter is labelled as a folder filter; the Japanese
notices spell ブラウザ and フォルダ like the rest of the dictionary.
- The logo pulse stops after two cycles (WCAG 2.2.2), and the popup
switches only the Manager tab it brings forward.
- Back under the size limits: EditSession is three layers (edit-view,
edit-commands, edit-session); RowActions, RenameInput, ImportProgress,
ImportAnnouncer and StatusBar are their own components; the tree's key
handling lives in edit/tree-keys.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the v1.1.0 adversarial review (data integrity):
- Replace re-reads the tree once the backup is on disk. If anything changed
while the save dialog was open (or while the user checked Downloads on the
fallback path), the picker path writes the fresh snapshot to the same file
and checks again (up to 3 times); the fallback path stops with BACKUP_STALE.
Before, a bookmark added meanwhile inside an existing folder was deleted with
no copy anywhere.
- Roots resolve by folderType among this device's roots; a signed-in account's
own roots (Chrome 134+, syncing) are never emptied or written. Replace backs
up and clears exactly the three destinations.
- An empty Mobile root, which desktop Chrome leaves out of getTree, is found
with bookmarks.get('3'), so Mobile content stops landing under Other. The
fake now hides it the same way.
- Plans report writeDepth; past MAX_WRITE_DEPTH (90) the import is refused with
TOO_DEEP before any backup — Chrome re-reads its own bookmarks file with a
200-level JSON nesting limit, two levels per folder.
- The suggested backup name carries seconds, and a picked file that never
received a backup is removed again.
- Edit tab: a stale "created" event for an id the view already holds is
dropped, and the duplicate finder never pairs a node with itself — together
they made "Keep first" delete the only copy. Sort re-plans from the folder's
children at confirm time.
- Netscape: an unescaped <h3> inside a bookmark title no longer turns the
bookmark into an empty folder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the v1.1.0 adversarial review (security) and the docs pass:
- clsx (MIT) ships too — the Svelte runtime imports it — and wxt's browser
module as well as @wxt-dev/browser. All four are now credited in About,
PRIVACY, README and both notice files, and wxt.config.ts fails the build when
code from any uncredited package would ship; tests/unit/third-party.test.ts
keeps the notices in step with that list.
- Sanitizer, CSV: default-deny. A title with an unquoted comma — the row that
makes the extension report CSV_ROW_MISMATCH — shifted a file: path and free
text into columns no rule rewrote, and the host-only check passed them.
- Sanitizer, HTML: unknown attributes (Firefox POST_DATA, any DATA-*) are
rewritten; only dates, root markers and the charset line are kept.
- Sanitizer: a value-level leak check over CSV fields, attribute values and
JSON strings, and a refusal that prints counts only — it used to print the
leaked words and ask for them in a public issue.
- BM_ENV_ERROR_CODES joins the per-locale message check, with the four fixed
keys describeError maps; the popup no longer logs crashes nothing can read.
- docs 00/02/03/05/06/07/08/09/11/13 describe v1.1.0 (diagnostics moved to
09 §7; 13 §3 points at store/listing.* instead of a drifting copy); tokens
and gen-icons comments corrected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No LEGAL_VERSION bump: every change clarifies, corrects or removes an
obligation (docs/14 §3.1, new "contact details → No" row and a table of what
version 1 means).
- All four documents: version/date header and a copyright line.
- EULA clause 3 becomes a non-binding note — GPL-3.0 §10 forbids adding
restrictions; clause 6 gives legal@ and dmca@.
- DISCLAIMER describes Replace as it now behaves, and adds the name/fork
notice with takedown@ and dmca@.
- PRIVACY describes the in-memory diagnostics log, the Chrome Web Store's own
role, and that opening a bookmark is the browser's request, not ours;
contact privacy@.
- THIRD_PARTY_NOTICES lists the Svelte runtime and WXT's browser shim (MIT),
which the build always compiled in; the notices now ship as
THIRD_PARTY_NOTICES.txt and check:manifest requires the file.
- security@ (SECURITY.md), code@ (CoC, issue chooser), README Contact table;
contact@ retired. links.test.ts now scans all of src/ for an address.
- README: new formats and features, Sonar/CWS badges, verify:full, the
screenshot harness. Store listings EN/VI/JA follow.
- docs/15 decision rows, next direction and backlog; CLAUDE.md Phase 7, the
TS 7 / TS 6 alias rule and --ignore-scripts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- About no longer claims "no runtime libraries at all": the build compiles in
the Svelte runtime and WXT's one-line browser shim, both MIT (sC2.1).
- The backup save dialog's file-type label was hardcoded English.
- VI: a browser tab is "tab", an in-app section is "thẻ", consistently. JA:
the katakana middle dot instead of "·".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- browser/diagnostics.ts: an in-memory ring buffer of 200 allowlisted events —
import phases, failure codes (logged where every failure is described, by
code, never by detail text), bulk edits, storage read failures, uncaught
errors by name only. Page-relative times, no storage, no network. About →
"Copy diagnostics" copies it with the version, locale, theme and Chrome major.
- browser/write-lock.ts: Web Locks, ifAvailable — a second Manager tab trying
to import, sort or delete duplicates while another writes is refused at once
with WRITE_LOCKED, before anything is touched. The import takes the lock after
opening the save picker, so the click's activation still holds.
- The settings store reads the UI language through browser/ (uM15); progress
reports the first create, so a slow start no longer looks like a hang (uL9).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every surface moves to the v1.1 design system: a header with the brand mark,
a route crumb and icon tabs with a sliding indicator; an IDE-style status bar
(local only · bookmarks, storage · version · licence · Settings · About);
numbered mono step labels on #import and #export; readout stats; mode and
format cards; marching-ants drop zone; striped progress; slide-in toasts; the
popup as launcher tiles over a live readout. Emoji glyphs are gone in favour of
the self-drawn icon set; all motion sits behind prefers-reduced-motion.
Behaviour fixed on the way:
- The Start button counts what will really be imported (a preview plan), and
Replace asks first, with the exact numbers it will delete and write (T4).
- The report counts bookmarks and folders separately, what was skipped and
reused, and where it all went — after a cancel or failure too (uM10, uM11).
- The backup hint names the file as the user saved it, not as suggested.
- Failure toasts stay until dismissed; export says "download started" and
keeps a failure's technical detail on screen.
- The popup routes an open Manager over a BroadcastChannel (refused while an
import writes), and no longer counts the three permanent roots as folders.
- Read-only previews and the export picker drop the role="tree" they never
implemented; both render 500 children at a time; "Everything" shows
indeterminate on a partial selection; the drop zone stops flickering.
- Per-route document titles; the status bar stays at the bottom of the window.
- The Move-to dialog no longer renders every folder while closed.
The Import tab's strings move to <lang>-import.ts so each locale file stays
under the size limit. scripts/screenshots.mjs serves the built extension with
a fake chrome and the production CSP, for visual QA and store screenshots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EditTab's state and commands move to stores/edit-session.svelte.ts (an
injectable bookmarks API, tested against the in-memory fake); the component is
markup and wiring, 481 → 290 lines. New:
- Sort A→Z per folder (edit/sort.ts): folders first, natural, case- and
accent-insensitive, stable; planned first so the confirmation states how many
items move; moves only what is out of place, with indices valid for
chrome.bookmarks.move; a refusal part-way says how far it got and re-reads.
- Drag to reorder: before/after/into zones (edit/move-target.ts planDrop, which
converts between Chrome's pre-removal indices and onMoved's post-removal
ones); dragend clears a cancelled drag.
- Live sync batched per frame, re-read once on bursts and after Chrome's own
import or a wholesale reorder; handlers isolated so one exception cannot stop
the tree following the browser. Duplicates are scanned only while shown.
- Bounded rendering: rows mount 500 at a time with "Show more", growing to keep
the focused row in the DOM; explicit aria-setsize/posinset.
- Move-to is a real modal (shared Modal: focus in, Esc, focus returned, no
cancel-after-confirm) with a filter; the menu key / Shift+F10 opens it, Ctrl+C
copies a link, row buttons leave the tab order; loading state, focus follows a
delete, a new folder clears a search that would hide it, resyncs keep
expansion and focus, renames are trimmed and Esc never commits.
- Duplicate rows show the folder each copy lives in.
Also the v1.1 design foundation these use: new tokens (sunken/subtle surfaces,
--border-strong ≥ 3:1, mono stack, motion/shadow/z tokens, color-scheme,
accent-color, faint grid), a self-drawn SVG icon set with motion, and
tests/unit/styles/motion.test.ts, which fails any animation or moving
transition outside prefers-reduced-motion: no-preference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
normalizeUrl trimmed the last character of a root URL to drop its slash, but
`x/?` and `x/#` serialize with the delimiter last, so the `?` was cut instead
and `x/?` never matched `x/`. Empty query and fragment are now removed first.
The default-port code was dead: the URL parser already drops default ports.
The export folder picker looked up each row's check state by walking the tree
from the roots - O(n) per visible row. checkStates builds the whole map in one
pass, once per selection change.
The seeded round-trip now asserts no warnings per tree as docs/11 §3 says.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Import Chrome's profile `Bookmarks` file and Firefox's JSON backup directly.
Each reader is held to a parity rule against its browser's own HTML exporter,
tested on Chromium/Firefox-faithful fixture pairs. One entry point,
parseBookmarkFile, sniffs by content (JSON first, parsed exactly once, routed
by shape); the picker loses its extension filter, which hid the extensionless
`Bookmarks` file. Firefox's internal root names are localized by the caller.
Merge finally reuses the folders a user already has, level by level, appending
new items (core/merge.ts) - 1.0.x planned it exactly like Replace. Root folders
are unwrapped by marker (core/route.ts), so restoring a backup no longer nests
Other and Mobile one level deeper each time, 1.0.x backups included. Replace
never dedupes, plans before the backup is taken, and refuses a backup the
import could not read back (BACKUP_EXCEEDS_LIMITS) before anything is written,
downloaded or deleted. The save dialog's late rejection is marked handled.
Also found: the seeded round-trip suite had compared 200 empty trees since
Phase 1 (xorshift32 seeded with 1-200 draws near zero first). makeRng now
scrambles the seed and every seeded suite checks its corpus is non-trivial.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several shapes made v1.0.x import a smaller tree than the file held, with no
warning at all:
- a loose bookmark before the wrapper list (no </DT>) swallowed the whole
list; with an explicit </DT> the bookmark "consumed" the next list;
- an unescaped <b> in one title re-opened around every later entry
(dt > b > a, dl > b > dt) and hid them from a direct-children walk;
- a root list wrapped in <div>/<table> was invisible;
- PERSONAL_TOOLBAR_FOLDER="false" made a folder the bar.
Every reader now classifies addresses before anything is written (core/
href.ts): blank -> MISSING_URL, unparseable -> INVALID_URL (chrome.bookmarks.
create rejects those mid-write, after a Replace has already cleared the
tree), Firefox place: -> PLACE_QUERIES_SKIPPED in browser-written formats
(kept in BM JSON and CSV, our restore formats). A DT that still yields
nothing is counted as UNREADABLE_ENTRIES instead of vanishing.
Also:
- empty titles stay empty (the URL fallback ruined favicon-only bars);
- the HTML node cap is counted on the raw text before DOMParser builds a
DOM; the depth cap no longer rejects an empty list one level past it;
- root markers for Other and Mobile (UNFILED_/MOBILE_BOOKMARKS_FOLDER in
HTML, "root" in BM JSON, version stays 1), and a 1.0.x full-tree backup
is recognised by shape and marked on read;
- BM JSON dates go through the shared normalizer; url "" (which Chrome
makes a folder) is skipped;
- CSV: an unclosed quote is CSV_UNCLOSED_QUOTE with its line instead of one
cell eating the file; formula cells get one reversible guard quote; sep=
lines and padding rows are skipped; folder lookup is a Map, not a scan;
- Markdown escapes every CommonMark-active character and collapses line
breaks in titles (raw HTML used to pass through);
- shared WarningBag/NodeBudget/title rule, an iterative walkTree, an
isBookmark type guard, a CSV dialect module, chromeTimeToSeconds and
microsToSeconds for the JSON formats that follow;
- locales split warnings/errors into <lang>-notices.ts to stay under the
size limit; every warning and error code must have a message (test).
Four new fixtures, golden serializer suites for HTML and BM JSON (docs/11
named one; neither existed), and docs/02, 04, 05, 07, 09, 11, 15 updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -118,7 +118,7 @@ Four jobs, least privilege first (split 2026-10-28):
| Job | Token | Does |
|---|---|---|
| `build` "Gate + package" | `contents: read` | install, **every CI gate again** (a tag skips the branch triggers, and must never ship what a PR would have blocked), `zip`, `check:manifest`, the tag ↔ manifest version check, `SHA256SUMS.txt`; uploads both files as the artifact `release-<tag>` |
| `build` "Gate + package" | `contents: read` | install, **every CI gate again** (a tag skips the branch triggers, and must never ship what a PR would have blocked), `zip`, `check:manifest`, the tag ↔ manifest version check, `SHA256SUMS.txt`; copies both files into a plain `dist/` and uploads that as the artifact `release-<tag>` — `upload-artifact` skips hidden paths such as `.output/` by default, which failed the first v1.1.0 tag run before any Release existed |
| `publish` "GitHub Release" | `contents: write` | downloads the artifact, `sha256sum -c` it, creates the Release with `--verify-tag` (or re-uploads to an existing one). Installs nothing and runs no repository code — the only job that ever holds a write token |
| `store` "Publish to Chrome Web Store" | `contents: read` | only when the repo variable `CWS_AUTOPUBLISH` is `'true'`: `./node_modules/.bin/wxt submit` with the Release asset — the local binary, never `npx wxt`, which may fetch an unpinned package into an environment holding the four `CHROME_*` secrets (SonarCloud S6505/S8543) |
| `announce` | `contents: read` | Discord, only when `DISCORD_ANNOUNCE` is `'true'` |
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.