@mutmutco/cli 3.42.0 → 3.43.0
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.
- package/dist/main.cjs +3 -9
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -15387,7 +15387,6 @@ var CMD_RE = /`mmi-cli ((?:[a-z][a-z-]*)(?: [a-z][a-z-]*){0,3})/g;
|
|
|
15387
15387
|
var RETIRED_RE = /\b(retired|historical|removed|deleted|gone|no longer|superseded|legacy)\b/i;
|
|
15388
15388
|
var ROOT_DOCS = ["README.md", "architecture.md"];
|
|
15389
15389
|
var SKIP_WALK = ["docs/Archive/", "docs/incidents/"];
|
|
15390
|
-
var PINNED_DOCS = ["docs/Reference/runtime-contracts.md"];
|
|
15391
15390
|
function stripFences(markdown) {
|
|
15392
15391
|
let inFence = false;
|
|
15393
15392
|
return markdown.split(/\r?\n/).map((line) => {
|
|
@@ -15413,14 +15412,9 @@ function extractPins(markdown) {
|
|
|
15413
15412
|
});
|
|
15414
15413
|
return pins;
|
|
15415
15414
|
}
|
|
15416
|
-
function checkPins(root, readFile6) {
|
|
15415
|
+
function checkPins(root, readFile6, docs2) {
|
|
15417
15416
|
const findings = [];
|
|
15418
|
-
for (const doc of
|
|
15419
|
-
const markdown = readFile6((0, import_node_path16.join)(root, doc));
|
|
15420
|
-
if (markdown == null) {
|
|
15421
|
-
findings.push({ kind: "missing-doc", doc, line: 0, detail: doc });
|
|
15422
|
-
continue;
|
|
15423
|
-
}
|
|
15417
|
+
for (const [doc, markdown] of Object.entries(docs2)) {
|
|
15424
15418
|
for (const pin of extractPins(markdown)) {
|
|
15425
15419
|
if ("malformed" in pin) {
|
|
15426
15420
|
findings.push({ kind: "malformed-pin", doc, line: pin.line, detail: pin.text });
|
|
@@ -15566,7 +15560,7 @@ function runDocRefs(root, deps = {}) {
|
|
|
15566
15560
|
listDocs(root).map((rel) => [rel, readFile6((0, import_node_path16.join)(root, rel))]).filter(([, body]) => body != null)
|
|
15567
15561
|
);
|
|
15568
15562
|
const findings = [
|
|
15569
|
-
...checkPins(root, readFile6).findings,
|
|
15563
|
+
...checkPins(root, readFile6, docs2).findings,
|
|
15570
15564
|
...checkRefs(root, { exists, isIgnored }, docs2).findings
|
|
15571
15565
|
];
|
|
15572
15566
|
if (commandPaths == null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutmutco/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.43.0",
|
|
4
4
|
"description": "MMI Future CLI — the org dev toolbox (board, registry, keyless secrets, release train, bootstrap, doctor) and the cross-IDE engine the plugin's session-start hook drives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|