@navios/commander 0.9.0 → 1.0.0-alpha.4

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 (77) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +45 -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 +36 -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/cli-module.metadata.d.mts +4 -0
  25. package/dist/src/metadata/cli-module.metadata.d.mts.map +1 -1
  26. package/dist/src/metadata/command-entry.metadata.d.mts +31 -0
  27. package/dist/src/metadata/command-entry.metadata.d.mts.map +1 -0
  28. package/dist/src/metadata/command.metadata.d.mts +6 -1
  29. package/dist/src/metadata/command.metadata.d.mts.map +1 -1
  30. package/dist/src/metadata/index.d.mts +1 -1
  31. package/dist/src/metadata/index.d.mts.map +1 -1
  32. package/dist/src/services/cli-parser.service.d.mts +2 -12
  33. package/dist/src/services/cli-parser.service.d.mts.map +1 -1
  34. package/dist/src/services/command-registry.service.d.mts +89 -0
  35. package/dist/src/services/command-registry.service.d.mts.map +1 -0
  36. package/dist/src/services/commander-adapter.service.d.mts +56 -0
  37. package/dist/src/services/commander-adapter.service.d.mts.map +1 -0
  38. package/dist/src/services/index.d.mts +2 -1
  39. package/dist/src/services/index.d.mts.map +1 -1
  40. package/dist/src/services/module-loader.service.d.mts +2 -0
  41. package/dist/src/services/module-loader.service.d.mts.map +1 -1
  42. package/dist/src/tokens/execution-context.token.d.mts +1 -1
  43. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/lib/index.cjs +520 -6663
  46. package/lib/index.cjs.map +1 -1
  47. package/lib/index.d.cts +431 -293
  48. package/lib/index.d.cts.map +1 -1
  49. package/lib/index.d.mts +431 -293
  50. package/lib/index.d.mts.map +1 -1
  51. package/lib/index.mjs +507 -6493
  52. package/lib/index.mjs.map +1 -1
  53. package/package.json +2 -2
  54. package/src/__tests__/commander.factory.e2e.spec.mts +258 -68
  55. package/src/commander.factory.mts +109 -17
  56. package/src/commands/help.command.mts +37 -0
  57. package/src/commands/index.mts +1 -0
  58. package/src/decorators/cli-module.decorator.mts +73 -18
  59. package/src/decorators/command.decorator.mts +7 -1
  60. package/src/define-environment.mts +39 -0
  61. package/src/index.mts +2 -1
  62. package/src/interfaces/abstract-cli-adapter.interface.mts +52 -0
  63. package/src/interfaces/commander-execution-context.interface.mts +1 -1
  64. package/src/interfaces/environment.interface.mts +34 -0
  65. package/src/interfaces/index.mts +2 -0
  66. package/src/metadata/command-entry.metadata.mts +41 -0
  67. package/src/metadata/command.metadata.mts +7 -0
  68. package/src/metadata/index.mts +1 -1
  69. package/src/services/cli-parser.service.mts +14 -28
  70. package/src/services/command-registry.service.mts +217 -0
  71. package/src/services/commander-adapter.service.mts +209 -0
  72. package/src/services/index.mts +2 -1
  73. package/src/tokens/execution-context.token.mts +1 -1
  74. package/tsconfig.json +1 -1
  75. package/src/commander.application.mts +0 -303
  76. package/src/metadata/cli-module.metadata.mts +0 -95
  77. package/src/services/module-loader.service.mts +0 -160
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":["ClassTypeWithInstance","NaviosModule","Container","CommanderApplicationOptions","CommanderApplication","Promise","ClassTypeWithInstance","NaviosModule","CommanderApplicationOptions","CommanderApplication","CommanderFactory","Promise","ClassType","Registry","ZodObject","CommandOptions","Command","path","optionsSchema","priority","registry","ClassDecoratorContext","ClassType","Registry","CliModuleOptions","Set","CliModule","commands","imports","priority","registry","ClassDecoratorContext","CommandHandler","TOptions","Promise","ClassType","ZodObject","CommandMetadataKey","CommandMetadata","Map","getCommandMetadata","ClassDecoratorContext","extractCommandMetadata","hasCommandMetadata","CommandMetadata","CommanderExecutionContext","ClassType","CliModuleMetadataKey","CliModuleMetadata","Set","Map","getCliModuleMetadata","ClassDecoratorContext","extractCliModuleMetadata","hasCliModuleMetadata","ClassTypeWithInstance","NaviosModule","Container","CommandHandler","CliModuleMetadata","CommandMetadata","CommandWithMetadata","CliModuleLoaderService","Promise","Map","ZodObject","ParsedCliArgs","Record","CliParserService","Array","InjectionToken","CommanderExecutionContext","CommandExecutionContext"],"sources":["../src/commander.application.d.mts","../src/commander.factory.d.mts","../src/decorators/command.decorator.d.mts","../src/decorators/cli-module.decorator.d.mts","../src/interfaces/command-handler.interface.d.mts","../src/metadata/command.metadata.d.mts","../src/interfaces/commander-execution-context.interface.d.mts","../src/metadata/cli-module.metadata.d.mts","../src/services/module-loader.service.d.mts","../src/services/cli-parser.service.d.mts","../src/tokens/execution-context.token.d.mts"],"sourcesContent":["import type { ClassTypeWithInstance, NaviosModule } from '@navios/core';\nimport { Container } from '@navios/core';\n/**\n * Configuration options for CommanderApplication.\n *\n * @public\n */\nexport interface CommanderApplicationOptions {\n}\n/**\n * Main application class for managing CLI command execution.\n *\n * This class handles module loading, command registration, and command execution.\n * It provides both programmatic and CLI-based command execution capabilities.\n *\n * @example\n * ```typescript\n * const app = await CommanderFactory.create(AppModule)\n * await app.init()\n * await app.run(process.argv)\n * ```\n */\nexport declare class CommanderApplication {\n private moduleLoader;\n private cliParser;\n protected container: Container;\n private appModule;\n private options;\n /**\n * Indicates whether the application has been initialized.\n * Set to `true` after `init()` is called successfully.\n */\n isInitialized: boolean;\n /**\n * @internal\n * Sets up the application with the provided module and options.\n * This is called automatically by CommanderFactory.create().\n */\n setup(appModule: ClassTypeWithInstance<NaviosModule>, options?: CommanderApplicationOptions): Promise<void>;\n /**\n * Gets the dependency injection container used by this application.\n *\n * @returns The Container instance\n *\n * @example\n * ```typescript\n * const container = app.getContainer()\n * const service = await container.get(MyService)\n * ```\n */\n getContainer(): Container;\n /**\n * Initializes the application by loading all modules and registering commands.\n *\n * This method must be called before executing commands or running the CLI.\n * It traverses the module tree, loads all imported modules, and collects command metadata.\n *\n * @throws {Error} If the app module is not set (setup() was not called)\n *\n * @example\n * ```typescript\n * const app = await CommanderFactory.create(AppModule)\n * await app.init() // Must be called before run() or executeCommand()\n * ```\n */\n init(): Promise<void>;\n /**\n * Executes a command programmatically with the provided options.\n *\n * This method is useful for testing, automation, or programmatic workflows.\n * The options will be validated against the command's Zod schema if one is provided.\n *\n * @param commandPath - The command path (e.g., 'greet', 'user:create')\n * @param options - The command options object (will be validated if schema exists)\n * @throws {Error} If the application is not initialized\n * @throws {Error} If the command is not found\n * @throws {Error} If the command does not implement the execute method\n * @throws {ZodError} If options validation fails\n *\n * @example\n * ```typescript\n * await app.executeCommand('greet', {\n * name: 'World',\n * greeting: 'Hi'\n * })\n * ```\n */\n executeCommand(commandPath: string, options?: any): Promise<void>;\n /**\n * Gets all registered commands with their paths and class references.\n *\n * @returns An array of objects containing the command path and class\n *\n * @example\n * ```typescript\n * const commands = app.getAllCommands()\n * commands.forEach(({ path }) => {\n * console.log(`Available: ${path}`)\n * })\n * ```\n */\n getAllCommands(): {\n path: string;\n class: ClassTypeWithInstance<any>;\n }[];\n /**\n * Runs the CLI application by parsing command-line arguments and executing the appropriate command.\n *\n * This is the main entry point for CLI usage. It parses `argv`, validates options,\n * and executes the matching command. Supports help command (`help`, `--help`, `-h`)\n * which displays all available commands.\n *\n * @param argv - Command-line arguments array (defaults to `process.argv`)\n * @throws {Error} If the application is not initialized\n * @throws {Error} If no command is provided\n * @throws {Error} If the command is not found\n * @throws {ZodError} If options validation fails\n *\n * @example\n * ```typescript\n * // Parse and execute from process.argv\n * await app.run()\n *\n * // Or provide custom arguments\n * await app.run(['node', 'cli.js', 'greet', '--name', 'World'])\n * ```\n */\n run(argv?: string[]): Promise<void>;\n /**\n * @internal\n * Disposes of resources used by the application.\n */\n dispose(): Promise<void>;\n /**\n * Closes the application and cleans up resources.\n *\n * This should be called when the application is no longer needed to free up resources.\n *\n * @example\n * ```typescript\n * await app.run(process.argv)\n * await app.close()\n * ```\n */\n close(): Promise<void>;\n}\n//# sourceMappingURL=commander.application.d.mts.map","import type { ClassTypeWithInstance, NaviosModule } from '@navios/core';\nimport type { CommanderApplicationOptions } from './commander.application.mjs';\nimport { CommanderApplication } from './commander.application.mjs';\n/**\n * Factory class for creating and configuring CLI applications.\n *\n * @example\n * ```typescript\n * import { CommanderFactory } from '@navios/commander'\n * import { AppModule } from './app.module'\n *\n * async function bootstrap() {\n * const app = await CommanderFactory.create(AppModule)\n * await app.init()\n * await app.run(process.argv)\n * await app.close()\n * }\n * ```\n */\nexport declare class CommanderFactory {\n /**\n * Creates a new CommanderApplication instance and configures it with the provided module.\n *\n * @param appModule - The root CLI module class that contains commands and/or imports other modules\n * @param options - Optional configuration options for the application\n * @returns A promise that resolves to a configured CommanderApplication instance\n *\n * @example\n * ```typescript\n * const app = await CommanderFactory.create(AppModule)\n * await app.init()\n * ```\n */\n static create(appModule: ClassTypeWithInstance<NaviosModule>, options?: CommanderApplicationOptions): Promise<CommanderApplication>;\n}\n//# sourceMappingURL=commander.factory.d.mts.map","import type { ClassType, Registry } from '@navios/core';\nimport type { ZodObject } from 'zod';\n/**\n * Options for the `@Command` decorator.\n *\n * @public\n */\nexport interface CommandOptions {\n /**\n * The command path that users will invoke from the CLI.\n * Can be a single word (e.g., 'greet') or multi-word with colons (e.g., 'user:create', 'db:migrate').\n */\n path: string;\n /**\n * Optional Zod schema for validating command options.\n * If provided, options will be validated and parsed according to this schema.\n */\n optionsSchema?: ZodObject;\n /**\n * Priority level for the command.\n * Higher priority commands will be loaded first.\n */\n priority?: number;\n /**\n * Registry to use for the command.\n * Registry is used to store the command and its options schema.\n */\n registry?: Registry;\n}\n/**\n * Decorator that marks a class as a CLI command.\n *\n * The decorated class must implement the `CommandHandler` interface with an `execute` method.\n * The command will be automatically registered when its module is loaded.\n *\n * @param options - Configuration options for the command\n * @returns A class decorator function\n *\n * @example\n * ```typescript\n * import { Command, CommandHandler } from '@navios/commander'\n * import { z } from 'zod'\n *\n * const optionsSchema = z.object({\n * name: z.string(),\n * greeting: z.string().optional().default('Hello')\n * })\n *\n * @Command({\n * path: 'greet',\n * optionsSchema: optionsSchema\n * })\n * export class GreetCommand implements CommandHandler<z.infer<typeof optionsSchema>> {\n * async execute(options) {\n * console.log(`${options.greeting}, ${options.name}!`)\n * }\n * }\n * ```\n */\nexport declare function Command({ path, optionsSchema, priority, registry, }: CommandOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;\n//# sourceMappingURL=command.decorator.d.mts.map","import type { ClassType, Registry } from '@navios/core';\n/**\n * Options for the `@CliModule` decorator.\n *\n * @public\n */\nexport interface CliModuleOptions {\n /**\n * Array or Set of command classes to register in this module.\n * Commands must be decorated with `@Command`.\n */\n commands?: ClassType[] | Set<ClassType>;\n /**\n * Array or Set of other CLI modules to import.\n * Imported modules' commands will be available in this module.\n */\n imports?: ClassType[] | Set<ClassType>;\n /**\n * Priority level for the module.\n * Higher priority modules will be loaded first.\n */\n priority?: number;\n /**\n * Registry to use for the module.\n * Registry is used to store the module and its commands.\n */\n registry?: Registry;\n}\n/**\n * Decorator that marks a class as a CLI module.\n *\n * Modules organize commands and can import other modules to compose larger CLI applications.\n * The module can optionally implement `NaviosModule` interface for lifecycle hooks.\n *\n * @param options - Configuration options for the module\n * @returns A class decorator function\n *\n * @example\n * ```typescript\n * import { CliModule } from '@navios/commander'\n * import { GreetCommand } from './greet.command'\n * import { UserModule } from './user.module'\n *\n * @CliModule({\n * commands: [GreetCommand],\n * imports: [UserModule]\n * })\n * export class AppModule {}\n * ```\n */\nexport declare function CliModule({ commands, imports, priority, registry }?: CliModuleOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;\n//# sourceMappingURL=cli-module.decorator.d.mts.map","/**\n * Interface that all command classes must implement.\n *\n * Commands decorated with `@Command` must implement this interface.\n * The `execute` method is called when the command is invoked.\n *\n * @template TOptions - The type of options that the command accepts\n *\n * @example\n * ```typescript\n * import { Command, CommandHandler } from '@navios/commander'\n * import { z } from 'zod'\n *\n * const optionsSchema = z.object({\n * name: z.string()\n * })\n *\n * type Options = z.infer<typeof optionsSchema>\n *\n * @Command({ path: 'greet', optionsSchema })\n * export class GreetCommand implements CommandHandler<Options> {\n * async execute(options: Options) {\n * console.log(`Hello, ${options.name}!`)\n * }\n * }\n * ```\n */\nexport interface CommandHandler<TOptions = any> {\n /**\n * Executes the command with the provided options.\n *\n * @param options - The validated command options (validated against the command's schema if provided)\n * @returns A promise or void\n */\n execute(options: TOptions): void | Promise<void>;\n}\n//# sourceMappingURL=command-handler.interface.d.mts.map","import type { ClassType } from '@navios/core';\nimport type { ZodObject } from 'zod';\n/**\n * @internal\n * Symbol key used to store command metadata on classes.\n */\nexport declare const CommandMetadataKey: unique symbol;\n/**\n * Metadata associated with a command.\n *\n * @public\n */\nexport interface CommandMetadata {\n /**\n * The command path (e.g., 'greet', 'user:create').\n */\n path: string;\n /**\n * Optional Zod schema for validating command options.\n */\n optionsSchema?: ZodObject;\n /**\n * Map of custom attributes that can be attached to the command.\n */\n customAttributes: Map<string | symbol, any>;\n}\n/**\n * Gets or creates command metadata for a class.\n *\n * @internal\n * @param target - The command class\n * @param context - The decorator context\n * @param path - The command path\n * @param optionsSchema - Optional Zod schema\n * @returns The command metadata\n */\nexport declare function getCommandMetadata(target: ClassType, context: ClassDecoratorContext, path: string, optionsSchema?: ZodObject): CommandMetadata;\n/**\n * Extracts command metadata from a class.\n *\n * @param target - The command class\n * @returns The command metadata\n * @throws {Error} If the class is not decorated with @Command\n *\n * @example\n * ```typescript\n * const metadata = extractCommandMetadata(GreetCommand)\n * console.log(metadata.path) // 'greet'\n * ```\n */\nexport declare function extractCommandMetadata(target: ClassType): CommandMetadata;\n/**\n * Checks if a class has command metadata.\n *\n * @param target - The class to check\n * @returns `true` if the class is decorated with @Command, `false` otherwise\n */\nexport declare function hasCommandMetadata(target: ClassType): boolean;\n//# sourceMappingURL=command.metadata.d.mts.map","import type { CommandMetadata } from '../metadata/command.metadata.mjs';\n/**\n * Execution context for a command execution.\n *\n * Provides access to command metadata, path, and validated options during command execution.\n * This context is automatically injected and available via the `CommandExecutionContext` token.\n *\n * @example\n * ```typescript\n * import { inject, Injectable } from '@navios/di'\n * import { CommandExecutionContext } from '@navios/commander'\n *\n * @Injectable()\n * class CommandLogger {\n * private ctx = inject(CommandExecutionContext)\n *\n * log() {\n * console.log('Command:', this.ctx.getCommandPath())\n * console.log('Options:', this.ctx.getOptions())\n * }\n * }\n * ```\n */\nexport declare class CommanderExecutionContext {\n private readonly command;\n private readonly commandPath;\n private readonly options;\n /**\n * @internal\n * Creates a new execution context.\n */\n constructor(command: CommandMetadata, commandPath: string, options: any);\n /**\n * Gets the command metadata.\n *\n * @returns The command metadata including path and options schema\n */\n getCommand(): CommandMetadata;\n /**\n * Gets the command path that was invoked.\n *\n * @returns The command path (e.g., 'greet', 'user:create')\n */\n getCommandPath(): string;\n /**\n * Gets the validated command options.\n *\n * Options are validated against the command's Zod schema if one was provided.\n *\n * @returns The validated options object\n */\n getOptions(): any;\n}\n//# sourceMappingURL=commander-execution-context.interface.d.mts.map","import type { ClassType } from '@navios/core';\n/**\n * @internal\n * Symbol key used to store CLI module metadata on classes.\n */\nexport declare const CliModuleMetadataKey: unique symbol;\n/**\n * Metadata associated with a CLI module.\n *\n * @public\n */\nexport interface CliModuleMetadata {\n /**\n * Set of command classes registered in this module.\n */\n commands: Set<ClassType>;\n /**\n * Set of other modules imported by this module.\n */\n imports: Set<ClassType>;\n /**\n * Map of custom attributes that can be attached to the module.\n */\n customAttributes: Map<string | symbol, any>;\n}\n/**\n * Gets or creates CLI module metadata for a class.\n *\n * @internal\n * @param target - The module class\n * @param context - The decorator context\n * @returns The module metadata\n */\nexport declare function getCliModuleMetadata(target: ClassType, context: ClassDecoratorContext): CliModuleMetadata;\n/**\n * Extracts CLI module metadata from a class.\n *\n * @param target - The module class\n * @returns The module metadata\n * @throws {Error} If the class is not decorated with @CliModule\n *\n * @example\n * ```typescript\n * const metadata = extractCliModuleMetadata(AppModule)\n * console.log(metadata.commands.size) // Number of commands\n * ```\n */\nexport declare function extractCliModuleMetadata(target: ClassType): CliModuleMetadata;\n/**\n * Checks if a class has CLI module metadata.\n *\n * @param target - The class to check\n * @returns `true` if the class is decorated with @CliModule, `false` otherwise\n */\nexport declare function hasCliModuleMetadata(target: ClassType): boolean;\n//# sourceMappingURL=cli-module.metadata.d.mts.map","import type { ClassTypeWithInstance, NaviosModule } from '@navios/core';\nimport { Container } from '@navios/core';\nimport type { CommandHandler } from '../interfaces/index.mjs';\nimport type { CliModuleMetadata, CommandMetadata } from '../metadata/index.mjs';\n/**\n * Command class with its associated metadata.\n *\n * @public\n */\nexport interface CommandWithMetadata {\n /**\n * The command class constructor.\n */\n class: ClassTypeWithInstance<CommandHandler>;\n /**\n * The command metadata including path and options schema.\n */\n metadata: CommandMetadata;\n}\n/**\n * Service for loading and managing CLI modules and commands.\n *\n * Handles module traversal, command registration, and metadata collection.\n * This service is used internally by CommanderApplication.\n *\n * @public\n */\nexport declare class CliModuleLoaderService {\n protected container: Container;\n private modulesMetadata;\n private loadedModules;\n private commandsMetadata;\n private initialized;\n /**\n * Loads all modules starting from the root app module.\n *\n * Traverses the module tree, loads imported modules, and collects command metadata.\n *\n * @param appModule - The root CLI module\n */\n loadModules(appModule: ClassTypeWithInstance<NaviosModule>): Promise<void>;\n private traverseModules;\n private mergeMetadata;\n /**\n * Gets all loaded module metadata.\n *\n * @returns Map of module names to their metadata\n */\n getAllModules(): Map<string, CliModuleMetadata>;\n /**\n * Gets all command classes indexed by command class name.\n *\n * @returns Map of command class names to command classes\n */\n getAllCommands(): Map<string, ClassTypeWithInstance<any>>;\n /**\n * Get all commands with their metadata, indexed by command path.\n * This is populated during loadModules, so path information is available\n * before parsing CLI argv.\n */\n getAllCommandsWithMetadata(): Map<string, CommandWithMetadata>;\n /**\n * Get a command by its path, with metadata already extracted.\n * Returns undefined if command is not found.\n */\n getCommandByPath(path: string): CommandWithMetadata | undefined;\n /**\n * Disposes of all loaded modules and commands, clearing internal state.\n */\n dispose(): void;\n}\n//# sourceMappingURL=module-loader.service.d.mts.map","import type { ZodObject } from 'zod';\n/**\n * Result of parsing command-line arguments.\n *\n * @public\n */\nexport interface ParsedCliArgs {\n /**\n * The command path (e.g., 'greet', 'user:create').\n * Multi-word commands are joined with spaces.\n */\n command: string;\n /**\n * Parsed options as key-value pairs.\n * Keys are converted from kebab-case to camelCase.\n */\n options: Record<string, any>;\n /**\n * Positional arguments that don't match any option flags.\n */\n positionals: string[];\n}\n/**\n * Service for parsing command-line arguments.\n *\n * Handles parsing of various CLI argument formats including:\n * - Long options: `--key value` or `--key=value`\n * - Short options: `-k value` or `-abc` (multiple flags)\n * - Boolean flags\n * - Array options\n * - Positional arguments\n *\n * @public\n */\nexport declare class CliParserService {\n /**\n * Parses command-line arguments from process.argv\n * Commands can be multi-word (e.g., 'db migrate', 'cache clear')\n * Expected format: node script.js command [subcommand...] --flag value --boolean-flag positional1 positional2\n *\n * @param argv - Array of command-line arguments (typically process.argv)\n * @param optionsSchema - Optional Zod schema to determine boolean flags and option types\n * @returns Parsed command (space-separated if multi-word), options, and positional arguments\n */\n parse(argv: string[], optionsSchema?: ZodObject): ParsedCliArgs;\n /**\n * Converts kebab-case to camelCase\n */\n private camelCase;\n /**\n * Attempts to parse string values into appropriate types\n */\n private parseValue;\n /**\n * Extracts boolean field names from a Zod schema\n * Handles ZodObject, ZodOptional, and ZodDefault wrappers\n */\n private extractBooleanFields;\n /**\n * Extracts array field names from a Zod schema\n * Handles ZodObject, ZodOptional, and ZodDefault wrappers\n */\n private extractArrayFields;\n /**\n * Checks if a Zod schema represents a boolean type\n * Unwraps ZodOptional and ZodDefault\n */\n private isSchemaBoolean;\n /**\n * Checks if a Zod schema represents an array type\n * Unwraps ZodOptional and ZodDefault\n */\n private isSchemaArray;\n /**\n * Formats help text listing all available commands.\n *\n * @param commands - Array of command objects with path and class\n * @returns Formatted string listing all commands\n */\n formatCommandList(commands: Array<{\n path: string;\n class: any;\n }>): string;\n}\n//# sourceMappingURL=cli-parser.service.d.mts.map","import { InjectionToken } from '@navios/core';\nimport type { CommanderExecutionContext } from '../interfaces/index.mjs';\n/**\n * Injection token for accessing the current command execution context.\n *\n * Use this token with `inject()` to access the `CommanderExecutionContext` in services\n * that need information about the currently executing command.\n *\n * @example\n * ```typescript\n * import { inject, Injectable } from '@navios/di'\n * import { CommandExecutionContext } from '@navios/commander'\n *\n * @Injectable()\n * class MyService {\n * private ctx = inject(CommandExecutionContext)\n *\n * doSomething() {\n * const commandPath = this.ctx.getCommandPath()\n * const options = this.ctx.getOptions()\n * // Use context information...\n * }\n * }\n * ```\n */\nexport declare const CommandExecutionContext: InjectionToken<CommanderExecutionContext, undefined, false>;\n//# sourceMappingURL=execution-context.token.d.mts.map"],"mappings":";;;;;;;;;;AAOA;AAeqBI,UAfJD,2BAAAA,CAewB;;;;;;;;;;;;;;cAApBC,oBAAAA;;ECHAM,QAAAA,SAAAA;EAc8BH,UAAAA,SAAAA,EDR1BL,SCQ0BK;EAAtBD,QAAAA,SAAAA;EA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;;AJpBiBnB,USDA+D,aAAAA,CTCA/D;EAeIC;;;;EAgB+CD,OAAAA,EAAAA,MAAAA;EAA8BE;;;;EAiEnFL,OAAAA,ESvFFmE,MTuFEnE,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA;EAwBWK;;;EAiBN,WAAA,EAAA,MAAA,EAAA;;;;AC7HpB;;;;;;;;;;ACZiBU,cO2BIqD,gBAAAA,CPjBDtD;EA0CIE;;;;;;;;;EAAuI,KAAA,CAAA,IAAA,EAAA,MAAA,EAAA,EAAA,aAAA,CAAA,EOfrHiD,SPeqH,CAAA,EOfzGC,aPeyG;;;;ECrD9I1C,QAAAA,SAAAA;EAKFF;;;EAKDA,QAAAA,UAAAA;EAAkBA;;;;EAkCRI,QAAAA,oBAAS;EAAGC;;;;EAA0CH,QAAAA,kBAAAA;EAA4BF;;;;;;;ACvB1G;;;;ACrBA;AAMA;AAwBA;;;EAA4Hc,iBAAAA,CAAAA,QAAAA,EI2C5FiC,KJ3C4FjC,CAAAA;IAAYE,IAAAA,EAAAA,MAAAA;IAAe,KAAA,EAAA,GAAA;EAc/HI,CAAAA,CAAAA,CAAAA,EAAAA,MAAAA;AAOxB;;;;;;;ALlDA;AAeA;;;;;;;;;;;;;;;;;ACHA;AAcmDnC,cSR9BiE,uBTQ8BjE,ESRL+D,cTQK/D,CSRUgE,yBTQVhE,EAAAA,SAAAA,EAAAA,KAAAA,CAAAA"}
1
+ {"version":3,"file":"index.d.mts","names":["CommandHandler","TOptions","Promise","z","CommandHandler","helpOptionsSchema","ZodString","ZodOptional","core","$strip","ZodObject","HelpOptions","infer","HelpCommand","Promise","AbstractAdapterInterface","AbstractCliAdapterInterface","Promise","Record","Array","AdapterEnvironment","AbstractCliAdapterInterface","CliAdapterOptions","CliEnvironment","ClassTypeWithInstance","LogLevel","NaviosApplication","NaviosModule","CliEnvironment","CommanderLoggerOptions","CommanderFactoryOptions","CommanderFactory","TModule","Promise","ClassType","Registry","ZodObject","CommandOptions","Command","path","description","optionsSchema","priority","registry","ClassDecoratorContext","ClassType","Registry","CliModuleOptions","Set","CliModule","commands","controllers","imports","guards","overrides","priority","registry","ClassDecoratorContext","ClassType","ModuleMetadata","AbstractCliAdapterInterface","CliAdapterOptions","CommanderAdapterService","Promise","Map","Record","Array","ClassType","ZodObject","CommandMetadataKey","CommandMetadata","Map","getCommandMetadata","ClassDecoratorContext","extractCommandMetadata","hasCommandMetadata","ClassType","CommandEntryKey","CommandEntryValue","Set","extractModuleCommands","ClassType","CommandMetadata","RegisteredCommand","CommandRegistryService","Map","Array","ZodObject","ParsedCliArgs","Record","CliParserService","AnyInjectableType","InjectionToken","CommanderAdapterService","CommandRegistryService","CliParserService","defineCliEnvironment","Map","CommandMetadata","CommanderExecutionContext","InjectionToken","CommanderExecutionContext","CommandExecutionContext"],"sources":["../src/interfaces/command-handler.interface.d.mts","../src/commands/help.command.d.mts","../src/interfaces/abstract-cli-adapter.interface.d.mts","../src/interfaces/environment.interface.d.mts","../src/commander.factory.d.mts","../src/decorators/command.decorator.d.mts","../src/decorators/cli-module.decorator.d.mts","../src/services/commander-adapter.service.d.mts","../src/metadata/command.metadata.d.mts","../src/metadata/command-entry.metadata.d.mts","../src/services/command-registry.service.d.mts","../src/services/cli-parser.service.d.mts","../src/define-environment.d.mts","../src/interfaces/commander-execution-context.interface.d.mts","../src/tokens/execution-context.token.d.mts"],"sourcesContent":["/**\n * Interface that all command classes must implement.\n *\n * Commands decorated with `@Command` must implement this interface.\n * The `execute` method is called when the command is invoked.\n *\n * @template TOptions - The type of options that the command accepts\n *\n * @example\n * ```typescript\n * import { Command, CommandHandler } from '@navios/commander'\n * import { z } from 'zod'\n *\n * const optionsSchema = z.object({\n * name: z.string()\n * })\n *\n * type Options = z.infer<typeof optionsSchema>\n *\n * @Command({ path: 'greet', optionsSchema })\n * export class GreetCommand implements CommandHandler<Options> {\n * async execute(options: Options) {\n * console.log(`Hello, ${options.name}!`)\n * }\n * }\n * ```\n */\nexport interface CommandHandler<TOptions = any> {\n /**\n * Executes the command with the provided options.\n *\n * @param options - The validated command options (validated against the command's schema if provided)\n * @returns A promise or void\n */\n execute(options: TOptions): void | Promise<void>;\n}\n//# sourceMappingURL=command-handler.interface.d.mts.map","import { z } from 'zod';\nimport type { CommandHandler } from '../interfaces/command-handler.interface.mjs';\ndeclare const helpOptionsSchema: z.ZodObject<{\n command: z.ZodOptional<z.ZodString>;\n}, z.core.$strip>;\ntype HelpOptions = z.infer<typeof helpOptionsSchema>;\n/**\n * Built-in help command that lists all available commands or shows help for a specific command.\n *\n * @public\n */\nexport declare class HelpCommand implements CommandHandler<HelpOptions> {\n private logger;\n private commandRegistry;\n execute(options: HelpOptions): Promise<void>;\n}\nexport {};\n//# sourceMappingURL=help.command.d.mts.map","import type { AbstractAdapterInterface } from '@navios/core';\n/**\n * Interface for CLI adapters.\n * Extends the base adapter interface with CLI-specific methods.\n *\n * @public\n */\nexport interface AbstractCliAdapterInterface extends AbstractAdapterInterface {\n /**\n * Run the CLI application with the given arguments.\n * Parses arguments and executes the matching command.\n *\n * @param argv - Command-line arguments array (defaults to `process.argv`)\n *\n * @example\n * ```typescript\n * const adapter = app.getAdapter() as AbstractCliAdapterInterface\n * await adapter.run(process.argv)\n * ```\n */\n run(argv?: string[]): Promise<void>;\n /**\n * Execute a command programmatically with the provided options.\n *\n * @param path - The command path (e.g., 'greet', 'user:create')\n * @param options - The command options object\n *\n * @example\n * ```typescript\n * await adapter.executeCommand('user:create', {\n * name: 'John',\n * email: 'john@example.com',\n * })\n * ```\n */\n executeCommand(path: string, options: Record<string, unknown>): Promise<void>;\n /**\n * Get all registered command paths and their class references.\n *\n * @returns Array of objects containing path and class\n *\n * @example\n * ```typescript\n * const commands = adapter.getAllCommands()\n * commands.forEach(({ path }) => console.log(path))\n * ```\n */\n getAllCommands(): Array<{\n path: string;\n class: unknown;\n }>;\n}\n//# sourceMappingURL=abstract-cli-adapter.interface.d.mts.map","import type { AdapterEnvironment } from '@navios/core';\nimport type { AbstractCliAdapterInterface } from './abstract-cli-adapter.interface.mjs';\n/**\n * Options for configuring the CLI adapter.\n *\n * @public\n */\nexport interface CliAdapterOptions {\n}\n/**\n * Environment type definition for CLI adapters.\n * Used with NaviosFactory.create<CliEnvironment>() for type-safe CLI applications.\n *\n * @public\n *\n * @example\n * ```typescript\n * import { NaviosFactory } from '@navios/core'\n * import { defineCliEnvironment, type CliEnvironment } from '@navios/commander'\n *\n * const app = await NaviosFactory.create<CliEnvironment>(AppModule, {\n * adapter: defineCliEnvironment(),\n * })\n * ```\n */\nexport interface CliEnvironment extends AdapterEnvironment {\n options: CliAdapterOptions;\n adapter: AbstractCliAdapterInterface;\n}\n//# sourceMappingURL=environment.interface.d.mts.map","import type { ClassTypeWithInstance, LogLevel, NaviosApplication, NaviosModule } from '@navios/core';\nimport type { CliEnvironment } from './interfaces/environment.interface.mjs';\n/**\n * Logger display options for CLI applications.\n * All options default to false for cleaner CLI output.\n *\n * @public\n */\nexport interface CommanderLoggerOptions {\n /**\n * Enabled log levels.\n * @default ['log', 'error', 'warn', 'debug', 'verbose', 'fatal']\n */\n logLevels?: LogLevel[];\n /**\n * If true, will print the process ID in the log message.\n * @default false\n */\n showPid?: boolean;\n /**\n * If true, will print the log level in the log message.\n * @default true\n */\n showLogLevel?: boolean;\n /**\n * If true, will print the prefix/app name in the log message.\n * @default false\n */\n showPrefix?: boolean;\n /**\n * If true, will print the context in the log message.\n * @default true\n */\n showContext?: boolean;\n /**\n * If true, will print the absolute timestamp in the log message.\n * @default false\n */\n showTimestamp?: boolean;\n /**\n * If enabled, will print timestamp difference between current and previous log message.\n * @default false\n */\n showTimeDiff?: boolean;\n}\n/**\n * Configuration options for CommanderFactory.\n *\n * @public\n */\nexport interface CommanderFactoryOptions {\n /**\n * Logger display options. These override the default CLI-friendly logger settings.\n */\n logger?: CommanderLoggerOptions;\n}\n/**\n * Factory class for creating CLI applications.\n *\n * This is a convenience wrapper around `NaviosFactory.create()` that\n * configures everything needed for CLI usage. It sets up the CLI adapter\n * and returns a typed `NaviosApplication<CliEnvironment>`.\n *\n * @example\n * ```typescript\n * import { CommanderFactory } from '@navios/commander'\n * import { AppModule } from './app.module'\n *\n * async function bootstrap() {\n * const app = await CommanderFactory.create(AppModule)\n * await app.init()\n *\n * const adapter = app.getAdapter()\n * await adapter.run(process.argv)\n *\n * await app.close()\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Alternative: use NaviosFactory directly\n * import { NaviosFactory } from '@navios/core'\n * import { defineCliEnvironment, type CliEnvironment } from '@navios/commander'\n *\n * const app = await NaviosFactory.create<CliEnvironment>(AppModule, {\n * adapter: defineCliEnvironment(),\n * })\n * ```\n */\nexport declare class CommanderFactory {\n /**\n * Creates a new CLI application instance configured with the provided module.\n *\n * @param appModule - The root CLI module class decorated with `@CliModule`\n * @param options - Optional configuration options for the CLI application\n * @returns A promise that resolves to a configured NaviosApplication instance\n *\n * @example\n * ```typescript\n * const app = await CommanderFactory.create(AppModule)\n * await app.init()\n *\n * const adapter = app.getAdapter()\n * await adapter.run(process.argv)\n * ```\n */\n static create<TModule extends NaviosModule = NaviosModule>(appModule: ClassTypeWithInstance<TModule>, options?: CommanderFactoryOptions): Promise<NaviosApplication<CliEnvironment>>;\n}\n//# sourceMappingURL=commander.factory.d.mts.map","import type { ClassType, Registry } from '@navios/core';\nimport type { ZodObject } from 'zod';\n/**\n * Options for the `@Command` decorator.\n *\n * @public\n */\nexport interface CommandOptions {\n /**\n * The command path that users will invoke from the CLI.\n * Can be a single word (e.g., 'greet') or multi-word with colons (e.g., 'user:create', 'db:migrate').\n */\n path: string;\n /**\n * Optional description of the command for help text.\n * Displayed when users run `help` or `--help`.\n */\n description?: string;\n /**\n * Optional Zod schema for validating command options.\n * If provided, options will be validated and parsed according to this schema.\n */\n optionsSchema?: ZodObject;\n /**\n * Priority level for the command.\n * Higher priority commands will be loaded first.\n */\n priority?: number;\n /**\n * Registry to use for the command.\n * Registry is used to store the command and its options schema.\n */\n registry?: Registry;\n}\n/**\n * Decorator that marks a class as a CLI command.\n *\n * The decorated class must implement the `CommandHandler` interface with an `execute` method.\n * The command will be automatically registered when its module is loaded.\n *\n * @param options - Configuration options for the command\n * @returns A class decorator function\n *\n * @example\n * ```typescript\n * import { Command, CommandHandler } from '@navios/commander'\n * import { z } from 'zod'\n *\n * const optionsSchema = z.object({\n * name: z.string(),\n * greeting: z.string().optional().default('Hello')\n * })\n *\n * @Command({\n * path: 'greet',\n * optionsSchema: optionsSchema\n * })\n * export class GreetCommand implements CommandHandler<z.infer<typeof optionsSchema>> {\n * async execute(options) {\n * console.log(`${options.greeting}, ${options.name}!`)\n * }\n * }\n * ```\n */\nexport declare function Command({ path, description, optionsSchema, priority, registry, }: CommandOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;\n//# sourceMappingURL=command.decorator.d.mts.map","import type { ClassType, Registry } from '@navios/core';\n/**\n * Options for the `@CliModule` decorator.\n *\n * @public\n */\nexport interface CliModuleOptions {\n /**\n * Array or Set of command classes to register in this module.\n * Commands must be decorated with `@Command`.\n */\n commands?: ClassType[] | Set<ClassType>;\n /**\n * Array or Set of controller classes for HTTP endpoints.\n * Allows mixing HTTP and CLI functionality in the same module.\n */\n controllers?: ClassType[] | Set<ClassType>;\n /**\n * Array or Set of other modules to import.\n * Imported modules' commands and controllers will be available.\n */\n imports?: ClassType[] | Set<ClassType>;\n /**\n * Guards to apply to all controllers in this module.\n * Guards are executed in reverse order (last guard first).\n */\n guards?: ClassType[] | Set<ClassType>;\n /**\n * Service override classes to import for side effects.\n * These classes are imported to ensure their @Injectable decorators execute,\n * allowing them to register with the DI system. Overrides should use the same\n * InjectionToken as the original service with a higher priority.\n */\n overrides?: ClassType[] | Set<ClassType>;\n /**\n * Priority level for the module.\n * Higher priority modules will be loaded first.\n */\n priority?: number;\n /**\n * Registry to use for the module.\n * Registry is used to store the module and its commands.\n */\n registry?: Registry;\n}\n/**\n * Decorator that marks a class as a CLI module.\n *\n * This decorator extends the standard @Module decorator, adding support for\n * CLI commands while maintaining full compatibility with HTTP controllers.\n * Modules organize commands and can import other modules to compose larger\n * CLI applications.\n *\n * The module can optionally implement `NaviosModule` interface for lifecycle hooks.\n *\n * @param options - Configuration options for the module\n * @returns A class decorator function\n *\n * @example\n * ```typescript\n * import { CliModule } from '@navios/commander'\n * import { GreetCommand } from './greet.command'\n * import { UserModule } from './user.module'\n *\n * @CliModule({\n * commands: [GreetCommand],\n * imports: [UserModule]\n * })\n * export class AppModule {}\n * ```\n *\n * @example\n * ```typescript\n * // Mixed HTTP and CLI module\n * @CliModule({\n * controllers: [HealthController],\n * commands: [MigrateCommand],\n * imports: [DatabaseModule],\n * })\n * export class AppModule {}\n * ```\n */\nexport declare function CliModule({ commands, controllers, imports, guards, overrides, priority, registry, }?: CliModuleOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;\n//# sourceMappingURL=cli-module.decorator.d.mts.map","import type { ClassType, ModuleMetadata } from '@navios/core';\nimport type { AbstractCliAdapterInterface } from '../interfaces/abstract-cli-adapter.interface.mjs';\nimport type { CliAdapterOptions } from '../interfaces/environment.interface.mjs';\n/**\n * CLI adapter service that implements the AbstractCliAdapterInterface.\n * Handles command discovery, registration, parsing, and execution.\n *\n * @public\n */\nexport declare class CommanderAdapterService implements AbstractCliAdapterInterface {\n private container;\n private commandRegistry;\n private cliParser;\n private logger;\n private options;\n private isReady;\n /**\n * Sets up the adapter with the provided options.\n * Called during application initialization.\n */\n setupAdapter(options: CliAdapterOptions): Promise<void>;\n /**\n * Called after all modules are loaded.\n * Iterates through modules and extracts commands from customEntries.\n */\n onModulesInit(modules: Map<string, ModuleMetadata>): Promise<void>;\n /**\n * Registers built-in commands like help.\n */\n private registerBuiltInCommands;\n /**\n * Signals that the adapter is ready to handle commands.\n */\n ready(): Promise<void>;\n /**\n * Disposes of the adapter and cleans up resources.\n */\n dispose(): Promise<void>;\n /**\n * Run the CLI application with the given arguments.\n * Parses arguments and executes the matching command.\n */\n run(argv?: string[]): Promise<void>;\n /**\n * Execute a command programmatically with the provided options.\n */\n executeCommand(path: string, options?: Record<string, unknown>): Promise<void>;\n /**\n * Get all registered command paths and their class references.\n */\n getAllCommands(): Array<{\n path: string;\n class: ClassType;\n }>;\n}\n//# sourceMappingURL=commander-adapter.service.d.mts.map","import type { ClassType } from '@navios/core';\nimport type { ZodObject } from 'zod';\n/**\n * @internal\n * Symbol key used to store command metadata on classes.\n */\nexport declare const CommandMetadataKey: unique symbol;\n/**\n * Metadata associated with a command.\n *\n * @public\n */\nexport interface CommandMetadata {\n /**\n * The command path (e.g., 'greet', 'user:create').\n */\n path: string;\n /**\n * Optional description of the command for help text.\n */\n description?: string;\n /**\n * Optional Zod schema for validating command options.\n */\n optionsSchema?: ZodObject;\n /**\n * Map of custom attributes that can be attached to the command.\n */\n customAttributes: Map<string | symbol, any>;\n}\n/**\n * Gets or creates command metadata for a class.\n *\n * @internal\n * @param target - The command class\n * @param context - The decorator context\n * @param path - The command path\n * @param description - Optional description for help text\n * @param optionsSchema - Optional Zod schema\n * @returns The command metadata\n */\nexport declare function getCommandMetadata(target: ClassType, context: ClassDecoratorContext, path: string, description?: string, optionsSchema?: ZodObject): CommandMetadata;\n/**\n * Extracts command metadata from a class.\n *\n * @param target - The command class\n * @returns The command metadata\n * @throws {Error} If the class is not decorated with @Command\n *\n * @example\n * ```typescript\n * const metadata = extractCommandMetadata(GreetCommand)\n * console.log(metadata.path) // 'greet'\n * ```\n */\nexport declare function extractCommandMetadata(target: ClassType): CommandMetadata;\n/**\n * Checks if a class has command metadata.\n *\n * @param target - The class to check\n * @returns `true` if the class is decorated with @Command, `false` otherwise\n */\nexport declare function hasCommandMetadata(target: ClassType): boolean;\n//# sourceMappingURL=command.metadata.d.mts.map","import type { ClassType } from '@navios/core';\n/**\n * Symbol key for storing commands in ModuleMetadata.customEntries.\n * Used by @CliModule to store command classes.\n *\n * @public\n */\nexport declare const CommandEntryKey: unique symbol;\n/**\n * Type for the command entry value stored in customEntries.\n *\n * @public\n */\nexport type CommandEntryValue = Set<ClassType>;\n/**\n * Extracts commands from a module's metadata.\n * Returns empty set if no commands are defined.\n *\n * @param moduleClass - The module class decorated with @CliModule or @Module\n * @returns Set of command classes registered in the module\n *\n * @example\n * ```typescript\n * const commands = extractModuleCommands(AppModule)\n * for (const command of commands) {\n * console.log(command.name)\n * }\n * ```\n */\nexport declare function extractModuleCommands(moduleClass: ClassType): Set<ClassType>;\n//# sourceMappingURL=command-entry.metadata.d.mts.map","import type { ClassType } from '@navios/core';\nimport type { CommandMetadata } from '../metadata/index.mjs';\n/**\n * Represents a registered command with its metadata and module information.\n *\n * @public\n */\nexport interface RegisteredCommand {\n /**\n * The command class\n */\n class: ClassType;\n /**\n * The command metadata from @Command decorator\n */\n metadata: CommandMetadata;\n /**\n * Name of the module this command belongs to\n */\n moduleName: string;\n}\n/**\n * Service for registering and looking up CLI commands.\n * Used internally by the CLI adapter to manage discovered commands.\n *\n * @public\n */\nexport declare class CommandRegistryService {\n private commands;\n /**\n * Register a command with its metadata.\n *\n * @param path - The command path (e.g., 'greet', 'user:create')\n * @param command - The registered command data\n * @throws Error if a command with the same path is already registered\n */\n register(path: string, command: RegisteredCommand): void;\n /**\n * Get a command by its path.\n *\n * @param path - The command path\n * @returns The registered command or undefined if not found\n */\n getByPath(path: string): RegisteredCommand | undefined;\n /**\n * Get all registered commands.\n *\n * @returns Map of path to registered command\n */\n getAll(): Map<string, RegisteredCommand>;\n /**\n * Get all registered commands as an array of path and class pairs.\n * Useful for listing available commands.\n *\n * @returns Array of objects containing path and class\n */\n getAllAsArray(): Array<{\n path: string;\n class: ClassType;\n }>;\n /**\n * Formats help text listing all available commands with descriptions.\n *\n * @returns Formatted string listing all commands\n */\n formatCommandList(): string;\n /**\n * Formats help text for a specific command.\n *\n * @param commandPath - The command path to show help for\n * @returns Formatted string with command help\n */\n formatCommandHelp(commandPath: string): string;\n /**\n * Gets a human-readable type name from a Zod schema.\n */\n private getSchemaTypeName;\n /**\n * Gets metadata from a Zod schema, traversing innerType if needed.\n * Zod v4 stores meta at the outermost layer when .meta() is called last,\n * or in innerType when .meta() is called before .optional()/.default().\n */\n private getSchemaMeta;\n /**\n * Clear all registered commands.\n */\n clear(): void;\n}\n//# sourceMappingURL=command-registry.service.d.mts.map","import type { ZodObject } from 'zod';\n/**\n * Result of parsing command-line arguments.\n *\n * @public\n */\nexport interface ParsedCliArgs {\n /**\n * The command path (e.g., 'greet', 'user:create').\n * Multi-word commands are joined with spaces.\n */\n command: string;\n /**\n * Parsed options as key-value pairs.\n * Keys are converted from kebab-case to camelCase.\n */\n options: Record<string, any>;\n /**\n * Positional arguments that don't match any option flags.\n */\n positionals: string[];\n}\n/**\n * Service for parsing command-line arguments.\n *\n * Handles parsing of various CLI argument formats including:\n * - Long options: `--key value` or `--key=value`\n * - Short options: `-k value` or `-abc` (multiple flags)\n * - Boolean flags\n * - Array options\n * - Positional arguments\n *\n * @public\n */\nexport declare class CliParserService {\n /**\n * Parses command-line arguments from process.argv\n * Commands can be multi-word (e.g., 'db migrate', 'cache clear')\n * Expected format: node script.js command [subcommand...] --flag value --boolean-flag positional1 positional2\n *\n * @param argv - Array of command-line arguments (typically process.argv)\n * @param optionsSchema - Optional Zod schema to determine boolean flags and option types\n * @returns Parsed command (space-separated if multi-word), options, and positional arguments\n */\n parse(argv: string[], optionsSchema?: ZodObject): ParsedCliArgs;\n /**\n * Converts kebab-case to camelCase\n */\n private camelCase;\n /**\n * Attempts to parse string values into appropriate types\n */\n private parseValue;\n /**\n * Extracts boolean field names from a Zod schema\n * Handles ZodObject, ZodOptional, and ZodDefault wrappers\n */\n private extractBooleanFields;\n /**\n * Extracts array field names from a Zod schema\n * Handles ZodObject, ZodOptional, and ZodDefault wrappers\n */\n private extractArrayFields;\n /**\n * Checks if a Zod schema represents a boolean type\n * Unwraps ZodOptional and ZodDefault using Zod v4 API\n */\n private isSchemaBoolean;\n /**\n * Checks if a Zod schema represents an array type\n * Unwraps ZodOptional and ZodDefault using Zod v4 API\n */\n private isSchemaArray;\n}\n//# sourceMappingURL=cli-parser.service.d.mts.map","import type { AnyInjectableType, InjectionToken } from '@navios/core';\nimport { CommanderAdapterService } from './services/commander-adapter.service.mjs';\nimport { CommandRegistryService } from './services/command-registry.service.mjs';\nimport { CliParserService } from './services/cli-parser.service.mjs';\n/**\n * Defines the CLI environment configuration for use with NaviosFactory.\n *\n * This function returns the token mappings needed to configure a CLI application.\n * Use it with `NaviosFactory.create()` to create a CLI application.\n *\n * @returns Environment configuration with token mappings\n *\n * @example\n * ```typescript\n * import { NaviosFactory } from '@navios/core'\n * import { defineCliEnvironment, type CliEnvironment } from '@navios/commander'\n *\n * const app = await NaviosFactory.create<CliEnvironment>(AppModule, {\n * adapter: defineCliEnvironment(),\n * })\n * await app.init()\n *\n * const adapter = app.getAdapter() as AbstractCliAdapterInterface\n * await adapter.run(process.argv)\n * ```\n */\nexport declare function defineCliEnvironment(): {\n tokens: Map<InjectionToken<any, undefined, false>, AnyInjectableType>;\n};\nexport { CommanderAdapterService, CommandRegistryService, CliParserService };\n//# sourceMappingURL=define-environment.d.mts.map","import type { CommandMetadata } from '../metadata/command.metadata.mjs';\n/**\n * Execution context for a command execution.\n *\n * Provides access to command metadata, path, and validated options during command execution.\n * This context is automatically injected and available via the `CommandExecutionContext` token.\n *\n * @example\n * ```typescript\n * import { inject, Injectable } from '@navios/core'\n * import { CommandExecutionContext } from '@navios/commander'\n *\n * @Injectable()\n * class CommandLogger {\n * private ctx = inject(CommandExecutionContext)\n *\n * log() {\n * console.log('Command:', this.ctx.getCommandPath())\n * console.log('Options:', this.ctx.getOptions())\n * }\n * }\n * ```\n */\nexport declare class CommanderExecutionContext {\n private readonly command;\n private readonly commandPath;\n private readonly options;\n /**\n * @internal\n * Creates a new execution context.\n */\n constructor(command: CommandMetadata, commandPath: string, options: any);\n /**\n * Gets the command metadata.\n *\n * @returns The command metadata including path and options schema\n */\n getCommand(): CommandMetadata;\n /**\n * Gets the command path that was invoked.\n *\n * @returns The command path (e.g., 'greet', 'user:create')\n */\n getCommandPath(): string;\n /**\n * Gets the validated command options.\n *\n * Options are validated against the command's Zod schema if one was provided.\n *\n * @returns The validated options object\n */\n getOptions(): any;\n}\n//# sourceMappingURL=commander-execution-context.interface.d.mts.map","import { InjectionToken } from '@navios/core';\nimport type { CommanderExecutionContext } from '../interfaces/index.mjs';\n/**\n * Injection token for accessing the current command execution context.\n *\n * Use this token with `inject()` to access the `CommanderExecutionContext` in services\n * that need information about the currently executing command.\n *\n * @example\n * ```typescript\n * import { inject, Injectable } from '@navios/core'\n * import { CommandExecutionContext } from '@navios/commander'\n *\n * @Injectable()\n * class MyService {\n * private ctx = inject(CommandExecutionContext)\n *\n * doSomething() {\n * const commandPath = this.ctx.getCommandPath()\n * const options = this.ctx.getOptions()\n * // Use context information...\n * }\n * }\n * ```\n */\nexport declare const CommandExecutionContext: InjectionToken<CommanderExecutionContext, undefined, false>;\n//# sourceMappingURL=execution-context.token.d.mts.map"],"mappings":";;;;;;;;;;;;AA2BA;;;;AC1BkF;;;;;;AACtC;AAS5C;;;;;;;;;ACJA;AAa0BiB,UFOTjB,cEPSiB,CAAAA,WAAAA,GAAAA,CAAAA,CAAAA;EAegBC;;;;;;mBFDrBjB,kBAAkBC;;;;cChCzBG,mBAAmBF,CAAAA,CAAEO;WACtBP,CAAAA,CAAEI,YAAYJ,CAAAA,CAAEG;GAC1BH,CAAAA,CAAEK,IAAAA,CAAKC;KACLE,WAAAA,GAAcR,CAAAA,CAAES,aAAaP;ADsBlC;;;;AC1BkF;AAErDC,cAQRO,WAAAA,YAAuBT,cARfE,CAQ8BK,WAR9BL,CAAAA,CAAAA;EAAdC,QAAAA,MAAAA;EACVC,QAAKC,eAAAA;EAFyBC,OAAAA,CAAAA,OAAAA,EAYdC,WAZcD,CAAAA,EAYAI,OAZAJ,CAAAA,IAAAA,CAAAA;;;;;;;;;ADyBnC;UEpBiBM,2BAAAA,SAAoCD;;;ADN6B;;;;;;AACtC;AAS5C;;;EAGmCD,GAAAA,CAAAA,IAAA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