Skip to content

MR-22/23/30/31/34/35/40/50: the OPF monorepo (six packages, one CI, one release) - #808

Merged
michaeljgrimm merged 65 commits into
mainfrom
codex/mr-56-fixes
Oct 22, 2026
Merged

michaeljgrimm merged 65 commits into
mainfrom
codex/mr-56-fixes

Conversation

@michaeljgrimm

Copy link
Copy Markdown
Contributor

Lands the verified monorepo stack on top of the history import (main = b511d59):

Evidence: ci.yml green (run 39860618267, 32 jobs); full-ci PR run with the whole nightly set green (run 39860627373, 60 jobs); slow-checks green (run 39826032401). Merge with a merge commit (never squash) so the per-package history and merges are kept.

🤖 Generated with Claude Code

michaeljgrimm and others added 30 commits October 22, 2026 05:02
… edges, packages/integration

- pnpm-workspace.yaml lists gallery, core, CLI, render, pptx, editor and the private packages/integration explicitly;
  the cli>opf override is gone; autoInstallPeers is false so core's optional peers on render and pptx are not linked
  into its node_modules (pnpm would otherwise re-create the core <-> engines cycle in the lockfile).
- All six published manifests carry 0.26.0 (D16; the gallery goes backwards from 5.0.0). Runtime dependencies and peers
  between packages are workspace:^, devDependencies workspace:*; core's registry pins on render and pptx are removed and the
  gallery's devDependencies on core and render are removed (the root links core, render, pptx and gallery as devDependencies
  for the gallery gates and the root scripts). repository, bugs and homepage point at OpenPresentation/opf with directory.
  PEER_RANGES in core's install hints is ^0.26.0.
- Gallery: the materializer, its postinstall and the .gitignore entry are deleted (packages/gallery is tracked);
  bootstrap-*.mjs and tests, stability.mjs, fixtures.mjs and stability.test.mjs are deleted (the root
  gallery-stability.mjs and gallery-stability-fixtures.mjs replace them); the retired 1.x sync is cut from
  sync-gallery-catalog.mjs, keeping --verify and --rehash; core's duplicate sync-gallery-catalog.mjs, catalog-snapshot.mjs and
  test are deleted and check:catalog / check:spec read the gallery's; README and CONTRIBUTING describe the monorepo.
- packages/integration (private): core's node.test.mjs, the one core test that needs the real opf-render and opf-pptx.
- Root: test, typecheck and lint cover all six packages; scripts that resolved the engines through core's devDependencies
  resolve them from the root; workspace: ranges read by the release machinery MR-34 retires are mapped to what pack publishes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ne reviewed commit)

One root lockfile replaces the four sibling package-lock.json files. Core's and the CLI's resolutions are unchanged (no
existing package moved); 86 packages are added for render, pptx, editor and gallery. Against the siblings' own npm lockfiles, 19
transitive entries resolve to a newer version: pptx fast-xml-builder 1.2.0 to 1.3.1 and xml-naming 0.1.0 to 0.3.0; editor
@lezer/common 1.5.2 to 1.5.4, @lezer/lr 1.4.10 to 1.4.11 and @napi-rs/canvas (and its 11 platform packages) 1.0.10 to 1.0.11 (the
version render and the root already resolve). Render and gallery are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, nvmrc, gitignore, nested changes, freeze banners

Plan section 2, "Not imported": each old repository's .github/** (workflows, gallery's bootstrap-engines.json), package-lock.json, .nvmrc,
.gitignore (the root .gitignore covers node_modules, artifacts, *.tgz and editor's dist/styles.css), gallery's .gitattributes (identical
to the root rule) and the nested changes/README.md and config.json (no package had a pending fragment). The freeze banners at the top of
the render, pptx and editor README.md and CONTRIBUTING.md come out too. render's and pptx's .gitattributes stay: they hold byte-exact
rules the root file does not. Deletions and banner lines only, so git blame of every retained line is unchanged and this commit needs
no .git-blame-ignore-revs entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…opies and the workflow-contract tests

package.json: npm run -> pnpm run, node ../../scripts/run-tests.mjs, drop check:runners and check:changes (root checks cover them), add check:scripts for the package's own check-syntax and browser-suites tests. Deleted: changelog-fragments(+test), flake-repeat, publish-source, quarantine(+test), run-tests(+test), ci-evidence(.mjs/.json) and the tests that read the removed .github/ (candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust). The check-syntax tests move to scripts/check-syntax.test.mjs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
package.json: npm run becomes pnpm run, run-tests.mjs is the root script, check:runners and
check:changes are dropped (the root checks cover them), check:fonts no longer runs the local
hotlink guard (the root check:font-hotlinks scans every tracked file). The local copies of
changelog-fragments, flake-repeat, publish-source, quarantine, run-tests, ci-evidence and
check-font-hotlinks (with their tests and allowlist) are deleted; the check-syntax tests move
out of run-tests.test.mjs into scripts/check-syntax.test.mjs (pnpm run check:scripts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
candidate-gallery-ci, publish-source, publish-workflow-trust, ci-evidence, candidate-goldens
and golden-pinned-image only checked the deleted per-package workflows and the deleted
ci-evidence script; the unified workflows are covered by root tests (MR-31, MR-40).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…copies of shared scripts and workflow-contract tests deleted

package.json: npm run -> pnpm run; run-tests, check-font-hotlinks:built point at ../../scripts; check:runners, check:changes and
check:font-hotlinks dropped (the root covers them); build:deps builds the gallery and core before the editor build, because dist/ is no
longer tracked and the tests import it. The check-syntax tests move out of run-tests.test.mjs into scripts/check-syntax.test.mjs; the
browser-suites test imports the root quarantine.mjs.

Deleted: the sibling copies of changelog-fragments, flake-repeat, publish-source, quarantine, run-tests, check-font-hotlinks (+ tests and
allowlist), ci-evidence, published-core-gate (opf.requiresUnreleasedCore is gone), and the workflow-contract tests that read the removed
.github/ (candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust, published-core-gate).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dist/ is a copy of src/ plus the generated styles.css. The committed copy went stale in 0.25.1 (it lacked the source-pane and presenter
changes), the registry lane rebuilds it from source (opf #794) and npm builds it at prepack. Untrack it and ignore it; the test scripts,
test:contract and the playground now run `build:deps` and `build` first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ore-gate test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ck.json

verify-vendor.mjs reads the @node-projects/jszip integrity from the root pnpm-lock.yaml. The native-*, footer-text-shape and compare-native-picture-edit* evidence records the sha256 of the package set pnpm-lock.yaml installs for packages/pptx (scripts/pnpm-lock.mjs, test/helpers/lock-evidence.mjs); an isolated npm consumer keeps hashing its own package-lock.json. native-evidence.mjs finds the editor at ../editor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… installs the workspace candidates

The test no longer needs npm_execpath (`pnpm run` sets it to pnpm's entrypoint): every npm, pnpm and tar call goes through the root
spawnSpec. The editor is packed with `pnpm pack` and its packed manifest is read from the tarball (workspace: ranges are versions
there; package.json is compared with the tarball's copy). The consumer installs the editor with the workspace candidates of gallery,
core, renderer and PPTX converter, because 0.26.0 is not on the registry before the release; the lock assertions check the candidate
tarballs' integrity, and `npm audit signatures` is recorded as skipped until every candidate version is published.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…points at the root rules

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lor-ref-export reads the real fixture

test:packed and test:browser pack the candidate and its workspace siblings with pnpm pack (test/helpers/pack-workspace.mjs, which reads the manifest inside the tarball and refuses a workspace: spec), install the tarballs into the isolated npm consumer instead of registry versions, and run npm through scripts/package-manager.mjs instead of npm_execpath. build:deps builds gallery, core and render first. color-ref-export.mjs reads docs/fixtures/color-references.opf.json from the repository root and no longer falls back to an inline deck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The render suites import core and the gallery through the workspace links, and neither has a dist
in a fresh checkout (dist/ is ignored outside render). build:deps builds the gallery and then core;
test, test:contract, test:golden and golden:update run it before the render build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ked manifest

The test ran under npm (npm_execpath) against registry core and read raw dependency specifiers
from the source package.json, which are now workspace: ranges. It now packs render, core and the
gallery with pnpm pack (which writes the registry ranges), installs the three tarballs with npm
through scripts/package-manager.mjs, checks the packed manifest read from the tarball (no
workspace: specifier, ^<core version>), compares every other shipped file with its source, and
takes the semver check out (the gallery development dependency is workspace:*, an exact match).
npm audit signatures runs in a consumer holding only the registry dependencies, since the workspace
packages are not on the registry before their release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…xecpath

Packing and installing helpers move to scripts/workspace-pack.mjs (pnpm pack of this package, core
and the gallery; npm through scripts/package-manager.mjs; the packed manifest read from the
tarball), shared by test:packed and test:next-bundle. check-next-bundle installs the workspace
tarballs (or a --tarball with the core range its own manifest declares); update-font-manifest runs
npm and tar through spawnSpec. Both run with pnpm run or plain node.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eckouts

probe-font-variants imports packages/pptx; furniture-review treats the repository root as core,
maps the opf-render predecessor commit to its imported hash (commit-map) and records the
workspace lock instead of the removed package-lock.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AGENTS.md points at the root rules and drops the npm/package-lock/per-package CI and publish
text; README and CONTRIBUTING development and release sections use pnpm, the root changes/ and
the root release process; QUARANTINE.md, golden/README.md and suites.json use the root scripts
with --dir packages/render and say that the golden workflows were not imported (MR-31).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…npm and the root release process

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The gate read ../archive, a second checkout of opf-render 343fb84 that the per-package CI made
beside the package (a commit that is not on main, so the history import does not carry it). A
sibling directory means nothing in the workspace; scripts/fetch-archive-fixtures.mjs fetches the
two sparse paths from the frozen opf-render repository into the ignored artifacts/archive/
(shallow, blobless), and the gate still verifies the SHA-256 of every file it reads.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The root check:text scans every file under packages/render, including the fetched font binaries;
artifacts/render-archive/ at the repository root is ignored and not scanned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…npm pack has nothing to resolve

check:workspace-graph: a peer on a member is workspace:^ only when the package installs it through a workspace:* devDependency; core cannot (that closes core -> pptx -> core), so its peers are ^<member version>. check:versions keeps them and PEER_RANGES equal to the shared version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…quarantine check-all, untracked render and pptx dist, npm env without pnpm settings

- scripts/workspace-pack.mjs: one pnpm pack helper for the render, pptx and editor packed checks (no staged-manifest fallback); check:workspace-pack packs core for real.
- Root build:packages (topological), package build:deps as <pkg>^... filters, gallery build:engines; core and the CLI build the gallery first.
- quarantine.mjs check-all loops the root and every packages/<x> with a test/quarantine.json.
- packages/render/dist and packages/pptx/dist are generated, not tracked.
- spawnSpec drops the npm_config_* variables only pnpm understands when it spawns npm or npx.
- releaseLane.githubRepository names OpenPresentation/opf with a directory (editor, render, pptx).
- ci-test-weights.json loses the deleted tests; the redundant .gitignore line goes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…still use to packages/<x>; preview set includes the gallery

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
michaeljgrimm and others added 15 commits October 22, 2026 08:12
… site-side merge workflows

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t paths map onto packages/, link-ecosystem links every installed package, change fragment

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The checks import dist/, which a fresh worktree lacks; the package builds ran inside the later heavy steps, and check:examples-convert and check:browser-safe built (tsup clean) while other checks ran. check:changed now runs one build:packages step after the install and sets OPF_REUSE_BUILD for the run. check:browser-safe no longer calls the removed generate-previews script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the published set from the registry; bump-sites.yml commits it into the pptx-gallery bump

scripts/vendor-gallery-editor.mjs (with registry-consumer.mjs) takes --version, --ref (default HEAD), --site and --pin; the set is registryPlan({ tag: version }); no sibling opf-editor checkout and no release-plan.json. bump-site.mjs bump --vendor-editor runs it in the pptx-gallery leg.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…and PPTX it loads; render and PPTX build their own dist for the shard-1 checks and browser suites; the editor browser setup builds the playground)

First Actions run of ci.yml (39813113827): core's tests load the renderer and PPTX (optional peers, no workspace edge), the render and PPTX shard-1 steps and browser suites read dist that only the test script builds, and the editor browser suites read artifacts/playground that the playground legs build in another job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…sing, so the later wait for leaving it cannot pass before the browser entered it (flaked about 1 run in 3 on Actions)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… core's tests load

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…equest

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…cat-file failed with dubious ownership in the nightly packed-install and registry jobs)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…er exit-full-screen request before starting the next presentation (a late answer took the new full screen away and ended it, 3 runs in 40 on macOS Actions)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…clicking text and for the inline field to hold focus (one flake in about eight Actions runs)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lled and the source manifest, not their order (npm on Linux lists them differently)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant