Repository navigation
MR-23a: root wiring and gallery (six packages, one version, workspace edges, integration) - #797
Closed
michaeljgrimm wants to merge 3 commits into
Closed
michaeljgrimm wants to merge 3 commits into
michaeljgrimm wants to merge 3 commits into
Conversation
… 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>
This was referenced Oct 22, 2026
Contributor
Author
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.
MR-23a: root wiring and the gallery (slice of MR-23 "Wire-up", docs/programs/monorepo/README.md section 9, Phase 2). Base is
monorepo/import(b511d59); retarget tomainonce the owner has pushed the import (O3). Three commits, none squashed: wire-up,pnpm-lock.yaml, cleanup. Merge with a merge commit or rebase, not a squash.What is in it
pnpm-workspace.yamllists gallery, core, CLI, render, pptx, editor and the privatepackages/integration(explicit, no glob). One root lockfile; the four siblingpackage-lock.jsonare gone. Thecli>opfoverride is dropped. New:autoInstallPeers: false(see decisions).0.26.0; the gallery goes backwards from 5.0.0.check:versionspasses.workspace:^, devDependenciesworkspace:*. cli -> opf isworkspace:^. Core's registry pins on render and pptx are deleted; gallery's devDependencies on core and render are deleted (gallery has no workspace edge). Root devDependencies: gallery, opf, render, pptx (workspace:*).repository/bugs/homepageof render, pptx, editor, gallery point at OpenPresentation/opf (directory).check:workspace-graphandcheck:pinspass.postinstall+ the.gitignoreentry deleted (packages/gallery/distandpackages/*/*.tgzare ignored instead). Gallery'sbootstrap-*.mjsand tests,stability.mjs,fixtures.mjs,stability.test.mjs,package-lock.json,.github/deleted; the rootgallery-stability.mjs(MR-35) andgallery-stability-fixtures.mjsare the only copies, andeditorial-previews,layout-equivalenceandeditorial-previews.testimport the fixtures from there;render-previews.mjshas a 7-line engine loader. The retired 1.x sync is cut fromsync-gallery-catalog.mjs(kept:--verify,--rehash [--match-gallery],--catalogs,loadValidators, which readsspec/schemasdirectly) with its tests. Core's duplicatesync-gallery-catalog.mjs,catalog-snapshot.mjsand test are deleted;check:catalogandcheck:specuse the gallery's. Gallery README ("Versions", "Where the records come from") and CONTRIBUTING describe the monorepo and the MR-35 rule.test/gallery.test.mjsasserts the monoreporepository. Gallery scripts that need engines build core first (pnpm --filter @openpresentation/opf build &&).packages/integration(private) holdsnode.test.mjsmoved from core (git rename, 25 tests): the one core test that needs the real opf-render/opf-pptx.pnpm typecheckcovers all six;pnpm test= core, CLI, gallery, integration, the three engine contract suites (test:engines), then allcheck:*.check:changedknowspackages/integration..github/**,package-lock.json,.nvmrc,.gitignore, nestedchanges/(no pending fragments existed), gallery.gitattributes, freeze banners in the render/pptx/editor README and CONTRIBUTING. Deletions and banner lines only, so blame is unaffected and no.git-blame-ignore-revsentry is needed. render's and pptx's.gitattributesstay (byte-exact rules).changes/mr-23-workspace-wire-up.md; burndown row and log line.Decisions
check:versionsneeds one value and the only plan-defined one is 0.26.0 (editor is already at 0.25.3, so no 0.25.x value is monotonic). Consequence: core'sPEER_RANGES(install hints, thepeer-not-installederror) is^0.26.0;release.mjs prepare(MR-40) must bump it with the versions (or derive it). A core 0.25.x hotfix from this tree is no longer possible without reverting this.autoInstallPeers: false. With pnpm's default, theworkspace:^optional peers of core are linked into its importer, so the lockfile has core -> pptx -> core andcheck:workspace-graphfails ("alink:... which its package.json does not declare" and a cycle). pnpm still prints no cycle warning with it off. Every peer a package needs in tests is also a devDependency.node.test.mjsmoves to integration, not "13 tests". The 13 files that mention opf-render/opf-pptx are a grep count; with core's engine devDependencies removed, onlynode.test.mjsfails (andexports.test.mjson the gallery range text). The other 12 use the isolated-core copy with stub peers or just name the packages, and stay in core so core keeps its coverage. Innode.test.mjstheunreleased-gateskip and the candidate-gallery preflight were removed (the engines are always in the workspace).concreteRange(inworkspace-packages.mjs) mapsworkspace:^to^<version>whereunreleased-gate.mjsand two tests read ranges from source manifests;convert.test.mjsanddoctor.test.mjsof the CLI do the same.package.jsonresolve it from the root (root devDependency on pptx).test:contractrun rebuildspackages/editor/distand shows it is stale at the import (the committed dist lacks the source-pane/presenter changes); I discarded that rebuild. MR-23d decides (rebuild in its own commit).Local results (macOS, Node 26.7, pnpm 10.33.2)
pnpm install --frozen-lockfile: ok.pnpm lint: ok.pnpm typecheck(six packages): ok.check:*(node scripts/run-checks.mjs): pass, includingcheck:versions,check:workspace-graph,check:pins,check:playwright-pin,check:stability(baseline fetched from npm: "every existing record draws the same").test:packed/registry checks, Windows, CI (a PR intomonorepo/importmay not run CI).Remaining for MR-23b (render), MR-23c (pptx), MR-23d (editor)
pnpm test:enginesfails at the first test of each package because the cleanup removed what they read. Per package (greps of this branch):npm run->pnpm runandscripts/<shared>.mjs->../../scripts/<shared>.mjsinpackage.json(MR-12 table in MR-12: shared scripts take a package directory #780; dropcheck:runners/check:changes), delete the local copies of changelog-fragments(+test), flake-repeat, publish-source, quarantine(+test), run-tests(+test; move thecheck-syntaxtests out ofrun-tests.test.mjsintoscripts/check-syntax.test.mjs),ci-evidence.{mjs,json}and (render, editor) check-font-hotlinks(+test, allowlist); delete the workflow-contract tests that read the deleted.github/(candidate-gallery-ci,publish-source,publish-workflow-trust,ci-evidence; render alsocandidate-goldens,golden-pinned-image, plusecosystem-pins.mjs,golden-ci-notify.mjs); other.githubreaders to fix: renderfont-license.mjs,update-font-manifest.mjs,test/aptos-preview.mjs,test/font-licenses.mjs,test/open-fonts.mjs; pptxscripts/keynote-qualification/registry-runtime.mjs.test/QUARANTINE.md/golden/README.mdtext. NestedAGENTS.md.workflow_dispatchruns in the Playwright container (needs CI).npm_execpath(usescripts/package-manager.mjs): renderscripts/check-next-bundle.mjs,scripts/update-font-manifest.mjs,test/packed-install.mjs; pptxtest/packed-install.mjs,test/provenance-interop.mjs,test/packed-bundle-browser.mjs; editortest/packed-install.mjs. The threetest:packedsuites read rawworkspace:specs and must read the packed manifest.package-lock.jsonreaders (the lock is gone; readpnpm-lock.yamlor drop): renderscripts/check-font-hotlinks.mjs,test/furniture-review.mjs,test/packed-install.mjs,test/review-code-raster.mjs; pptxscripts/verify-vendor.mjs(the@node-projects/jszipintegrity; 3 lines, same value),scripts/keynote-qualification/{pack,registry-runtime}.mjs,test/compare-native-picture*.mjs,native-*.mjs,footer-text-shape.mjs,compare-published.mjs,keynote-*.mjs,packed-install.mjs(evidence hashes: 19 files); editorscripts/check-font-hotlinks.mjs,test/packed-install.mjs,test/rich-input-browser.mjs.../../opf,../opf-*): renderscripts/probe-font-variants.mjs,test/furniture-review.mjs; pptxtest/color-ref-export.mjs(silently falls back to an inline fixture when core's fixture is missing: coverage loss),test/native-evidence.mjs.dist/is stale at the import (see decision 6). The golden digest mismatch (70b9e5d4vs22ebe285) is MR-31.Left for other items (found while wiring)
test:*/build-*scripts that read sibling checkouts (../opf-render,../opf-editor,register-local-opf.mjs): about 40 files inscripts/(audit-svg-contrast, build-editor-demo, build-*-browser, font-shaping-probe, ecosystem-preview-plan, link-ecosystem, ...). They are not inpnpm test; they are the link plumbing MR-34 deletes, or needpackages/<x>paths..github/**of the root still references the deleted materializer (actions/candidate-gallery/action.yml,workflows/regenerate-core-golden.yml): both are machinery MR-31/MR-34 delete.AGENTS.md/CONTRIBUTING.md/docs/release-process.mdstill describe the independent gallery repository (MR-50);docs/default-catalog.mdand the gallery docs are corrected here.typescript,@resvg/resvg-js) not added.🤖 Generated with Claude Code