import { Hook } from '@oclif/core'; /** * Prerun hook that enables debug logging when --debug flag is present. * * This hook runs after command resolution but before run() execution. Since * oclif has already instantiated the command and will execute the original * run() method, we enable the DebugLogger globally so that SERVICE and * ADAPTER layers produce debug output. * * Architecture: * - Checks for --debug flag in argv * - Enables DebugLogger globally * - SERVICE and ADAPTER layers check DebugLogger.isEnabled() * - Zero overhead when --debug flag is not present * * Note: CLI-layer command logging (flags, timing) would require a base command * class or command-level changes. This implementation focuses on enabling * SERVICE → ADAPTER debug output which is the primary use case. * * @see src/debug/debug-logger.ts * @see src/debug/service-debug-proxy.ts * @see src/adapters/connection-facade.ts (createDebugConnectionFacade) */ declare const hook: Hook.Prerun; export default hook;