mneme-ai 2.112.0 → 2.113.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgJA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA0+MvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgJA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6/MvD"}
package/dist/index.js CHANGED
@@ -6694,6 +6694,21 @@ export async function run(argv) {
6694
6694
  const wr = originalWriteErr ?? ((s) => process.stderr.write(s));
6695
6695
  configureRecursive(program, wr);
6696
6696
  };
6697
+ const ensureGroupHelp = (cmd) => {
6698
+ const subs = Array.isArray(cmd.commands) ? cmd.commands : [];
6699
+ for (const sub of subs)
6700
+ ensureGroupHelp(sub);
6701
+ if (subs.length > 0 && !cmd._actionHandler) {
6702
+ cmd.action(() => { try {
6703
+ cmd.outputHelp();
6704
+ }
6705
+ catch { /* never block */ } });
6706
+ }
6707
+ };
6708
+ try {
6709
+ ensureGroupHelp(program);
6710
+ }
6711
+ catch { /* defensive — never block parse */ }
6697
6712
  try {
6698
6713
  await program.parseAsync(argv);
6699
6714
  restoreWriteErr();