Repository navigation
MR-23d: wire up packages/editor - #800
Closed
michaeljgrimm wants to merge 7 commits into
Closed
michaeljgrimm wants to merge 7 commits into
michaeljgrimm wants to merge 7 commits into
Conversation
…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>
… 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>
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-23d: wire up
packages/editor(slice of MR-23 "Wire-up",docs/programs/monorepo/README.mdsection 9, Phase 2; the editor part of the "Remaining for MR-23b/c/d" list in #797). Base iscodex/mr-23a-root-gallery(30befac); merge with a merge commit or rebase, not a squash. Touches onlypackages/editor/**.What is in it (7 commits, none squashed)
npm runtopnpm run;test/test:contractcall../../scripts/run-tests.mjs;check:font-hotlinks:builtcallsnode ../../scripts/check-font-hotlinks.mjs --built dist artifacts/playground;check:runners,check:changesandcheck:font-hotlinksare dropped (the root covers them). Newbuild:deps(gallery, then core: core's build imports the gallery'sdist) runs beforebuildintest,test:contract,test:json,test:playground,test:packedand as theplaygroundandbrowsersuites' setup intest/browser-suites.json. Newcheck:scriptsruns the package's own script tests. Suite commands that passed-- <args>lost the--: pnpm hands the literal--to the script, whichrich-input-browserandjson-editor-browserread as their first argument (verified; render/pptx suites withnpm run x -- argsneed the same).changelog-fragments,flake-repeat,publish-source,quarantine,run-tests(+ tests),check-font-hotlinks(+ test, allowlist),ci-evidence.{mjs,json}, andpublished-core-gate.mjs(theopf.requiresUnreleasedCoregate is gone; its test and itscontractExcludeentry go too). Thecheck-syntaxtests moved out ofrun-tests.test.mjsintoscripts/check-syntax.test.mjs;scripts/browser-suites.test.mjsimports../../../scripts/quarantine.mjs..github/):candidate-gallery-ci,ci-evidence,publish-source,publish-workflow-trust.test/packed-install.mjs. Nonpm_execpath(every npm, pnpm and tar call goes through the rootspawnSpec). Packs the editor withpnpm packand reads the packed manifest from the tarball (workspace:is a version there; its ownpackage.jsonis compared with the tarball's copy). 0.26.0 is not on the registry, so the consumer installs the editor together with packed workspace candidates of gallery, core, renderer and PPTX (staged manifests withconcreteRange,npm pack; see "Root changes needed" for why notpnpm pack); the lock assertions check the candidate tarballs' integrity;npm audit signaturesis recorded as skipped until every candidate version is on the registry. The twopackage-lock.jsonreaders (packed-install.mjs,rich-input-browser.mjs) read the lock of the npm consumer the test creates, so they stay.dist/untracked.git rm -r --cached packages/editor/dist(158 files; the committed copy was stale at the import and in 0.25.1),packages/editor/.gitignore(/dist/,/artifacts/). Every consumer in the package builds it first (above).buildis justsrc/*.js,*.d.tscopied plusstyles.css.packages/editor/AGENTS.mdrewritten: points at the rootAGENTS.md, keeps the editor rules, replaces the toolchain/CI/release text.README.md(development, release lane, playground, composition paragraphs),CONTRIBUTING.md,test/QUARANTINE.mdanddocs/browser-pptx-workflow.mduse pnpm and the root workflow. Historicaldocs/*.mdandCHANGELOG.mdare untouched.src/is untouched); MR-23a: root wiring and gallery (six packages, one version, workspace edges, integration) #797'schanges/mr-23-workspace-wire-up.mdcovers the wire-up.Local results (macOS, Node 26.7, pnpm 10.33.2)
packages/editor)pnpm run test:contractpnpm testcheck:scripts(4 tests)pnpm run typecheck/pnpm run validatepnpm run test:packedpnpm run test:playgroundnode ../../scripts/quarantine.mjs run-suite browser(setup runsbuild:deps,build)node ../../scripts/quarantine.mjs checkcheck:font-hotlinks,check:quarantine,check:changes,check:pins,check:workspace-graph,check:versionspnpm check:changedcheck:font-hotlinks,check:text, typecheck, editortest:contract);tests renderandtests pptxfail, which is MR-23b/cNot run: Windows (spawnSpec and
taron Windows,test:playgroundwith Edge), CI (no workflows yet),flake-repeat, macOS-only legs, the Node 22/26 range legs,test/native-playground.ps1(owner's Windows host only), the opf-editorplayground/browsersuites inside the Playwright container.Root changes needed (not done here; this PR only touches
packages/editor)pnpm pack: it fails withERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL("opf-pptx ... is not installed"), because the optional peersworkspace:^on render and pptx are neither installed (autoInstallPeers: false) nor devDependencies. MR-40's release packing needs a fix (a staged manifest as inpacked-install.mjs, or another approach);pnpm packworks for editor, CLI (and, presumably, gallery).buildneeds the gallery'sdist(src/node/catalogs.tsimports@openpresentation/gallery), and gallery'stest,typecheckandcheck:*scripts build core first: on a fresh clonepnpm --filter @openpresentation/opf buildfails with TS2307 untilpnpm --filter @openpresentation/gallery buildhas run. The editor'sbuild:depsworks around it; the rootbuild/test:runshould build the gallery first.packages/editor/distconsumers at the root now needpnpm --filter @openpresentation/opf-editor buildfirst, and still use the sibling layout (../opf-editor/dist/...) that MR-34 deletes:scripts/test-timeline-workflow.mjs,test-plain-whitespace-workflow.mjs,test-furniture-workflow.mjs,test-ecosystem.mjs,test-font-ecosystem.mjs,test-office-fonts.mjs,published-matrix/engines-source.mjs(re-point topackages/editor/distand build it first, or retire), andscripts/rebuilt-release-files.mjs(RR-101, runsnpm ciin the editor; MR-34/40)..gitignorelinepackages/editor/dist/styles.cssis now redundant (the package's own.gitignorecovers/dist/).check:quarantinerunsquarantine.mjs checkonce for the root; add--dir packages/editor(loop the packages that have atest/quarantine.json), per MR-12: shared scripts take a package directory #780. The rootcheck:runnersalready passes without the editor copy.src/index.js(githubRepository: "OpenPresentation/opf-editor") and README line 191 still name the old repository; that is asrc/change and a public constant, left for its own decision.Notes for MR-23b/c
spawnSpec,DEPENDENCY_FIELDS,concreteRange. A runningpnpm check:changed(core build,tsupcleansdist) concurrently with a browser suite broke one of my playground runs (ERR_MODULE_NOT_FOUNDon core'sdist/composition.js); run them one after the other.dist/preview-fonts-cli.js(a bin); it shows ingit statusand is not committed here.🤖 Generated with Claude Code