@openpresentation/cli 0.29.1 → 0.31.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/dist/index.js CHANGED
@@ -571,21 +571,19 @@ async function runCatalog(args, _host) {
571
571
  print({ id, ...records[id] });
572
572
  }
573
573
 
574
- // src/catalogs.ts
575
- import { CATALOG_SCHEMA as GALLERY_CATALOG_SCHEMA, gallery as gallery2 } from "@openpresentation/gallery";
576
- import { galleryMismatch } from "@openpresentation/opf/internal/engine";
577
- var GALLERY_MISMATCH = galleryMismatch(GALLERY_CATALOG_SCHEMA);
578
- function cliCatalogs(extra = []) {
579
- return extra.some((catalog) => catalog.source === gallery2.source) ? [...extra] : [...extra, gallery2];
580
- }
581
- var CLI_CATALOGS = cliCatalogs();
582
-
583
574
  // src/convert-command.ts
584
575
  import path4 from "path";
585
576
  import { fromYaml } from "@openpresentation/opf/yaml";
586
577
  import { OPFApiError, exportFormatOf, importPresentation, loadPptx, planConversion, writePlanned } from "@openpresentation/opf/internal/engine";
587
578
  import { fromMarkdown, toMarkdown } from "@openpresentation/opf/markdown";
588
579
 
580
+ // src/catalogs.ts
581
+ import { gallery as gallery2 } from "@openpresentation/gallery";
582
+ function cliCatalogs(extra = []) {
583
+ return extra.some((catalog) => catalog.source === gallery2.source) ? [...extra] : [...extra, gallery2];
584
+ }
585
+ var CLI_CATALOGS = cliCatalogs();
586
+
589
587
  // src/check.ts
590
588
  var FAIL_ON_LEVELS = ["error", "warning", "info"];
591
589
  var WRITE_CHECK = { only: ["format", "references"], catalogs: CLI_CATALOGS };
@@ -2464,7 +2462,7 @@ async function run12(args, host2) {
2464
2462
  }
2465
2463
 
2466
2464
  // src/index.ts
2467
- var host = { cliVersion: "0.29.1", opfVersion: OPF_VERSION };
2465
+ var host = { cliVersion: "0.31.0", opfVersion: OPF_VERSION };
2468
2466
  var skillsSpec = {
2469
2467
  name: "skills",
2470
2468
  usage: ["opf skills <install|update|status> [--agent <universal|codex|claude-code|cursor>] [--global | --directory <skills-directory>]"],
@@ -2484,7 +2482,7 @@ async function runSkills(args) {
2484
2482
  const parsed = parseArgs(skillsSpec, args);
2485
2483
  if (parsed === "help") return printHelp(skillsSpec);
2486
2484
  const { positional, options } = parsed;
2487
- const result = await manageSkills(positional[0], define_OPF_SKILLS_default, "0.29.1", { agent: options.agent, global: options.global === true, directory: options.directory });
2485
+ const result = await manageSkills(positional[0], define_OPF_SKILLS_default, "0.31.0", { agent: options.agent, global: options.global === true, directory: options.directory });
2488
2486
  printReport(envelope("skills", { action: positional[0], ...result }));
2489
2487
  }
2490
2488
  var COMMANDS = [
@@ -2564,7 +2562,7 @@ async function main(argv) {
2564
2562
  }
2565
2563
  if (first === "--version" || first === "-v") {
2566
2564
  if (rest.length) throw usage("--version takes no arguments.");
2567
- process.stdout.write(json({ cli: "0.29.1", opf: OPF_VERSION, schema: schemaEntries2.find((entry2) => entry2.name === "presentation")?.schema.$id }));
2565
+ process.stdout.write(json({ cli: "0.31.0", opf: OPF_VERSION, schema: schemaEntries2.find((entry2) => entry2.name === "presentation")?.schema.$id }));
2568
2566
  return void 0;
2569
2567
  }
2570
2568
  if (first === "help") {
@@ -2581,7 +2579,6 @@ async function main(argv) {
2581
2579
  const guess = nearest(first, [...byName.keys()]);
2582
2580
  throw usage(`Unknown command: ${first}.${guess ? ` Did you mean opf ${guess}?` : ""} Run opf --help.`, "unknown-command", guess ? { suggestion: guess } : {});
2583
2581
  }
2584
- if (GALLERY_MISMATCH && first !== "skills" && !rest.includes("--help") && !rest.includes("-h")) throw new CliError(GALLERY_MISMATCH, "gallery-schema-mismatch", 2);
2585
2582
  await entry.runner(rest, host);
2586
2583
  return first;
2587
2584
  }