@mnemom/mnemom 0.16.0 → 0.16.1
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/index.js +8 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,24 +74,15 @@ program
|
|
|
74
74
|
// ── skills (MNE-1324) — discover the zero-install skill surface ──────────────
|
|
75
75
|
const skills = program
|
|
76
76
|
.command("skills")
|
|
77
|
-
.description("List and describe the Mnemom CLI skills (npx @mnemom/mnemom@latest <skill>)")
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
.action(async (opts) => {
|
|
85
|
-
try {
|
|
86
|
-
await skillsListCommand(opts);
|
|
87
|
-
}
|
|
88
|
-
catch (error) {
|
|
89
|
-
console.error("Error:", error instanceof Error ? error.message : error);
|
|
90
|
-
process.exit(1);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
77
|
+
.description("List and describe the Mnemom CLI skills (npx @mnemom/mnemom@latest <skill>)");
|
|
78
|
+
// `list` is the default subcommand so bare `mnemom skills` lists. `--json` lives
|
|
79
|
+
// ONLY on the subcommands (NOT the parent): a parent-level `--json` shadows the
|
|
80
|
+
// subcommand option under commander@12 (the MNE-238 class), which silently broke
|
|
81
|
+
// `skills list --json` / `skills describe --json` in 0.16.0. `allowExcessArguments
|
|
82
|
+
// (false)` keeps the F1 fix — `skills bogus` / `skills list foo` error (exit 1)
|
|
83
|
+
// instead of silently listing.
|
|
93
84
|
skills
|
|
94
|
-
.command("list")
|
|
85
|
+
.command("list", { isDefault: true })
|
|
95
86
|
.description("List available + planned skills")
|
|
96
87
|
.option("--json", "Emit the registry as JSON")
|
|
97
88
|
.allowExcessArguments(false)
|