@navios/commander 1.0.0-alpha.2 → 1.0.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/README.md +42 -18
  3. package/dist/src/commander.factory.d.mts +84 -10
  4. package/dist/src/commander.factory.d.mts.map +1 -1
  5. package/dist/src/commands/help.command.d.mts +18 -0
  6. package/dist/src/commands/help.command.d.mts.map +1 -0
  7. package/dist/src/commands/index.d.mts +2 -0
  8. package/dist/src/commands/index.d.mts.map +1 -0
  9. package/dist/src/decorators/cli-module.decorator.d.mts +29 -4
  10. package/dist/src/decorators/cli-module.decorator.d.mts.map +1 -1
  11. package/dist/src/decorators/command.decorator.d.mts +6 -1
  12. package/dist/src/decorators/command.decorator.d.mts.map +1 -1
  13. package/dist/src/define-environment.d.mts +31 -0
  14. package/dist/src/define-environment.d.mts.map +1 -0
  15. package/dist/src/index.d.mts +2 -1
  16. package/dist/src/index.d.mts.map +1 -1
  17. package/dist/src/interfaces/abstract-cli-adapter.interface.d.mts +53 -0
  18. package/dist/src/interfaces/abstract-cli-adapter.interface.d.mts.map +1 -0
  19. package/dist/src/interfaces/commander-execution-context.interface.d.mts +1 -1
  20. package/dist/src/interfaces/environment.interface.d.mts +30 -0
  21. package/dist/src/interfaces/environment.interface.d.mts.map +1 -0
  22. package/dist/src/interfaces/index.d.mts +2 -0
  23. package/dist/src/interfaces/index.d.mts.map +1 -1
  24. package/dist/src/metadata/command-entry.metadata.d.mts +31 -0
  25. package/dist/src/metadata/command-entry.metadata.d.mts.map +1 -0
  26. package/dist/src/metadata/command.metadata.d.mts +6 -1
  27. package/dist/src/metadata/command.metadata.d.mts.map +1 -1
  28. package/dist/src/metadata/index.d.mts +1 -1
  29. package/dist/src/metadata/index.d.mts.map +1 -1
  30. package/dist/src/services/cli-parser.service.d.mts +2 -12
  31. package/dist/src/services/cli-parser.service.d.mts.map +1 -1
  32. package/dist/src/services/command-registry.service.d.mts +89 -0
  33. package/dist/src/services/command-registry.service.d.mts.map +1 -0
  34. package/dist/src/services/commander-adapter.service.d.mts +56 -0
  35. package/dist/src/services/commander-adapter.service.d.mts.map +1 -0
  36. package/dist/src/services/index.d.mts +2 -1
  37. package/dist/src/services/index.d.mts.map +1 -1
  38. package/dist/src/tokens/execution-context.token.d.mts +1 -1
  39. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/lib/index.cjs +536 -8513
  42. package/lib/index.cjs.map +1 -1
  43. package/lib/index.d.cts +422 -298
  44. package/lib/index.d.cts.map +1 -1
  45. package/lib/index.d.mts +422 -298
  46. package/lib/index.d.mts.map +1 -1
  47. package/lib/index.mjs +502 -8284
  48. package/lib/index.mjs.map +1 -1
  49. package/package.json +2 -2
  50. package/src/__tests__/commander.factory.e2e.spec.mts +258 -68
  51. package/src/commander.factory.mts +109 -17
  52. package/src/commands/help.command.mts +37 -0
  53. package/src/commands/index.mts +1 -0
  54. package/src/decorators/cli-module.decorator.mts +58 -20
  55. package/src/decorators/command.decorator.mts +7 -1
  56. package/src/define-environment.mts +39 -0
  57. package/src/index.mts +2 -1
  58. package/src/interfaces/abstract-cli-adapter.interface.mts +52 -0
  59. package/src/interfaces/commander-execution-context.interface.mts +1 -1
  60. package/src/interfaces/environment.interface.mts +34 -0
  61. package/src/interfaces/index.mts +2 -0
  62. package/src/metadata/command-entry.metadata.mts +41 -0
  63. package/src/metadata/command.metadata.mts +7 -0
  64. package/src/metadata/index.mts +1 -1
  65. package/src/services/cli-parser.service.mts +14 -28
  66. package/src/services/command-registry.service.mts +217 -0
  67. package/src/services/commander-adapter.service.mts +209 -0
  68. package/src/services/index.mts +2 -1
  69. package/src/tokens/execution-context.token.mts +1 -1
  70. package/tsconfig.json +1 -1
  71. package/src/commander.application.mts +0 -303
  72. package/src/metadata/cli-module.metadata.mts +0 -100
  73. package/src/services/module-loader.service.mts +0 -231
@@ -0,0 +1,31 @@
1
+ import type { ClassType } from '@navios/core';
2
+ /**
3
+ * Symbol key for storing commands in ModuleMetadata.customEntries.
4
+ * Used by @CliModule to store command classes.
5
+ *
6
+ * @public
7
+ */
8
+ export declare const CommandEntryKey: unique symbol;
9
+ /**
10
+ * Type for the command entry value stored in customEntries.
11
+ *
12
+ * @public
13
+ */
14
+ export type CommandEntryValue = Set<ClassType>;
15
+ /**
16
+ * Extracts commands from a module's metadata.
17
+ * Returns empty set if no commands are defined.
18
+ *
19
+ * @param moduleClass - The module class decorated with @CliModule or @Module
20
+ * @returns Set of command classes registered in the module
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const commands = extractModuleCommands(AppModule)
25
+ * for (const command of commands) {
26
+ * console.log(command.name)
27
+ * }
28
+ * ```
29
+ */
30
+ export declare function extractModuleCommands(moduleClass: ClassType): Set<ClassType>;
31
+ //# sourceMappingURL=command-entry.metadata.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-entry.metadata.d.mts","sourceRoot":"","sources":["../../../src/metadata/command-entry.metadata.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,eAA4B,CAAA;AAExD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,CAAA;AAE9C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,CAM5E"}
@@ -15,6 +15,10 @@ export interface CommandMetadata {
15
15
  * The command path (e.g., 'greet', 'user:create').
16
16
  */
17
17
  path: string;
18
+ /**
19
+ * Optional description of the command for help text.
20
+ */
21
+ description?: string;
18
22
  /**
19
23
  * Optional Zod schema for validating command options.
20
24
  */
@@ -31,10 +35,11 @@ export interface CommandMetadata {
31
35
  * @param target - The command class
32
36
  * @param context - The decorator context
33
37
  * @param path - The command path
38
+ * @param description - Optional description for help text
34
39
  * @param optionsSchema - Optional Zod schema
35
40
  * @returns The command metadata
36
41
  */
37
- export declare function getCommandMetadata(target: ClassType, context: ClassDecoratorContext, path: string, optionsSchema?: ZodObject): CommandMetadata;
42
+ export declare function getCommandMetadata(target: ClassType, context: ClassDecoratorContext, path: string, description?: string, optionsSchema?: ZodObject): CommandMetadata;
38
43
  /**
39
44
  * Extracts command metadata from a class.
40
45
  *
@@ -1 +1 @@
1
- {"version":3,"file":"command.metadata.d.mts","sourceRoot":"","sources":["../../../src/metadata/command.metadata.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAA+B,CAAA;AAE9D;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB;;OAEG;IACH,gBAAgB,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,MAAM,EACZ,aAAa,CAAC,EAAE,SAAS,GACxB,eAAe,CAoBjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,eAAe,CASzE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAI7D"}
1
+ {"version":3,"file":"command.metadata.d.mts","sourceRoot":"","sources":["../../../src/metadata/command.metadata.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAA+B,CAAA;AAE9D;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB;;OAEG;IACH,gBAAgB,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,SAAS,GACxB,eAAe,CAqBjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,eAAe,CASzE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAI7D"}
@@ -1,3 +1,3 @@
1
1
  export * from './command.metadata.mjs';
2
- export * from './cli-module.metadata.mjs';
2
+ export * from './command-entry.metadata.mjs';
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/metadata/index.mts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/metadata/index.mts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA"}
@@ -63,23 +63,13 @@ export declare class CliParserService {
63
63
  private extractArrayFields;
64
64
  /**
65
65
  * Checks if a Zod schema represents a boolean type
66
- * Unwraps ZodOptional and ZodDefault
66
+ * Unwraps ZodOptional and ZodDefault using Zod v4 API
67
67
  */
68
68
  private isSchemaBoolean;
69
69
  /**
70
70
  * Checks if a Zod schema represents an array type
71
- * Unwraps ZodOptional and ZodDefault
71
+ * Unwraps ZodOptional and ZodDefault using Zod v4 API
72
72
  */
73
73
  private isSchemaArray;
74
- /**
75
- * Formats help text listing all available commands.
76
- *
77
- * @param commands - Array of command objects with path and class
78
- * @returns Formatted string listing all commands
79
- */
80
- formatCommandList(commands: Array<{
81
- path: string;
82
- class: any;
83
- }>): string;
84
74
  }
85
75
  //# sourceMappingURL=cli-parser.service.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-parser.service.d.mts","sourceRoot":"","sources":["../../../src/services/cli-parser.service.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,KAAK,CAAA;AAI7C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB;AAED;;;;;;;;;;;GAWG;AACH,qBACa,gBAAgB;IAC3B;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,SAAS,GAAG,aAAa;IAuI/D;;OAEG;IACH,OAAO,CAAC,SAAS;IAIjB;;OAEG;IACH,OAAO,CAAC,UAAU;IAkClB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA0B5B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAwB1B;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiBvB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAiBrB;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,GAAG,MAAM;CAOzE"}
1
+ {"version":3,"file":"cli-parser.service.d.mts","sourceRoot":"","sources":["../../../src/services/cli-parser.service.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,KAAK,CAAA;AAI7C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB;AAED;;;;;;;;;;;GAWG;AACH,qBACa,gBAAgB;IAC3B;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,SAAS,GAAG,aAAa;IAuI/D;;OAEG;IACH,OAAO,CAAC,SAAS;IAIjB;;OAEG;IACH,OAAO,CAAC,UAAU;IAkClB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA0B5B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAwB1B;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiBvB;;;OAGG;IACH,OAAO,CAAC,aAAa;CAgBtB"}
@@ -0,0 +1,89 @@
1
+ import type { ClassType } from '@navios/core';
2
+ import type { CommandMetadata } from '../metadata/index.mjs';
3
+ /**
4
+ * Represents a registered command with its metadata and module information.
5
+ *
6
+ * @public
7
+ */
8
+ export interface RegisteredCommand {
9
+ /**
10
+ * The command class
11
+ */
12
+ class: ClassType;
13
+ /**
14
+ * The command metadata from @Command decorator
15
+ */
16
+ metadata: CommandMetadata;
17
+ /**
18
+ * Name of the module this command belongs to
19
+ */
20
+ moduleName: string;
21
+ }
22
+ /**
23
+ * Service for registering and looking up CLI commands.
24
+ * Used internally by the CLI adapter to manage discovered commands.
25
+ *
26
+ * @public
27
+ */
28
+ export declare class CommandRegistryService {
29
+ private commands;
30
+ /**
31
+ * Register a command with its metadata.
32
+ *
33
+ * @param path - The command path (e.g., 'greet', 'user:create')
34
+ * @param command - The registered command data
35
+ * @throws Error if a command with the same path is already registered
36
+ */
37
+ register(path: string, command: RegisteredCommand): void;
38
+ /**
39
+ * Get a command by its path.
40
+ *
41
+ * @param path - The command path
42
+ * @returns The registered command or undefined if not found
43
+ */
44
+ getByPath(path: string): RegisteredCommand | undefined;
45
+ /**
46
+ * Get all registered commands.
47
+ *
48
+ * @returns Map of path to registered command
49
+ */
50
+ getAll(): Map<string, RegisteredCommand>;
51
+ /**
52
+ * Get all registered commands as an array of path and class pairs.
53
+ * Useful for listing available commands.
54
+ *
55
+ * @returns Array of objects containing path and class
56
+ */
57
+ getAllAsArray(): Array<{
58
+ path: string;
59
+ class: ClassType;
60
+ }>;
61
+ /**
62
+ * Formats help text listing all available commands with descriptions.
63
+ *
64
+ * @returns Formatted string listing all commands
65
+ */
66
+ formatCommandList(): string;
67
+ /**
68
+ * Formats help text for a specific command.
69
+ *
70
+ * @param commandPath - The command path to show help for
71
+ * @returns Formatted string with command help
72
+ */
73
+ formatCommandHelp(commandPath: string): string;
74
+ /**
75
+ * Gets a human-readable type name from a Zod schema.
76
+ */
77
+ private getSchemaTypeName;
78
+ /**
79
+ * Gets metadata from a Zod schema, traversing innerType if needed.
80
+ * Zod v4 stores meta at the outermost layer when .meta() is called last,
81
+ * or in innerType when .meta() is called before .optional()/.default().
82
+ */
83
+ private getSchemaMeta;
84
+ /**
85
+ * Clear all registered commands.
86
+ */
87
+ clear(): void;
88
+ }
89
+ //# sourceMappingURL=command-registry.service.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-registry.service.d.mts","sourceRoot":"","sources":["../../../src/services/command-registry.service.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAA;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,qBACa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAuC;IAEvD;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAOxD;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;IAItD;;;;OAIG;IACH,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAIxC;;;;;OAKG;IACH,aAAa,IAAI,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,CAAC;IAQ1D;;;;OAIG;IACH,iBAAiB,IAAI,MAAM;IAa3B;;;;;OAKG;IACH,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAsC9C;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAuCzB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAkBrB;;OAEG;IACH,KAAK,IAAI,IAAI;CAGd"}
@@ -0,0 +1,56 @@
1
+ import type { ClassType, ModuleMetadata } from '@navios/core';
2
+ import type { AbstractCliAdapterInterface } from '../interfaces/abstract-cli-adapter.interface.mjs';
3
+ import type { CliAdapterOptions } from '../interfaces/environment.interface.mjs';
4
+ /**
5
+ * CLI adapter service that implements the AbstractCliAdapterInterface.
6
+ * Handles command discovery, registration, parsing, and execution.
7
+ *
8
+ * @public
9
+ */
10
+ export declare class CommanderAdapterService implements AbstractCliAdapterInterface {
11
+ private container;
12
+ private commandRegistry;
13
+ private cliParser;
14
+ private logger;
15
+ private options;
16
+ private isReady;
17
+ /**
18
+ * Sets up the adapter with the provided options.
19
+ * Called during application initialization.
20
+ */
21
+ setupAdapter(options: CliAdapterOptions): Promise<void>;
22
+ /**
23
+ * Called after all modules are loaded.
24
+ * Iterates through modules and extracts commands from customEntries.
25
+ */
26
+ onModulesInit(modules: Map<string, ModuleMetadata>): Promise<void>;
27
+ /**
28
+ * Registers built-in commands like help.
29
+ */
30
+ private registerBuiltInCommands;
31
+ /**
32
+ * Signals that the adapter is ready to handle commands.
33
+ */
34
+ ready(): Promise<void>;
35
+ /**
36
+ * Disposes of the adapter and cleans up resources.
37
+ */
38
+ dispose(): Promise<void>;
39
+ /**
40
+ * Run the CLI application with the given arguments.
41
+ * Parses arguments and executes the matching command.
42
+ */
43
+ run(argv?: string[]): Promise<void>;
44
+ /**
45
+ * Execute a command programmatically with the provided options.
46
+ */
47
+ executeCommand(path: string, options?: Record<string, unknown>): Promise<void>;
48
+ /**
49
+ * Get all registered command paths and their class references.
50
+ */
51
+ getAllCommands(): Array<{
52
+ path: string;
53
+ class: ClassType;
54
+ }>;
55
+ }
56
+ //# sourceMappingURL=commander-adapter.service.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commander-adapter.service.d.mts","sourceRoot":"","sources":["../../../src/services/commander-adapter.service.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAU7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAA;AAEnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAchF;;;;;GAKG;AACH,qBACa,uBAAwB,YAAW,2BAA2B;IACzE,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,eAAe,CAAiC;IACxD,OAAO,CAAC,SAAS,CAA2B;IAC5C,OAAO,CAAC,MAAM,CAA2C;IAEzD,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,OAAO,CAAQ;IAEvB;;;OAGG;IACG,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7D;;;OAGG;IACG,aAAa,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BxE;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAS/B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAK9B;;;OAGG;IACG,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCvD;;OAEG;IACG,cAAc,CAClB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACpC,OAAO,CAAC,IAAI,CAAC;IAyChB;;OAEG;IACH,cAAc,IAAI,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,CAAC;CAG5D"}
@@ -1,3 +1,4 @@
1
- export * from './module-loader.service.mjs';
2
1
  export * from './cli-parser.service.mjs';
2
+ export * from './command-registry.service.mjs';
3
+ export * from './commander-adapter.service.mjs';
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/services/index.mts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/services/index.mts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA"}
@@ -8,7 +8,7 @@ import type { CommanderExecutionContext } from '../interfaces/index.mjs';
8
8
  *
9
9
  * @example
10
10
  * ```typescript
11
- * import { inject, Injectable } from '@navios/di'
11
+ * import { inject, Injectable } from '@navios/core'
12
12
  * import { CommandExecutionContext } from '@navios/commander'
13
13
  *
14
14
  * @Injectable()