reference
CLI command packs
Portable metadata and consumer discovery controls for ContractSpec CLI command packs.
CLI command packs
Published command packs expose contractspec.commandPack metadata containing a module entry and a CliCommandPackSpec. The CLI discovers only direct consumer dependencies with that metadata.
Consumers can constrain discovery with .contractsrc.json:
json
{
"commandPacks": {
"include": ["@lssm-tech/integration.cli-contractspec-ai"],
"exclude": ["@lssm-tech/integration.cli-contractspec-examples"]
}
}Exclusion wins when a package appears in both lists. Runtime registration and conflict handling are owned by @lssm-tech/lib.cli-runtime.