@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.
Files changed (2) hide show
  1. package/dist/index.js +8 -17
  2. 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
- // Bare `mnemom skills` lists; but an unknown subcommand or stray arg must ERROR
79
- // (exit 1) like every other command group NOT silently print the list (the
80
- // `{ isDefault }` footgun caught in the MNE-1324 review, F1). A parent .action()
81
- // handles the bare case; allowExcessArguments(false) rejects `skills bogus`.
82
- .option("--json", "Emit the registry as JSON")
83
- .allowExcessArguments(false)
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemom/mnemom",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Transparent AI agent tracing",
5
5
  "type": "module",
6
6
  "bin": {