@openpresentation/opf 0.37.0 → 0.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/THIRD-PARTY-NOTICES.md +99 -0
  2. package/dist/browser.js +16 -16
  3. package/dist/{chunk-JTNCBTEH.js → chunk-434E2RWO.js} +1 -1
  4. package/dist/{chunk-3A3PNYNP.js → chunk-63Y75CCK.js} +1 -1
  5. package/dist/{chunk-HS2JQ3AO.js → chunk-BPILTZUJ.js} +1 -1
  6. package/dist/{chunk-C5ACMFKB.js → chunk-DDD4WUEH.js} +990 -24
  7. package/dist/{chunk-6WN6PRCI.js → chunk-DMV3G65U.js} +1 -1
  8. package/dist/{chunk-XJU2X5JM.js → chunk-EHYAVRL3.js} +1 -1
  9. package/dist/{chunk-BHRCWV6B.js → chunk-HBO64RWP.js} +4 -4
  10. package/dist/{chunk-4FA4ZABY.js → chunk-HOK3DZA6.js} +5 -5
  11. package/dist/{chunk-YESKKKVE.js → chunk-I4NQP7Z4.js} +1 -1
  12. package/dist/{chunk-CYGQY6HH.js → chunk-ITGR2RW2.js} +5 -5
  13. package/dist/{chunk-EOMENOKY.js → chunk-KB7TPZQI.js} +5 -5
  14. package/dist/{chunk-56BYOGIF.js → chunk-MNJ4JV7I.js} +1 -1
  15. package/dist/{chunk-YZ4WMB5C.js → chunk-PDBZN7EJ.js} +1 -1
  16. package/dist/{chunk-KANQVJGK.js → chunk-Q2L5ERNK.js} +4 -1
  17. package/dist/{chunk-44IS6ZU2.js → chunk-SIF5JDZC.js} +1 -1
  18. package/dist/{chunk-TIVBO56G.js → chunk-XY332BQP.js} +3 -3
  19. package/dist/{chunk-VD7WLE3C.js → chunk-ZB427MLO.js} +2 -2
  20. package/dist/{conversion-DF_HgknQ.d.ts → conversion-DBkC9Y2e.d.ts} +2 -2
  21. package/dist/conversion-P56LOOE2.js +25 -0
  22. package/dist/convert.js +6 -6
  23. package/dist/deck.js +10 -10
  24. package/dist/diff.js +3 -3
  25. package/dist/docs.js +2 -2
  26. package/dist/format.js +2 -2
  27. package/dist/ids.js +3 -3
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.js +19 -19
  30. package/dist/markdown.js +7 -7
  31. package/dist/node-engine.d.ts +2 -2
  32. package/dist/node-engine.js +18 -18
  33. package/dist/pagination.js +3 -3
  34. package/dist/patch.js +2 -2
  35. package/dist/precompiled.js +2 -2
  36. package/dist/schema-engine-ajv.js +1 -1
  37. package/dist/schema-engine-precompiled.js +2 -2
  38. package/dist/schema.js +2 -2
  39. package/dist/schemas.js +1 -1
  40. package/dist/source.js +9 -10
  41. package/dist/spec/schemas/font-scheme.schema.json +4 -1
  42. package/dist/types.d.ts +6 -1
  43. package/dist/validator.js +2 -2
  44. package/dist/yaml.js +6 -6
  45. package/package.json +7 -6
  46. package/dist/conversion-XIWN7FMW.js +0 -25
@@ -1,9 +1,9 @@
1
1
  import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
2
- import { readMarkdown, parseSlideText, escapeInline, serializeRuns } from './chunk-BHRCWV6B.js';
3
- import { fenceCode } from './chunk-56BYOGIF.js';
4
- import { OPFMarkdownError, writeYaml, Ctx, readYamlMapping, csvField, scalarText } from './chunk-VD7WLE3C.js';
5
- import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-XJU2X5JM.js';
6
- import { validate } from './chunk-C5ACMFKB.js';
2
+ import { readMarkdown, parseSlideText, escapeInline, serializeRuns } from './chunk-HBO64RWP.js';
3
+ import { fenceCode } from './chunk-MNJ4JV7I.js';
4
+ import { OPFMarkdownError, writeYaml, Ctx, readYamlMapping, csvField, scalarText } from './chunk-ZB427MLO.js';
5
+ import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-EHYAVRL3.js';
6
+ import { validate } from './chunk-DDD4WUEH.js';
7
7
  import { checkCatalogsOption } from './chunk-QFT4R2IL.js';
8
8
 
9
9
  // src/markdown/canon.ts
@@ -1,8 +1,8 @@
1
1
  import { defaultCatalogs } from './chunk-XJUMFH33.js';
2
- import { localAssetSources, OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-HS2JQ3AO.js';
3
- import { paginate, continueOverfull } from './chunk-YZ4WMB5C.js';
4
- import { deckFormatOf, readDeckReport, stringify } from './chunk-TIVBO56G.js';
5
- import { validate, OPFValidationError } from './chunk-C5ACMFKB.js';
2
+ import { localAssetSources, OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-BPILTZUJ.js';
3
+ import { paginate, continueOverfull } from './chunk-PDBZN7EJ.js';
4
+ import { deckFormatOf, readDeckReport, stringify } from './chunk-XY332BQP.js';
5
+ import { validate, OPFValidationError } from './chunk-DDD4WUEH.js';
6
6
  import { ensureIcons } from './chunk-QFT4R2IL.js';
7
7
  import { link, stat, readdir, lstat, readFile, open, unlink, mkdir, rename } from 'fs/promises';
8
8
  import path6 from 'path';
@@ -131,7 +131,7 @@ function iconSourceReader(root, resolver = createImageResolver(root, { add() {
131
131
  }
132
132
  var RENDER_PACKAGE = "@openpresentation/opf-render";
133
133
  var PPTX_PACKAGE = "@openpresentation/opf-pptx";
134
- var PEER_RANGES = { [RENDER_PACKAGE]: "^0.37.0", [PPTX_PACKAGE]: "^0.37.0" };
134
+ var PEER_RANGES = { [RENDER_PACKAGE]: "^0.37.1", [PPTX_PACKAGE]: "^0.37.1" };
135
135
  var PPTX_TEXT_OPTIONS_FROM = "0.22.0";
136
136
  var numbers = (version) => version.replace(/[-+].*$/, "").split(".").map((part) => Number.parseInt(part, 10) || 0);
137
137
  function atLeast(version, minimum) {
@@ -1,4 +1,4 @@
1
- import { runText } from './chunk-XJU2X5JM.js';
1
+ import { runText } from './chunk-EHYAVRL3.js';
2
2
 
3
3
  // src/convert/text-lines.ts
4
4
  var LIST_PREFIX = /^([ \t]*)(?:([-*•+]|\d{1,3}[.)])[ \t]+)?/;
@@ -1,4 +1,4 @@
1
- import { assertValid, resolveSlideScriptMeasurement, resolveDrawnFontFamilies, resolveSlideContext } from './chunk-C5ACMFKB.js';
1
+ import { assertValid, resolveSlideScriptMeasurement, resolveDrawnFontFamilies, resolveSlideContext } from './chunk-DDD4WUEH.js';
2
2
  import { composeSlide, resolveSlideVariables, slideBlockIds, cellBlocks, OPFCompositionError, checkCatalogsOption, usesSlideBuiltin, isOverlayConnector, codeHighlightSlice, tableRowBoundaries, pinTableColorScale, visitContentPayloads, layoutTable, regionAccepts, slideTokenSpans, sliceNumberedItems, isShapeBlock } from './chunk-QFT4R2IL.js';
3
3
 
4
4
  // src/continuation-fonts.ts
@@ -11464,8 +11464,11 @@ var fontScheme = {
11464
11464
  "$id": "https://openpresentation.org/schema/opf-font-scheme/v1",
11465
11465
  "$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
11466
11466
  "title": "Font Scheme",
11467
- "description": "Schema for font-scheme records. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Documents reference a scheme from design.fontScheme (or design.fontScheme.id), from a theme's fontScheme and from a language's fontScheme / googleFontScheme. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.",
11467
+ "description": "Schema for font-scheme records. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Documents reference a scheme from design.fontScheme (or design.fontScheme.id), from a theme's fontScheme and from a language's fontScheme / googleFontScheme. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata. Keys starting with 'x-' on a published record are a publisher's own display metadata and are ignored by the engines; any other key this schema does not list is refused.",
11468
11468
  "type": "object",
11469
+ "patternProperties": {
11470
+ "^x-": {}
11471
+ },
11469
11472
  "additionalProperties": false,
11470
11473
  "required": [
11471
11474
  "$schema",
@@ -1,4 +1,4 @@
1
- import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule } from './chunk-C5ACMFKB.js';
1
+ import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule } from './chunk-DDD4WUEH.js';
2
2
 
3
3
  // src/finding-text-explain-util.ts
4
4
  var ex = (fix, problem, fixed) => ({ fix, problem, fixed });
@@ -1,7 +1,7 @@
1
- import { fromMarkdown, toMarkdown } from './chunk-CYGQY6HH.js';
2
- import { fromYaml, toYaml } from './chunk-4FA4ZABY.js';
1
+ import { fromMarkdown, toMarkdown } from './chunk-ITGR2RW2.js';
2
+ import { fromYaml, toYaml } from './chunk-HOK3DZA6.js';
3
3
  import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
4
- import { parseSource, validate, OPFValidationError } from './chunk-C5ACMFKB.js';
4
+ import { parseSource, validate, OPFValidationError } from './chunk-DDD4WUEH.js';
5
5
  import { checkCatalogsOption } from './chunk-QFT4R2IL.js';
6
6
 
7
7
  // src/deck-report.ts
@@ -1,5 +1,5 @@
1
- import { isRecord, same } from './chunk-XJU2X5JM.js';
2
- import { createLocator } from './chunk-C5ACMFKB.js';
1
+ import { isRecord, same } from './chunk-EHYAVRL3.js';
2
+ import { createLocator } from './chunk-DDD4WUEH.js';
3
3
  import { parseDocument, isMap, isSeq, isScalar, YAMLMap, Scalar, stringify, visit } from 'yaml';
4
4
 
5
5
  var sentence = (text) => text.charAt(0).toUpperCase() + text.slice(1);
@@ -43,8 +43,8 @@ declare const RENDER_PACKAGE = "@openpresentation/opf-render";
43
43
  declare const PPTX_PACKAGE = "@openpresentation/opf-pptx";
44
44
  /** Peer ranges. The CLI checks the features it calls rather than the version, so a newer release in range keeps working. */
45
45
  declare const PEER_RANGES: {
46
- readonly "@openpresentation/opf-render": "^0.37.0";
47
- readonly "@openpresentation/opf-pptx": "^0.37.0";
46
+ readonly "@openpresentation/opf-render": "^0.37.1";
47
+ readonly "@openpresentation/opf-pptx": "^0.37.1";
48
48
  };
49
49
  interface Diagnostic {
50
50
  code: string;
@@ -0,0 +1,25 @@
1
+ export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-KB7TPZQI.js';
2
+ import './chunk-XJUMFH33.js';
3
+ import './chunk-BPILTZUJ.js';
4
+ import './chunk-W4DYDRV2.js';
5
+ import './chunk-QQBOI5XI.js';
6
+ import './chunk-ORVMHVOS.js';
7
+ import './chunk-PDBZN7EJ.js';
8
+ import './chunk-XY332BQP.js';
9
+ import './chunk-ITGR2RW2.js';
10
+ import './chunk-HOK3DZA6.js';
11
+ import './chunk-DMV3G65U.js';
12
+ import './chunk-RYZPBJLB.js';
13
+ import './chunk-SIF5JDZC.js';
14
+ import './chunk-HBO64RWP.js';
15
+ import './chunk-MNJ4JV7I.js';
16
+ import './chunk-ZB427MLO.js';
17
+ import './chunk-EHYAVRL3.js';
18
+ import './chunk-63Y75CCK.js';
19
+ import './chunk-434E2RWO.js';
20
+ import './chunk-DDD4WUEH.js';
21
+ import './chunk-JBARNYFR.js';
22
+ import './chunk-Q2L5ERNK.js';
23
+ import './chunk-QFT4R2IL.js';
24
+ import './chunk-BLCDUM7B.js';
25
+ import './chunk-PRXZD2II.js';
package/dist/convert.js CHANGED
@@ -1,10 +1,10 @@
1
- import { paginate, OPFPaginationError } from './chunk-YZ4WMB5C.js';
2
- import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-56BYOGIF.js';
3
- import { CONTENT_KEYS, isRecord, contentKeysOf, refuse, clone, Loss, isSlideLike, assertValidOwner, report, OPFConversionError, plainOf, assertValidOutput, same, splitRuns, runsOf, lineIsPlain, linePlain, concatText, lineValue, joinLines, hasFormatting } from './chunk-XJU2X5JM.js';
4
- export { OPFConversionError } from './chunk-XJU2X5JM.js';
5
- import './chunk-C5ACMFKB.js';
1
+ import { paginate, OPFPaginationError } from './chunk-PDBZN7EJ.js';
2
+ import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-MNJ4JV7I.js';
3
+ import { CONTENT_KEYS, isRecord, contentKeysOf, refuse, clone, Loss, isSlideLike, assertValidOwner, report, OPFConversionError, plainOf, assertValidOutput, same, splitRuns, runsOf, lineIsPlain, linePlain, concatText, lineValue, joinLines, hasFormatting } from './chunk-EHYAVRL3.js';
4
+ export { OPFConversionError } from './chunk-EHYAVRL3.js';
5
+ import './chunk-DDD4WUEH.js';
6
6
  import './chunk-JBARNYFR.js';
7
- import './chunk-KANQVJGK.js';
7
+ import './chunk-Q2L5ERNK.js';
8
8
  import { isDatasetRef, inlineTableData, cellBlocks, isGridCell, visitContentPayloads, gridCellSpan, cellsInReadingOrder, rowCells, chartNumber, visitPayloadItems, entryId, rowId } from './chunk-QFT4R2IL.js';
9
9
  import './chunk-BLCDUM7B.js';
10
10
  import './chunk-PRXZD2II.js';
package/dist/deck.js CHANGED
@@ -1,15 +1,15 @@
1
- export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-TIVBO56G.js';
2
- import './chunk-CYGQY6HH.js';
3
- import './chunk-4FA4ZABY.js';
4
- import './chunk-6WN6PRCI.js';
1
+ export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-XY332BQP.js';
2
+ import './chunk-ITGR2RW2.js';
3
+ import './chunk-HOK3DZA6.js';
4
+ import './chunk-DMV3G65U.js';
5
5
  import './chunk-RYZPBJLB.js';
6
- import './chunk-BHRCWV6B.js';
7
- import './chunk-56BYOGIF.js';
8
- import './chunk-VD7WLE3C.js';
9
- import './chunk-XJU2X5JM.js';
10
- import './chunk-C5ACMFKB.js';
6
+ import './chunk-HBO64RWP.js';
7
+ import './chunk-MNJ4JV7I.js';
8
+ import './chunk-ZB427MLO.js';
9
+ import './chunk-EHYAVRL3.js';
10
+ import './chunk-DDD4WUEH.js';
11
11
  import './chunk-JBARNYFR.js';
12
- import './chunk-KANQVJGK.js';
12
+ import './chunk-Q2L5ERNK.js';
13
13
  import './chunk-QFT4R2IL.js';
14
14
  import './chunk-BLCDUM7B.js';
15
15
  import './chunk-PRXZD2II.js';
package/dist/diff.js CHANGED
@@ -1,7 +1,7 @@
1
- export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-JTNCBTEH.js';
2
- import './chunk-C5ACMFKB.js';
1
+ export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-434E2RWO.js';
2
+ import './chunk-DDD4WUEH.js';
3
3
  import './chunk-JBARNYFR.js';
4
- import './chunk-KANQVJGK.js';
4
+ import './chunk-Q2L5ERNK.js';
5
5
  import './chunk-QFT4R2IL.js';
6
6
  import './chunk-BLCDUM7B.js';
7
7
  import './chunk-PRXZD2II.js';
package/dist/docs.js CHANGED
@@ -294,7 +294,7 @@ var docsData = Object.freeze([
294
294
  "slug": "native-testing",
295
295
  "file": "docs/native-testing.md",
296
296
  "title": "Native-app testing",
297
- "markdown": "# Native-app testing\n\nRead this page before you run OPF's exported files in a native application: Keynote, PowerPoint or LibreOffice Impress. It says\nwhat a run is for, how to start one, how to read the result, and where a run sits in a release. The program that builds the\ntools is [docs/programs/native-testing/](programs/native-testing/README.md); its decisions D1 to D6, given by the owner on\n2026-11-25, are in [decisions.md](programs/native-testing/decisions.md). The command's own reference is \"One command: pnpm\nnative\" in [scripts/native-acceptance/README.md](../scripts/native-acceptance/README.md).\n\n## What a run is for\n\nOPF's preview does not prove what an application draws. A native run opens every exported `.pptx` of a tier in one application\nand answers four questions for every file and slide:\n\n1. **Does it open?** With no repair prompt; the application's own import warnings are recorded word for word.\n2. **Does it look right?** The application's picture of each slide against OPF's preview.\n3. **Is it native?** What each object became (`native`, `changed`, `picture`, `dropped`), in the 15 kinds of the shared result\n format ([core/result/README.md](../scripts/native-acceptance/core/result/README.md)).\n4. **Does it come back?** The application's own PowerPoint copy of the file, imported with OPF.\n\nEditing in the application's user interface is not part of a run.\n\n## Targets\n\n| Application | System | How it is driven | Who runs it | State today |\n| --- | --- | --- | --- | --- |\n| Keynote (`keynote`) | macOS | AppleScript through Keynote's own scripting dictionary ([apps/keynote/](../scripts/native-acceptance/apps/keynote/README.md)) | An agent session or the owner on the Mac | The driver is in the repository and tested without Keynote. Not run in Keynote yet |\n| PowerPoint (`powerpoint`) | Windows | COM | The release supervisor session on the owner's Windows computer | Its driver runs there and writes a run directory in the shared format, which `pnpm native powerpoint --from-run` classifies. The format and the five verbs are agreed with the release supervisor on Windows ([opf#1468, comment of 2026-11-25](https://github.com/OpenPresentation/opf/issues/1468#issuecomment-7174529699)); the Windows command that writes the run directory is the release supervisor's and comes after the 0.37.0 format changes |\n| LibreOffice Impress (`impress`) | Linux, in CI | LibreOffice's headless conversion, `scripts/libreoffice/run.mjs` in `nightly.yml` | GitHub's runners | The runner writes the shared format into its artifact ([libreoffice.md](libreoffice.md)); the first real run is the nightly after that change merges. The nightly does not run the classify step, and there is no `known/impress.json` yet |\n| PowerPoint for Mac (`powerpoint-mac`) | macOS | A reserved slot, no driver (decision D3) | The owner's: it needs a license and an install (opf#1314) | The command says \"no driver yet\" |\n\nNative runs are not CI jobs (decision D4): an agent or the owner starts Keynote and PowerPoint runs on their own machines. Only\nImpress runs on GitHub's runners.\n\n## The command\n\n```sh\npnpm native <target> [--tier smoke|release|full] [--decks a,b] [--baseline <opf version>|none] [--out <dir>]\n [--from-run <dir>] [--warnings-dir <dir>] [--look deck#slide,...] [--release <x.y.z>]\n [--write-summary] [--force-summary] [--json]\n```\n\nThe steps are select, check, build, run, classify and report. `check` runs before the build and before every file; a refusal\nopens nothing. The full list of flags is in the command's reference.\n\n| Tier | What it runs today |\n| --- | --- |\n| `smoke` (the default) | About ten decks named in `tiers.smoke` of the qualification manifest, plus the decks that unreleased changelog fragments name in `native:` |\n| `release` | Every deck and variant of the qualification corpus (`scripts/native-acceptance/qualification/`) |\n| `full` | The corpus. The other sources (example decks, gallery layouts at three content sizes, language decks) cannot be built by the runner yet: they are listed as \"not run\" and the run exits with 2 |\n\nIn every tier, the slides that unreleased fragments name and the slides given with `--look` are reported as `new` whatever their\nscore, so someone looks at each one.\n\n**Output.** `--out` must be a new or empty folder outside the repository. Without it the run goes to\n`~/opf-work/native/<target>-<date>-<time>` when `~/opf-work` exists, else to the system's temporary folder. `<out>/build` holds\nthe exported files and OPF's previews; `<out>/run` the run directory, `classify.json` and a labeled sheet for every new slide\n(`<out>/run/sheets/`). All of it is evidence and stays out of `main`.\n\n**Exit codes.** 0: nothing new. 1: something new; look at each item. 2: refused, something not run, or the run could not finish.\n\n```sh\npnpm native keynote --tier smoke --release 0.37.0 --warnings-dir ~/opf-work/warnings-0.37.0\npnpm native keynote --tier release --release 0.37.0 --out ~/opf-work/native/keynote-0.37.0\npnpm native powerpoint --from-run D:/opf-work/native/run --inputs D:/opf-work/native/build --previews D:/opf-work/native/build/preview\n```\n\nThe baseline is, by default, the newest version under `scripts/native-acceptance/runs/` that has the target, below the\n`--release` version when one is given; today that is 0.36.0 for Keynote. A run is never its own baseline.\n\n**A release candidate** is built from a workspace that still carries the previous release's version\n(`packages/cli/package.json`). `--release <x.y.z>` names the version the candidate will be released as. The report then names\nboth, for example \"OPF workspace 0.36.0 at <commit>, release candidate 0.37.0\": the workspace version is the previous release's,\nand the commit identifies the candidate. `run.json` and every `result.json` keep the workspace's version and commit; only the\nsummary carries the release.\n\n## Before a Keynote run\n\n- The checkout is the commit you mean to test, installed and built (`pnpm install --frozen-lockfile`, `pnpm build:packages`).\n- The owner starts Keynote. The run never starts, activates or quits Keynote.\n- The screen stays unlocked for the whole run.\n- No other Keynote document is open; `check` refuses when one is.\n- One job at a time on the machine, and only the session that runs the command sends Keynote events. Before you start, read the\n tracking issue of any round that may be running (for 0.36.0, opf#1466).\n- The run never saves and closes only the documents it opened.\n- macOS permission prompts are the owner's to answer. An agent never approves one.\n- Keynote shows its import warnings only while it is in front. An agent with computer use reads the Warnings window of each file\n and puts the text in `<dir>/<fileId>.txt`, passed with `--warnings-dir <dir>`; the run reads it when it opens that file. Without\n it, the warnings are recorded as `not-read`.\n\n## Reading the result\n\nEach slide gets one class:\n\n| Class | Meaning |\n| --- | --- |\n| `same` | The picture matches OPF's preview (score at or below the threshold). |\n| `known-present` | A known record names the slide, or the baseline reviewed it and the score has not moved beyond the tolerance. |\n| `known-gone` | A known record names the slide, but the slide now matches the preview: the difference is gone. |\n| `new` | Look here. Nobody has reviewed this difference, the score moved since the baseline, or a change names the slide. |\n| `not-compared` | There is no picture pair (a hidden slide, or the render did not run). |\n\nThe file-level findings follow the same idea: an `open` that was not `done`, an import-warning line no record explains, a failed\nimport of the application's copy, and object outcome counts that differ from the baseline.\n\n`new` means \"look here\". It never means that every other slide is unchanged. The classify step\n([core/classify/README.md](../scripts/native-acceptance/core/classify/README.md), \"What the rule cannot see\") does not see:\n\n- small shifts inside text that already differs (a one-space shift of wrapped lines under Keynote's Helvetica substitution);\n- scores that move within the tolerance;\n- anything on a slide no picture shows: a hidden slide, alt text, tags, names.\n\nThis is why a change that alters the exported file names its slide in its changelog fragment (`native: [deck#slide]`,\n[changes/README.md](../changes/README.md)): the named slides are always `new`, so they are always looked at.\n\n## What to do with a new item\n\nOpen its sheet and decide whose difference it is:\n\n1. **Nothing visible**, or an intended change that the preview shows too: nothing to record. The next baseline carries the slide as\n reviewed.\n2. **The application's limit** (the file is valid and the application reads it differently): add a record to\n `scripts/native-acceptance/known/<target>.json`, or add the slide to an existing record's `where`. A record has an `id`, the\n places (`where`: deck, variant, slide), what a user `sees`, `whose: application`, the `workaround` and `workaroundTried`, the\n `issue` if there is one, and `firstSeen` and `lastSeen`. Set `skill: true` only when an author can act on it; then run\n `pnpm build:native-known`, which regenerates the Keynote table in `skills/opf-export/SKILL.md`.\n3. **OPF's defect** (its file, its importer reading the application's copy, or its preview when the preview is wrong and the\n exported file is right): open an issue, add a record with `whose: opf-file`, `opf-importer` or `preview` and that issue,\n and fix it. A failed import is recorded with `importError`, the\n importer's error code.\n4. **A difference that is gone** (`known-gone`, or a `new` slide whose score went down): retire the record (`status: retired`) or\n narrow its `where`.\n\nThen classify again (`pnpm native <target> --from-run <out>/run`, with the same `--release`). A run is clean when it exits\nwith 0.\n\n## The release gate\n\nDecision D1: a Keynote run gates OPF's defects only. A release supervisor applies these rules:\n\n1. A release candidate is the commit of `main` that the Release workflow's dry run tested. Before the real run, Keynote runs the\n `smoke` tier on it, then the `release` tier, both with `--release <the version being released>`.\n2. Each run must finish. Exit 2 is not a pass: fix the cause and run again.\n3. Every `new` item of both runs is reviewed and settled as above, until the run classified again exits with 0.\n4. A reviewed difference that is OPF's defect (`whose: opf-file`, `opf-importer` or `preview`) and first seen in this candidate\n blocks the release until it is fixed on `main` and a new candidate passes, or the owner accepts it in writing on the release's\n tracking issue.\n5. A limit of the application (`whose: application`) is recorded and does not block.\n6. An OPF defect first seen in an earlier release and still open does not block by itself. The release supervisor lists it under\n known differences on the release's tracking issue.\n\nPowerPoint on Windows keeps its existing rule until its driver writes the shared format: \"A change that moves what the export\nwrites (layout rules, chart geometry, text boxes) is opened in PowerPoint and compared with the preview before the owner is asked\nto approve it and before it merges\" ([working-rules.md of 2026-11-24](handoff/2026-11-24/working-rules.md), \"PowerPoint before\nmerge\"). Impress does not gate: its nightly leg is report-only, and `release.yml` turns it off in the release gate, until the\nclassify step runs on it and it has a known-difference file.\n\n## After the release\n\n- The summary of a release is `scripts/native-acceptance/runs/<version>/<target>.json` (decision D5). It is written from the\n reviewed candidate run, without opening Keynote again:\n `pnpm native keynote --from-run <out>/run --release <version> --write-summary`. Its `opf` is the release's version with the\n candidate's commit. It is written only for a run that finished (exit 0 or 1), and it never replaces an existing summary unless\n `--force-summary` is given; without it the command says which file it would have replaced and exits with 2.\n- Commit the summary in a small pull request after the release, together with the updated known records: set `lastSeen` (the application's version and the release) on\n every record the run reported, and retire the records that are gone. No tool updates `lastSeen`; it is edited by hand.\n- Pictures, sheets, saved decks and logs go to an evidence branch (`codex/evidence-<slug>`), are attached to the issue, or stay\n on the machine. They never go into `main` (`pnpm check:evidence-size`).\n\n## Who does what\n\n| Who | Does |\n| --- | --- |\n| The owner | Starts Keynote on the Mac, answers macOS permission prompts, keeps the screen unlocked, accepts an OPF defect in writing when it should not block, and provides the license and install for PowerPoint for Mac |\n| An agent on the Mac | Checks out and builds the candidate, reads Keynote's Warnings window, runs `pnpm native keynote`, reviews every new item, writes the known records and issues, reports the result on the release's tracking issue, and after the release writes and commits the Keynote summary |\n| The release supervisor on Windows | Runs the PowerPoint pass on the owner's Windows computer and applies the gate before the real run |\n| CI | Runs the Impress leg in `nightly.yml` and the tests of the pure parts (`pnpm check:native`) without any application |\n"
297
+ "markdown": "# Native-app testing\n\nRead this page before you run OPF's exported files in a native application: Keynote, PowerPoint or LibreOffice Impress. It says\nwhat a run is for, how to start one, how to read the result, and where a run sits in a release. The program that builds the\ntools is [docs/programs/native-testing/](programs/native-testing/README.md); its decisions D1 to D6, given by the owner on\n2026-11-25, are in [decisions.md](programs/native-testing/decisions.md). The command's own reference is \"One command: pnpm\nnative\" in [scripts/native-acceptance/README.md](../scripts/native-acceptance/README.md).\n\n## What a run is for\n\nOPF's preview does not prove what an application draws. A native run opens every exported `.pptx` of a tier in one application\nand answers four questions for every file and slide:\n\n1. **Does it open?** With no repair prompt; the application's own import warnings are recorded word for word.\n2. **Does it look right?** The application's picture of each slide against OPF's preview.\n3. **Is it native?** What each object became (`native`, `changed`, `picture`, `dropped`), in the 15 kinds of the shared result\n format ([core/result/README.md](../scripts/native-acceptance/core/result/README.md)).\n4. **Does it come back?** The application's own PowerPoint copy of the file, imported with OPF.\n\nEditing in the application's user interface is not part of a run.\n\n## Targets\n\n| Application | System | How it is driven | Who runs it | State today |\n| --- | --- | --- | --- | --- |\n| Keynote (`keynote`) | macOS | AppleScript through Keynote's own scripting dictionary ([apps/keynote/](../scripts/native-acceptance/apps/keynote/README.md)) | An agent session or the owner on the Mac | The driver is in the repository and tested without Keynote. Not run in Keynote yet |\n| PowerPoint (`powerpoint`) | Windows | COM | The release supervisor session on the owner's Windows computer | Its driver runs there and writes a run directory in the shared format, which `pnpm native powerpoint --from-run` classifies. The format and the five verbs are agreed with the release supervisor on Windows ([opf#1468, comment of 2026-11-25](https://github.com/OpenPresentation/opf/issues/1468#issuecomment-7174529699)); the Windows command that writes the run directory is the release supervisor's and comes after the 0.37.0 format changes |\n| LibreOffice Impress (`impress`) | Linux, in CI | LibreOffice's headless conversion, `scripts/libreoffice/run.mjs` in `nightly.yml` | GitHub's runners | The runner writes the shared format into its artifact ([libreoffice.md](libreoffice.md)); the first real run is the nightly after that change merges. The nightly does not run the classify step, and there is no `known/impress.json` yet |\n| PowerPoint for Mac (`powerpoint-mac`) | macOS | A reserved slot, no driver (decision D3) | The owner's: it needs a license and an install (opf#1314) | The command says \"no driver yet\" |\n\nNative runs are not CI jobs (decision D4): an agent or the owner starts Keynote and PowerPoint runs on their own machines. Only\nImpress runs on GitHub's runners.\n\n## The command\n\n```sh\npnpm native <target> [--tier smoke|release|full|candidate] [--decks a,b] [--baseline <opf version>|none] [--out <dir>]\n [--from-run <dir>] [--warnings-dir <dir>] [--look deck#slide,...] [--release <x.y.z>]\n [--write-summary] [--force-summary] [--json]\n```\n\nThe steps are select, check, build, run, classify and report. `check` runs before the build and before every file; a refusal\nopens nothing. The full list of flags is in the command's reference.\n\n| Tier | What it runs today |\n| --- | --- |\n| `smoke` (the default) | About ten decks named in `tiers.smoke` of the qualification manifest, plus the decks that unreleased changelog fragments name in `native:` |\n| `release` | Every deck and variant of the qualification corpus (`scripts/native-acceptance/qualification/`) |\n| `candidate` | For a release candidate: builds the `release` tier, hashes what each file's slides draw, and opens only the `smoke` tier, the files of the slides that fragments or `--look` name, and the files with a slide whose export changed since the baseline (every file of a deck whose masters, layouts or theme changed). It prints the selection before the run |\n| `full` | The corpus. The other sources (example decks, gallery layouts at three content sizes, language decks) cannot be built by the runner yet: they are listed as \"not run\" and the run exits with 2 |\n\nIn every tier, the slides that unreleased fragments name and the slides given with `--look` are reported as `new` whatever their\nscore, so someone looks at each one.\n\n**Output.** `--out` must be a new or empty folder outside the repository. Without it the run goes to\n`~/opf-work/native/<target>-<date>-<time>` when `~/opf-work` exists, else to the system's temporary folder. `<out>/build` holds\nthe exported files and OPF's previews; `<out>/run` the run directory, `classify.json` and a labeled sheet for every new slide\n(`<out>/run/sheets/`). All of it is evidence and stays out of `main`.\n\n**Exit codes.** 0: nothing new. 1: something new; look at each item. 2: refused, something not run, or the run could not finish.\n\n```sh\npnpm native keynote --tier candidate --release 0.37.0 --warnings-dir ~/opf-work/warnings-0.37.0\npnpm native keynote --tier release --release 0.37.0 --out ~/opf-work/native/keynote-0.37.0\npnpm native powerpoint --from-run D:/opf-work/native/run --inputs D:/opf-work/native/build --previews D:/opf-work/native/build/preview\n```\n\nThe baseline is, by default, the newest version under `scripts/native-acceptance/runs/` that has the target, below the\n`--release` version when one is given; today that is 0.36.0 for Keynote. A run is never its own baseline.\n\n**A release candidate** is built from a workspace that still carries the previous release's version\n(`packages/cli/package.json`). `--release <x.y.z>` names the version the candidate will be released as. The report then names\nboth, for example \"OPF workspace 0.36.0 at <commit>, release candidate 0.37.0\": the workspace version is the previous release's,\nand the commit identifies the candidate. `run.json` and every `result.json` keep the workspace's version and commit; only the\nsummary carries the release.\n\n**Changed slides.** A summary keeps, per file, a deck hash and one hash per slide of what the export draws\n(`scripts/native-acceptance/core/select/slide-parts.mjs`): the slide part and every part it reaches (charts with their\nworkbooks, diagrams, pictures, media, notes, tags), and for the deck the masters, the layouts slides use, the theme and the\npresentation properties. Part names, relationship ids and `docProps` do not count, so inserting a slide changes no other\nslide's hash. `--tier candidate` compares these with the baseline's; a baseline without them (0.36.0) selects the `smoke` tier\nand the named files only, and says so. In every run, a slide whose hash changed gets `changed: true` in `classify.json` (and on\nits sheet when it is new), and the report counts the slides whose export changed since the baseline.\n\n## Before a Keynote run\n\n- The checkout is the commit you mean to test, installed and built (`pnpm install --frozen-lockfile`, `pnpm build:packages`).\n- The owner starts Keynote. The run never starts, activates or quits Keynote.\n- The screen stays unlocked for the whole run.\n- No other Keynote document is open; `check` refuses when one is.\n- One job at a time on the machine, and only the session that runs the command sends Keynote events. Before you start, read the\n tracking issue of any round that may be running (for 0.36.0, opf#1466).\n- The run never saves and closes only the documents it opened.\n- macOS permission prompts are the owner's to answer. An agent never approves one.\n- Keynote shows its import warnings only while it is in front. An agent with computer use reads the Warnings window of each file\n and puts the text in `<dir>/<fileId>.txt`, passed with `--warnings-dir <dir>`; the run reads it when it opens that file. Without\n it, the warnings are recorded as `not-read`.\n\n## Reading the result\n\nEach slide gets one class:\n\n| Class | Meaning |\n| --- | --- |\n| `same` | The picture matches OPF's preview (score at or below the threshold). |\n| `known-present` | A known record names the slide, or the baseline reviewed it and the score has not moved beyond the tolerance. |\n| `known-gone` | A known record names the slide, but the slide now matches the preview: the difference is gone. |\n| `new` | Look here. Nobody has reviewed this difference, the score moved since the baseline, or a change names the slide. |\n| `not-compared` | There is no picture pair (a hidden slide, or the render did not run). |\n\nThe file-level findings follow the same idea: an `open` that was not `done`, an import-warning line no record explains, a failed\nimport of the application's copy, and object outcome counts that differ from the baseline.\n\n`new` means \"look here\". It never means that every other slide is unchanged. The classify step\n([core/classify/README.md](../scripts/native-acceptance/core/classify/README.md), \"What the rule cannot see\") does not see:\n\n- small shifts inside text that already differs (a one-space shift of wrapped lines under Keynote's Helvetica substitution);\n- scores that move within the tolerance;\n- anything on a slide no picture shows: a hidden slide, alt text, tags, names.\n\nThis is why a change that alters the exported file names its slide in its changelog fragment (`native: [deck#slide]`,\n[changes/README.md](../changes/README.md)): the named slides are always `new`, so they are always looked at.\n\n## What to do with a new item\n\nOpen its sheet and decide whose difference it is:\n\n1. **Nothing visible**, or an intended change that the preview shows too: nothing to record. The next baseline carries the slide as\n reviewed.\n2. **The application's limit** (the file is valid and the application reads it differently): add a record to\n `scripts/native-acceptance/known/<target>.json`, or add the slide to an existing record's `where`. A record has an `id`, the\n places (`where`: deck, variant, slide), what a user `sees`, `whose: application`, the `workaround` and `workaroundTried`, the\n `issue` if there is one, and `firstSeen` and `lastSeen`. Set `skill: true` only when an author can act on it; then run\n `pnpm build:native-known`, which regenerates the Keynote table in `skills/opf-export/SKILL.md`.\n3. **OPF's defect** (its file, its importer reading the application's copy, or its preview when the preview is wrong and the\n exported file is right): open an issue, add a record with `whose: opf-file`, `opf-importer` or `preview` and that issue,\n and fix it. A failed import is recorded with `importError`, the\n importer's error code.\n4. **A difference that is gone** (`known-gone`, or a `new` slide whose score went down): retire the record (`status: retired`) or\n narrow its `where`.\n\nThen classify again (`pnpm native <target> --from-run <out>/run`, with the same `--release`). A run is clean when it exits\nwith 0.\n\n## The release gate\n\nDecision D1: a Keynote run gates OPF's defects only. A release supervisor applies these rules:\n\n1. A release candidate is the commit of `main` that the Release workflow's dry run tested. Before the real run, Keynote runs the\n `candidate` tier on it, then the `release` tier, both with `--release <the version being released>`.\n2. Each run must finish. Exit 2 is not a pass: fix the cause and run again.\n3. Every `new` item of both runs is reviewed and settled as above, until the run classified again exits with 0.\n4. A reviewed difference that is OPF's defect (`whose: opf-file`, `opf-importer` or `preview`) and first seen in this candidate\n blocks the release until it is fixed on `main` and a new candidate passes, or the owner accepts it in writing on the release's\n tracking issue.\n5. A limit of the application (`whose: application`) is recorded and does not block.\n6. An OPF defect first seen in an earlier release and still open does not block by itself. The release supervisor lists it under\n known differences on the release's tracking issue.\n\nPowerPoint on Windows keeps its existing rule until its driver writes the shared format: \"A change that moves what the export\nwrites (layout rules, chart geometry, text boxes) is opened in PowerPoint and compared with the preview before the owner is asked\nto approve it and before it merges\" ([working-rules.md of 2026-11-24](handoff/2026-11-24/working-rules.md), \"PowerPoint before\nmerge\"). Impress does not gate: its nightly leg is report-only, and `release.yml` turns it off in the release gate, until the\nclassify step runs on it and it has a known-difference file.\n\n## After the release\n\n- The summary of a release is `scripts/native-acceptance/runs/<version>/<target>.json` (decision D5). It is written from the\n reviewed candidate run, without opening Keynote again:\n `pnpm native keynote --from-run <out>/run --release <version> --write-summary`. Its `opf` is the release's version with the\n candidate's commit. It is written only for a run that finished (exit 0 or 1), and it never replaces an existing summary unless\n `--force-summary` is given; without it the command says which file it would have replaced and exits with 2.\n- Commit the summary in a small pull request after the release, together with the updated known records: set `lastSeen` (the application's version and the release) on\n every record the run reported, and retire the records that are gone. No tool updates `lastSeen`; it is edited by hand.\n- Pictures, sheets, saved decks and logs go to an evidence branch (`codex/evidence-<slug>`), are attached to the issue, or stay\n on the machine. They never go into `main` (`pnpm check:evidence-size`).\n\n## Coverage and budgets\n\nThe corpus stays small only if every file earns its place. `pnpm report:native-coverage [--tier release] [--out <file.md>]\n[--json]` computes, from the repository alone, the units each corpus file shows: the schema locations its decks use (keys, enum\nvalues, `oneOf`/`anyOf` branches, default layouts, chart types), the manifest features it carries, the scripts of its text, its\nexport variant, and the known differences whose `where` names its slides. It prints the units each tier covers against the\ntotals, the units on exactly one slide, the decks with no unit of their own, the schema locations no deck shows, and each tier's\nfiles, slides and modeled minutes. The report is not committed.\n\n`pnpm check:native-coverage` fails on any of four rules:\n\n1. **Known places.** Every record of `known/<application>.json` with places has one that the release tier runs (the deck and\n variant are in the manifest, the slide is within the deck). Records whose deck is still being moved into the corpus are\n listed with the item that moves it in `core/coverage/pending-known-places.json`; a listed record that no longer needs it fails.\n2. **Schema.** Every schema location is on a corpus slide, or `scripts/format-coverage-allowlist.json` gives a reason.\n3. **Earned place.** Every corpus deck shows a schema location, script or variant no other deck shows, or a known record or a\n feature names it. The exceptions are in `core/coverage/dominated-decks.json`, each with a reason.\n4. **Time budget.** Modeled seconds = 4.15 x files + 0.86 x slides (fitted on 584 Keynote opens); the model and the budgets per\n application and tier (smoke 6, release 25, full 90 minutes) are in `core/coverage/budgets.json`.\n\nTo add a deck, give it something no corpus deck shows, or a feature with `targets`. To add a schema key or value, put it on a\nslide of a `coverage-*` deck. When a tier goes over its budget, move decks to a later tier or merge decks that show the same\nunits before raising the budget.\n\n## Who does what\n\n| Who | Does |\n| --- | --- |\n| The owner | Starts Keynote on the Mac, answers macOS permission prompts, keeps the screen unlocked, accepts an OPF defect in writing when it should not block, and provides the license and install for PowerPoint for Mac |\n| An agent on the Mac | Checks out and builds the candidate, reads Keynote's Warnings window, runs `pnpm native keynote`, reviews every new item, writes the known records and issues, reports the result on the release's tracking issue, and after the release writes and commits the Keynote summary |\n| The release supervisor on Windows | Runs the PowerPoint pass on the owner's Windows computer and applies the gate before the real run |\n| CI | Runs the Impress leg in `nightly.yml` and the tests of the pure parts (`pnpm check:native`) without any application |\n"
298
298
  },
299
299
  {
300
300
  "slug": "next-agent-prompt-2026-09-15",
@@ -342,7 +342,7 @@ var docsData = Object.freeze([
342
342
  "slug": "release-process",
343
343
  "file": "docs/release-process.md",
344
344
  "title": "OPF Release Process",
345
- "markdown": "# OPF Release Process\n\nFor the four-repository event/gate/target matrix and current agent deployment authority, see [CI/CD contract](ci-cd.md). Package publication still uses only the Release and tag-triggered trusted-publisher workflows described here.\n\nUse Node 24 (`24.x`) for all future source, candidate and registry verification.\nThe packages declare the open-ended `engines.node` `>=22` (RR-20, tested on Node 22, 24 and 26 by the `node-range`\nCI legs, which run in the nightly workflow, before every release and on pull requests labeled `full-ci`); a closed range such as `24.x` makes npm on any other Node silently install an older release, and\n`pnpm check:engines-range` fails on one, including in a lockfile that pins a release made after the fix.\nThe next releases must document the [Node 24 migration](migrations/node24.md)\nand use new versions. Historical dual-runtime release records remain unchanged.\n\nThis document is the release runbook for the seven published packages of this repository:\n[`@openpresentation/opf`](https://www.npmjs.com/package/@openpresentation/opf) (core, `packages/javascript`),\n`@openpresentation/cli`, `@openpresentation/opf-render`, `@openpresentation/opf-pptx`, `@openpresentation/opf-editor`,\n`@openpresentation/gallery` and `@openpresentation/mcp` (the MCP server, first published with 0.27.0; its first publish needs the\ntrusted-publisher entry of `docs/programs/monorepo/owner-steps.md`, O1b). They are released together, at one version, with one tag.\n\n## Release: one click\n\n> Historical cutover: this workflow lane was introduced for the canary `0.26.0-rc.0` (MR-41), then 0.26.0 (MR-44). Releases up to 0.25.x were made from the four old repositories with\n> a per-package train; that process is retired and not described here.\n\n**One version, one tag, one workflow.** All seven packages carry the same version (`pnpm check:versions`); a release is the tag\n`vX.Y.Z` on a commit of `main`, published by `.github/workflows/npm-publish.yml` in dependency order: gallery, core, render,\nPPTX, editor, CLI, MCP. In 0.x a breaking change is a minor release and everything else a patch. Prereleases (`0.26.0-rc.0`) go to\nthe dist-tag `next`, releases to `latest`; both are passed explicitly to `npm publish --tag` for every package.\n\n### Run a release\n\nActions, **Release**, **Run workflow** on `main`:\n\n| Input | Meaning |\n| --- | --- |\n| `version` | `X.Y.Z`, `X.Y.Z-rc.N`, or `patch` / `minor` of the shared line (the highest `latest` of core, CLI, render, PPTX, editor and MCP) |\n| `dry-run` | Default **true**: rehearse everything up to `npm publish --dry-run`; nothing is committed, tagged or published. Set false for the real release |\n| `skip-gate` | A dry run only: skip the slow gate |\n\nRun it with `dry-run` true first. After the rehearsal succeeds, and after the native-app run on that commit (below) passes, run the same version on `main` with `dry-run` false for the real release. The jobs:\n\n1. **plan**: a real release runs on `main`, and the check `verify` is green for its head (one API call, no waiting).\n2. **gate** (parallel with prepare): `nightly.yml` called on that commit: Windows, macOS, Node 22 and 26, the packed-install,\n registry and npm 12 consumers. A red leg stops the release before anything is committed or tagged.\n3. **prepare** (parallel with gate): `node scripts/release.mjs prepare <version>` in the runner: sets the seven versions, core's\n peer ranges and `PEER_RANGES` (`packages/javascript/src/node/peers.ts`), assembles every `changes/` fragment into its package\n changelog (a package without a fragment gets \"No package changes; released with the set.\"), applies the gallery stability gate\n and the version rules below, refreshes the lockfile, and uploads the result as a patch. A **prerelease** (`X.Y.Z-rc.N`) only sets the versions: it leaves every changelog and `changes/` alone, and its GitHub release notes are assembled from the fragments (`release.mjs notes`), so the stable release that follows carries every note. A refused version fails here, in two\n minutes.\n4. **commit and tag** (real release, after gate and prepare): with the GitHub App's token (a bypass actor on the `main` ruleset)\n applies the patch as one commit `release vX.Y.Z` on exactly the commit the gate tested, pushes it to `main`, then pushes the\n tag `vX.Y.Z`. If `main` moved during the run, or the tag exists, it stops. A tag pushed with the App's token starts\n `npm-publish.yml` (a tag pushed with `GITHUB_TOKEN` would not).\n5. **npm-publish.yml** on the tag: `plan` (the tag is on `main`), `build` (one install and build, `pnpm pack` of the seven,\n `scripts/stamp-githead.mjs` adds `gitHead` to each tarball because `pnpm pack` omits it, a smoke test installs the seven\n tarballs together, renders the quickstart deck and runs the CLI), `mcpb` (beside `build`, in its own runner: builds and checks\n the full Claude Desktop MCP bundle with all script fonts and retains it with its SHA-256; nothing on the publication path\n needs it), `publish` (the only job with `id-token: write`; the\n pre-publish gate, then `npm publish <tarball> --access public --provenance --tag <tag>` seven times, printing npm's own output; a version already on npm is\n skipped. Once npm accepted an upload the package is published: if the registry does not serve it yet it is logged as\n **pending**, which is not a failure, and the job goes on), `verify` (below: it first waits for the registry), `release` (the GitHub release, notes grouped by package), `assets` (after\n `mcpb` and `release`: attaches the checked versioned `.mcpb` and its `.sha256` file to that release) and `report` (a failed\n publication opens the issue \"Release vX.Y.Z failed\", labeled `release-failed`; missing bundle assets open a separate issue,\n labeled `release-assets-missing`, because the packages are live).\n6. **follow the publish run** (the Release run waits for it and judges its publication jobs with\n `scripts/release-publish-run.mjs`: it is green when the seven packages are published and verified and the GitHub release\n exists; missing bundle assets are a warning there and do not hold back the site bumps).\n\nTime target: about 20 minutes from the click to seven verified packages (measured in MR-44).\n\n### Native-app run (between the dry run and the real run)\n\nThe commit of `main` that the dry run tested is the release candidate. Before the real run, an agent on the Mac, with Keynote\nstarted by the owner, runs `pnpm native keynote --tier smoke` and then `--tier release` on a checkout of that commit, and every\n`new` item is reviewed. A run that exits with 2 is not a pass. A reviewed difference that is OPF's defect and first seen in this\ncandidate blocks the release until it is fixed (a new candidate, run again) or the owner accepts it in writing on the release's\ntracking issue; a limit of Keynote is recorded and does not block (decision D1). PowerPoint on Windows keeps its before-merge\npass, and the Impress nightly leg reports only. If `main` moves before the real run, its new head is a new candidate. Both runs\npass `--release <the version being released>`; after the release, the Keynote summary is written from the reviewed candidate\nrun without opening Keynote again (`--from-run <dir> --release <version> --write-summary`) and committed with the updated known\nrecords in a small pull request. The rules, who does what and how to read a result: [native-testing.md](native-testing.md).\n\n### Version rules\n\n- `prepare` refuses a version that is not above the shared line's previous release, and one already on npm for any package\n (a published version is never reused; fix forward).\n- **The gallery stability rule** (`scripts/gallery-stability.mjs`, `pnpm check:stability`; see\n [default-catalog.md](default-catalog.md)): a declared drawing change (a `drawing` entry in a gallery fragment), a removed record\n id or a `CATALOG_SCHEMA` change needs a **minor** release; `prepare` refuses a patch. New records and unchanged drawings go in\n any release. The baseline is the gallery's `latest` dist-tag, never its highest version.\n- **The publish gate** (`release.mjs check-publish`, run by `publish`): each package's version is above its own registry\n `latest`, except the gallery, which is compared with the shared line, because its `latest` was 5.0.0 before it joined the\n shared 0.x line (D16). A stable version needs `latest`, a prerelease must not take it. 5.0.0 and the older gallery versions\n stay published and are never deprecated; because they are above the shared line, every gallery publish names its tag explicitly.\n- The shared line cannot use 1.0.0 to 5.0.0 (taken by the gallery): the first stable major for all seven is 6.0.0.\n\n### Trusted publishing\n\nAll seven packages have the trusted publisher: GitHub Actions, organization `OpenPresentation`, repository `opf`, workflow filename\n`npm-publish.yml`, no environment (owner steps O1 in `docs/programs/monorepo/owner-steps.md`). npm checks the entry against\nthe **top-level** workflow of the run, not against a reusable workflow that contains `npm publish`, so `npm-publish.yml` is the\nworkflow that starts on the tag and `release.yml` only pushes the tag. `publish` refuses to publish from any other top-level\nworkflow. A publish fails with `E404` or `E403 ... not a trusted publisher` when an entry is wrong: fix the entry and re-run\nthe workflow on the tag. There is no `NPM_TOKEN`, and no local publish: the provenance gate applies to every release.\n\n### Retry and failure\n\nA failed `npm-publish.yml` run is fixed and run again on the same tag: Actions, **Publish OPF npm packages**, **Run workflow**,\nref `vX.Y.Z`, `dry-run` false (or re-run the failed run). Versions already on npm are skipped, so it continues where it stopped.\nA partial publish is safe: the `^X.Y.Z` floors point at packages that exist, because the order is dependency order. A real\ndefect in a published version is fixed forward with the next patch and a new tag; tags are never moved. If `prepare` or the gate\nfails, nothing was committed: fix the cause and run the release again.\n\n### Fallback: a release pull request\n\nIf no App token is available, or a person prefers review: on a branch run `pnpm release:prepare X.Y.Z`\n(`node scripts/release.mjs prepare X.Y.Z`; it needs `pnpm build` first for the stability gate), open the pull request, merge it\non green, then on `main` run `git tag vX.Y.Z && git push origin vX.Y.Z`. The publish workflow is the same.\n\n### Verify\n\nThe registry serves an accepted upload some time after `npm publish` exits 0: 1 to 7 minutes for v0.26.0-rc.0 and about 20 for core\nin v0.26.9. That lag is waited out in the `verify` job, never failed in `publish` (a lagging package used to fail the publish job\nand skip verify and the GitHub release; a manual `gh run rerun --failed` was the fix). The `verify` job runs, in order:\n\n1. `node scripts/release.mjs await-registry X.Y.Z --wait 60 --poll 15 --max-poll 120`: for each package still missing, requests\n the version's own registry document (`/@scope%2fname/X.Y.Z`) with `Cache-Control: no-cache` and a unique query string, so\n neither the npm CLI cache nor a CDN's cached 404 answers. The first look is immediate; the interval starts at 15 s, grows by\n half each round up to 120 s, and each round logs which packages are still missing and for how long. A served package is not\n asked again. Only when the 60 minute budget is spent does it fail, with the staged-package guidance (see Troubleshooting). A\n lookup that errors (HTTP 5xx) counts as not served yet.\n2. `node scripts/release.mjs verify X.Y.Z --tag <dist-tag> --commit <release commit> --wait 10 --poll 30`, which waits only for the\n attestation bundle and the scratch install (a few more minutes), and then the smoke test against the registry\n (`release.mjs smoke X.Y.Z --registry`).\n\nFor all seven packages `verify` checks the registry manifest,\n`gitHead` and the provenance source commit equal to the release commit, the provenance workflow `npm-publish.yml` on\n`refs/tags/vX.Y.Z`, the subject digest, the dist-tag, that no manifest carries a `workspace:` range and every sibling range is\n`^X.Y.Z`, `npm audit signatures`, and that each package changelog has the version's section. If the budget is spent, re-run the\nfailed jobs (`gh run rerun --failed`): `publish` is not repeated, because it succeeded. By hand:\n\n```sh\nnode scripts/release.mjs verify X.Y.Z --tag latest # exit 0 when all seven verify\nnpm view @openpresentation/opf@X.Y.Z gitHead dist.attestations.url\nnpm view @openpresentation/gallery dist-tags --json # latest is X.Y.Z; 5.0.0 stays published\n```\n\n### Claude Desktop release assets\n\nThe `mcpb` job of `npm-publish.yml` runs `pnpm --filter @openpresentation/mcp run build:mcpb --check` in its own runner (its\nown checkout, install and build) and retains only `opf-X.Y.Z.mcpb` and `opf-X.Y.Z.mcpb.sha256` as the `mcpb` workflow\nartifact. This is the full bundle, including all pinned script fonts. Its `npm install` resolves the bundle's third-party\ndependencies and font packages from the registry without a lockfile, with `--ignore-scripts`, and never in the runner that\npacks the published tarballs; a registry problem or a slow download fails this job only, because `publish` and `verify` do not\nneed it. The zip entries carry a fixed time, so the same files give the same bytes. A rehearsal builds and checks the bundle\ntoo, without creating a release or uploading public assets.\n\nThe order on a real release: `release` creates the GitHub release with its notes first, exactly as it does without a bundle;\nthen the `assets` job downloads the checked artifact and attaches the two files. If `mcpb` or `assets` fails, the packages and\nthe release notes are already live: the publish run shows the red job, `report` opens or updates the `release-assets-missing`\nissue (not `release-failed`), and the Release run reports \"assets missing\" as a warning and still bumps the sites. To recover,\nre-run the failed job of the publish run (Re-run failed jobs, or `gh run rerun <run-id> --failed`); it only attaches the missing\nfiles. Reruns preserve release notes and existing assets. They verify an existing bundle/checksum pair, add a missing checksum\nfrom the already uploaded bundle's bytes, or add a missing bundle only if its bytes match the existing checksum. A mismatch fails\ninstead of replacing a public asset. Retry through the existing trusted workflow; never repair a release with `--clobber`. The\n`mcpb` artifact is kept for 14 days: re-run a failed `assets` job within that time (if `mcpb` itself failed, its re-run builds\na new artifact).\n\n### `scripts/release.mjs`\n\n| Command | Does |\n| --- | --- |\n| `prepare <version> [--dry-run] [--no-stability] [--previous V]` | the prepare step above (`--dry-run` writes nothing) |\n| `pack <version> --commit <sha> --out <dir>` | `pnpm pack` of the seven, `gitHead` stamped, `release-manifest.json` with digests |\n| `smoke <version> (--dir <dir> \\| --registry)` | install the seven together, render, resolve, run the CLI |\n| `check-publish <version> [--tag t]` | the pre-publish gate |\n| `publish <version> --dir <dir> [--tag t] [--dry-run] [--wait minutes] [--poll seconds] [--expect-staged]` | the gate, then `npm publish` in dependency order: npm's output is printed; after all seven uploads each package gets one registry look (`--wait`, default 0, polls longer) and one not served yet is logged **pending**, never a failure; a staged result fails unless `--expect-staged` |\n| `await-registry <version> [--wait minutes] [--poll seconds] [--max-poll seconds]` | waits (default 60 min, backoff 15 s to 120 s, cache-busting) until the registry serves all seven; fails only when the budget is spent |\n| `verify <version> [--tag t] [--commit sha] [--wait minutes]` | the registry and provenance check (a prerelease has no changelog section to check) |\n| `notes <version> [--out file]` | the GitHub release body |\n| `order` | the publish order |\n\n### After a release: the sites\n\nAfter a **stable** release, `release.yml` calls `.github/workflows/bump-sites.yml` (a prerelease never does). For each of the\nthree sites (`Data-Advantage/openpresentation-site` and `Data-Advantage/pptx-gallery` on `main`, `Data-Advantage/pptx-dev` on\n`master`) it opens one pull request, \"bump to vX.Y.Z\", from the branch `bot/opf-vX.Y.Z`. What a bump touches is the site's own\nbusiness, so each site owns one script, `pnpm opf:bump <X.Y.Z> [--opf <checkout>]` (`scripts/opf-bump.mjs` of the site), that sets its\n`@openpresentation/*` pins, refreshes its lockfile, regenerates every file it derives from the release (a release history from the\nregistry and these release notes, a pin mirror, preview fonts, chart previews, the vendored editor bundle, a homepage manifest) and runs\nthe checks of its own CI that read them; `scripts/bump-site.mjs` decides the label and calls it (a site without one gets only the\ngeneric pins and lockfile). A bump needs no human edit to be green; one that does (a release that changes behavior or removes a\ndocument the site links) fails the site's CI and stays open. A patch bump is labeled\n`auto-merge`; a minor or major bump (a breaking change in 0.x) is labeled `needs-review` and stays open. The workflow only opens\nand labels the pull request and never merges it: the site's own CI merges an `auto-merge` pull request after its\n`build-and-smoke` job passes, using the GitHub App's token so that the merge starts the site's deploy workflows (D19; the sites\nare private repositories in a Free-plan organization and have no rulesets or required checks). A bump that cannot be made opens\nan issue in this repository (`bump-sites-failed`) and never fails the release. To run it again, or for a release made by the pull-request\nfallback or from a tag, use Actions, **Bump sites**, **Run workflow** with the version. The App, its secrets and the site-side\nworkflows are owner steps O4 and O8 (`docs/programs/monorepo/owner-steps.md`); the workflow files for the sites are in\n`docs/programs/monorepo/site-workflows/`.\n\n### Who may release\n\nThe owner authorized agents to prepare and publish npm releases on 2026-09-29 (`AGENTS.md`). A release is made only through\n`release.yml` (or the pull-request fallback) and `npm-publish.yml`, only when one is required and only with every gate green,\nthe Keynote gate of [native-testing.md](native-testing.md) included;\nagents never publish from a laptop, never skip the gate and never pass a different `--tag` to make a check pass. Dry runs are\nfree at any time.\n\n## Geometry-moving core releases\n\nCore composition changes that move geometry make the preview and the PPTX export drift when the renderer and the exporter resolve\ndifferent core versions. This cannot happen between the packages of this repository: all seven are released at one version, and\ntheir runtime dependencies and peers on each other are `workspace:^`, published as `^X.Y.Z`, so the floor of every sibling is the\nrelease itself. Do not hand-edit those ranges, and do not release one package alone.\n\n## Renderer font-count gate (RR-90)\n\nThe installed-consumer check (`scripts/test-packed-ecosystem.mjs`) and `test:gallery-lazy-fonts` compare the number of vendored faces a renderer lists as lazy fonts with `scripts/lazy-font-counts.mjs`. A renderer release whose fonts did not change needs no new entry. The gate hashes the renderer package's font set, which is 143 files: `dist/font-manifest.js` and every file under `fonts/` (faces, licenses, `PROVENANCE.json`, `NOTICE.md`). An unlisted version, stable or a prerelease (`X.Y.Z-rc.N`), passes when that hash is in `REVIEWED_FONT_SETS` and its measured count equals the count recorded there.\n\nIt fails closed, with a message that says what changed, when:\n\n- the font files differ from every reviewed set (the message prints the new hashes): review what changed, then add the set to `REVIEWED_FONT_SETS` and the version's count to `LAZY_FONT_COUNTS`;\n- the font files are a reviewed set but the count differs: find out why the count moved, then add an entry;\n\nA prerelease is held to the same rule as the stable version: its label neither admits nor refuses it, its font files and count do.\n\nTo review a set, pack the release (`npm pack @openpresentation/opf-render@<version>`), run `hashFontSet` from `scripts/lazy-font-counts.mjs` over the unpacked `package/` folder, and record the result with the versions you checked. Every existing `LAZY_FONT_COUNTS` entry stays and keeps its own rule.\n\n## Troubleshooting\n\n- **The tag or version check fails** (`npm-publish.yml`, job `plan`): the tag does not point at a commit of `main`, or the version\n is not well formed. Inspect the exact tag. Never move or re-push a release tag; fix a real error on `main` and release the\n next version. A transient failure is retried on the same unchanged tag.\n- **`E404`, `E403` or `ENEEDAUTH` from `npm publish`**: the trusted publisher of that package is missing or wrong. It must be\n organization `OpenPresentation`, repository `opf`, workflow filename `npm-publish.yml`, no environment, and the `publish` job\n needs `id-token: write`. Fix the entry in npm (owner step O1) and re-run the workflow on the tag.\n- **`verify` fails at \"Wait for the registry\" with \"npm accepted X (exit 0) but the registry still does not serve it after 60\n min\"**, or `publish` fails with \"npm staged X\": npm returned success (or staged the upload) but the version is not installable.\n Ordinary registry lag never gets here: it is logged as pending in `publish` and waited out in `verify`. Open the package on\n npmjs.com, Staged Packages tab, or run `npm stage list <name>` as a maintainer: a staged version must be approved with 2FA\n (`npm stage approve <stage-id>`; trusted-publishing OIDC tokens cannot approve). Otherwise check npm's status page and, once\n the version is served, re-run the failed jobs of the run (`gh run rerun --failed`); the packages already served are skipped.\n- **A version is already on npm**: `publish` skips it; do not try to publish it again. Verify the package and continue.\n- **The gate is red**: the failing leg of `nightly.yml` is in the Release run. Fix it on `main` and release again; nothing was\n committed. A flaky leg is quarantined (`pnpm check:quarantine`), never skipped for a release.\n- **`release.yml` stopped with \"main moved\"**: a commit landed on `main` after the run started, and the gate had tested the\n earlier one. Run the release again.\n- **A nightly failure**: the `nightly-red` issue lists the failing legs and the run; it never blocks a pull request, and the\n release gate refuses to publish on the same failure.\n"
345
+ "markdown": "# OPF Release Process\n\nFor the four-repository event/gate/target matrix and current agent deployment authority, see [CI/CD contract](ci-cd.md). Package publication still uses only the Release and tag-triggered trusted-publisher workflows described here.\n\nUse Node 24 (`24.x`) for all future source, candidate and registry verification.\nThe packages declare the open-ended `engines.node` `>=22` (RR-20, tested on Node 22, 24 and 26 by the `node-range`\nCI legs, which run in the nightly workflow, before every release and on pull requests labeled `full-ci`); a closed range such as `24.x` makes npm on any other Node silently install an older release, and\n`pnpm check:engines-range` fails on one, including in a lockfile that pins a release made after the fix.\nThe next releases must document the [Node 24 migration](migrations/node24.md)\nand use new versions. Historical dual-runtime release records remain unchanged.\n\nThis document is the release runbook for the seven published packages of this repository:\n[`@openpresentation/opf`](https://www.npmjs.com/package/@openpresentation/opf) (core, `packages/javascript`),\n`@openpresentation/cli`, `@openpresentation/opf-render`, `@openpresentation/opf-pptx`, `@openpresentation/opf-editor`,\n`@openpresentation/gallery` and `@openpresentation/mcp` (the MCP server, first published with 0.27.0; its first publish needs the\ntrusted-publisher entry of `docs/programs/monorepo/owner-steps.md`, O1b). They are released together, at one version, with one tag.\n\n## Release: one click\n\n> Historical cutover: this workflow lane was introduced for the canary `0.26.0-rc.0` (MR-41), then 0.26.0 (MR-44). Releases up to 0.25.x were made from the four old repositories with\n> a per-package train; that process is retired and not described here.\n\n**One version, one tag, one workflow.** All seven packages carry the same version (`pnpm check:versions`); a release is the tag\n`vX.Y.Z` on a commit of `main`, published by `.github/workflows/npm-publish.yml` in dependency order: gallery, core, render,\nPPTX, editor, CLI, MCP. In 0.x a breaking change is a minor release and everything else a patch. Prereleases (`0.26.0-rc.0`) go to\nthe dist-tag `next`, releases to `latest`; both are passed explicitly to `npm publish --tag` for every package.\n\n### Run a release\n\nActions, **Release**, **Run workflow** on `main`:\n\n| Input | Meaning |\n| --- | --- |\n| `version` | `X.Y.Z`, `X.Y.Z-rc.N`, or `patch` / `minor` of the shared line (the highest `latest` of core, CLI, render, PPTX, editor and MCP) |\n| `dry-run` | Default **true**: rehearse everything up to `npm publish --dry-run`; nothing is committed, tagged or published. Set false for the real release |\n| `skip-gate` | A dry run only: skip the slow gate |\n\nRun it with `dry-run` true first. After the rehearsal succeeds, and after the native-app run on that commit (below) passes, run the same version on `main` with `dry-run` false for the real release. The jobs:\n\n1. **plan**: a real release runs on `main`, and the check `verify` is green for its head (one API call, no waiting).\n2. **gate** (parallel with prepare): `nightly.yml` called on that commit: Windows, macOS, Node 22 and 26, the packed-install,\n registry and npm 12 consumers. A red leg stops the release before anything is committed or tagged.\n3. **prepare** (parallel with gate): `node scripts/release.mjs prepare <version>` in the runner: sets the seven versions, core's\n peer ranges and `PEER_RANGES` (`packages/javascript/src/node/peers.ts`), assembles every `changes/` fragment into its package\n changelog (a package without a fragment gets \"No package changes; released with the set.\"), applies the gallery stability gate\n and the version rules below, refreshes the lockfile, and uploads the result as a patch. A **prerelease** (`X.Y.Z-rc.N`) only sets the versions: it leaves every changelog and `changes/` alone, and its GitHub release notes are assembled from the fragments (`release.mjs notes`), so the stable release that follows carries every note. A refused version fails here, in two\n minutes.\n4. **commit and tag** (real release, after gate and prepare): with the GitHub App's token (a bypass actor on the `main` ruleset)\n applies the patch as one commit `release vX.Y.Z` on exactly the commit the gate tested, pushes it to `main`, then pushes the\n tag `vX.Y.Z`. If `main` moved during the run, or the tag exists, it stops. A tag pushed with the App's token starts\n `npm-publish.yml` (a tag pushed with `GITHUB_TOKEN` would not).\n5. **npm-publish.yml** on the tag: `plan` (the tag is on `main`), `build` (one install and build, `pnpm pack` of the seven,\n `scripts/stamp-githead.mjs` adds `gitHead` to each tarball because `pnpm pack` omits it, a smoke test installs the seven\n tarballs together, renders the quickstart deck and runs the CLI), `mcpb` (beside `build`, in its own runner: builds and checks\n the full Claude Desktop MCP bundle with all script fonts and retains it with its SHA-256; nothing on the publication path\n needs it), `publish` (the only job with `id-token: write`; the\n pre-publish gate, then `npm publish <tarball> --access public --provenance --tag <tag>` seven times, printing npm's own output; a version already on npm is\n skipped. Once npm accepted an upload the package is published: if the registry does not serve it yet it is logged as\n **pending**, which is not a failure, and the job goes on), `verify` (below: it first waits for the registry), `release` (the GitHub release, notes grouped by package), `assets` (after\n `mcpb` and `release`: attaches the checked versioned `.mcpb` and its `.sha256` file to that release) and `report` (a failed\n publication opens the issue \"Release vX.Y.Z failed\", labeled `release-failed`; missing bundle assets open a separate issue,\n labeled `release-assets-missing`, because the packages are live).\n6. **follow the publish run** (the Release run waits for it and judges its publication jobs with\n `scripts/release-publish-run.mjs`: it is green when the seven packages are published and verified and the GitHub release\n exists; missing bundle assets are a warning there and do not hold back the site bumps).\n\nTime target: about 20 minutes from the click to seven verified packages (measured in MR-44).\n\n### Native-app run (between the dry run and the real run)\n\nThe commit of `main` that the dry run tested is the release candidate. Before the real run, an agent on the Mac, with Keynote\nstarted by the owner, runs `pnpm native keynote --tier candidate --release <version>` (the smoke tier plus the files whose\nslides changed since the last release) and then `--tier release` on a checkout of that commit, and every\n`new` item is reviewed. A run that exits with 2 is not a pass. A reviewed difference that is OPF's defect and first seen in this\ncandidate blocks the release until it is fixed (a new candidate, run again) or the owner accepts it in writing on the release's\ntracking issue; a limit of Keynote is recorded and does not block (decision D1). PowerPoint on Windows keeps its before-merge\npass, and the Impress nightly leg reports only. If `main` moves before the real run, its new head is a new candidate. Both runs\npass `--release <the version being released>`; after the release, the Keynote summary is written from the reviewed candidate\nrun without opening Keynote again (`--from-run <dir> --release <version> --write-summary`) and committed with the updated known\nrecords in a small pull request. The rules, who does what and how to read a result: [native-testing.md](native-testing.md).\n\n### Version rules\n\n- `prepare` refuses a version that is not above the shared line's previous release, and one already on npm for any package\n (a published version is never reused; fix forward).\n- **The gallery stability rule** (`scripts/gallery-stability.mjs`, `pnpm check:stability`; see\n [default-catalog.md](default-catalog.md)): a declared drawing change (a `drawing` entry in a gallery fragment), a removed record\n id or a `CATALOG_SCHEMA` change needs a **minor** release; `prepare` refuses a patch. New records and unchanged drawings go in\n any release. The baseline is the gallery's `latest` dist-tag, never its highest version.\n- **The publish gate** (`release.mjs check-publish`, run by `publish`): each package's version is above its own registry\n `latest`, except the gallery, which is compared with the shared line, because its `latest` was 5.0.0 before it joined the\n shared 0.x line (D16). A stable version needs `latest`, a prerelease must not take it. 5.0.0 and the older gallery versions\n stay published and are never deprecated; because they are above the shared line, every gallery publish names its tag explicitly.\n- The shared line cannot use 1.0.0 to 5.0.0 (taken by the gallery): the first stable major for all seven is 6.0.0.\n\n### Trusted publishing\n\nAll seven packages have the trusted publisher: GitHub Actions, organization `OpenPresentation`, repository `opf`, workflow filename\n`npm-publish.yml`, no environment (owner steps O1 in `docs/programs/monorepo/owner-steps.md`). npm checks the entry against\nthe **top-level** workflow of the run, not against a reusable workflow that contains `npm publish`, so `npm-publish.yml` is the\nworkflow that starts on the tag and `release.yml` only pushes the tag. `publish` refuses to publish from any other top-level\nworkflow. A publish fails with `E404` or `E403 ... not a trusted publisher` when an entry is wrong: fix the entry and re-run\nthe workflow on the tag. There is no `NPM_TOKEN`, and no local publish: the provenance gate applies to every release.\n\n### Retry and failure\n\nA failed `npm-publish.yml` run is fixed and run again on the same tag: Actions, **Publish OPF npm packages**, **Run workflow**,\nref `vX.Y.Z`, `dry-run` false (or re-run the failed run). Versions already on npm are skipped, so it continues where it stopped.\nA partial publish is safe: the `^X.Y.Z` floors point at packages that exist, because the order is dependency order. A real\ndefect in a published version is fixed forward with the next patch and a new tag; tags are never moved. If `prepare` or the gate\nfails, nothing was committed: fix the cause and run the release again.\n\n### Fallback: a release pull request\n\nIf no App token is available, or a person prefers review: on a branch run `pnpm release:prepare X.Y.Z`\n(`node scripts/release.mjs prepare X.Y.Z`; it needs `pnpm build` first for the stability gate), open the pull request, merge it\non green, then on `main` run `git tag vX.Y.Z && git push origin vX.Y.Z`. The publish workflow is the same.\n\n### Verify\n\nThe registry serves an accepted upload some time after `npm publish` exits 0: 1 to 7 minutes for v0.26.0-rc.0 and about 20 for core\nin v0.26.9. That lag is waited out in the `verify` job, never failed in `publish` (a lagging package used to fail the publish job\nand skip verify and the GitHub release; a manual `gh run rerun --failed` was the fix). The `verify` job runs, in order:\n\n1. `node scripts/release.mjs await-registry X.Y.Z --wait 60 --poll 15 --max-poll 120`: for each package still missing, requests\n the version's own registry document (`/@scope%2fname/X.Y.Z`) with `Cache-Control: no-cache` and a unique query string, so\n neither the npm CLI cache nor a CDN's cached 404 answers. The first look is immediate; the interval starts at 15 s, grows by\n half each round up to 120 s, and each round logs which packages are still missing and for how long. A served package is not\n asked again. Only when the 60 minute budget is spent does it fail, with the staged-package guidance (see Troubleshooting). A\n lookup that errors (HTTP 5xx) counts as not served yet.\n2. `node scripts/release.mjs verify X.Y.Z --tag <dist-tag> --commit <release commit> --wait 10 --poll 30`, which waits only for the\n attestation bundle and the scratch install (a few more minutes), and then the smoke test against the registry\n (`release.mjs smoke X.Y.Z --registry`).\n\nFor all seven packages `verify` checks the registry manifest,\n`gitHead` and the provenance source commit equal to the release commit, the provenance workflow `npm-publish.yml` on\n`refs/tags/vX.Y.Z`, the subject digest, the dist-tag, that no manifest carries a `workspace:` range and every sibling range is\n`^X.Y.Z`, `npm audit signatures`, and that each package changelog has the version's section. If the budget is spent, re-run the\nfailed jobs (`gh run rerun --failed`): `publish` is not repeated, because it succeeded. By hand:\n\n```sh\nnode scripts/release.mjs verify X.Y.Z --tag latest # exit 0 when all seven verify\nnpm view @openpresentation/opf@X.Y.Z gitHead dist.attestations.url\nnpm view @openpresentation/gallery dist-tags --json # latest is X.Y.Z; 5.0.0 stays published\n```\n\n### Claude Desktop release assets\n\nThe `mcpb` job of `npm-publish.yml` runs `pnpm --filter @openpresentation/mcp run build:mcpb --check` in its own runner (its\nown checkout, install and build) and retains only `opf-X.Y.Z.mcpb` and `opf-X.Y.Z.mcpb.sha256` as the `mcpb` workflow\nartifact. This is the full bundle, including all pinned script fonts. Its `npm install` resolves the bundle's third-party\ndependencies and font packages from the registry without a lockfile, with `--ignore-scripts`, and never in the runner that\npacks the published tarballs; a registry problem or a slow download fails this job only, because `publish` and `verify` do not\nneed it. The zip entries carry a fixed time, so the same files give the same bytes. A rehearsal builds and checks the bundle\ntoo, without creating a release or uploading public assets.\n\nThe order on a real release: `release` creates the GitHub release with its notes first, exactly as it does without a bundle;\nthen the `assets` job downloads the checked artifact and attaches the two files. If `mcpb` or `assets` fails, the packages and\nthe release notes are already live: the publish run shows the red job, `report` opens or updates the `release-assets-missing`\nissue (not `release-failed`), and the Release run reports \"assets missing\" as a warning and still bumps the sites. To recover,\nre-run the failed job of the publish run (Re-run failed jobs, or `gh run rerun <run-id> --failed`); it only attaches the missing\nfiles. Reruns preserve release notes and existing assets. They verify an existing bundle/checksum pair, add a missing checksum\nfrom the already uploaded bundle's bytes, or add a missing bundle only if its bytes match the existing checksum. A mismatch fails\ninstead of replacing a public asset. Retry through the existing trusted workflow; never repair a release with `--clobber`. The\n`mcpb` artifact is kept for 14 days: re-run a failed `assets` job within that time (if `mcpb` itself failed, its re-run builds\na new artifact).\n\n### `scripts/release.mjs`\n\n| Command | Does |\n| --- | --- |\n| `prepare <version> [--dry-run] [--no-stability] [--previous V]` | the prepare step above (`--dry-run` writes nothing) |\n| `pack <version> --commit <sha> --out <dir>` | `pnpm pack` of the seven, `gitHead` stamped, `release-manifest.json` with digests |\n| `smoke <version> (--dir <dir> \\| --registry)` | install the seven together, render, resolve, run the CLI |\n| `check-publish <version> [--tag t]` | the pre-publish gate |\n| `publish <version> --dir <dir> [--tag t] [--dry-run] [--wait minutes] [--poll seconds] [--expect-staged]` | the gate, then `npm publish` in dependency order: npm's output is printed; after all seven uploads each package gets one registry look (`--wait`, default 0, polls longer) and one not served yet is logged **pending**, never a failure; a staged result fails unless `--expect-staged` |\n| `await-registry <version> [--wait minutes] [--poll seconds] [--max-poll seconds]` | waits (default 60 min, backoff 15 s to 120 s, cache-busting) until the registry serves all seven; fails only when the budget is spent |\n| `verify <version> [--tag t] [--commit sha] [--wait minutes]` | the registry and provenance check (a prerelease has no changelog section to check) |\n| `notes <version> [--out file]` | the GitHub release body |\n| `order` | the publish order |\n\n### After a release: the sites\n\nAfter a **stable** release, `release.yml` calls `.github/workflows/bump-sites.yml` (a prerelease never does). For each of the\nthree sites (`Data-Advantage/openpresentation-site` and `Data-Advantage/pptx-gallery` on `main`, `Data-Advantage/pptx-dev` on\n`master`) it opens one pull request, \"bump to vX.Y.Z\", from the branch `bot/opf-vX.Y.Z`. What a bump touches is the site's own\nbusiness, so each site owns one script, `pnpm opf:bump <X.Y.Z> [--opf <checkout>]` (`scripts/opf-bump.mjs` of the site), that sets its\n`@openpresentation/*` pins, refreshes its lockfile, regenerates every file it derives from the release (a release history from the\nregistry and these release notes, a pin mirror, preview fonts, chart previews, the vendored editor bundle, a homepage manifest) and runs\nthe checks of its own CI that read them; `scripts/bump-site.mjs` decides the label and calls it (a site without one gets only the\ngeneric pins and lockfile). A bump needs no human edit to be green; one that does (a release that changes behavior or removes a\ndocument the site links) fails the site's CI and stays open. A patch bump is labeled\n`auto-merge`; a minor or major bump (a breaking change in 0.x) is labeled `needs-review` and stays open. The workflow only opens\nand labels the pull request and never merges it: the site's own CI merges an `auto-merge` pull request after its\n`build-and-smoke` job passes, using the GitHub App's token so that the merge starts the site's deploy workflows (D19; the sites\nare private repositories in a Free-plan organization and have no rulesets or required checks). A bump that cannot be made opens\nan issue in this repository (`bump-sites-failed`) and never fails the release. To run it again, or for a release made by the pull-request\nfallback or from a tag, use Actions, **Bump sites**, **Run workflow** with the version. The App, its secrets and the site-side\nworkflows are owner steps O4 and O8 (`docs/programs/monorepo/owner-steps.md`); the workflow files for the sites are in\n`docs/programs/monorepo/site-workflows/`.\n\n### Who may release\n\nThe owner authorized agents to prepare and publish npm releases on 2026-09-29 (`AGENTS.md`). A release is made only through\n`release.yml` (or the pull-request fallback) and `npm-publish.yml`, only when one is required and only with every gate green,\nthe Keynote gate of [native-testing.md](native-testing.md) included;\nagents never publish from a laptop, never skip the gate and never pass a different `--tag` to make a check pass. Dry runs are\nfree at any time.\n\n## Geometry-moving core releases\n\nCore composition changes that move geometry make the preview and the PPTX export drift when the renderer and the exporter resolve\ndifferent core versions. This cannot happen between the packages of this repository: all seven are released at one version, and\ntheir runtime dependencies and peers on each other are `workspace:^`, published as `^X.Y.Z`, so the floor of every sibling is the\nrelease itself. Do not hand-edit those ranges, and do not release one package alone.\n\n## Renderer font-count gate (RR-90)\n\nThe installed-consumer check (`scripts/test-packed-ecosystem.mjs`) and `test:gallery-lazy-fonts` compare the number of vendored faces a renderer lists as lazy fonts with `scripts/lazy-font-counts.mjs`. A renderer release whose fonts did not change needs no new entry. The gate hashes the renderer package's font set, which is 143 files: `dist/font-manifest.js` and every file under `fonts/` (faces, licenses, `PROVENANCE.json`, `NOTICE.md`). An unlisted version, stable or a prerelease (`X.Y.Z-rc.N`), passes when that hash is in `REVIEWED_FONT_SETS` and its measured count equals the count recorded there.\n\nIt fails closed, with a message that says what changed, when:\n\n- the font files differ from every reviewed set (the message prints the new hashes): review what changed, then add the set to `REVIEWED_FONT_SETS` and the version's count to `LAZY_FONT_COUNTS`;\n- the font files are a reviewed set but the count differs: find out why the count moved, then add an entry;\n\nA prerelease is held to the same rule as the stable version: its label neither admits nor refuses it, its font files and count do.\n\nTo review a set, pack the release (`npm pack @openpresentation/opf-render@<version>`), run `hashFontSet` from `scripts/lazy-font-counts.mjs` over the unpacked `package/` folder, and record the result with the versions you checked. Every existing `LAZY_FONT_COUNTS` entry stays and keeps its own rule.\n\n## Troubleshooting\n\n- **The tag or version check fails** (`npm-publish.yml`, job `plan`): the tag does not point at a commit of `main`, or the version\n is not well formed. Inspect the exact tag. Never move or re-push a release tag; fix a real error on `main` and release the\n next version. A transient failure is retried on the same unchanged tag.\n- **`E404`, `E403` or `ENEEDAUTH` from `npm publish`**: the trusted publisher of that package is missing or wrong. It must be\n organization `OpenPresentation`, repository `opf`, workflow filename `npm-publish.yml`, no environment, and the `publish` job\n needs `id-token: write`. Fix the entry in npm (owner step O1) and re-run the workflow on the tag.\n- **`verify` fails at \"Wait for the registry\" with \"npm accepted X (exit 0) but the registry still does not serve it after 60\n min\"**, or `publish` fails with \"npm staged X\": npm returned success (or staged the upload) but the version is not installable.\n Ordinary registry lag never gets here: it is logged as pending in `publish` and waited out in `verify`. Open the package on\n npmjs.com, Staged Packages tab, or run `npm stage list <name>` as a maintainer: a staged version must be approved with 2FA\n (`npm stage approve <stage-id>`; trusted-publishing OIDC tokens cannot approve). Otherwise check npm's status page and, once\n the version is served, re-run the failed jobs of the run (`gh run rerun --failed`); the packages already served are skipped.\n- **A version is already on npm**: `publish` skips it; do not try to publish it again. Verify the package and continue.\n- **The gate is red**: the failing leg of `nightly.yml` is in the Release run. Fix it on `main` and release again; nothing was\n committed. A flaky leg is quarantined (`pnpm check:quarantine`), never skipped for a release.\n- **`release.yml` stopped with \"main moved\"**: a commit landed on `main` after the run started, and the gate had tested the\n earlier one. Run the release again.\n- **A nightly failure**: the `nightly-red` issue lists the failing legs and the run; it never blocks a pull request, and the\n release gate refuses to publish on the same failure.\n"
346
346
  },
347
347
  {
348
348
  "slug": "rich-text",
package/dist/format.js CHANGED
@@ -1,3 +1,3 @@
1
- export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-6WN6PRCI.js';
2
- import './chunk-KANQVJGK.js';
1
+ export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-DMV3G65U.js';
2
+ import './chunk-Q2L5ERNK.js';
3
3
  import './chunk-PRXZD2II.js';
package/dist/ids.js CHANGED
@@ -1,7 +1,7 @@
1
- export { OPFIdError, assignIds, touches } from './chunk-3A3PNYNP.js';
2
- export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-C5ACMFKB.js';
1
+ export { OPFIdError, assignIds, touches } from './chunk-63Y75CCK.js';
2
+ export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-DDD4WUEH.js';
3
3
  import './chunk-JBARNYFR.js';
4
- import './chunk-KANQVJGK.js';
4
+ import './chunk-Q2L5ERNK.js';
5
5
  import './chunk-QFT4R2IL.js';
6
6
  import './chunk-BLCDUM7B.js';
7
7
  import './chunk-PRXZD2II.js';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { SchemaEntry, SchemaName, audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './schemas.js';
2
- import { a4 as ConvertInput, a5 as ConvertOptions, a6 as ConvertResult, a7 as ConvertFormat, a8 as OpenOptions, a9 as SaveOptions, aa as SaveResult } from './conversion-DF_HgknQ.js';
3
- export { ab as ConvertedFile, i as ExportFormat, F as FontsHandle, O as OPFApiError, o as OPFExportError, p as OPFImportError, S as SlideSelection, W as parseSlideSelection } from './conversion-DF_HgknQ.js';
2
+ import { a4 as ConvertInput, a5 as ConvertOptions, a6 as ConvertResult, a7 as ConvertFormat, a8 as OpenOptions, a9 as SaveOptions, aa as SaveResult } from './conversion-DBkC9Y2e.js';
3
+ export { ab as ConvertedFile, i as ExportFormat, F as FontsHandle, O as OPFApiError, o as OPFExportError, p as OPFImportError, S as SlideSelection, W as parseSlideSelection } from './conversion-DBkC9Y2e.js';
4
4
  export { R as RuleExplanation, e as explain } from './explain-iZeNOUc6.js';
5
5
  import { createValidator as createValidator$1, validate as validate$1 } from './validator.js';
6
6
  export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, ValidationCacheInfo, Validator, assertValid, assertValidCatalogRecord, findValidationRule, validateCatalogRecord, validationRules } from './validator.js';
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { defaultCatalogs } from './chunk-XJUMFH33.js';
2
- import { stats, embed, fix, edit, OPFApiError, asApiError } from './chunk-HS2JQ3AO.js';
3
- export { DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, embedArrowPoints, embedCardLayout, fill, fillRecords, isSafePatch, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-HS2JQ3AO.js';
2
+ import { stats, embed, fix, edit, OPFApiError, asApiError } from './chunk-BPILTZUJ.js';
3
+ export { DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, embedArrowPoints, embedCardLayout, fill, fillRecords, isSafePatch, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-BPILTZUJ.js';
4
4
  export { specFileEntries, specFileKinds, specFilePaths } from './chunk-W4DYDRV2.js';
5
5
  export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-QQBOI5XI.js';
6
6
  export { OPFDataImportError, declareColumns, inferColumnDeclaration, ingest, parseTabularData, storeCell, updateMetricLiterals } from './chunk-ORVMHVOS.js';
7
- import { paginate, continueOverfull } from './chunk-YZ4WMB5C.js';
8
- export { OPFPaginationError, blockUnits, continuationPages, paginateSlide } from './chunk-YZ4WMB5C.js';
9
- export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-TIVBO56G.js';
10
- export { fromMarkdown, toMarkdown } from './chunk-CYGQY6HH.js';
11
- import './chunk-4FA4ZABY.js';
12
- export { OPFFormatError, format } from './chunk-6WN6PRCI.js';
7
+ import { paginate, continueOverfull } from './chunk-PDBZN7EJ.js';
8
+ export { OPFPaginationError, blockUnits, continuationPages, paginateSlide } from './chunk-PDBZN7EJ.js';
9
+ export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-XY332BQP.js';
10
+ export { fromMarkdown, toMarkdown } from './chunk-ITGR2RW2.js';
11
+ import './chunk-HOK3DZA6.js';
12
+ export { OPFFormatError, format } from './chunk-DMV3G65U.js';
13
13
  import './chunk-RYZPBJLB.js';
14
- export { explain } from './chunk-44IS6ZU2.js';
15
- import './chunk-BHRCWV6B.js';
16
- import './chunk-56BYOGIF.js';
17
- export { OPFMarkdownError } from './chunk-VD7WLE3C.js';
18
- import './chunk-XJU2X5JM.js';
19
- export { OPFIdError, assignIds, touches } from './chunk-3A3PNYNP.js';
20
- export { diff, merge } from './chunk-JTNCBTEH.js';
21
- import { validate, createValidator, OPFValidationError } from './chunk-C5ACMFKB.js';
22
- export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, collectSlideLinks, credentialInSrc, documentHash, findValidationRule, idToken, isIdToken, parseInstant, renameRecordKeys, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, slideLink, slideLinkId, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-C5ACMFKB.js';
14
+ export { explain } from './chunk-SIF5JDZC.js';
15
+ import './chunk-HBO64RWP.js';
16
+ import './chunk-MNJ4JV7I.js';
17
+ export { OPFMarkdownError } from './chunk-ZB427MLO.js';
18
+ import './chunk-EHYAVRL3.js';
19
+ export { OPFIdError, assignIds, touches } from './chunk-63Y75CCK.js';
20
+ export { diff, merge } from './chunk-434E2RWO.js';
21
+ import { validate, createValidator, OPFValidationError } from './chunk-DDD4WUEH.js';
22
+ export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, collectSlideLinks, credentialInSrc, documentHash, findValidationRule, idToken, isIdToken, parseInstant, renameRecordKeys, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, slideLink, slideLinkId, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-DDD4WUEH.js';
23
23
  import './chunk-JBARNYFR.js';
24
- export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-KANQVJGK.js';
24
+ export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-Q2L5ERNK.js';
25
25
  export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, EMBED_DEFAULT_ASPECT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SCHEME_COLOR_NAMES, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, asciiDigits, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, cellMatchesType, chartDrawDiagnostics, chartDrawPlan, chartNumber, coerceVariableValue, dataProvenance, dataSourcesOf, datasetColumnDeclaration, datasetDiagnostics, dateNamesOf, diagramsPending, embedAspect, embedIcons, embedSite, embedTitle, embedValue, ensureDiagrams, ensureIcons, ensureShapes, formatDataNumber, formatNumber, formatPercentNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, iconsPending, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isPlaceLabel, isSupportedNumberingSystem, isTemplate, isXYChartType, languageInEffect, listBuiltinVariables, listVariables, localizeDigits, longDatePattern, markLabelColor, mixOklab, nearIconNames, normalizeScriptGroup, numberFormatError, numberLocale, numberingSystemExtension, numberingSystemOf, numeralScripts, oklabToSrgb, parseIconReference, parseReference, pickTranslation, pinTableColorScale, plainLanguageTag, resolveChartData, resolveDataSource, resolveDesignRecords, resolveFontScheme, resolveIcon, resolveMetric, resolveReference, resolveSlideVariables, resolveTableColorScale, resolveTableData, resolveVariables, rowCells, rowId, shapesPending, srgbToOklab, suggestCellTypeFix, suggestChartNumberFix, supportedNumberingSystems, tableCellDisplayValue, tableColorScaleDiagnostics, tableColorScaleOf, tableColorScaleText, tableRows, toExcelNumberFormat, translationAt, translationLanguageAt, unresolvedReference, unusedDatasets, variableDeclarations, visibleLength } from './chunk-QFT4R2IL.js';
26
26
  import './chunk-BLCDUM7B.js';
27
27
  import './chunk-PRXZD2II.js';
@@ -49,7 +49,7 @@ var continueOverfull2 = (input, options) => continueOverfull(input, withDefaultC
49
49
  var embed2 = (document, options) => embed(document, withDefaultCatalog(options));
50
50
  var fix2 = (document, options) => fix(document, withDefaultCatalog(options));
51
51
  var edit2 = (deck, patch, options) => edit(deck, patch, withDefaultCatalog(options));
52
- var engine = () => import('./conversion-XIWN7FMW.js');
52
+ var engine = () => import('./conversion-P56LOOE2.js');
53
53
  var rethrow = (error, fallback) => {
54
54
  if (error instanceof OPFValidationError) throw error;
55
55
  throw asApiError(OPFApiError, error, fallback);
package/dist/markdown.js CHANGED
@@ -1,12 +1,12 @@
1
- export { fromMarkdown, toMarkdown } from './chunk-CYGQY6HH.js';
1
+ export { fromMarkdown, toMarkdown } from './chunk-ITGR2RW2.js';
2
2
  import './chunk-RYZPBJLB.js';
3
- import './chunk-BHRCWV6B.js';
4
- import './chunk-56BYOGIF.js';
5
- export { OPFMarkdownError } from './chunk-VD7WLE3C.js';
6
- import './chunk-XJU2X5JM.js';
7
- import './chunk-C5ACMFKB.js';
3
+ import './chunk-HBO64RWP.js';
4
+ import './chunk-MNJ4JV7I.js';
5
+ export { OPFMarkdownError } from './chunk-ZB427MLO.js';
6
+ import './chunk-EHYAVRL3.js';
7
+ import './chunk-DDD4WUEH.js';
8
8
  import './chunk-JBARNYFR.js';
9
- import './chunk-KANQVJGK.js';
9
+ import './chunk-Q2L5ERNK.js';
10
10
  import './chunk-QFT4R2IL.js';
11
11
  import './chunk-BLCDUM7B.js';
12
12
  import './chunk-PRXZD2II.js';
@@ -1,6 +1,6 @@
1
1
  export { b as DeckReport, c as DeckReportOptions, r as readDeckReport } from './deck-report-BwgsIRAf.js';
2
- import { F as FontsHandle, E as EmbeddedFace, R as Renderer, a as Reporter, P as Peer, b as PptxModule, O as OPFApiError } from './conversion-DF_HgknQ.js';
3
- export { C as ConversionPlan, D as Diagnostic, c as EXPORT_FORMATS, d as EXPORT_TEXT, e as ExportContext, f as ExportContinuedSlide, g as ExportFile, h as ExportFontSummary, i as ExportFormat, j as ExportOptions, k as ExportResult, l as ExportRun, m as ExportText, I as ImportOptions, n as ImportResult, o as OPFExportError, p as OPFImportError, q as PEER_RANGES, r as PPTX_PACKAGE, s as PreparedExport, t as RENDER_EXTRAS, u as RENDER_PACKAGE, v as ReportFinding, w as ResolvedExportOptions, S as SlideSelection, x as Source, V as VERSIONS, y as asApiError, z as assetRoot, A as checkDate, B as checkOptions, G as checkRenamedOptions, H as checkScale, J as deckFileFormat, K as exportFormatOf, L as finishReport, M as importPresentation, N as loadPptx, Q as loadRenderer, T as locatePackage, U as missingPeerFrom, W as parseSlideSelection, X as planConversion, Y as prepareExport, Z as reaches, _ as readInput, $ as reportThrown, a0 as resolveExportOptions, a1 as runExport, a2 as runPreparedExport, a3 as writePlanned } from './conversion-DF_HgknQ.js';
2
+ import { F as FontsHandle, E as EmbeddedFace, R as Renderer, a as Reporter, P as Peer, b as PptxModule, O as OPFApiError } from './conversion-DBkC9Y2e.js';
3
+ export { C as ConversionPlan, D as Diagnostic, c as EXPORT_FORMATS, d as EXPORT_TEXT, e as ExportContext, f as ExportContinuedSlide, g as ExportFile, h as ExportFontSummary, i as ExportFormat, j as ExportOptions, k as ExportResult, l as ExportRun, m as ExportText, I as ImportOptions, n as ImportResult, o as OPFExportError, p as OPFImportError, q as PEER_RANGES, r as PPTX_PACKAGE, s as PreparedExport, t as RENDER_EXTRAS, u as RENDER_PACKAGE, v as ReportFinding, w as ResolvedExportOptions, S as SlideSelection, x as Source, V as VERSIONS, y as asApiError, z as assetRoot, A as checkDate, B as checkOptions, G as checkRenamedOptions, H as checkScale, J as deckFileFormat, K as exportFormatOf, L as finishReport, M as importPresentation, N as loadPptx, Q as loadRenderer, T as locatePackage, U as missingPeerFrom, W as parseSlideSelection, X as planConversion, Y as prepareExport, Z as reaches, _ as readInput, $ as reportThrown, a0 as resolveExportOptions, a1 as runExport, a2 as runPreparedExport, a3 as writePlanned } from './conversion-DBkC9Y2e.js';
4
4
  import { Catalog } from './composition.js';
5
5
  import { Fonts } from './composition.js';
6
6
  import { PresentationPaginationResult } from './index.js';
@@ -1,28 +1,28 @@
1
- import { loadRenderer, listFontDirectories, leaseSharedFonts, prepareFonts, missingPeerFrom } from './chunk-EOMENOKY.js';
2
- export { EXPORT_FORMATS, EXPORT_TEXT, PEER_RANGES, PPTX_PACKAGE, RENDER_EXTRAS, RENDER_PACKAGE, Reporter, VERSIONS, assetRoot, checkDate, checkDestinations, checkOptions, checkOutputPattern, checkRenamedOptions, checkScale, createZip, deckFileFormat, deckStem, embeddedFor, exportFormatOf, finishReport, iconSourceReader, importPresentation, leaseSharedFonts, listFontDirectories, loadPptx, loadRenderer, localAssetProblems, locatePackage, missingPeerFrom, padNumber, planConversion, pointerOf, prepareExport, prepareFonts, publishNew, reaches, readInput, reportSubstitutions, reportThrown, resolveExportOptions, runExport, runImport, runPreparedExport, stemOf, writeFiles, writePlanned } from './chunk-EOMENOKY.js';
1
+ import { loadRenderer, listFontDirectories, leaseSharedFonts, prepareFonts, missingPeerFrom } from './chunk-KB7TPZQI.js';
2
+ export { EXPORT_FORMATS, EXPORT_TEXT, PEER_RANGES, PPTX_PACKAGE, RENDER_EXTRAS, RENDER_PACKAGE, Reporter, VERSIONS, assetRoot, checkDate, checkDestinations, checkOptions, checkOutputPattern, checkRenamedOptions, checkScale, createZip, deckFileFormat, deckStem, embeddedFor, exportFormatOf, finishReport, iconSourceReader, importPresentation, leaseSharedFonts, listFontDirectories, loadPptx, loadRenderer, localAssetProblems, locatePackage, missingPeerFrom, padNumber, planConversion, pointerOf, prepareExport, prepareFonts, publishNew, reaches, readInput, reportSubstitutions, reportThrown, resolveExportOptions, runExport, runImport, runPreparedExport, stemOf, writeFiles, writePlanned } from './chunk-KB7TPZQI.js';
3
3
  import { defaultCatalogs } from './chunk-XJUMFH33.js';
4
4
  export { defaultCatalogs } from './chunk-XJUMFH33.js';
5
- import { OPFApiError } from './chunk-HS2JQ3AO.js';
6
- export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-HS2JQ3AO.js';
5
+ import { OPFApiError } from './chunk-BPILTZUJ.js';
6
+ export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-BPILTZUJ.js';
7
7
  import './chunk-W4DYDRV2.js';
8
8
  import './chunk-QQBOI5XI.js';
9
9
  import './chunk-ORVMHVOS.js';
10
- import { paginate } from './chunk-YZ4WMB5C.js';
11
- export { readDeckReport } from './chunk-TIVBO56G.js';
12
- import './chunk-CYGQY6HH.js';
13
- import './chunk-4FA4ZABY.js';
14
- import './chunk-6WN6PRCI.js';
10
+ import { paginate } from './chunk-PDBZN7EJ.js';
11
+ export { readDeckReport } from './chunk-XY332BQP.js';
12
+ import './chunk-ITGR2RW2.js';
13
+ import './chunk-HOK3DZA6.js';
14
+ import './chunk-DMV3G65U.js';
15
15
  import './chunk-RYZPBJLB.js';
16
- import './chunk-44IS6ZU2.js';
17
- import './chunk-BHRCWV6B.js';
18
- import './chunk-56BYOGIF.js';
19
- import './chunk-VD7WLE3C.js';
20
- import './chunk-XJU2X5JM.js';
21
- import './chunk-3A3PNYNP.js';
22
- import './chunk-JTNCBTEH.js';
23
- import './chunk-C5ACMFKB.js';
16
+ import './chunk-SIF5JDZC.js';
17
+ import './chunk-HBO64RWP.js';
18
+ import './chunk-MNJ4JV7I.js';
19
+ import './chunk-ZB427MLO.js';
20
+ import './chunk-EHYAVRL3.js';
21
+ import './chunk-63Y75CCK.js';
22
+ import './chunk-434E2RWO.js';
23
+ import './chunk-DDD4WUEH.js';
24
24
  import './chunk-JBARNYFR.js';
25
- import './chunk-KANQVJGK.js';
25
+ import './chunk-Q2L5ERNK.js';
26
26
  import './chunk-QFT4R2IL.js';
27
27
  import './chunk-BLCDUM7B.js';
28
28
  import './chunk-PRXZD2II.js';
@@ -1,7 +1,7 @@
1
- export { OPFPaginationError, blockUnits, continuationPages, continueOverfull, paginate, paginateSlide } from './chunk-YZ4WMB5C.js';
2
- import './chunk-C5ACMFKB.js';
1
+ export { OPFPaginationError, blockUnits, continuationPages, continueOverfull, paginate, paginateSlide } from './chunk-PDBZN7EJ.js';
2
+ import './chunk-DDD4WUEH.js';
3
3
  import './chunk-JBARNYFR.js';
4
- import './chunk-KANQVJGK.js';
4
+ import './chunk-Q2L5ERNK.js';
5
5
  import './chunk-QFT4R2IL.js';
6
6
  import './chunk-BLCDUM7B.js';
7
7
  import './chunk-PRXZD2II.js';
package/dist/patch.js CHANGED
@@ -1,6 +1,6 @@
1
- export { OPFPatchError, OPFPatchHashError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, documentHash, escapePointerToken, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, resolveIdPatch, resolveIdPointer, splitPointer, toIdPatch, toIdPointer, unescapePointerToken, walkPatch } from './chunk-C5ACMFKB.js';
1
+ export { OPFPatchError, OPFPatchHashError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, documentHash, escapePointerToken, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, resolveIdPatch, resolveIdPointer, splitPointer, toIdPatch, toIdPointer, unescapePointerToken, walkPatch } from './chunk-DDD4WUEH.js';
2
2
  import './chunk-JBARNYFR.js';
3
- import './chunk-KANQVJGK.js';
3
+ import './chunk-Q2L5ERNK.js';
4
4
  import './chunk-QFT4R2IL.js';
5
5
  import './chunk-BLCDUM7B.js';
6
6
  import './chunk-PRXZD2II.js';