#!/usr/bin/env node import { Command } from 'commander'; import type { CliOptions } from './types.js'; /** * Main CLI application for Grepr query tool using self-registering commands */ export declare class GreprQueryCLI { private program; private commandRegistry; constructor(); /** * Merge configuration with CLI options. * Priority order: CLI args > env vars > saved config > defaults */ mergeConfiguration(options: Partial): Promise; /** * Register all commands with the command registry */ private registerCommands; /** * Setup CLI commands and options */ setupCLI(): Command; /** * When GREPR_ALLOWED_SUBCOMMANDS is set (sandboxed/embedded use), expose ONLY the whitelisted * subcommands: any command whose name does not start with an allowed prefix is removed, so it is * absent from `--help` (commander routes and renders help off this same array), and a hidden * stand-in takes its place that says it isn't available. Unset => no filtering (normal CLI); * set-but-empty => no subcommands are exposed. */ private applyCommandAllowlist; /** * Registers a hidden stand-in under each removed command's name and aliases, so calling one says * it isn't available, rather than failing as an unknown command or, with nothing allowed, as an * unknown option of the root program (which sends an agent chasing its syntax). Hidden, the * stand-ins stay out of help. The message names no reason beyond availability: tools, skills and * the memory setting all shape the allowlist. */ private addUnavailableStandIns; } //# sourceMappingURL=grepr.d.ts.map