@openpresentation/cli 0.8.0 → 0.9.0

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @openpresentation/cli
2
2
 
3
- A local CLI for agents and people working with `.opf.json` presentations. Create documents, validate them, apply precise edits, paginate content, and inspect the bundled schemas and catalogs. Node 24 on macOS, Linux, or Windows is required.
3
+ A local CLI for agents and people working with `.opf.json` presentations. Create documents, validate them, apply precise edits, paginate content, bundle catalog references for offline use, and inspect the bundled schemas and catalogs. Node 24 on macOS, Linux, or Windows is required.
4
4
 
5
5
  The CLI bundles its OPF schema, catalogs, and validator. It needs no separate core package, API key, or network connection at runtime. `opf --version` reports the CLI and bundled core versions. It does not render slides; successful validation is not visual verification.
6
6
 
@@ -13,9 +13,9 @@ npm install -g @openpresentation/cli
13
13
  opf --version
14
14
  ```
15
15
 
16
- Or install it as a development dependency and use `npx --no-install opf`. CLI 0.8.0 bundles OPF 0.10.0, including complete code and quote composition, source-preserving pagination and readability floors, styled/merged table cells, and the six OPF agent skills. Browser rendering and editable PowerPoint export require the coordinated library releases; the current rollout is tracked in `docs/plans/shared-code-release.md` in the repository.
16
+ Or install it as a development dependency and use `npx --no-install opf`. CLI 0.9.0 bundles OPF 0.11.0, including the reference layer (`variables`, ColorRef, payload ids, `opf bundle`), complete code and quote composition, source-preserving pagination and readability floors, styled/merged table cells, shared headers/footers, `opf lint`, and the six OPF agent skills. Browser rendering and editable PowerPoint export require the coordinated library releases documented in [the compatibility matrix](../../docs/compatibility-matrix.md).
17
17
 
18
- To verify the standalone package from source, run `pnpm install` and `pnpm test:cli:packed`. This creates `artifacts/cli/openpresentation-cli-0.8.0.tgz`, which can be installed using its absolute path. For source development, run `pnpm --filter @openpresentation/cli build` and `node packages/cli/dist/index.js --help`.
18
+ To verify the standalone package from source, run `pnpm install` and `pnpm test:cli:packed`. This creates `artifacts/cli/openpresentation-cli-0.9.0.tgz`, which can be installed using its absolute path. For source development, run `pnpm --filter @openpresentation/cli build` and `node packages/cli/dist/index.js --help`.
19
19
 
20
20
  ## Install agent skills
21
21
 
@@ -111,6 +111,12 @@ opf paginate decision.opf.json paginated.opf.json
111
111
 
112
112
  Pagination emits ordinary OPF slides and a page mapping. Preview the result with the renderer to assess wrapping and visual fidelity.
113
113
 
114
+ ```sh
115
+ opf bundle decision.opf.json bundled.opf.json
116
+ ```
117
+
118
+ Bundle inlines every bundled catalog record the document references — including transitive references such as a theme's color and font schemes — into `catalogs.<kind>.records`, so the file resolves every catalog reference offline. Kinds that declare a custom `source` are left untouched, and the report lists added, already-inline, and unresolved ids. Remote media and data assets (`https:` images, chart `data.src` URLs) are not inlined. Bundling twice is a no-op.
119
+
114
120
  ## Agent output contract
115
121
 
116
122
  - Reports and errors are JSON; only help text is plain text.
@@ -125,6 +131,6 @@ Pagination emits ordinary OPF slides and a page mapping. Preview the result with
125
131
 
126
132
  `pnpm test:cli` runs command-level regression checks. `pnpm test:cli:packed` builds and packs the CLI, installs the tarball offline into an isolated global prefix, exercises the actual executable, and reruns the same checks against the installation. It does not change your global installation. Package builds bundle their current core dependency; rebuild after schema/catalog changes.
127
133
 
128
- ## OPF lint (unreleased)
134
+ ## OPF lint
129
135
 
130
- CLI 0.8.0 adds `opf lint <file|-> [--config <local-json-file>] [--strict]`. It reports source ranges, schema constraints, local catalog alternatives, asset registry errors and explicit design contracts without modifying the document or fetching resources. JSON reports include source/configuration hashes and distinguish structural checks from unperformed layout/font/native checks. Earlier CLI versions do not include this command. See [the lint guide](../../docs/lint.md).
136
+ CLI 0.8.0 added `opf lint <file|-> [--config <local-json-file>] [--strict]`; CLI **0.9.0** still includes it and bundles core 0.11.0. It reports source ranges, schema constraints, local catalog alternatives, asset registry errors and explicit design contracts without modifying the document or fetching resources. JSON reports include source/configuration hashes and distinguish structural checks from unperformed layout/font/native checks. Earlier CLI versions than 0.8.0 do not include this command. See [the lint guide](../../docs/lint.md).