1#!/usr/bin/env node2'use strict';34// CMS-fallback plumbing for plugin capabilities, as one deterministic command:5//6// node scripts/cms-fallback.js digest --project-dir <dir>7// Current resolution-input digest and which artifact (if any) is stale.8// node scripts/cms-fallback.js stamp-plan --project-dir <dir> --plan mapping|setup9// Copy inputs.cmsFallbackDigest into mapping/mapping-plan.json (from10// discovery/plugin-coverage.json) or setup/setup-plan.json (from the mapping plan).11// node scripts/cms-fallback.js guard --project-dir <dir> [--capability <id>]12// The write-time guard: which eligible capabilities may have CMS records written.13// Exit 2 when the named capability (or, without --capability, any capability whose coverage