@modality-counter/core 1.2.4 → 1.2.5

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
- export declare function toCounterCLI(baseDir: string): (args: string[]) => Promise<void>;
1
+ export declare function toCounterCLI(baseDir: string, commandName?: string): (args: string[]) => Promise<void>;
@@ -4,22 +4,8 @@ export interface HelpFormat {
4
4
  header: (s: string) => string;
5
5
  example: (s: string) => string;
6
6
  }
7
- /**
8
- * Sharable help metadata for the `prompt` subcommand entry in a host CLI's
9
- * help generator. Usage lines describe argument shape; examples are derived
10
- * from the methods actually present in `methodsDir` so they stay accurate.
11
- */
12
- export declare function toCounterMethodHelp(cliName: string, methodsDir: string): {
7
+ export declare function toCounterMethodHelp(cliName: string, baseDir: string, commandName?: string): Promise<{
13
8
  usage: string[];
14
9
  examples: string[];
15
- };
16
- /**
17
- * Mirror of `toCounterCLI(baseDir)(args)` for the `--help` path: returns a
18
- * handler that prints per-method help for `<method-name> --help` and reports
19
- * whether the args were consumed. When the method name is unknown the handler
20
- * prints an error and exits.
21
- *
22
- * Pass `format` to render with ANSI colors (bold, dim, etc.); defaults to
23
- * identity formatting (plain text) so the library has no terminal dependency.
24
- */
25
- export declare function toCounterCLIHelp(cliName: string, methodsDir: string, format?: HelpFormat): (args: string[]) => boolean;
10
+ }>;
11
+ export declare function toCounterCLIHelp(cliName: string, baseDir: string, format?: HelpFormat, commandName?: string): (args: string[]) => Promise<boolean>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.4",
2
+ "version": "1.2.5",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",