Commit graph

46 commits

Author SHA1 Message Date
Huang Xin
771b152e5b
feat(dictionaries): add bundled plugin and Yomitan support (#5764)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / rust_lint (push) Waiting to run
PR checks / koplugin_rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* feat: add bundled dictionary plugins and Yomitan support

* fix: serve browser plugin workers with COEP

* feat: add portable and batched Yomitan imports

* feat: show dictionary import progress

* fix: pre-landing review fixes

* fix: pre-landing review fixes

* fix: pre-landing review fixes

* fix: isolate malformed portable dictionary rows

* fix: bound and isolate portable plugin results

* fix: harden plugin data boundaries

* fix: isolate portable dictionary rows

* fix: isolate dictionary plugin failures

* fix: preserve dictionary rollback targets

* fix: guard dictionary generation recovery

* docs: document dictionary plugin architecture

Co-Authored-By: OpenAI Codex <noreply@openai.com>

---------

Co-authored-by: OpenAI Codex <noreply@openai.com>
2026-08-18 13:43:58 +02:00
Huang Xin
0306e3470c
fix(wordlens): key the manifest diff on pack routing fields too (#5739)
Review follow-up. manifestKey compared only file and sha256, but resolvePack
routes a book language to a pack through source and target, so the key did not
state what clients actually depend on.

Redundant in practice: packEntry derives source and target from the pack's meta,
and sha256 hashes the whole file including that meta, so routing cannot shift
without the hash shifting. Adding them costs one line and keeps the key honest
if either half of that ever changes.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-16 09:46:09 +02:00
Huang Xin
1ee7ca22d4
feat(wordlens): add the en-hu gloss pack (#5738)
* feat(wordlens): add the en-hu gloss pack

WikDict publishes no en-hu dictionary either, so Hungarian is built the same way
as en-vi: the kaikki `build` mode, reading the Hungarian `translations` off each
English Wiktionary entry. The cached 3.2 GB extract already covered it, so this
needed no new download and no build-script change.

13641 entries and 10813 inflections, lemmatized through the en-en table so
difficulty is gated by the lemma rank (whispered -> whisper). Coverage lands
close to the WikDict pairs, well ahead of en-vi's 9759.

Hungarian is a target language only. It is agglutinative, so surface forms like
"hazaimban" need a lemmatizer to reach a headword, and michmech publishes no
Hungarian list. As with vi, no code gates this: the hu-en pack simply does not
exist, which is how every unbuilt pair already behaves.

Also switched the README's kaikki download to aria2c. kaikki throttles a single
connection to ~270 KB/s, which puts the 3.2 GB extract at six hours; 16 parallel
ranges finish in about twenty minutes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(wordlens): republish the manifest when only it changed

Follow-up to the review on #5737. Retiring a pair changes the manifest while
leaving every remaining pack byte-identical, so planSync correctly returns no
packs to upload, and the early return then skipped the manifest too. The CDN
kept advertising the retired pack, with a sha256 clients would try to fetch.

manifestChanged compares what clients actually act on, the schema version plus
each pack's file -> sha256, ignoring order and the derived bytes/entries fields
so a regenerated but identical manifest still uploads nothing. A run with no
pack changes now republishes the manifest alone.

Also normalize the direct-execution guard with pathToFileURL(resolve(argv[1])).
String concatenation mismatches on Windows paths and on URL-reserved characters
in the path, which would silently turn a real sync into a no-op. Note that
build-wordlens-data.mjs still carries the unnormalized form.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-16 09:27:56 +02:00
Huang Xin
dcf6d5407f
feat(wordlens): add the en-vi gloss pack, sync incrementally (#5737)
* feat(wordlens): add the en-vi gloss pack

WikDict publishes no en-vi dictionary, so this pair is built with the existing
kaikki `build` mode, which reads the Vietnamese `translations` off each English
Wiktionary entry. The pack ships 9759 entries and 10813 inflections, lemmatized
through the en-en table like every other English-source pack, so difficulty is
gated by the lemma rank (whispered -> whisper, reluctantly -> reluctant).

Vietnamese is a target language only. Its words are multi-syllable with spaces
inside them ("hoc sinh"), so the planner's whitespace tokenizer would gloss
syllables rather than words; a vi-en pack needs a segmenter first, like ja/ko/th.
No code gates this, the pack simply does not exist, which is how every unbuilt
pair already behaves.

Coverage is thinner than its peers (9759 vs 14769 for en-es), which reflects
Wiktionary's English to Vietnamese translation coverage rather than the build.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* perf(wordlens): sync only the packs that changed

A data refresh usually touches a single pair, but the sync re-uploaded all 15
packs (~20 MB) on every run. The published manifest already carries each pack's
sha256, so fetch it and upload only the packs that are new or changed. Adding
en-vi now uploads 652 KB instead of 20 MB.

An unreachable manifest (first sync, offline) falls back to a full upload, and
--force does the same on demand, for when the manifest is current but an object
was deleted from the bucket.

Also stop publishing the manifest when a pack upload failed. The script always
claimed the manifest goes last so it never points at a missing pack, but it
uploaded the manifest regardless of failures, which is exactly the state that
invariant exists to prevent.

planSync is pure and unit tested. Guarded the CLI entry point behind the direct
execution check that build-wordlens-data.mjs already uses, so importing the
module in tests does not run main().

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-16 09:10:23 +02:00
Huang Xin
709a39ff39
fix(reader): stop iOS 16 WebContent crash when opening a book (#5654)
* fix(reader): stop iOS 16 WebContent crash when opening a book

A supporter reported that Readest on iOS 16.7 (iPhone 8 Plus) crashes
back to the home screen the moment any EPUB is opened, with a
com.apple.WebKit.WebContent .ips generated on every attempt and no
jetsam events. The crash log shows a release assert (EXC_BREAKPOINT)
in DeferredPromise::callFunction resolving the FontFaceSet ready
promise under CSSFontSelector::buildStarted during style resolution.

Root cause: WebKit before Safari 17 resolves document.fonts.ready
synchronously when a style resolver rebuild purges still-loading
font faces, which is forbidden mid style resolution. Readest hits
this deterministically: foliate-js accesses doc.fonts.ready on
section load, the injected @font-face fonts are still loading when
the theme and view settings swap the stylesheets, and the next
style pass purges the old faces and resolves the promise. iOS 17
defers the resolution to a queued task, which is why newer devices
are unaffected.

Bump foliate-js so the paginator never touches fonts.ready on the
affected engines (AppleWebKit/605 without URL.canParse) and polls
fonts.status instead, and add a regression test for the helper.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore(scripts): add standalone repro server for the iOS 16 fonts.ready crash

Serves a page that isolates the WebKit engine bug from app timing: a
font request that never completes, fonts.ready accessed inside the load
handler, then a stylesheet swap. Affected engines kill the WebContent
process on the next render tick; unaffected engines keep counting a
visible STILL ALIVE status. Useful for verifying which iOS versions
carry the fatal assert since shipped security trains diverge from the
public WebKit branches.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore(deps): point foliate-js at merged main (foliate-js#71)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 18:16:48 +02:00
Huang Xin
ab055169c5
fix(ci): gate build_tauri_app on tauri paths and give webdriver its own timeout (#5644)
The webdriver wait in test-tauri.sh started counting when tauri dev was
spawned, but tauri dev compiles the Rust backend first, so a cold cache
compile (4m54s on PR 5639) consumed the whole 300s budget and the wait
reported a bogus timeout 6 seconds after the binary launched. The wait
now has its own 900s budget; a crashed app still fails fast through the
liveness check.

Also skip every step of build_tauri_app, the slowest PR check, when
neither the Rust backend, the vendored native packages, nor the tauri
test harness changed, mirroring how rust_lint and the koplugin steps
are gated. Frontend-only PRs are covered by the web build and test
jobs, and the job still reports success so it stays green as a
required check.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 12:16:20 +02:00
Huang Xin
00098cad1e
chore(store): rebuild store listings and manage them from fastlane (#5573)
Two spelling mistakes were live on both the App Store and Google Play:
"beatifully organized" and "seemless text-to-speech". The captions were
baked into the screenshot PNGs with no editable source, so fixing them
meant rebuilding the panels.

Screenshots:
* App Store iPhone rebuilt at 1284x2778, the size this record's 6.5 inch
  slot accepts. Panels 3 to 5 recaptured from the simulator.
* iPad captions replaced on the existing 2048x2732 captures.
* macOS set replaced with fresh 2880x1800 captures.
* Google Play phone, 7 inch and 10 inch composites rebuilt from the live
  listing assets rather than the local promo folder, which turned out to
  hold an unused revision of panels 1 and 2.

Captions are now rendered as text by fastlane/compositor/render-caption.mjs
through headless Chromium using the app's own Inter webfont, so the next
typo is a one line fix instead of a repaint.

Metadata:
* fastlane/metadata-play feeds Google Play while fastlane/metadata/android
  stays with F-Droid, so Play can carry a keyword title while F-Droid keeps
  the plain app name.
* fastlane/metadata-macos gives macOS its own App Store text, since
  deliver's metadata_path has no platform dimension and both Apple lanes
  would otherwise push identical copy.
* Descriptions rewritten. Every feature claim was checked against the
  source first, which removed a false "semantic search" claim that was
  live on Play.

Listing text and Play imagery now upload on release. App Store screenshots
stay manual. The internal and beta Play lanes still skip metadata because
Play listing assets are store level, not track level.

Adds pnpm validate-google-play to dry run the Play listing without a build.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 07:42:04 +02:00
Huang Xin
f8d7e2638e
fix(build): strip dangling sourceMappingURL comments from Tauri builds (#5498)
Every Tauri build since 0.11.20 logs a source map parse error per chunk in the
webview console:

  Source Map "tauri://localhost/_next/static/chunks/<hash>.js.map" has
  SyntaxError: JSON Parse error: Unrecognized token '<'

productionBrowserSourceMaps makes Turbopack emit the maps and append a
sourceMappingURL comment to every chunk. upload-sourcemaps.mjs uploads the maps
to Sentry and deletes them, but left the comments behind, so devtools requested
the missing maps (204 of 210 chunks) and got the asset protocol's HTML back.

- upload-sourcemaps.mjs: strip the comment alongside the map. Turbopack names a
  map after a different hash than the chunk pointing at it, so every chunk under
  the directory is rewritten rather than paired by name. The sentry-cli debugId
  comment is preserved, since Sentry matches uploaded maps by it.
- KEEP_SOURCEMAPS=1 keeps the maps in the bundle instead. dev-ios, dev-android
  and the new dev-macos set it, so local devtools resolve minified frames to
  real sources.
- Move the script body behind a main guard so the helpers are importable, and
  unit test them.

Symbolication is unaffected: the strip still runs after the upload, so the
copies Sentry holds keep their comments.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 19:01:18 +02:00
Huang Xin
872e9b54dd
fix(android): keep All Files Access on the Play build (#5372) (#2862) (#5378)
The Play release script stripped MANAGE_EXTERNAL_STORAGE from the manifest,
and the app gated every shared storage path behind the dist channel to match.
On Play builds "Change Data Location" therefore listed only the app private
Documents directory, which is the directory the app already uses, so the
migration could never start.

Keep the permission in the Play build and drop the playstore gates on external
directory reads, on the data location shortcuts and on the Save Book Cover
toggle. Add a "Choose a folder" entry that opens the system folder picker so
any folder can become the data location, not just the presets.

The release script now fails when the permission is missing and prints a
reminder about the Play Console declaration form; the justification text to
paste there lives in docs/google-play-all-files-access.md.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 16:59:48 +02:00
LukashevychAndrii
28e7b92976
fix(windows): remove serve.mjs shebang, fix test path separators (#5302) 2026-07-25 07:45:55 +08:00
Huang Xin
3605c9ef5d
fix(ios): re-attach App Group to widget/share extensions in App Store builds (#5219)
Tauri's App Store export signs only the main app binary at archive time, so the
ReadestWidget and ShareExtension enter -exportArchive unsigned and the export
re-sign derives a minimal entitlement set that drops
com.apple.security.application-groups, even though each extension's provisioning
profile grants it. The reading widget then reads an empty App Group snapshot and
shows a placeholder icon, and the share extension loses its shared queue. #4891
and #5188 removed CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION, which was necessary
but not sufficient because the appex still enters export unsigned.

Add scripts/fix-ios-appstore-appgroup.sh, run from release-ios-appstore.sh
before the entitlements guard: for each extension it takes the entitlements the
export already computed, adds the App Group, and re-signs the .appex with its
existing embedded provisioning profile, then re-seals the app bundle. Also
refresh the agent memory notes.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 21:58:05 +02:00
Huang Xin
2f26b04079
fix(ios): keep the App Group on the widget and share extensions in App Store builds (#5188)
The reading widget and share extension read the shared App Group container
(group.com.bilingify.readest) that the main app writes to. In App Store builds
the App Group entitlement was stripped from both app extensions during the
xcodebuild archive and export re-sign, because the generated Xcode project kept
CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION = YES on the extension targets. The
widget then read an empty snapshot and showed only the placeholder book icon,
and the share extension saw no library groups. Dev builds are unaffected, so it
only surfaced in TestFlight and the App Store (0.11.18 shipped this way).

Root cause: #4891 removed the flag from project.yml, but Tauri does not re-run
xcodegen and the generated Readest.xcodeproj is skip-worktree'd, so the
committed project still carried the flag and was stale from before the widget
target existed. Regenerate the committed project from project.yml so the flag is
gone and the widget and CarPlay targets are present.

Also make release-ios-appstore.sh fail-fast with set -euo pipefail so
verify-ios-appstore-entitlements.sh actually aborts the release when the App
Group is missing. Without set -e the guard printed its error and the script
still continued to altool --upload-app, which is how a broken widget shipped
despite the guard being in place.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 20:02:51 +02:00
Huang Xin
58d4661b74
feat(ios): CarPlay support and native TTS playout with Now Playing integration (#5085)
* feat(ios): add CarPlay support for TTS

Surface active TTS sessions on Apple CarPlay, mirroring the Android Auto
integration. A CarPlaySceneDelegate presents a CPListTemplate root
showing the currently reading book (or a placeholder when idle) and
pushes the system Now Playing template. Transport and metadata ride the
existing MPNowPlayingInfoCenter / MPRemoteCommandCenter path, so no
CarPlay button is routed by hand. A new iOS-only update_carplay_state
command lets the media bridge report session start and stop, and TTS
autoplay deep links are consumed even when the target book is already
mounted, for example when the app cold restores straight into the
reader.

Registering the UIApplicationSceneManifest crashed the app at launch on
real devices: tao's configuration_for_connecting_scene_session returned
a raw borrow of a Retained UISceneConfiguration it immediately dropped,
so UIKit retained freed memory. Add the tao fork as the packages/tao
submodule (github.com/readest/tao, branch readest-0.35: tao 0.35.3 plus
only the callback returning an autoreleased strong reference) and patch
it in the workspace. Bump @tauri-apps/api to 2.11.1 and @tauri-apps/cli
to 2.11.4 for the tao 0.35/wry 0.55 stack, and advance the tauri fork
(branch readest-2.11) with a guard in the generated unlisten script
against already-removed listeners.

The tauri 2.11 stack needs two CI accommodations. First, the
build_tauri_app job overrides setup-rust-toolchain's default RUSTFLAGS
of -D warnings: cargo builds path-patched dependencies without
cap-lints, so upstream warnings in the tao fork (deprecated glib
channel calls in the Linux backend) would fail the app build; warnings
in our own crate stay enforced by the rust_lint job. Second, tauri 2.11
enforces ACL for IPC from remote origins even without an AppManifest
(upstream security fix #15266), and the webdriver harness serves the
vitest tester page from its own port, which is a remote origin, so
every custom app command was denied and 56 tauri tests failed.
Production is unaffected since real app pages are local origins.
Declare the app commands in the ACL app manifest in build.rs (generated
allow permissions committed under src-tauri/permissions/autogenerated),
grant them in capabilities/default.json for local windows, and add a
webdriver-remote capability for localhost remote origins that is pinned
out of shipped builds via app.security.capabilities in tauri.conf.json;
scripts/test-tauri.sh opts into it with a --config override. Verified
with pnpm test:tauri: 112 passed, 1 skipped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(android): handle audio focus properly for background TTS

Request focus with a modern AudioFocusRequest (USAGE_MEDIA,
CONTENT_TYPE_SPEECH) and pause instead of ducking, matching how spoken
audio should yield to navigation prompts. Resume after transient loss
only when the loss is what paused us, forward focus transitions to the
web side as media-session play/pause events, and pause on
ACTION_AUDIO_BECOMING_NOISY so unplugging headphones does not blast the
speaker.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat(ios): native audio playout for Edge TTS with Now Playing support

WebAudio in WKWebView renders in WebKit's GPU process under an audio
session the app cannot own, which made every system media behavior
unreliable on device: no lock-screen card, the card vanished on pause,
AirPods resumed another app, and the mute switch silenced playback.

Play the Edge TTS utterances with an in-process AVPlayer instead. The
native-tts plugin gains a deliberately dumb playout engine
(playout_enqueue, playout_control, playout_position) and the new
NativeAudioPlayer mirrors the WebAudioPlayer session interface, so
EdgeTTSClient just picks the player per platform. Word highlighting
reads the player's media clock, which AVPlayer reports in item time and
is therefore unaffected by the playback rate; rate changes stay pitch
preserving via the timeDomain pitch algorithm and inter-sentence gaps
run on a native timer immune to background JS throttling.

With the audio in the app process the plugin claims a non-mixable
.playback session with .spokenAudio mode, so navigation prompts pause
instead of duck. Handle interruption began and ended with shouldResume,
pause on route change to the speaker, and bind an MPNowPlayingSession
to the playout player so the paused state is reported explicitly and
the Now Playing slot survives a pause. The silent keep-alive player
pauses in lockstep, KVC playback state writes are simulator only where
they are required and harmful on device, and the mixWithOthers
use_background_audio calls are removed. On the web side the composite
iOS media session mirrors metadata and position into
navigator.mediaSession, remote commands map to directional play and
pause plus a toggle, and the silent unblocker element is skipped on iOS
Tauri since a playing HTMLMediaElement makes WebKit register its own
competing now-playing client.

Volume-key page flip previously defeated all of this: its handler
unconditionally reconfigured the shared session with .mixWithOthers,
and a mixable session is ineligible for the Now Playing slot, so
pausing TTS dismissed the card and handed AirPod controls to another
app. The two plugins now coordinate through in-process notifications:
native-tts announces claim and release of the audio session, and the
volume key handler leaves the session untouched while TTS owns it, so
volume keys keep flipping pages during a pause without losing the card,
and re-owns the session after TTS teardown regardless of ordering.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 10:53:31 +02:00
Huang Xin
870a62e0e9
feat(sentry): upload browser source maps for symbolicated JS crashes (#5027)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
Production JS crashes report minified chunk names with no source lines, which
blocked triaging most reader/TTS Sentry issues. Generate browser source maps for
the Tauri export build and upload them right after `next build`:

- next.config: productionBrowserSourceMaps for the export build.
- scripts/upload-sourcemaps.mjs: sentry-cli injects debug IDs + uploads the maps
  (release Readest@<version>, ~/_next/static url-prefix), then strips the .map
  files so they never ship in the app bundle. Token-gated; never fails the build.
- CI (release.yml, nightly.yml): pass SENTRY_AUTH_TOKEN / SENTRY_ORG /
  SENTRY_PROJECT alongside SENTRY_DSN.
- docs/sentry-symbolication.md: setup + required secret, and the native
  (Android ProGuard/.so, iOS dSYM) follow-up.

Local and fork builds are unaffected: with no token the maps are stripped and
the output is unchanged. Needs the SENTRY_AUTH_TOKEN GitHub secret to take effect.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 09:18:48 +02:00
Huang Xin
9f65e3d415
fix(auth): surface OAuth callback errors on desktop deeplink (#4881) (#4894)
* fix(auth): handle OAuth callback errors on desktop deeplink (#4881)

The Tauri deeplink OAuth handler only parsed the URL hash for an
access_token, so error callbacks were silently swallowed and the login
screen froze with no feedback. This is how an expired Apple provider
secret (GoTrue "Unable to exchange external code") surfaced to users as
a dead login screen on macOS and Linux.

Extract a pure, tested parseOAuthCallbackUrl() that reads both the hash
(implicit-flow tokens) and the query string (provider/GoTrue errors),
and route errors to /auth/error before the token branch, matching the
web callback page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore(scripts): add Apple client secret generator (#4881)

Apple caps the "Sign in with Apple" client secret JWT at 6 months, so the
web OAuth flow (macOS non-store and Linux) breaks with "Unable to exchange
external code" when it expires. This script regenerates the ES256 JWT using
Node built-in crypto (no new dependency) for pasting into the Supabase Apple
provider config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 17:03:56 +02:00
Huang Xin
81802a7c72
fix(ios): keep App Group entitlement on widget/share extensions in App Store builds (#4891)
The App Store export re-sign (xcodebuild -exportArchive, automatic signing)
stripped com.apple.security.application-groups from the ReadestWidget and
ShareExtension binaries because both targets set
CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION: YES. The provisioning profiles and
source entitlements both grant the group, but the signed extension binaries did
not, so the widget read an empty snapshot from the shared App Group container
and showed only the placeholder book icon. Dev builds were unaffected.

Remove the flag from both extension targets (the main app already ships the
group correctly without it) so signing uses the exact CODE_SIGN_ENTITLEMENTS
content. Add scripts/verify-ios-appstore-entitlements.sh and run it from
release-ios-appstore.sh before upload so a stripped App Group fails the release
instead of shipping a dead widget.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 16:22:26 +02:00
Huang Xin
b1346bf16d
feat(wordlens): en-en glosses, styling, derivation lemmas, display-time cap (#4744)
* feat(wordlens): support en-en monolingual glosses

Gloss difficult English words with a short English definition for learners
reading English with English hints.

- build: buildEnEn + shortDefGloss read ECDICT's English `definition` column
  (first/primary WordNet sense, POS-stripped, drop ;-example, <=24 word-boundary
  with trailing-connector trim). New `en-en` CLI branch; buildEnZh/buildEnEn now
  share a buildEnPack core.
- gating: drop the hardcoded `hint === source` rejections (wordlensSection,
  WordLensPanel) so same-language packs are allowed; availability is decided by
  the manifest (resolvePack returns null when no pack exists).
- data: data/wordlens/en-en.json (26,578 entries) + regenerated manifest.json.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(wordlens): gloss styling, derivation lemmas, display-time cap

Builds on the en-en monolingual gloss support with refinements and
regenerated packs.

- settings: per-book gloss <rt> font size (em) and color in
  Settings > Language > Word Lens (getRubyStyles reads viewSettings).
- en-en hints: WordNet hybrid (a simpler synonym, else a category
  hypernym, else the ECDICT definition) instead of raw verbose
  definitions.
- lemmatization: gate difficulty by the lemma rank for every English
  source pair. enBaseFormCandidates now also covers -able/-ible suffixes
  and negative prefixes (un/in/im/ir/il), so insufferable resolves to
  suffer. A candidate is accepted when the English definition names the
  base OR the Chinese translations share a content character, which keeps
  true derivations (insufferable -> suffer) and rejects coincidental
  stems (capable -> cap). en-X packs inherit the en-en lemma table.
- display cap: the max gloss length is applied at render time in
  cleanGloss (MAX_GLOSS_LEN), so the packs store the full hint and the
  cap can change without regenerating data.
- tooling: pnpm wordlens:preview to sample pack entries; cache build
  corpora under data/wordlens/.sources (gitignored).
- data: regenerate en-en, en-zh and en-de/es/fr/pt/ru plus the manifest.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 11:15:34 +02:00
Huang Xin
89f98979e1
chore(release): fastlane for iOS and macOS release (#4685)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2026-06-20 08:40:15 +02:00
Huang Xin
86f5502724
fix: bot-review robustness fixes (TTS sync, updater, nightly, a11y) (#4659)
Cherry-picked and re-verified the applicable subset of
julianshen/readest@fa1b74a0 (its "address PR #15 bot reviews" commit). The
fork-only AI-annotation-tool change was dropped — readest has no 'ai' toolbar
tool. Each logic fix is covered by a failing-first test.

- TTS position sequence is now an app-wide monotonic counter, so a fresh
  TTSController (constructed per `tts-speak`) isn't dropped by consumers holding
  `lastSequenceSeen` from a prior session.
- share.ts only swallows AbortError (user cancel); other failures — e.g.
  NotAllowedError when a quick action fires without a user gesture — fall back to
  the clipboard so the text still reaches the user.
- document.isTxt tolerates MIME params (text/plain;charset=utf-8), uppercase
  extensions (BOOK.TXT), and a nameless Blob, so a TXT can't slip onto the
  non-text path and yield a null book.
- updater getNightlyPlatformKey matches x86_64/aarch64 explicitly; a 32-bit or
  otherwise unknown arch yields no nightly instead of mis-routing to aarch64.
- UpdaterWindow downloadWithProgress resolves on tauriDownload completion even
  when Content-Length is absent (no more hang on portable/AppImage/Android).
- nightly_update.rs uses async tokio::fs::read in the async command.
- nightly.yml: serialize runs via a concurrency group (no cancel) and
  persist-credentials:false on checkouts.
- edge TTS route only emits the word-boundary header when it fits under ~8KB;
  oversized values get dropped by proxies, and the client falls back to [].
- RSVPOverlay drops the contradictory aria-disabled on the functional rate
  button (it opens the pace picker).
- nightly verify harness handles artifact stream errors instead of crashing.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 10:04:34 +02:00
Huang Xin
c2ac207945
refactor(wordlens): rename "Word Wise" to "Word Lens" (#4633)
"Word Wise" is a Kindle trademark, so rename the inline-gloss feature to
"Word Lens" throughout the product.

- User-facing strings → "Word Lens" across all 34 locales; brand translated
  for Chinese (zh-CN 单词透镜, zh-TW 單詞透鏡) and German (Word-Lens-Daten).
- Code identifiers: WordWise→WordLens, wordWise→wordLens, WORD_WISE→WORD_LENS.
- Files/dirs: src/services/wordwise→wordlens, WordWisePanel→WordLensPanel,
  wordwise{Ruby,Section}.ts, build/sync scripts, test dirs/fixtures,
  data/wordwise→data/wordlens.
- Storage paths: CDN base, R2 key, on-device cache dir, WORDLENS_R2_BUCKET env,
  pnpm wordlens:{manifest,sync}. manifest.json is path-agnostic so its
  sha256/bytes stay valid (verified).
- biome.json: point the formatter-ignore at data/wordlens so the generated
  one-line gloss packs aren't pretty-printed on commit.

Migration notes:
- Re-run `pnpm wordlens:sync` to upload packs to cdn.readest.com/wordlens/.
- Persisted view-settings keys renamed (wordWiseEnabled/Level/HintLang and
  wordWiseAutoDownload) — saved values reset to defaults once on upgrade.
- Cached packs under the old Data/wordwise/ orphan (harmless re-download).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 19:09:29 +02:00
Huang Xin
4908245042
feat(reader): Word Wise inline vocabulary hints (#4589)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* feat(reader): Word Wise — inline native-language vocabulary hints

Kindle-style Word Wise: a short native-language gloss renders above difficult words
as you read (always-on ruby), gated by a CEFR vocabulary-level slider (A1–C2);
tapping a glossed word opens the existing dictionary.

- Pipeline: CEFR→frequency-rank difficulty, inflection-aware gloss index, pure
  offset-aware planner (EN regex + jieba for CJK).
- Rendering: <ruby cfi-skip>…<rt cfi-inert> injected per occurrence — CFI-transparent
  (verified), so highlights/bookmarks/progress are unaffected; kept out of TTS word
  offsets and find-in-book.
- Delivery: gloss packs are version-controlled in data/wordwise/, mirrored to R2, and
  downloaded on demand into local storage (sha-verified, single-flight) when enabled.
- Settings: a Word Wise sub-page under Settings → Language (enable, level, hint
  language, per-pack download/manage, auto-download toggle).
- Build tooling: scripts/build-wordwise-data.mjs (ECDICT / CC-CEDICT+HSK / WikDict +
  FrequencyWords, with lemmatization) and scripts/sync-wordwise-r2.mjs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* data(wordwise): bundled gloss packs + manifest + attribution

13 frequency-trimmed gloss packs (en↔中文 + es/fr/de/pt/it/ru↔en, ~19 MB) generated
by build-wordwise-data.mjs from ECDICT (MIT), CC-CEDICT + HSK, and WikDict +
FrequencyWords (CC-BY-SA). Source of truth, mirrored to the CDN via `pnpm wordwise:sync`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 07:56:00 +02:00
Huang Xin
57501cc520
feat(updater): nightly update channel (Android/Windows/macOS/Linux) (#4577)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2026-06-14 16:33:53 +08:00
Huang Xin
cfe2bb9116
fix(reader): Android text selection breaks on the first word of hyphenated paragraphs (#4545)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2026-06-12 12:30:56 +08:00
Huang Xin
1a2e43e659
chore(worktree): copy src-tauri/gen/apple per-worktree so iOS builds the worktree (#4251)
Worktrees set up by `pnpm worktree:new` symlinked `src-tauri/gen/apple` back
to the bare repo. The Xcode "Run Script" build phase
(`pnpm tauri ios xcode-script`) walks up from `Readest.xcodeproj` to find
`Cargo.toml`, but the symlink target resolves to the bare repo's
`src-tauri` — so `pnpm tauri ios dev` from a worktree silently built the
bare repo's Rust source, not the worktree's.

Switch to a filtered copy. `project.yml` references `../../src` and the
xcode-script walks up to `../../Cargo.toml`; with the project copied into
the worktree, both paths resolve to the worktree's source. Mirrors what the
script already does for Android (`tauri android init` per worktree).

Skipped on the copy:

- `build/` (~300 MB of Xcode derived output)
- `Externals/<arch>/{debug,release}/` (Rust static libs — rebuilt from the
  worktree's `src-tauri` on first build; the `target/` symlink the script
  already sets up keeps the Rust object cache shared)
- per-user Xcode state (`xcuserdata`, `*.xcuserstate`)
- `Pods/` (defensive; Readest's iOS uses SPM, not Cocoapods)

Result: ~2.7 MB copy, ~30 ms locally, no `pod install`, no
`tauri ios init`. Signing config, scheme, asset catalogs and Tauri's
generated Swift glue all preserved verbatim from the bare repo.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 11:13:28 +02:00
Huang Xin
ed8956e9ed
feat(koplugin): Readest Library view in KOReader (#4056)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* feat(koplugin/library): data layer + busted harness + design doc

- LibraryStore: per-user SQLite index merging cloud + local books by
  partial-md5 hash. listBooks/listBookshelfBooks/listBookshelfGroups,
  upsertBook with cloud_present/local_present OR-merge + _force/clear
  sentinels, parseSyncRow, getChangedBooks for tombstone push.
- EXTS table mirroring web's document.ts.
- busted harness with KOReader stubs (G_reader_settings, DataStorage,
  lua-ljsqlite3 against :memory:); spec_helper, exts_spec, smoke_spec,
  librarystore_spec covering schema, sort, group nesting, dedupe.
- Library design doc + spec README.
- pnpm test:lua wired through root + app package.json; lint-koplugin
  recurses into library/ + spec/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(koplugin/library): cloud sync — push, pull, upload, delete, downloads

- Spore methods: pullBooks (incremental /sync), getDownloadUrl,
  getUploadUrl, listFiles, deleteFile.
- syncbooks.lua: pushBook + pushChangedBooks (advances watermark to
  max(updated_at, deleted_at)), syncBooks(opts, mode) for push/pull/both,
  downloadBook + downloadCover (sync socket.http with file sink; cover
  download via fork+poll with single-slot queue + visible-page filter +
  coalesced refresh), uploadBook (presigned-PUT flow + best-effort
  cover), deleteCloudFiles (list-then-delete-each, mirrors
  cloudService.deleteBook).
- SyncAuth.withFreshToken wrapper resolves the ensureClient race; 401/403
  unified across syncconfig + syncannotations.
- Cloud + local book covers shared by partial-md5 hash; cover.png cached
  at <settings>/readest_covers/<hash>.png with sentinel for known 404s.
- syncbooks_spec covers row-to-wire conversion + file_key shape.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(koplugin/library): local discovery — sidecar scanner + cover provider

- localscanner.lightScan iterates ReadHistory entries, reads
  partial_md5_checksum from .sdr sidecars, and upserts local rows.
  Slow filesystem walks deferred to fullSidecarWalk (24h-gated).
- coverprovider wraps BookInfoManager:getBookInfo for local books with
  graceful FakeCover fallback when coverbrowser is absent.
- localscanner_spec + coverprovider_spec.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(koplugin/library): UI — widget, item, view menu, FileManager hooks

- librarywidget: full-screen Menu mixed in with CoverMenu + Mosaic/List
  per zen_ui's group_view pattern. Title-bar tap → view menu, search via
  left icon, drill-in/back for grouping. Async cloud sync deferred via
  scheduleIn so the menu paints before HTTP fires.
- libraryitem: BIM patch for cloud-only (readest-cloud://) and group
  (readest-group://) URIs; group-cover composer (2x2 mosaic for grid,
  same in list) with cache key derived from the actual first-N hashes
  for content-based invalidation; ListMenuItem update + paintTo patches
  for wider list-mode cover strip and cloud-up/down icon overlay.
- libraryviewmenu: ButtonDialog with View/Group by/Sort by/Actions.
  Default Group by = Groups (parity with web), values authors/groups.
- librarypaint: partial-page e-ink repaint shim adapted from zen_ui.
- main.lua: Library menu entry, dispatcher actions (Open Library / Push
  / Pull as general; progress + annotations as reader-only),
  "Add to Readest" button in FileManager's long-press file dialog
  (dedupe by partial_md5; bumps updated_at when present, inserts a
  fresh local-only row otherwise; un-tombstones via _clear_fields).
  Push books on Library open when auto_sync is on, pull-only otherwise.
- Long-press action sheet with Readest BookDetailView parity:
  Remove from Cloud & Device / Cloud Only / Device Only,
  Upload to Cloud, Download Book / Cover / All.
- Cloud-down + cloud-up SVG icons (LiaCloudDownloadAltSolid /
  LiaCloudUploadAltSolid) painted in the right-side wpageinfo slot.
- i18n catalog updated for new strings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(koplugin/library): split libraryitem into focused modules

libraryitem.lua had grown to 1018 lines mixing five unrelated
concerns. Split along the natural seams:

  cloud_covers — readest-cloud:// URI scheme, on-disk <hash>.png
                 cache, single-slot async download queue, visible-page
                 filter
  group_covers — readest-group:// URI scheme, 2x2 mosaic composer with
                 content-derived cache key (first-N hashes), cell
                 layout table
  cloud_icons  — bundled cloud-up/cloud-down SVG loader, IconWidget
                 cache, paint-overlay positioning
  list_strip   — list-mode group row builder (4-cover wider strip
                 replacing ListMenu's square cover slot)
  bim_patch    — BookInfoManager:getBookInfo router (cloud / group /
                 local) + ListMenuItem update + paintTo patches; owns
                 the _library_local_paths set and orig BIM reference

libraryitem.lua is now 141 lines: just the entry-table constructors
(entry_from_row, entry_from_group, entry_back) plus thin install /
set_visible_hashes delegates. Each new module is 88-216 lines.

No behavior change — same 113 specs pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore(koplugin): co-locate dev tooling, ship-zip exclusions, CI job split

- apps/readest.koplugin/scripts/build-koplugin.mjs: local sideloading
  build with the same exclusions the release workflow uses.
- Move lint-koplugin + test-koplugin from apps/readest-app/scripts/ to
  apps/readest.koplugin/scripts/. All koplugin dev tooling now lives
  with the koplugin and is excluded from the published release zip.
- Rename to .mjs so Node treats them as ESM without the reparse warning
  (the i18n CommonJS scripts stay .js).
- Release workflow: zip -r exclusions for scripts/, docs/, spec/,
  .busted so dev artifacts don't ship to end users.
- PR workflow: split build_web_app into build_web_app + test_web_app
  for parallelism. The test job installs luarocks + busted +
  lsqlite3complete and runs pnpm test:lua. test-koplugin.mjs now
  hard-fails (instead of soft-skipping) when CI=true and a tool is
  missing — a broken CI toolchain previously exited 0 silently.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 23:12:34 +02:00
Huang Xin
c59097b0ac
feat(koplugin): add i18n catalog and sync info dialog (#4050)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
- i18n loader at apps/readest.koplugin/i18n.lua: isolated callable,
  falls back to KOReader's gettext when a string is untranslated
- Translation catalog at locales/<i18next-code>/translation.po for 31
  languages, mirroring apps/readest-app/public/locales/
- scripts/extract-i18n.js (scan _("...") and _([[...]]); preserve
  existing, drop obsolete, add new) and scripts/apply-translations.js
  (bulk import from /tmp/koplugin-translations/<lang>.json)
- Mirror apps/readest-app SyncInfoDialog: rename showMetaHashInfo to
  showSyncInfo, dialog title "Sync Info", new Last Synced row computed
  as max(last_synced_at_config, last_synced_at_notes) from doc_settings
- syncconfig.lua / syncannotations.lua mark per-book sync timestamps
  on push/pull success
- Rename "Meta Hash" -> "Book Fingerprint" in koplugin and
  apps/readest-app SyncInfoDialog.tsx; translations propagated to
  all readest-app locales
- "book config" -> "reading progress" wording across user-facing
  strings (matches QiuYukang fork terminology)
- Replace "Log out as " / "Login failed: " concat prefixes with
  T(_("...%1..."), arg) placeholder pattern (RTL / verb-final friendly)
- pnpm lint:lua: luajit -b syntax check across koplugin .lua files;
  soft-skips when luajit is missing locally; CI installs luajit and
  runs the check unconditionally

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 05:35:36 +02:00
Huang Xin
b0cc5461af
refactor(toc): cache navigable structure per book (#3869)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* refactor(toc): cache TOC + section fragments per book

Moves the TOC regrouping and section-fragment computation out of
foliate-js/epub.js #updateSubItems into the readest client as
computeBookNav / hydrateBookNav in utils/toc.ts. The result is
persisted to Books/{hash}/nav.json — capturing the book's full
navigable structure (TOC hierarchy + sections with hierarchical
fragments). Compute once, persist locally, hydrate on subsequent
opens. Designed to serve current human-facing navigation (TOC
sidebar, progress math) and future agentic navigation (LLM-driven
seeking by structural location).

Versioned by BOOK_NAV_VERSION for forward invalidation. Existing
books regenerate transparently on next open.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: update worktree scripts

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 20:15:10 +02:00
Huang Xin
a07bf23e18
chore(docs): add worktree management for isolated PR review and feature work (#3810)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 19:42:47 +02:00
Huang Xin
bbfc82e50d
feat(android): add foss flavor build without gms services (#3666) 2026-03-28 05:36:09 +01:00
Huang Xin
1e942a23b4
chore(release): generate changelog from release notes for google play (#3591)
Some checks are pending
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2026-03-22 16:38:26 +01:00
Huang Xin
d06e1849cc
feat(rsvp): add persistent context, display settings, and layout improvements, closes #3333 (#3528)
Some checks failed
PR checks / rust_lint (push) Has been cancelled
PR checks / build_web_app (push) Has been cancelled
PR checks / build_tauri_app (push) Has been cancelled
Deploy to vercel on merge / build_and_deploy (push) Has been cancelled
* feat(rsvp): add persistent context, display settings, and layout improvements, closes #3333

Add always-visible collapsible context panel, font size adjustment,
ORP color selection, and stable context window that only rebuilds on
scroll. Refactor speed controls into playback row with collapsible
settings behind a gear icon. Translate new i18n keys across 29 locales.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(selfhost): update docker db schema to match FileRecords (#3527)

In #2636, FileRecord was defined to have updated_at  field
which is used when it is accessed from the database. But the
local dev setup is missing this field.

This diff adds an updated_at column to match the expectation

* chore(ci): cache system dependency and rustc outputs in ci

* chore(ci): lint script changed from tsc to tsgo

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Azeem Bande-Ali <me@azeemba.com>
2026-03-13 06:57:47 +01:00
Huang Xin
8850e6c00f
feat(pdf): support TTS and annotation on PDFs, closes #2149 & #3462 (#3493)
* chore: bump jsdom to the latest version

* feat(pdf): support TTS and annotation on PDFs, closes #2149 & closes #3462
2026-03-09 10:28:19 +01:00
Huang Xin
54bc1514df
feat(database): add platform-agnostic schema migration system (#3485)
Some checks are pending
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2026-03-06 20:07:26 +08:00
Huang Xin
8849c19e8e
fix(flathub): fix releases notes (#2494) 2025-11-21 06:20:04 +01:00
Huang Xin
f1b4d02323
chore: sync app metadata release notes (#2492) 2025-11-21 04:44:50 +01:00
Huang Xin
9bc46914e2
feat(iap): support expanding cloud storage with IAP on iOS and Android (#2331)
Some checks are pending
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2025-10-26 10:18:56 +01:00
Huang Xin
5bdcd3124b
chore: bump tauri to version 2.9.0 (#2296) 2025-10-22 17:51:35 +02:00
Huang Xin
1d4541e353
feat: request manage external storage permission when changing data directory to sdcard root on Android (#2142) 2025-09-30 08:59:16 +02:00
Huang Xin
7f4c157a90
chore: build with install package permission by default for Android (#1939)
Some checks are pending
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2025-08-31 16:53:29 +02:00
Huang Xin
165ca4a6e9
chore: add fastlane action to release to Google Play (#1554) 2025-07-08 16:18:53 +02:00
Huang Xin
8433dd6950
chore: upload release artifacts to a R2 release bucket (#1435) 2025-06-21 16:24:49 +08:00
Huang Xin
379802f580
release: ready for Google Play release, closes #1001 (#1433) 2025-06-20 16:48:53 +02:00
Huang Xin
e368076cac
chore: update bundleVersion for macOS AppStore build (#1146) 2025-05-14 03:45:00 +02:00
Huang Xin
e48cfc407c
release: script for iOS appstore upload (#388) 2025-02-16 20:50:57 +01:00
Huang Xin
4121195fd3
fix: remove symbolic fonts in default sys fonts list (#301)
* chore: fix script for appstore release

* fix: remove symbolic fonts in default sys fonts list
2025-02-06 11:32:56 +01:00
chrox
a67bfa3591
Build conf for app store 2024-11-25 10:51:00 +01:00