fix(verify): --help says the pack refreshes a package's libraries only with --trusted

Merged
AL
1d ago
+3-3

Summary

Closes #352. The --libraries help in h5p-verify said a library the package carries plays at the pack's newer version whenever the pack is used. The player does that only for a package played trusted, and the verifier plays untrusted by default.

Changes

  • packages/verify/bin/h5p-verify.mjs: "With --trusted and the pack, a library the package carries plays at the pack's newer version", as packages/verify/README.md, docs/verify.md and the h5p-verify skill already say it.

Checked

  • The condition against the code: refresh: offer.refresh === true && !reader.untrusted in packages/player/src/sw/mount.ts.
  • h5p-verify --help prints the new text, inside the usage's columns.
  • pnpm docs:check and pnpm lint pass.

Not checked

  • No test reads the help text, so none was run for it.

Release

The help text ships with the next release of @missing-elements/h5p-verify.

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the h5p-verify --libraries help text so it no longer claims the pack's newer library version always plays.

This only happens with --trusted, and the verifier runs untrusted by default. The help text now matches what packages/verify/README.md, docs/verify.md, and the h5p-verify skill already say.