Repository navigation
Release v3.133.0
You can now check an extension package before it is published or loaded with cratis extension verify.
Added
cratis extension verify [TARGET]checks a package folder, or a package a registry serves (a catalog short name, an OCI reference or an npm package), and reports every check with a status and exact diagnostics. See https://github.com/Cratis/cli/blob/main/Documentation/reference/extension-verify.md. (part of #576)- Checks: the contract compiles with no errors or warnings; the manifest has a display name, a description, an icon and stated requirements, and the icon and marketplace images exist, are
png,jpg,webporsvgby their content and are within the size limits; the package ships what the contract declares and nothing else (a folder lists what its build does not ship in.extensionignore); every placeholder is static HTML; the package digest and contract hash matchscreenplay.lock; and the contract is usable by the Screenplay compiler, with--baseline <FOLDER>to require a drop-in replacement for the previous release. - A check that applies but could not run is reported as skipped, never as passed. The frontend (Scene conformance kit) and backend (protocol handshake) checks are skipped for now;
--strictfails them, and warnings, too. - Human-readable output by default and
--format jsonon request. Exit code0when the package is correct,5when a check failed,1when the target or reference is not found,2when a registry is unreachable and4when its credentials are refused. - A package that
cratis extension newcreates from templates that follow the documented template interface passescratis extension verify.