/** * Execution context detector * * Determines whether CLI is running in repository (with source files) * or via npx (installed package), enabling appropriate command suggestions. * * @module lib/context-detector */ import { ExecutionContext } from "./types/next-steps"; /** * Detect execution context * * Determines whether the CLI is running in repository context (with source files) * or via npx (installed package) by examining the file system for: * 1. package.json with matching name * 2. Source TypeScript files in lib/ directory * 3. Available npm scripts * * @returns Execution context information * * @example * ```typescript * const context = detectExecutionContext(); * if (context.isRepository) { * console.log('Running in repository'); * console.log('Available scripts:', context.availableScripts); * } else { * console.log('Running via npx'); * } * ``` */ export declare function detectExecutionContext(): ExecutionContext; //# sourceMappingURL=context-detector.d.ts.map