* fix(security): upgrade direct ZIP readers to 9.0.5
Upgrade the app, native narration reader and Windows thumbnail provider;
adapt fallible filenames and optional data offsets. Update both app
lockfiles and the thumbnail lock while preserving unrelated pins.
Verified: 201 app Rust tests, 24 native TTS tests, 6 thumbnail tests under
Wine (1 existing ignored), strict app clippy, formatting and locked CEF
Linux dependency graph. Thumbnail strict clippy reproduces 3 existing
lints on the original source; it passes with those CLI lint allowances.
CEF compilation and native Windows device testing were not run.
This is a dependency/API migration covered by existing archive tests;
no new application behavior is intended. The Windows updater retains
ZIP 4 because its patched release requires an incompatible Tauri family.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(security): update vulnerable JavaScript dependencies
Raise patched dependency floors, scope the modern minimatch upgrade to
v10 consumers, and patch deepmerge prototype writes in both merge loops.
Upgrade the SVG renderer and keep its font shaper external so Node can
load its WASM asset when generating PNGs.
Regression tests fail before the fixes: deepmerge inherits attacker
properties; minimatch expands 256 patterns instead of 64 and performs
500500 comparisons instead of zero. The unpatched image upgrade fails
with a dynamic require of fs / missing hb.wasm. All 31 new tests pass
with the fixes, including actual translation and PDF vendor consumers.
Verified: full unit suite 14714 passed/16 skipped; final focused tests
31 passed; lint, formatting, frozen install, web build and Tauri frontend
build passed. Final web build was repeated after the renderer patch.
Nix hashes still need CI regeneration; CEF compilation was not run.
Version-based audits still flag patched deepmerge and legacy minimatch
3/5, which lack this advisory's vulnerable optimizer.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* build(nix): request fresh security dependency hashes
Invalidate the pnpm and Cargo fixed-output hashes so the PR dependency
check computes the updated stores instead of substituting old cached
stores. Replace both values with the CI-reported hashes before merge.
Verified the diff changes only the two affected hash fields; local Nix
is unavailable. CI verification is pending on this commit.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* build(nix): pin regenerated security dependency hashes
Use the pnpm and Cargo hashes calculated by the PR dependency check
(run 41428540045). Both fetchers completed and reported their actual
fixed-output hashes. Replace the temporary empty values.
Verified against the CI log's pnpm-deps and vendor-staging got values;
git diff --check passes. The final hash-check rerun is pending.
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
* fix(tts): play local AAC narration natively on Linux
Decode AAC-LC/ALAC MP4 narration with Symphonia 0.6.1 and send PCM to
CPAL, with SoundTouch preserving pitch when playback speed changes.
Read stored EPUB entries as byte windows and DEFLATE entries through a
bounded in-memory checkpoint index, without extracting audio to cache.
Reuse the native narration clock and controls; retain browser playback
for remote audio and local MP3/Ogg/Opus/WebM sources.
Cover source integrity, exact seeks and MP4 edit timing, bounded output,
audible playback position, ordered controls and cancellation of pending
loads. Run the native plugin and lifecycle regressions in PR CI.
Regression evidence: without the Linux source-descriptor change,
"hands Linux the raw compressed ZIP entry without reading its audio
bytes" fails because getMediaSource returns null instead of the path
and raw ZIP entry. Transport and device-stream lifecycle regressions
were also verified to fail before their corresponding fixes.
Verified on current origin/main: full Vitest suite (14687 passed,
16 skipped), lint, format check, web build, Rust formatting and CEF
Clippy with warnings denied. CEF unit tests: 201 app + 24 plugin tests
passed; 3 transport/device-stream lifecycle regressions passed.
Nix cargoDeps realization and actionlint passed. Full Nix app build
and mobile device tests not run.
Linux CEF runtime with Symphonia 0.6.1: captured audible AAC, verified
forward/backward seeks, rate, pause/frozen clock, abort, and compressed
EPUB playback through all three paragraph highlights to completion.
No reporter EPUB was supplied; used generated narration fixtures.
One earlier app run exited SIGBUS during a shared-target rebuild;
cause unconfirmed, fresh launch after checks passed the sequence.
Reported by DeathStroke19891 on GitHub. Fixes#7084.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(tts): enqueue Linux controls before async dispatch
Tauri schedules async command invocations independently, so pause/resume
could reach the Linux worker in reverse order even when blocking reply
waiters were kept separate. Dispatch Linux playout_control directly from
the synchronous plugin handler, then resolve its worker reply off-thread.
Retain the same IPC payload, ACL parsing, asset scope and non-Linux paths.
This also allows abort to cancel a pending load without waiting for its
reply, which a frontend promise chain would delay.
Regression evidence: reverse the first polls of the old command futures
and the ordering assertion fails with ["resume", "pause"] instead of
["pause", "resume"]. The updated production-handler regression asserts
pause/resume/load/abort enqueue before any response future is polled,
then runs response tasks and blocking waiters in reverse order.
Verified Rust formatting, CEF Clippy with warnings denied, 201 app and
24 plugin unit tests, 3 lifecycle regressions, and a rebuilt CEF app.
Runtime: 40 rapid pause/resume cycles preserved final state, pause froze
the clock, and abort canceled a 226 MB compressed recording load in
about 19 ms. Invalid payload and out-of-scope path rejections passed.
Independent review verified ACL handling and non-Linux routing.
Frontend checks are rerun by the repository's pre-push hook.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(tts): hide narration platforms (owner: remove the linux flag)
Move native source selection and backend capabilities into
NativeNarrationPlayer. MediaOverlayClient retains one native flag and
uses streaming, queueing, and cancellation capabilities without OS checks.
Preserve local ZIP playback, browser fallbacks, and mobile staging.
Validation: 93 focused tests passed; full Vitest suite passed 1,220 files
and 14,691 tests (4 files and 16 tests skipped). TypeScript, Biome lint,
format checking, and git diff --check passed. Lint reports one existing
informational diagnostic in nativePageTurn.ts. New loadSource tests fail
before delegation exists and pass afterward. In an isolated Linux CEF
app, compressed AAC playback advanced through all three paragraph
highlights using the native clock. Mobile device checks were not run.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(tts): finish canceled narration loads without errors
A native load can be canceled independently of the speak signal. Suppress
load failures when either signal was aborted, retaining the original
playback signal across invalidation so Rust cancellation errors are also
recognized. Other load failures still yield playback errors.
Validation: eight regression cases fail without this guard, yielding an
error instead of completing the generator. All 95 focused native/client/
player tests pass with the fix, including genuine load failures. TypeScript,
Biome lint and formatting, and git diff --check pass. In isolated Linux CEF,
stopping a large compressed recording during loading closes the player,
leaves native playback stopped, and logs no playback error. Mobile device
checks were not run. The pre-push hook runs the full frontend suite.
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
* fix(build): make pnpm preview serve pages and rewrites again
Two bugs took down the OpenNext/wrangler preview with Next 16.4:
- Every page returned 500 with "Unexpected loadManifest(/.next/server/preview-props.json) call!".
Next 16.4 reads a new server/preview-props.json, and @opennextjs/cloudflare 1.20.11
only copies `*-manifest.json` files into the worker. 1.20.13 copies this file too.
- Rewritten URLs such as /reader/<id> returned 500 with "Error in routingHandler
TypeError: (0 , import_path_to_regexp.parse) is not a function or its return value
is not iterable". The workspace override forced every path-to-regexp to >=8.4.0,
but @opennextjs/aws and wrangler are written for ^6.3.0, and v8's parse()
returns an object instead of a token list. The override is now split by major
version: v6 stays >=6.3.0 (no open advisories) and v8 stays >=8.4.0 (patched
for GHSA-27v5-c462-wpq7 and GHSA-j3q9-mxjg-w52f).
Verified: before the change, `pnpm preview` returned 500 on / and on
/reader/<id>, with the errors above in the wrangler log. After the change,
/, /library, /reader?ids=<id> and /reader/<id> all return 200, the reader
page loads its chunk, and the log has neither error. pnpm test (1198 files,
14239 tests), pnpm lint and pnpm build-web pass. This is a dependency change,
so it has no unit test. The Nix pnpmDeps.hash comes from the PR's fod-hashes
check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps.hash for the OpenNext and path-to-regexp lockfile change
The value is the got: line from the PR's fod-hashes check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(deps): bump next to 16.4.3 for the open Dependabot alerts
next 16.0.0 through 16.4.0 have two unauthenticated remote code
execution advisories (`use cache` functions returning typed arrays, and
the Image Optimization API with SVG files) and a Server Actions denial
of service. All three are patched in 16.4.1; this takes the latest
16.4 patch, 16.4.3. The lockfile change is next and its @next/env and
@next/swc-* packages only.
Verified: pnpm lint, pnpm build-web and pnpm build (both report
Next.js 16.4.3), and the Cloudflare build (opennextjs-cloudflare build,
webpack). pnpm test: 1185 files passed, 4 skipped, 1 failed with a 5s
timeout in ControlPanelUpdateReset.test.tsx while two Next builds ran
alongside it; it passes alone, and its first test takes ~1.7s alone on
main with next 16.3.8 too. The first Cloudflare build run died with a
JavaScript heap OOM at the default ~4 GB heap; the rerun passed (peak
RSS 7.4 GB), as #7007 saw on 16.3.8. No behavior change, so no new
test. Nix pnpmDeps.hash not updated here: nix is unavailable locally,
the nix-deps-check job prints the new hash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(deps): pin next to 16.4.2, clear of the release-age cutoff
The Nix fod-hashes job rejected 16.4.3 with
ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION: it was published on
2026-10-23, inside pnpm's one-day minimumReleaseAge, which the Nix
fetcher enforces and local installs don't. 16.4.2 (2026-10-15)
carries the 16.4.1 fixes for all three advisories.
Verified on 16.4.2: pnpm lint, pnpm build-web and pnpm build (report
Next.js 16.4.2) passed. The Cloudflare build (opennextjs-cloudflare
build, webpack) hit the JavaScript heap OOM at the default ~4 GB heap
on its first run (#7034); a rerun was stopped when the machine ran
low on memory, so it has not passed on 16.4.2 here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps hash for the next 16.4.2 bump
Taken from the fod-hashes job on the previous head (specified
sha256-tYEHs..., got sha256-4F16c...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): bump the dompurify override floor to 3.4.17
GHSA-mrv2-3pqr-j5jr (high): with IN_PLACE enabled, a hook that removes a
parent or sibling leaves the detached subtree's event handlers armed —
an incomplete fix for GHSA-p98j-92pf-mc4p. 3.4.17 also carries
GHSA-cg2g-xh64-v4q7 (critical, SAFE_FOR_TEMPLATES bypass) and
GHSA-c6gr-qvv4-5v3f (low, xhtml parser media type).
Raise the workspace override floor from >=3.4.16 to >=3.4.17 and
re-resolve the lockfile. The override is how this repo already pins
transitive security floors, so the app, the browser extension, and the
posthog-js / mermaid transitive copies all move to the fixed line
together.
pnpm audit --prod: 8 vulnerabilities (3 critical / 4 high / 1 low)
before, 5 (2 critical / 3 high) after; no dompurify findings remain.
* build(nix): update pnpmDeps hash for the dompurify 3.4.17 lockfile
The fod-hashes job on #7003 failed with a hash mismatch for
readest-pnpm-deps; this sets the hash it printed (got: sha256-9Yov...).
No other lockfile change sits between the PR base and main, so the hash
holds after merge.
Verified: CI fod-hashes log for 2509b0ac0. Not run locally: no nix on
this machine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* build(nix): update pnpmDeps hash for the merged dompurify lockfile
Taken from the fod-hashes job on 00be85e5c (specified sha256-Fct7A...,
got sha256-tYEHs...). Not run locally: no nix on this machine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Huang Xin <chrox.huang@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(deps): resolve open Dependabot alerts
Bump vitest, @vitest/browser-playwright and @vitest/coverage-v8 to
4.1.12 and override @vitest/browser and @vitest/mocker 4.x to 4.1.12.
@vitest/browser-webdriverio has no 4.1.12 release, so it stays at
4.1.11 and pulls the patched @vitest/browser through the override; it
reports an unmet vitest 4.1.11 peer.
Raise the vite override and spec to 7.3.7.
Bump @opennextjs/cloudflare to 1.20.11. It is the newest release whose
next peer range (>=16.3.8) still accepts the pinned next 16.3.8;
1.20.12 and later want next >=16.4.1. The fixed advisory only affects
apps with enableCacheInterception, which open-next.config.ts doesn't set.
braces and sprintf-js have no patched release (the sprintf-js advisory
is withdrawn) and are left as they were.
Verified: pnpm test (1175 files passed, 4 skipped), pnpm lint,
pnpm build-web, and the Cloudflare build (opennextjs-cloudflare build,
webpack). The first Cloudflare build run aborted with status 134 while
the machine was under load; the rerun completed. No behavior change, so
no new test. Nix pnpmDeps.hash not updated here: nix is unavailable
locally, the nix-deps-check job prints the new hash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps hash for the Dependabot bumps
Taken from the fod-hashes job on the previous head (specified
sha256-eOWra..., got sha256-Fct7A...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(deps): resolve open Dependabot alerts
Raise the workspace overrides for shell-quote, proxy-addr and
source-map-js to their patched releases, and pull postcss-selector-parser
6.x (pinned by @tailwindcss/typography) up to 7.1.6. The compiled prose
styles are unchanged.
Move katex to 0.18 (with marked-katex-extension 5.1.13 and an override for
the packages still asking for 0.16) and i18next-http-backend to 4.0.2.
v4 only drops the cross-fetch fallback; the backend loads in the browser,
which has fetch.
Update rustls to 0.23.46 in Cargo.lock, Cargo.cef.lock and the koplugin
LocalSend helper.
Blank the Nix pnpmDeps and cargo hashes so the fod-hashes check prints
the new values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpm and cargo dependency hashes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps hash for music-metadata
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps hash for music-metadata
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(linux): stop the CEF focus loop that froze two-window sessions, closes#6689
Bump readest/tauri feat/cef to d6ef6e4c (readest/tauri#5): the runtime
now moves the X focus into a window's browser only while that window's
toplevel still holds it, so a late winit Focused event no longer bounces
the focus between two browsers forever.
Also records the windows dependency from #6546 in Cargo.cef.lock, which
was missing and made --locked resolution fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh cargoHash for the readest/tauri bump
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(hardcover): sign in with OAuth using the device authorization flow
Connect now opens a /hardcover/connect screen with a QR code and code to
approve on Hardcover, replacing the pasted API token field. Existing
pasted tokens keep working. Tokens refresh automatically, are device-local,
and are revoked on disconnect.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(hardcover): add translations for the OAuth connect screen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): reject backslash redirects on the connect screen
Browsers read a backslash as '/', so a redirect like '/\host' would leave
the app. Matches the check navigateBackFromProfile already does.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(nix): update the pnpm dependency hash for the new uqr dependency
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): reject control characters in the connect screen redirect
Browsers drop tabs and newlines when parsing a URL, so '/<TAB>/host' is read
as '//host'. Rejects any Unicode control character, and the tests now check
that rejected redirects fall back to the library.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): save the connection before publishing it in memory
A failed save no longer leaves unsaved OAuth credentials live in the settings
store, where later syncs in the same session would use them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): treat a session with no refresh token as a dead login
A session that has no refresh token cannot be renewed once its access token
expires, so reconnecting is the only fix. It now raises the same auth error as
a refused refresh instead of surfacing the raw 'no_refresh_token' error.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): don't let a stale refresh overwrite a newer login
The token store now receives the tokens a refresh started from and skips the
save if the stored tokens differ. A refresh still in flight when the user
disconnects and reconnects no longer replaces the new session.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): retry a failed token save on the next request
The client keeps the tokens it last knew were stored and compares against those
when saving, so a failed save no longer makes every later save look stale. A
failed save is retried on the next request instead of waiting for the next
refresh.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(hardcover): treat a refused refresh grant as a dead login
Hardcover's token endpoint answers an unknown or revoked refresh token with
HTTP 400 `invalid_grant`, so a dead login surfaced the raw "OAuth token refresh
failed with HTTP 400: invalid_grant" error on every sync instead of the
"Reconnect in Settings" message. Map 400 `invalid_grant` to HardcoverAuthError.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Huang Xin <chrox.huang@gmail.com>
* fix(deps): resolve open Dependabot alerts
Bump next to 16.3.8 (next/og ImageResponse RCE, plus the image
optimizer SSRF and cache-poisoning fixes shipped in the same release),
dompurify to 3.4.16, and vitest to 4.1.11.
Move ai, @ai-sdk/react and @ai-sdk/openai-compatible to releases that
share @ai-sdk/provider-utils 4.0.57, and carry the iOS Safari
lookbehind patch over to that version.
Raise the workspace overrides for undici, brace-expansion, sharp,
js-yaml, fast-uri and baseline-browser-mapping to their patched
releases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): blank pnpmDeps hash to recompute it in CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): refresh pnpm dependency hash
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(reader): animate page turns for PDF and comics on Windows and Linux, closes#6380
Fixed-layout books (PDF, CBZ/CBR, fixed-layout EPUB) only animate through
the captured page turn, which needs a native snapshot of the webview. That
snapshot existed on macOS, iOS and Android only, so Windows and the Linux
CEF runtime rejected it and every turn on those books was instant.
Both engines are Chromium, so both now take the snapshot with the DevTools
protocol's Page.captureScreenshot, clipped to the reader cell: WebView2's
CallDevToolsProtocolMethod on Windows, the CEF browser's DevTools message
observer on Linux. The clip returns exactly the region at device
resolution, and captureBeyondViewport stays off so the live page never
reflows. JPEG, as on Android: about 35 ms per full cell against 86 ms for
PNG.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* build(nix): bump cargoHash for the native-bridge dependency edges
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(reader): release the CEF screenshot observer when no result arrives
The observer and its registration hold each other, so a capture that
never gets a result (the DevTools agent detached, or the wait timed out)
kept both alive. Take the registration on agent detach, and on timeout
from the caller on the UI thread.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(desktop): reopen the library when Readest is relaunched with only reader windows open, closes#6394
Relaunching Readest (e.g. from the desktop shortcut) after closing the
library window left only the reader windows and never brought the library
back:
- The single-instance callback only focuses the `main` window, which does
nothing once it is gone. The first reader window now recreates it on a
plain relaunch; launches carrying a file or link still go to the
open-with handlers.
- On the Linux CEF build the relaunch never reached the single-instance
plugin at all. Chromium's process singleton claims it first, the running
browser process drops the command line, and the new process panics in
CEF initialization, so a relaunch neither raised the library nor opened
the files it was given. The launch is now handed to the running instance
over the plugin's D-Bus interface before CEF starts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): update cargoHash for the zbus entry in Cargo.cef.lock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(nix): add the desktop Now Playing crates to Cargo.cef.lock
#6457 added souvlaki and its dependencies to Cargo.lock only. The Linux
CEF build (Nix, Flatpak, release) swaps in Cargo.cef.lock, which did not
have them, so the Nix build on main failed with "no matching package
named `souvlaki` found". Regenerated with the minimal cargo metadata
resolve under .cargo/cef.toml; no existing crate versions change.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(nix): bump cargoHash for the new Cargo.cef.lock
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(build): repair the Docker and Nix builds after #6368
Two main-branch builds broke on 8750c310 and both are fallout from that PR.
**Docker** (`pnpm build-web`: "Can't resolve '@pdfjs/pdf.min.mjs'",
"Can't resolve '@simplecc/simplecc_wasm'"). `setup-vendors` runs in the
`dependencies` stage and its output is not in the build context, so every
directory it creates needs an explicit `COPY --from=dependencies`. Splitting
the bundler-imported modules out of `public/vendor` into `vendor/` left the
new directory with no COPY line. The test derives the expected roots from the
`prepare-vendor` script, so adding another one fails until the Dockerfile
copies it.
**Nix** ("no matching package named `sentry-debug-images` found"). The Linux
CEF build vendors from `Cargo.cef.lock`, which `nix/package.nix` copies over
`Cargo.lock`, and that second lock never learned about the two crates the
sentry `debug-images` feature pulls in. Added `findshlibs` and
`sentry-debug-images` there, plus the dependency entry on `sentry`; both need
only packages the lock already had.
This is also why `nix-deps-check` stayed green on #6368: it hashes
`Cargo.cef.lock`, which that PR did not touch, so the stale vendor set only
surfaced when the full Nix build ran on main.
`cargoHash` is updated in a follow-up commit from the hash the deps-check
prints, since the vendor contents change.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* style: format the vendor-root docker test
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): update cargoHash for the new sentry debug-images crates
The vendor set gained findshlibs and sentry-debug-images, so the pinned
hash moved. Value taken from the nix-deps-check run on this PR:
specified: sha256-EPNbiv0YJ79rqBHFCO5gjQwt9Vn1v9HV0ZfH7f2Eo/E=
got: sha256-8MIkn2N65P87tG0RncOQtH01SYfRUM4qB6rOzd+fwwQ=
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* refactor: one vendor dir, with the bundler importing from packages
#6368 split the vendored modules into a second `vendor/` directory to stop
them shipping twice (Tauri embeds every published file, and `public/` is
published whole). Two vendor directories is the wrong shape, and the copies
were never needed: the aliases can resolve straight at the sources, which is
how `jieba-wasm` has always been imported.
@pdfjs/* -> packages/foliate-js/node_modules/pdfjs-dist/legacy/build/*
@simplecc/* -> packages/simplecc-wasm/dist/web/*
`public/vendor/pdfjs` now holds only what the reader fetches by URL at
runtime — the worker, the WASM decoders, cmaps, standard fonts and the layer
CSS — and `vendor/` is gone, along with `copy-pdfjs-lib`, `copy-simplecc`,
`setup-simplecc`, its Dockerfile COPY and its worktree copy.
Two details this turned up:
- The @pdfjs alias needs an explicit `declare module`. TypeScript inferred
types for the minified JS while it sat inside the app, but skips JavaScript
under node_modules, and pdfjs-dist ships `pdf.d.mts`, not the
`pdf.min.d.mts` that would sit beside the minified build. Only the import's
side effect is used, so the declaration is bare.
- `packages/simplecc-wasm` is a submodule the worktree script skips, so the
script now copies its committed `dist/web` into a new worktree instead of a
vendor directory.
A true `import ... from 'simplecc-wasm'`, matching jieba exactly, would need a
change in that submodule: its `exports` map points at `pkg/`, which is build
output and not committed (only `dist/web` is), and the map forbids other
subpaths.
Verified with a real build: modules resolve with no `vendor/` present,
`out/vendor` holds only pdfjs, `pdf.min.mjs` is bundled into a chunk and not
published, and both jieba and simplecc WASM are emitted once each.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* docs: say why the @pdfjs alias points at the package, not public/
The comments still described a vendored copy. Record the constraint
instead: a module the bundler imports must not also be published, or
Tauri embeds it twice.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test: drop the vendor/docker config assertions
These assert on config files rather than behaviour: the alias-target test,
the Dockerfile vendor-COPY test, and the pdfjs wasm copy-script test.
The SELF_HOSTED default check in docker-image-defaults.test.ts stays; it
predates this work (#6100) and guards runtime behaviour of the published
image rather than a config shape.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): add imagesize to the CEF lockfile
#6273 added the imagesize crate to Cargo.lock but not to Cargo.cef.lock,
which the Nix package builds the Linux CEF app from. Its offline vendor
had no imagesize, so the build on main failed with "no matching package
named `imagesize` found". The Readest entry also gains http-body-util,
hyper and hyper-util, which cargo already resolved from the vendor.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): refresh the Cargo vendor hash for imagesize
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(ci): use CEF bundler with deployment array quoting fix
* fix(nix): include psl in the CEF dependency lockfile
* fix(nix): refresh CEF Cargo vendor hash for psl
The CEF build fails at the final link with undefined references to NSS,
NSPR, dbus, cups, udev and ALSA symbols, each preceded by "libnss3.so,
needed by /build/cef/libcef.so, not found (try using -rpath or
-rpath-link)".
ld looks for the DT_NEEDED entries of a library it links against in
-rpath-link and in that library's own RUNPATH; it never searches the -L
path for them. Nix's libraries carry a RUNPATH and resolve themselves,
but libcef.so is a Chromium prebuilt whose RUNPATH is just `$ORIGIN`, so
its dependencies stay unresolved -- and the first miss poisons every
other library that needs the same soname, which is why libgudev and
libatspi report undefined udev_*/dbus_* references too.
Point the linker at the buildInputs' library directories. Verified by
reproducing the link against the real libcef.so in a nix build with the
same buildInputs and link line: it fails identically without the flag and
links cleanly with it.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* chore: bump tauri to version 2.11.5
* chore: update agent memories
* chore(nix): bump cargoHash for the tauri 2.11.5 lockfile
The fod-hashes check failed on the stale cargo vendor hash after
Cargo.lock was regenerated for the tauri fork bump. Take the hash from
the check's `got:` line. Also pass `--keep-going` to that nix build so a
single run reports every stale fixed-output hash instead of stopping at
the first one.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix(epub): decode UTF-16 BOM bodies with as_chunks
CI's stable clippy rejects `chunks_exact(2)` with a constant chunk size
(`clippy::chunks_exact_to_as_chunks`) now that the crate's MSRV is 1.90
and `slice::as_chunks` is available. Same behaviour: the trailing odd
byte of a malformed UTF-16 stream lands in the ignored remainder, which
the new test pins down.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore(nix): bump pnpmDeps hash for the tauri plugin package bumps
pnpm-lock.yaml changed with the @tauri-apps/plugin-* JS package bumps,
so the pnpm dependency fixed-output hash went stale. Value taken from
the fod-hashes check's `got:` line.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* feat(linux): build and ship Readest on the tauri CEF runtime
Linux now builds against upstream tauri `feat/cef` (git) and the plugins on
plugins-workspace `feat/cef`, while macOS/Windows/mobile keep the readest
fork untouched:
- `pnpm tauri:cef dev|build` (scripts/tauri-cef.mjs) runs @tauri-apps/cli-cef
with `--features cef`, cargo `--no-default-features` and the Linux-only
`[patch.crates-io]` in src-tauri/.cargo/cef.toml, swapping the committed
Cargo.cef.lock in for the run so Cargo.lock stays in the fork state.
- The fork crates are no longer workspace members (a member clashes on
`links` with the git copy); the tauri-plugins fork carried no changes and
is removed, tauri-plugin-fs comes from crates.io at 2.5.1.
- App: `cef = ["tauri/cef"]` (the fork gets a no-op stub), explicit runtime
type, `cef_entry_point`, `--no-first-run` for CEF, commands generic over
the runtime, xdg-portal dialogs on Linux (rfd's GTK thread crashes CEF),
rangefile reads and pointer-driven move/resize on the Linux CEF runtime,
Chromium reported in the About dialog, deb/rpm depend on libwebkit2gtk
while plugins still pull the wry runtime.
- Build-generated permission files are untracked; turso registers `batch`.
- CI Linux legs use `pnpm tauri:cef`.
Submodules: packages/tauri -> feat/cef-feature-stub, tauri-plugin-turso ->
fix/register-batch-command (both need pushing).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(linux): let the CEF wrapper run an unpacked tauri CLI for offline builds
Flatpak builds have no network, so `TAURI_CEF_CLI` points scripts/tauri-cef.mjs
at an unpacked copy of @tauri-apps/cli-cef instead of `pnpm dlx`.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore(linux): take the CEF stack from the readest forks
- src-tauri/.cargo/cef.toml: tauri and the plugins now come from the readest
forks' feat/cef branches (upstream feat/cef plus the DevTools-close fix in
tauri-runtime-cef); Cargo.cef.lock re-resolved against them.
- tauri-plugin-turso: point at main, which merged the batch command fix.
- CI: STRACE_MODE=0 for the Linux legs so the CEF AppImage bundler
(quick-sharun) does not launch the app under Xvfb and hang (#4906).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(linux): make the CEF runtime the default tauri build on Linux
`pnpm tauri` now goes through scripts/tauri.mjs (the former tauri-cef.mjs):
on Linux its dev, build and bundle commands run the feat/cef tauri CLI
with the CEF feature, cargo config and Cargo.cef.lock swap, and every
other platform or command passes straight through to @tauri-apps/cli.
The separate `tauri:cef` script goes away, so the release and nightly
workflows, the local Linux build script and the docs use plain
`pnpm tauri build` again.
The tauri webdriver harness (scripts/test-tauri.sh) still calls the
`tauri` binary directly and keeps the wry runtime on Linux, since
tauri-driver needs WebKitWebDriver.
Cargo.cef.lock picks up the quick-xml 0.41 bump from main.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore(nix): refresh cargoHash for the reshaped Cargo.lock
Dropping the packages/tauri-plugins submodule and the tauri-plugin-fs
path patch changed the vendored cargo dependency set, so the Nix
fixed-output hash moves to the value the nix-deps-check job reported.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix(linux): harden the CEF wrapper and pointer window drag
Review follow-ups on the CEF runtime work:
- scripts/tauri.mjs parks the wry Cargo.lock in Cargo.lock.wry, created
exclusively, so two CEF commands in one checkout cannot swap lockfiles
over each other, and a killed run leaves an obvious file to move back.
- The CEF runtime alias, entry point and runtime attributes are gated on
Linux as well as the `cef` feature; elsewhere the feature is a no-op.
- Pointer-driven window move/resize applies the last pointer delta when
the button is released before the pending animation frame, and does
not start tracking when the button was already released while the
window state was being read.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix: prevent navigation and HTTP lifecycle rejections
Patch same-path history transitions and Tauri HTTP abort/body cleanup. Add regression tests for transition completion, native resource races, and stable Android updater failures.
* fix: own route transitions and scope Yandex cancellation
Replace the dependency patches with application-level fixes. Keep explicit route animations in a Readest provider and leave browser history native. Dispose Yandex deadlines and caller cancellation after response consumption, including error bodies.
* fix: refresh Nix pnpm dependency hash
* feat(bookdrop): AirDrop-style picker, device pairing, receiver sounds
Rework Nearby BookDrop's device picker into an AirDrop-style sheet: an
identity header showing this device (its own type glyph) and the payload
cover, discovered peers as large circular avatars, an SVG progress ring on
the target during a send, and scanning ripples in the empty state. All
motion is CSS keyframes that disable under e-ink and prefers-reduced-motion.
Add device pairing: an incoming transfer from a TLS-cert-verified sender can
be trusted via an "Always accept from this device" checkbox, after which its
drops skip the confirmation dialog. Trust is keyed on the peer's cert
fingerprint, stored per device in localStorage, and managed from a Paired
Devices list in settings. Cert-less senders (the stock LocalSend app) can
never be paired and always confirm. Pairing is gated on the Customization
entitlement, following the TTS-cache paywall pattern.
Add transfer sounds, played on the receiver only (the sender watches the
progress ring): start, done, and fail cues behind a settings toggle, forced
off under e-ink, paired with haptics on mobile. Audio is unlocked on first
gesture to satisfy webview autoplay policy.
The Rust receive path now reports certVerified so the webview can gate
auto-accept on cert-verified senders only.
Verified on macOS and Xiaomi (Android), both send and receive directions:
discovery, accept dialog with pairing checkbox, pairing, auto-accept,
success toasts, receiver-only sound, Paired Devices management with Unpair,
and e-ink degrade.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(bookdrop): keep discovered peers present on multicast-hostile networks
A peer found by the initial unicast scan was kept alive only by multicast
answers on the picker heartbeat. Networks that carry the scan but drop
ongoing multicast (Xiaomi/MIUI power management, access points that filter
or rate-limit multicast) never deliver those answers, so the peer aged out
of the picker within seconds even while perfectly reachable.
Changes:
* Prune peers whose presence is unconfirmed past a 4.5s TTL, so a locked or
backgrounded device drops out of the picker AirDrop style.
* On each heartbeat, re-probe every known peer over unicast in addition to
announcing over multicast, so a reachable peer stays listed without
sweeping the whole /24. Verified on macOS: a Xiaomi peer stayed present
for ~60s of continuous heartbeats where it previously vanished after ~2s.
* Add a set_discoverable command and gate answering on screen lock and
background, with the matching autogenerated permission and capability.
* Adapt to the updated localsend crate API (WebMode upload page,
InterfaceFilter import path, ListenerFailed server event).
* Show the announced device name in the integrations row instead of "On",
default to an AirDrop style "{{name}}'s Readest" alias, and translate the
new Nearby BookDrop strings across all locales.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(nix): bump cargoHash for the localsend crate rev
The localsend git rev bump in Cargo.lock changed the cargo vendor
fixed-output derivation, so the pinned cargoHash went stale and the
fod-hashes check failed. Update it to the value the check reported.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(bookdrop): address code review findings on device picker and recovery
- DevicePickerDialog: guard the presence heartbeat against overlapping
runs and stale writes, so a slow device read cannot clobber the frozen
list after a send starts or the dialog closes.
- LocalSendManager: swallow the impactFeedback promise rejection, and
restart a torn-down service on the next foreground instead of only
re-announcing presence.
- service.rs: on ListenerFailed, tear the dead service down and report the
server stopped, so it stops being advertised as reachable when it can no
longer accept uploads.
- i18n: fix the Persian ezafe in the device alias and the Dutch/Polish
verb forms in the transfer-sound toggle description.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* chore(deps): upgrade to TypeScript 7
TypeScript 7.0.2 is GA and @typescript/native-preview stopped publishing
after 7.0.0-dev.20260707.2, so the preview package is dropped and the real
typescript dependency carries the native compiler. "pnpm lint" now runs
"tsc --noEmit" because TypeScript 7 ships only a tsc bin, no tsgo.
Next.js 16.2 rejects TypeScript >= 7.0 outright, so next moves to 16.3.3,
which runs the project-local TypeScript CLI for build-time type checking
and tsconfig loading (experimental.useTypeScriptCli, on by default).
Two fallouts:
- TypeScript 7 enforces the inferred rootDir even under noEmit, so the
js-mdict sources mapped in from packages/ tripped TS6059. rootDir is
now set explicitly to the monorepo root.
- Next 16.3 added a required bfcacheId to AppRouterInstance, which the
nav test router mock was missing.
The browser extension stays on TypeScript 5 because ts-loader needs the
JS compiler API that TypeScript 7 removed.
Closes#5260
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps hash for the TypeScript 7 lockfile
The TypeScript 7 and Next.js 16.3 upgrade changes pnpm-lock.yaml, so the
pinned fixed-output hash no longer matches. Value taken from the got: line
of the nix-deps-check run on this pull request.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(ui): migrate to daisyUI 5 and Tailwind CSS 4
daisyUI 5 requires Tailwind CSS 4, so the configuration moves into
globals.css: tailwind.config.ts is gone, and the built-in themes now
compile through a small plugin (src/styles/daisyui-themes.ts) that
shares one token emitter with the runtime custom theme injector.
Keep the rendering identical to daisyUI 4:
- themes.ts emits daisyUI 5 --color-* tokens, derives the *-content
colors with the v4 formula, and pins the v4 radii, border and depth.
- globals.css carries a compat block for the component defaults v5
changed: md field height, small size type, checkbox radius, menu
width and line height, disabled non-buttons, toggle width, and the
visibility of closed and nested dropdowns. Every rule has zero
specificity so utilities keep winning as they did on v3.
- Pin the Tailwind 3 color palette for the families the app uses;
Tailwind 4 ships oklch values that render noticeably more vivid.
- Restore the v3 preflight defaults the UI was tuned on (border and
placeholder colors, button cursor) and the v3 hover semantics.
Class names are migrated for both upgrades: the v3 renames (shadow,
rounded, blur, outline-none, flex-shrink, the important modifier, CSS
variables in arbitrary values) and the daisyUI removals
(input-bordered, form-control, label-text, tr.hover). Three call sites
relied on the old stylesheet order of conflicting utilities and now
say what they mean instead.
Fixes#5587: daisyUI 5 opts the select into appearance: base-select and
themes ::picker(select), so the option popup follows the app theme
instead of the operating system. The chromeless settings selects no
longer force appearance-none, which would cancel that.
The font dropdown's System Fonts sub-list now opens only when its row
is activated, and its bottom edge lines up with the parent menu.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): refresh pnpmDeps hash for the daisyUI 5 lockfile
The daisyUI and Tailwind upgrade changes pnpm-lock.yaml, so the pinned
fixed-output hash no longer matches. Value taken from the got: line of
the nix-deps-check run on this pull request.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(ui): keep the daisyUI toggle size modifiers
The compat rule that restored the v4 track width applied to every
toggle, so toggle-sm and toggle-xs were stretched to the medium width:
the OPDS catalog manager's auto-download switches came out 48px wide on
a 20px track. daisyUI 4 sized each step separately and the steps do not
share one ratio, so pin all four.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(android): require WebView 111 and use btn-contrast for catalog save
Tailwind CSS 4 targets Chromium 111 and up, and the oklch fallback that
used to cover older WebViews is gone with the daisyUI 5 migration, so
raise the webview-upgrade plugin's minSupportedMajor from 92 to 111.
Below that the plugin now tells the user their WebView is too old
instead of letting the app render with broken colors.
Also switch the OPDS catalog dialog's submit button to btn-contrast,
which is the design system's primary action for dialogs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(ios): require iOS 16.4
Tailwind CSS 4 targets Safari 16.4 and up. Below that, color-mix() and
@property are missing, so daisyUI's controls do not degrade gracefully:
input borders fall back to currentColor and the toggle geometry
collapses, as seen on an iOS 15.8 device. Raising the deployment target
keeps those devices on the last build that renders correctly instead of
shipping them a broken UI.
Covers the Tauri bundle config, the xcodegen project and every target in
the generated Xcode project.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* chore(deps): point the webview-upgrade plugin at the 111 default
Picks up readest/tauri-plugin-webview-upgrade#2, which raises the
plugin's own defaultMinSupportedMajor to match the minSupportedMajor
this app already sets in tauri.conf.json.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(reader): move a paired audiobook by audio and decode WebP covers (#5863)
A paired audiobook has chapter-level text timing only, so its narration
marks are whole chapters: the Next/Previous Sentence buttons (and the lock
screen's seek actions) skipped an entire chapter, and audio chapters that
had no EPUB chapter to map to (1.1, 1.2 ...) were never played at all.
- An unmapped audio chapter now plays as the tail of the mapped chapter
before it in the same file, so the recording is heard in full and the
page keeps following it proportionally.
- With a chapter-timed recording the transport moves by audio: the small
step is the audiobook player's skip (30 seconds forward, 15 back, in
recording time whatever the rate) and the large step walks the
audiobook's own chapter list, restarting the current chapter on a late
backward skip like every audiobook player. The page turns only when the
target chapter is narrated by another mapped chapter. The mini player
and player sheet swap in the player's glyphs and labels; the media
session's seekforward/nexttrack handlers get this for free through
forward()/backward(). The skip constants move to the PlaybackSource seam
so both players share them.
- The Rust cover thumbnailer could not decode WebP covers ("The image format
WebP is not supported"): enable the image crate's pure-Rust webp decoder.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore(nix): bump cargoHash for the image-webp crate
Cargo.lock gained image-webp with the image crate's webp feature, so the
pinned cargo vendor hash went stale and the Nix dependency check failed.
New value taken from that check's got: line.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(reader): describe chapter skips over the reachable audiobook chapters
narratedAudioChapters leaves out audio before the first mapped chapter of a
file, and adjacentAudioChapter never lands there, so the transport walks the
reachable chapters rather than the audiobook's whole chapter list.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* chore: update agent memories and i18n
* ci: verify nix dependency hashes on pull requests
Lockfile changes require regenerating the fixed-output hashes in
nix/package.nix. The nix build on main cannot catch a stale hash before
merge, and it fails late with ERR_PNPM_NO_OFFLINE_TARBALL because the
old dep store is substituted from the binary cache. This check runs on
pull requests that touch a lockfile and rebuilds the three dependency
fetches from the network, so a stale hash fails fast and prints the
expected and actual hash pair.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(nix): update pnpmDeps hash for the lockfile from #5778
The lockfile changed in #5778 without regenerating the hash, which broke
the nix build on main. Hash computed by the nix-deps-check run on this
pull request.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* refactor(nix): move nix files out of `ops/`
* feat(nix): package for nix
* docs(nix): add installation guide
* chore(workflows): add workflow to build on nix
* chore(workflows): move flake check to pull requests, and builds to cron
* fix(nix): only add ios shell on darwin
* chore(workflows): add workflow to update flake inputs periodically
* chore(workflows): rename nix.yml to nix-build.yml
* chore(workflows): add cachix to nix-build
* chore: check all systems
* chore: auto-update hashes
* fix: set platform to linux and add warning in docs
* fix: only evaluate android shell if system is not aarch64
* fix: drop soon-to-be-deprecated x86_64-darwin platform
* fix: use more explicit nix build command
* fix: respect .gitignore in src
* chore: only run nix build on push to main
* fix: remove duplicate nix installer action
* chore: fix script formatting
* chore: move build check to flake checks
* chore: remove automatic hash-mismatch fix
* fix: only give read permissions to nix build action
* fix: use more explicit matching
* fix: remove unnecessary passthru references
* fix: pin action versions
* fix: use cachix for nix flake check
* fix: remove unnecessary secret
* fix: do not push flake check builds
* fix: meta.platforms -> platforms
* fix(nix): wire up the public binary cache and drop aarch64-linux
The Cachix cache was populated by CI but unreachable by users: neither the
flake nor the README pointed at it, so every install compiled the Rust/Tauri
stack and webkitgtk from source. Add nixConfig substituters and document the
cachix use / nix.settings opt-ins.
skipPush was passed to install-nix-action, which has no such input, so PR
builds still pushed whenever the token was present. Move it to cachix-action
and drop authToken there: the cache is public, so pulling needs no token, and
PR-triggered builds no longer see the push token at all.
Restrict nix_flake_check to pull_request. It also ran on main pushes, where
nix-build.yml already builds and pushes the same paths.
Drop aarch64-linux from eachSystem. Nothing built or cached it, so ARM Linux
users got a cache miss on everything. That makes the two system != aarch64-linux
guards dead, so fold those attrsets back into their bases.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): refresh the pnpm deps hash after lockfile changes on main
nix flake check builds the pull_request merge ref, so the fixed-output
derivation covers main's pnpm-lock.yaml, not just the branch's. Two lockfile
changes landed on main after the hash was pinned (#5754, #5764), so the FOD
went stale and the check failed with a hash mismatch.
Cargo.lock and the turso plugin are unchanged over the same range, so
cargoHash and tursoPluginDeps still match.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* perf(nix): make the PR flake check evaluation only
nix flake check builds every attribute in `checks`, so `checks.build =
packages.default` turned the PR check into a full release build: cargo vendor,
a production Next.js build, and a cold release compile of the whole Tauri tree.
Nix builds in a pure sandbox, so it cannot use the sccache and rust-cache the
other Rust jobs rely on, and the binary cache is still empty, so nothing
amortized it. Observed over 45 minutes per run.
Drop the attribute. The flake outputs are still evaluated across systems, which
catches eval errors, and nix-build.yml keeps doing the real build on main and
pushing the result to the cache.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* chore(nix): pin actions/checkout to a commit sha
nix-build.yml used the mutable v5 tag while the other 19 checkout usages in
this repo pin 3d3c42e5aac5ba805825da76410c181273ba90b1 (v7.0.1). A movable tag
lets the action change under us and is what the scorecard pinned-dependencies
check flags.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* docs(nix): compress the README install and fix the dev shell commands
README: five code blocks down to three. The three interchangeable ways to opt
in to the cache collapse to one, and the two configuration.nix snippets merge
into a single block, since a NixOS user edits one file. Note why the cache has
to be repeated there: a flake input's nixConfig does not apply to the importing
system build, so the systemPackages path would otherwise build from source.
CONTRIBUTING: the documented shells pointed at ./ops, which this branch
deleted when it moved the flake to the repository root, so all three commands
failed. The web shell is also named default now, and ios is gated behind
isDarwin.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Huang Xin <chrox.huang@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>