TeX Live 2026 + more - #9
Open
adam-weber wants to merge 6 commits into
Open
Conversation
Member
Author
|
Closes #10 |
- Bump busytex submodule to merged main (c2c008e: TL2026 + build hardening) - Regenerate bundles.json / file-manifest.json; re-merge cm-super (422 fonts) - bundle-cm-super.ts: pretty-print the merged manifest (was minified) - storage.js: bump BUNDLE_CACHE_VERSION 6 / MANIFEST_CACHE_VERSION 7 - docs: TL2026 + required bundle-cm-super.ts step; building.md corrections - gitignore bundle-deps.json / package-map.json (regenerable intermediates) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
List the bundle (acrotex), not sub-packages; sub-package requests resolve to the bundle artifact via proxy/worker parent-resolution. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades the engine to TeX Live 2026, and bundles three workstreams that grew alongside it:
TeX Live 2026 upgrade
busytexsubmodule to the TL2026 build (WASM engines + TLPDB).packages/bundles/file-manifest.json,bundles.json,file-to-package.json.package.json(description → TeX Live 2026).Package normalization (build-required packages)
A provider chain (
packages/providers/) that turns fetched packages into ready-to-use runtime files:prebuilt/tds-zip(no build),ins-docstrip/dtx(run docstrip via a headless busytex engine).build-engine.ts+busytex-engine.ts: TeX build step on the same WASM the compiler uses; lazy-importedso the provider core stays browser-safe.
overrides.jsonregistry; structuredunbuildableerrors instead of crashes.processZipData(ctan-core.ts) so both the proxy and dev server pick it up.unzipSync).Normalized-artifact (prebuilt) cache
prebuilt-cache.ts: serve a pre-normalized artifact for build-required packages (e.g.acrotex/insdljs)instead of building in-request — the only way these work on the (FS-less) Cloudflare Worker.
scripts/prebuild-packages.js: offline prebuild →packages/bundles/prebuilt/<pkg>.json(+_index.jsonmanifest);deterministic, atomic writes.
Font-file resolution
font-index.tsbuilds a stem→package index from the TLPDB (committedfont-file-to-package.json),so TeX font requests by file stem (
phvr8t, …) resolve to their package on every runtime.processExtractedFiles(anchored matchers so fonts land where kpathsea searches).CTAN proxy / fetch improvements
ctanDownloadUrls()inctan-core.ts— one source of truth for CTAN URL conventions(used by
ctan-proxy.ts,serve-local.ts, and the prebuild).serve-local.ts: configurable port (SIGLUM_DEV_PORT).Memory management & storage
src/worker.js,src/storage.js,src/compiler.js: memory-cleanup improvements and format-cache handling,including capture & replay of preamble side-effect files so cached
.fmtreuse doesn't drop runtime-written files.decompress-lz4.ts.Tests
tests/unit,tests/integration,tests/worker,tests/browser, sharedtests/setupmocks/fixtures, vitest configs.tests/unit/providers.test.ts,tests/integration/normalize-corpus.test.ts,tests/unit/prebuilt-cache.test.ts, andscripts/providers-bun-smoke.ts(Bun parity).tscclean, bun-parity OK.Docs
docs/self-hosting.md: how to run the engine on any host (proxy contract, reference servers, where artifacts come from).