#!/usr/bin/env node /** * Headless executor for Claude CLI delegation * Spawns claude with -p flag for single-turn execution */ import { type ExecutionOptions, type ExecutionResult } from './executor/types'; export type { ExecutionOptions, ExecutionResult, StreamMessage } from './executor/types'; /** * Headless executor for Claude CLI delegation */ export declare class HeadlessExecutor { /** * Execute task via headless Claude CLI * @param profile - Profile name (glm, kimi, custom) * @param enhancedPrompt - Enhanced prompt with context * @param options - Execution options * @returns execution result */ static execute(profile: string, enhancedPrompt: string, options?: ExecutionOptions): Promise; /** * Spawn Claude CLI in background mode * Returns immediately with task ID and output file path */ private static _spawnBackground; private static _resolveRedisBackgroundUrl; private static _canConnectRedis; private static _spawnBackgroundRedis; /** * Spawn Claude CLI and handle execution */ private static _spawnAndExecute; /** Validate permission mode */ private static _validatePermissionMode; /** Detect Claude CLI executable */ private static _detectClaudeCli; /** Execute with retry logic */ static executeWithRetry(profile: string, enhancedPrompt: string, options?: ExecutionOptions): Promise; /** Sleep utility for retry backoff */ private static _sleep; /** Process prompt to detect and preserve slash commands */ private static _processSlashCommand; /** Test if profile is executable */ static testProfile(profile: string): Promise; } //# sourceMappingURL=headless-executor.d.ts.map