@mutmutco/cli 4.6.22 → 4.6.24

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.
@@ -8155,7 +8155,9 @@ function checkRunbookClaims(root, docs, deps) {
8155
8155
  if (token === "--") break;
8156
8156
  const flag = token.split("=")[0];
8157
8157
  if (/^--[\w-]+$/.test(flag) && flag !== "--help" && !placeholder(flag) && !deps.commandOptions?.get(resolved)?.has(flag)) {
8158
- report("unknown-flag", `mmi-cli ${resolved}: ${flag}`);
8158
+ const known = deps.commandOptions?.get(resolved);
8159
+ const knownFlags = known?.size ? ` (known flags: ${[...known].sort().join(" ")})` : "";
8160
+ report("unknown-flag", `mmi-cli ${resolved}: ${flag}${knownFlags} (source: ${deps.commandSource ?? "unspecified"})`);
8159
8161
  }
8160
8162
  }
8161
8163
  } else if (cmd === "npm") {
@@ -8391,7 +8393,7 @@ function runDocRefs(root, deps = {}) {
8391
8393
  findings.push(...checkCommands(docs, commandPaths).findings);
8392
8394
  }
8393
8395
  const runbooks = Object.fromEntries(Object.entries(docs).filter(([doc, body]) => isRunbook(doc, body)));
8394
- findings.push(...checkRunbookClaims(root, runbooks, { readFile: readFile2, exists, isIgnored, trackedFirstSegments, commandPaths, commandOptions: deps.commandOptions }));
8396
+ findings.push(...checkRunbookClaims(root, runbooks, { readFile: readFile2, exists, isIgnored, trackedFirstSegments, commandPaths, commandOptions: deps.commandOptions, commandSource: deps.commandSource }));
8395
8397
  const warnings = [...refResult.warnings];
8396
8398
  if (deps.runbooksOnly && !Object.keys(runbooks).length) {
8397
8399
  warnings.push({ kind: "runbook-missing", doc: "docs/Guides/operator.md", line: 0, detail: "no operator runbook or <!-- runbook --> document exists" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.6.22",
3
+ "version": "4.6.24",
4
4
  "description": "MMI Future CLI — the org dev toolbox and shared cross-IDE engine for every registry-declared MMI coding surface.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",