@mutmutco/cli 4.6.43 → 4.6.44

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.
Files changed (2) hide show
  1. package/dist/main.cjs +47 -9
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -28556,10 +28556,10 @@ var rollout_plan_default = {
28556
28556
  note: "The v4.0.0 stamp happens at cut time (D6e #4463); until then the candidate is the origin/development head artifacts (built cli/dist + npm pack), identity proven by dist content hash (D6a)."
28557
28557
  },
28558
28558
  baseline: {
28559
- version: "4.6.43",
28560
- tag: "v4.6.43",
28561
- commit: "856f4651277d",
28562
- npm: "@mutmutco/cli@4.6.43"
28559
+ version: "4.6.44",
28560
+ tag: "v4.6.44",
28561
+ commit: "2ce6b7e5afc3",
28562
+ npm: "@mutmutco/cli@4.6.44"
28563
28563
  },
28564
28564
  exitCriterion: "fleet-n-of-n",
28565
28565
  hubOnlyShortcut: "forbidden",
@@ -28576,14 +28576,14 @@ var rollout_plan_default = {
28576
28576
  repo: "mutmutco/mmi-hub",
28577
28577
  role: "canary",
28578
28578
  schedule: "train",
28579
- v3Target: "v4.6.43"
28579
+ v3Target: "v4.6.44"
28580
28580
  }
28581
28581
  ],
28582
28582
  rollbackTrigger: "Any red inside the post-contract soak window: `devops train gate` FAIL attributable to the v4 doors, Hub endpoint health probe failure, a pre-v4 client admitted instead of receiving actionable HTTP 426, or npm consumer install/doctor failure on the v4-only dist.",
28583
28583
  rollback: {
28584
28584
  independent: true,
28585
- mechanism: "npm dist-tag latest -> 4.6.43 and redeploy the Hub Lambda from tag v4.6.43 (856f4651277d); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
28586
- v3Target: "v4.6.43 (@mutmutco/cli@4.6.43, tag commit 856f4651277d \u2014 last known-good release carrying the repo-index v4-only contract)"
28585
+ mechanism: "npm dist-tag latest -> 4.6.44 and redeploy the Hub Lambda from tag v4.6.44 (2ce6b7e5afc3); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
28586
+ v3Target: "v4.6.44 (@mutmutco/cli@4.6.44, tag commit 2ce6b7e5afc3 \u2014 last known-good release carrying the repo-index v4-only contract)"
28587
28587
  }
28588
28588
  },
28589
28589
  {
@@ -42191,6 +42191,31 @@ function compactRouteManifest(manifest, onlyHouse) {
42191
42191
  }
42192
42192
  };
42193
42193
  }
42194
+ function filterCompactRouteManifest(output, match) {
42195
+ return { ...output, routes: output.routes.filter((route) => match.test(route.path)) };
42196
+ }
42197
+ function pruneManifestTree(node, match) {
42198
+ const subcommands = node.subcommands.map((child2) => pruneManifestTree(child2, match)).filter((child2) => child2 !== void 0);
42199
+ if (match.test(node.name) || match.test(node.path) || subcommands.length > 0) {
42200
+ return { ...node, subcommands };
42201
+ }
42202
+ return void 0;
42203
+ }
42204
+ function filterTreeAndIndex(tree, index, match) {
42205
+ return {
42206
+ tree: pruneManifestTree(tree, match) ?? { ...tree, subcommands: [] },
42207
+ index: index.filter((leaf) => match.test(leaf.name) || match.test(leaf.path))
42208
+ };
42209
+ }
42210
+ function filterCommandManifest(manifest, match) {
42211
+ const full = filterTreeAndIndex(manifest.tree, manifest.index, match);
42212
+ const primary = filterTreeAndIndex(manifest.primary_tree, manifest.primary_index, match);
42213
+ return { ...manifest, tree: full.tree, index: full.index, primary_tree: primary.tree, primary_index: primary.index };
42214
+ }
42215
+ function filterPrimaryCommandManifest(manifest, match) {
42216
+ const filtered = filterTreeAndIndex(manifest.tree, manifest.index, match);
42217
+ return { ...manifest, tree: filtered.tree, index: filtered.index };
42218
+ }
42194
42219
  var DOOR_DECLARATIONS = [
42195
42220
  { door: "board", question: "What is on my board \u2014 and what is next?", path: "board read", source: "the live GitHub Project v2 board, read through the Hub board API" },
42196
42221
  { door: "registry", question: "What repos and projects exist, with what META?", path: "org project list", source: "the Hub org registry (DDB)" },
@@ -73729,11 +73754,24 @@ function registerDeveloperCommands(program3) {
73729
73754
  console.log("mmi-cli devops org rules gitignore: up to date");
73730
73755
  }
73731
73756
  });
73732
- program3.command("commands").description("print the grouped agentic-coding map; JSON defaults to bounded routes").option("--all", "human: include operational depth; JSON: emit the exhaustive schema-2 manifest").option("--json", "machine-readable progressive discovery").option("--primary", "with --json, emit the compatibility schema-2 primary tree and index").addOption(new Option("--house <house>", "with --json, limit routes to one house").choices([...HOUSE_ROOTS, "core"])).action((o) => {
73757
+ program3.command("commands").description("print the grouped agentic-coding map; JSON defaults to bounded routes").option("--all", "human: include operational depth; JSON: emit the exhaustive schema-2 manifest").option("--json", "machine-readable progressive discovery; the compact default emits an OBJECT {schema_version, scope:'routes', routes[{path,house,summary,detail}], houses, doors, next{full:'mmi-cli commands --all --json'}} \u2014 never a top-level `commands` array; --all --json emits the exhaustive schema-2 manifest {scope:'all', tree, index, houses, doors, flat_alias_cut, primary_tree, primary_index, error_codes}").option("--primary", "with --json, emit the compatibility schema-2 primary tree and index").addOption(new Option("--house <house>", "with --json, limit routes to one house").choices([...HOUSE_ROOTS, "core"])).addOption(new Option("--match <regex>", "with --json, keep only routes/commands whose path or name matches this regular expression (case-insensitive)")).action((o) => {
73733
73758
  if (o.house && !o.json) {
73734
73759
  fail("commands: --house requires --json", { code: ERROR_CODES.ERR_CONFLICTING_FLAGS, offending_flag: "--house" });
73735
73760
  return;
73736
73761
  }
73762
+ if (o.match && !o.json) {
73763
+ fail("commands: --match requires --json", { code: ERROR_CODES.ERR_CONFLICTING_FLAGS, offending_flag: "--match" });
73764
+ return;
73765
+ }
73766
+ let match;
73767
+ if (o.match) {
73768
+ try {
73769
+ match = new RegExp(o.match, "i");
73770
+ } catch {
73771
+ fail(`commands: --match '${o.match}' is not a valid regular expression`, { code: ERROR_CODES.ERR_INVALID_INPUT, offending_flag: "--match" });
73772
+ return;
73773
+ }
73774
+ }
73737
73775
  const conflicting = [o.all ? "--all" : "", o.primary ? "--primary" : "", o.house ? "--house" : ""].filter(Boolean);
73738
73776
  if (o.json && conflicting.length > 1) {
73739
73777
  fail(`commands: ${conflicting.join(" and ")} are mutually exclusive`, { code: ERROR_CODES.ERR_CONFLICTING_FLAGS, offending_flag: conflicting.join(",") });
@@ -73741,7 +73779,7 @@ function registerDeveloperCommands(program3) {
73741
73779
  }
73742
73780
  const manifest = buildCommandManifest(program3);
73743
73781
  if (o.json) {
73744
- const output = o.all ? manifest : o.primary ? primaryCommandManifest(manifest) : compactRouteManifest(manifest, o.house);
73782
+ const output = o.all ? match ? filterCommandManifest(manifest, match) : manifest : o.primary ? match ? filterPrimaryCommandManifest(primaryCommandManifest(manifest), match) : primaryCommandManifest(manifest) : match ? filterCompactRouteManifest(compactRouteManifest(manifest, o.house), match) : compactRouteManifest(manifest, o.house);
73745
73783
  consoleIo.log(JSON.stringify(output, null, 2));
73746
73784
  return;
73747
73785
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.6.43",
3
+ "version": "4.6.44",
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",